Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_tables.scss « stylesheets « assets « content - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 03fb20c1ead8234b39adff4ffba24b21958e7bd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
version: 1
---

@import 'variables';
@import 'mixins/breakpoints';

// Tables
table {
  margin-top: 1rem;
  font-weight: normal;
  letter-spacing: normal;
  margin-bottom: 1.5em;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;

  @include breakpoint(md) {
    table-layout: auto;
  }

  @include breakpoint($max: $bp-md) {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  tr {
    border-top: 1px solid $gray-100;


    &:nth-child(even) {
      background-color: $gray-10;
    }

    &:last-child {
      border-bottom: 1px solid $gray-100;
    }
  }

  th,
  td {
    padding: 1em;
  }

  th {
    background-color: $gray-50;
    color: $gray-900;
    line-height: 1.25;
    text-align: left;
  }

  td {
    vertical-align: top;

    a {
      /* stylelint-disable declaration-no-important */
      border-bottom: 0 !important;
      /* stylelint-enable declaration-no-important */
    }

    .badge-drop {
      display: none;
    }
  }
}