summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/tables.scss
blob: 4dd31bf28cd42a4aafc7a540b18265abfa69ba35 (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
.table-holder {
  margin: 0;
}

table {
  &.table {
    margin-bottom: $gl-padding;

    .dropdown-menu a {
      text-decoration: none;
    }

    .success,
    .warning,
    .danger,
    .info {
      color: $white-light;

      a:not(.btn) {
        text-decoration: underline;
        color: $white-light;
      }
    }

    tr {
      td,
      th {
        padding: 10px $gl-padding;
        line-height: 20px;
        vertical-align: middle;
      }

      th {
        background-color: $gray-light;
        font-weight: $gl-font-weight-normal;
        border-bottom: none;

        &.wide {
          width: 55%;
        }
      }

      td {
        border-color: $white-normal;
      }
    }
  }
}

.responsive-table {
  @media (max-width: $screen-sm-max) {
    th {
      width: 100%;
    }

    td {
      width: 100%;
      float: left;
    }
  }
}