From ad251f509babcd8008facfd924fe85b5002b8029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=91=D0=BB?= =?UTF-8?q?=D0=BE=D1=85=D0=B8=D0=BD?= <alx@ALX-NOTEBOOK.local> Date: Thu, 1 Mar 2012 21:01:02 +0400 Subject: [PATCH] Moved table colors to variables. --- less/tables.less | 12 ++++++------ less/variables.less | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/less/tables.less b/less/tables.less index 3a4066d715..1f87d22910 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 3d448ab212..a7d8ff55a1 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 // -------------------------------------------------- -- GitLab