Summary Files Commits Branches @commit @diff @stats
path: root / src / tables.less
blob: 60b33d9848e7efdcf49b332fbd74e49e77fb0a3d (plain) (blame)
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
// Tables
.table {
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
  width: 100%;

  &.table-striped {
    tbody {
      tr:nth-of-type(odd) {
        background: @core-bg-color;
      }
    }
  }
  &.table-hover {
    tbody {
      tr {
        &:hover {
          background: darken(@core-bg-color, 3%);
        }
      }
    }
  }
  &,
  &.table-striped {
    tbody {
      tr {
        &.active {
          background: darken(@core-bg-color, 3%);
        }
      }
    }
  }
  th,
  td {
    border-bottom: .1rem solid @core-border-color;
    padding: 1.5rem 1rem;
  }
  th {
    border-color: darken(@core-border-color, 5%);
  }
}