diff --git a/less/_11-styling.less b/less/_11-styling.less index 51e18f1..953e706 100644 --- a/less/_11-styling.less +++ b/less/_11-styling.less @@ -98,41 +98,44 @@ hr { } /* alternate tables */ -.alternate { border: 0; } -.alternate tbody { +.table-alternate { + border: 0; +} + +.table-alternate tbody { border: 1px solid #ccc; } -.alternate thead tr > * + * { +.table-alternate thead tr > * + * { border-left: 0; } -.alternate tbody tr > * + * { +.table-alternate tbody tr > * + * { border-left: 1px solid #ccc; } /* alternate-vert tables */ -.alternate-vert { +.table-alternate-vert { border: 0; border-right: 1px solid #ccc; } -.alternate-vert tr > :first-child { +.table-alternate-vert tr > :first-child { border-bottom: 0; } -.alternate-vert tr > * + * { +.table-alternate-vert tr > * + * { border-top: 1px solid #ccc; } /* striped tables */ -.striped tbody tr:nth-child(odd) { +.table-striped tbody tr:nth-child(odd) { background: #eee; background: rgba(0, 0, 0, .05); } /* striped-vert tables */ -.striped-vert tr > :first-child { +.table-striped-vert tr > :first-child { background: #eee; background: rgba(0, 0, 0, .05); } diff --git a/sass/_11-styling.scss b/sass/_11-styling.scss index 78f6ff1..9b9623c 100644 --- a/sass/_11-styling.scss +++ b/sass/_11-styling.scss @@ -96,41 +96,44 @@ hr { } /* alternate tables */ -.alternate { border: 0; } -.alternate tbody { +.table-alternate { + border: 0; +} + +.table-alternate tbody { border: 1px solid #ccc; } -.alternate thead tr > * + * { +.table-alternate thead tr > * + * { border-left: 0; } -.alternate tbody tr > * + * { +.table-alternate tbody tr > * + * { border-left: 1px solid #ccc; } /* alternate-vert tables */ -.alternate-vert { +.table-alternate-vert { border: 0; border-right: 1px solid #ccc; } -.alternate-vert tr > :first-child { +.table-alternate-vert tr > :first-child { border-bottom: 0; } -.alternate-vert tr > * + * { +.table-alternate-vert tr > * + * { border-top: 1px solid #ccc; } /* striped tables */ -.striped tbody tr:nth-child(odd) { +.table-striped tbody tr:nth-child(odd) { background: #eee; background: rgba(0, 0, 0, .05); } /* striped-vert tables */ -.striped-vert tr > :first-child { +.table-striped-vert tr > :first-child { background: #eee; background: rgba(0, 0, 0, .05); }