Summary Files Commits Branches @commit @diff @stats
path: root / src / tables.less
blob: 5e706083d16a3d9525fe152fd5ea90d3fd41c814 (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
// Tables
.table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;

  &.table-striped {
    tbody {
      tr:nth-of-type(odd) {
        background: lighten(@core-border-color, 5%);
      }
    }
  }
  &.table-hover {
    tbody {
      tr {
        &:hover {
          background: lighten(@core-border-color, 2%);
        }
        &.selected {
          background: lighten(@core-border-color, 1%);
        }
      }
    }
  }
  th,
  td {
    border-bottom: .1rem solid @core-border-color;
    padding: 1.5rem 1rem;
    text-align: left;
  }
  th {
    border-color: darken(@core-border-color, 15%);
  }
}