diff options
| author | Mark Otto <[email protected]> | 2012-01-17 23:39:18 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-17 23:39:18 -0800 |
| commit | 47b8184bbb5784eb373ffbb905c8a1756eba3c6d (patch) | |
| tree | d78521de5aefc108003dcbb781260d6e7a664332 /lib/tables.less | |
| parent | 51f5b7b8af6e0f6ef0dbe86528209cd664af240a (diff) | |
| download | bootstrap-47b8184bbb5784eb373ffbb905c8a1756eba3c6d.tar.xz bootstrap-47b8184bbb5784eb373ffbb905c8a1756eba3c6d.zip | |
scope table styles to a class, .table, instead of on the generic element as a smarter default
Diffstat (limited to 'lib/tables.less')
| -rw-r--r-- | lib/tables.less | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/lib/tables.less b/lib/tables.less index 1edd9e3b8..29e1e2d46 100644 --- a/lib/tables.less +++ b/lib/tables.less @@ -4,39 +4,38 @@ // ---------------------------------------- - // BASELINE STYLES // --------------- -table { +.table { width: 100%; margin-bottom: @baseLineHeight; -} -th, -td { - padding: 8px; - line-height: @baseLineHeight; - text-align: left; - border-top: 1px solid #ddd; -} -th { - font-weight: bold; - vertical-align: bottom; -} -td { - vertical-align: top; -} - -// Remove top border from thead by default -thead:first-child tr th, -thead:first-child tr td { - border-top: 0; + // Cells + th, + td { + padding: 8px; + line-height: @baseLineHeight; + text-align: left; + border-top: 1px solid #ddd; + } + th { + font-weight: bold; + vertical-align: bottom; + } + td { + vertical-align: top; + } + // Remove top border from thead by default + thead:first-child tr th, + thead:first-child tr td { + border-top: 0; + } + // Account for multiple tbody instances + tbody + tbody { + border-top: 2px solid #ddd; + } } -// Account for multiple tbody instances -tbody + tbody { - border-top: 2px solid #ddd; -} // CONDENSED TABLE W/ HALF PADDING |
