]>
Commit | Line | Data |
---|---|---|
31f18b77 FG |
1 | /* |
2 | * Component: Table | |
3 | * ---------------- | |
4 | */ | |
5 | ||
6 | .table { | |
7 | //Cells | |
8 | > thead, | |
9 | > tbody, | |
10 | > tfoot { | |
11 | > tr { | |
12 | > th, | |
13 | > td { | |
14 | border-top: 1px solid @box-border-color; | |
15 | } | |
16 | } | |
17 | } | |
18 | //thead cells | |
19 | > thead > tr > th { | |
20 | border-bottom: 2px solid @box-border-color; | |
21 | } | |
22 | //progress bars in tables | |
23 | tr td .progress { | |
24 | margin-top: 5px; | |
25 | } | |
26 | } | |
27 | ||
28 | //Bordered Table | |
29 | .table-bordered { | |
30 | border: 1px solid @box-border-color; | |
31 | > thead, | |
32 | > tbody, | |
33 | > tfoot { | |
34 | > tr { | |
35 | > th, | |
36 | > td { | |
37 | border: 1px solid @box-border-color; | |
38 | } | |
39 | } | |
40 | } | |
41 | > thead > tr { | |
42 | > th, | |
43 | > td { | |
44 | border-bottom-width: 2px; | |
45 | } | |
46 | } | |
47 | } | |
48 | ||
49 | .table.no-border { | |
50 | &, | |
51 | td, | |
52 | th { | |
53 | border: 0; | |
54 | } | |
55 | } | |
56 | ||
57 | /* .text-center in tables */ | |
58 | table.text-center { | |
59 | &, td, th { | |
60 | text-align: center; | |
61 | } | |
62 | } | |
63 | ||
64 | .table.align { | |
65 | th { | |
66 | text-align: left; | |
67 | } | |
68 | td { | |
69 | text-align: right; | |
70 | } | |
71 | } |