UNPKG

916 BSCSSView Raw
1@mixin table-border($border-width) {
2 table {
3 tr td:first-child,
4 tr th:first-child {
5 border-left-width: $border-width;
6 }
7 }
8 #{$table-prefix}-header {
9 th {
10 border-top-width: $border-width;
11 }
12 tr th:last-child {
13 border-right-width: $border-width;
14 }
15 }
16 #{$table-prefix}-body {
17 td {
18 border-top-width: $border-width;
19 }
20 tr:last-child td {
21 border-bottom-width: $border-width;
22 }
23 tr td:last-child {
24 border-right-width: $border-width;
25 }
26 }
27}
28
29@mixin table-last-child-border($border-width) {
30 #{$table-prefix}-header {
31 tr th:last-child {
32 border-right-width: $border-width;
33 }
34 }
35 #{$table-prefix}-body {
36 tr td:last-child {
37 border-right-width: $border-width;
38 }
39 }
40}