diff --git a/less/tables.less b/less/tables.less index 3a4066d71518cac75779250626d5ddf4ad25a48a..1f87d229106538afb0ff91a47bb973dc9b6d9fc4 100644 --- a/less/tables.less +++ b/less/tables.less @@ -26,7 +26,7 @@ table { line-height: @baseLineHeight; text-align: left; vertical-align: top; - border-top: 1px solid #ddd; + border-top: 1px solid @tableBorder; } th { font-weight: bold; @@ -42,7 +42,7 @@ table { } // Account for multiple tbody instances tbody + tbody { - border-top: 2px solid #ddd; + border-top: 2px solid @tableBorder; } } @@ -63,7 +63,7 @@ table { // ---------------- .table-bordered { - border: 1px solid #ddd; + border: 1px solid @tableBorder; border-collapse: separate; // Done so we can round those corners! *border-collapse: collapsed; // IE7 can't round corners anyway .border-radius(4px); @@ -71,7 +71,7 @@ table { td + td, th + td, td + th { - border-left: 1px solid #ddd; + border-left: 1px solid @tableBorder; } // Prevent a double border thead:first-child tr:first-child th, @@ -108,7 +108,7 @@ table { tbody { tr:nth-child(odd) td, tr:nth-child(odd) th { - background-color: #f9f9f9; + background-color: @tableStripe; } } } @@ -120,7 +120,7 @@ table { .table { tbody tr:hover td, tbody tr:hover th { - background-color: #f5f5f5; + background-color: @tableHover; } } diff --git a/less/variables.less b/less/variables.less index 3d448ab2122834bbeb26f35748f6b34d046fa291..a7d8ff55a165af07086691ab3a8a1b9fd209cce8 100644 --- a/less/variables.less +++ b/less/variables.less @@ -91,7 +91,10 @@ @infoBackground: #d9edf7; @infoBorder: darken(spin(@infoBackground, -10), 7%); - +// Table borders and background +@tableBorder: @gray; +@tableStripe: @grayLighter; +@tableHover: @grayLight; // GRID // --------------------------------------------------