summaryrefslogtreecommitdiffstats
path: root/public/ng/less/ui/table.less
blob: 0ceb5e8c9502f43e14e99c3e2853262445d199b5 (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
@import "var";

table {
  th,
  td {
    padding: .3em .6em;
    line-height: 30px;
  }
}

.table-border {
  border: 1px solid @tableBorderColor;
  tr {
    border-top: 1px solid @tableCellBorderColor;
    th,
    td, {
      border-top: 1px solid @tableCellBorderColor;
    }
    &:first-child {
      border-top: none;
    }
  }
  thead {
    border-bottom: 1px solid @tableBorderColor;
  }
}

.table-block {
  width: 100%;
  box-sizing: border-box;
}

.table-radius {
  border-collapse: separate !important;
  border-radius: .3em;
  thead:first-child {
    border-top-left-radius: .3em;
    border-top-right-radius: .3em;
    tr:first-child {
      border-top-left-radius: .3em;
      > th:first-child {
        border-top-left-radius: .3em;
      }
      > th:last-child {
        border-top-right-radius: .3em;
      }
    }
  }
  tbody {
    border-bottom-left-radius: .3em;
    border-bottom-right-radius: .3em;
    tr:last-child {
      border-bottom-left-radius: .3em;
      border-bottom-right-radius: .3em;
      > td:first-child {
        border-bottom-left-radius: .3em;
      }
      > td:last-child {
        border-bottom-right-radius: .3em;
      }
    }
  }
}