summaryrefslogtreecommitdiff
path: root/src/assets/styles/vendor-overrides/bootstrap/_tables.scss
blob: b20feb0d583a3642b35d540b49178ae5b14102fd (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
.table {
  position: relative;
  z-index: $zindex-dropdown;

  td {
    border-top: 1px solid $gray-300;
    border-bottom: 1px solid $gray-300;
    &:first-of-type {
      border-left: 1px solid $gray-300;
    }
    &:last-of-type {
      border-right: 1px solid $gray-300;
    }
  }

  // thead-light added for specificiy
  .thead-light th {
    border: none;
    color: $dark;
  }

  .status-icon svg {
    width: 1rem;
    height: auto;
  }

  .b-table-has-details {
    td {
      border-bottom: none;
    }
    .table-row-expand svg {
      transform: rotate(180deg);
    }
  }

  .b-table-details {
    background-color: $light;
    td {
      padding-left: calc(50px + (#{$table-cell-padding} * 2));
    }
    dl {
      margin: 0;
    }
    dt {
      display: inline-block;
      margin-right: $spacer / 2;
    }
    dd {
      display: inline-block;
    }
  }

  .table-row-expand {
    width: 50px;
    .btn {
      padding: 0;
      width: 50px;
    }
    svg {
      fill: $dark;
    }
  }
}