| 1 |
@mixin outer-table-borders($width: 2px, $color: black) { |
| 2 |
border: $width solid $color; |
| 3 |
thead { |
| 4 |
th { |
| 5 |
border-bottom: $width solid $color; } } |
| 6 |
tfoot { |
| 7 |
th, td { |
| 8 |
border-top: $width solid $color; } } |
| 9 |
th { |
| 10 |
&:first-child { |
| 11 |
border-right: $width solid $color; } } } |
| 12 |
|
| 13 |
@mixin inner-table-borders($width: 2px, $color: black) { |
| 14 |
th, td { |
| 15 |
border: { |
| 16 |
right: $width solid $color; |
| 17 |
bottom: $width solid $color; |
| 18 |
left-width: 0px; |
| 19 |
top-width: 0px; }; |
| 20 |
&:last-child, |
| 21 |
&.last { |
| 22 |
border-right-width: 0px; } } |
| 23 |
|
| 24 |
// IE8 ignores rules that are included on the same line as :last-child |
| 25 |
// see http://www.richardscarrott.co.uk/posts/view/ie8-last-child-bug for details |
| 26 |
|
| 27 |
tbody, tfoot { |
| 28 |
tr:last-child { |
| 29 |
th, td { |
| 30 |
border-bottom-width: 0px; } } |
| 31 |
tr.last { |
| 32 |
th, td { |
| 33 |
border-bottom-width: 0px; } } } } |