From dd8b745b883a900aa637a7b8142be5691ebc3913 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 3 Oct 2012 09:26:52 -0700 Subject: use border-radius vars where possible --- less/dropdowns.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/dropdowns.less') diff --git a/less/dropdowns.less b/less/dropdowns.less index 5ed279167..359f0e228 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -234,5 +234,5 @@ // --------- .typeahead { margin-top: 2px; // give it some space to breathe - .border-radius(4px); + .border-radius(@baseBorderRadius); } -- cgit v1.2.3 From 7d649c9d4a0c504ca29e6efa7fcb42af5d8996dd Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 5 Oct 2012 11:13:21 -0700 Subject: fixes #5430: scope link styles in .dropdown-menu to .dropdown-menu li > a --- less/dropdowns.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/dropdowns.less') diff --git a/less/dropdowns.less b/less/dropdowns.less index 359f0e228..a33fe71e2 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -72,7 +72,7 @@ } // Links within the dropdown menu - a { + li > a { display: block; padding: 3px 20px; clear: both; -- cgit v1.2.3 From 7e534ce98acf03229e09b8ae478cb3598d3882cd Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 7 Oct 2012 21:45:16 -0700 Subject: fixes #5443: reset background gradient on disabled dropdown links --- less/dropdowns.less | 1 + 1 file changed, 1 insertion(+) (limited to 'less/dropdowns.less') diff --git a/less/dropdowns.less b/less/dropdowns.less index a33fe71e2..03efd6abf 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -116,6 +116,7 @@ .dropdown-menu .disabled > a:hover { text-decoration: none; background-color: transparent; + background-image: none; // Remove CSS gradient cursor: default; } -- cgit v1.2.3 From 31007c01d8e5a3ad87597e56e2240693347a2a2c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 10 Oct 2012 09:51:13 -0700 Subject: fixes #5478: remove double background color on dropdown links --- less/dropdowns.less | 2 -- 1 file changed, 2 deletions(-) (limited to 'less/dropdowns.less') diff --git a/less/dropdowns.less b/less/dropdowns.less index 03efd6abf..d4fdab47f 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -90,7 +90,6 @@ .dropdown-submenu:hover > a { text-decoration: none; color: @dropdownLinkColorHover; - background-color: @dropdownLinkBackgroundHover; #gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%)); } @@ -101,7 +100,6 @@ color: @dropdownLinkColorHover; text-decoration: none; outline: 0; - background-color: @dropdownLinkBackgroundActive; #gradient > .vertical(@dropdownLinkBackgroundActive, darken(@dropdownLinkBackgroundActive, 5%)); } -- cgit v1.2.3 From 709870aa3e5edab74e9644273df092258569b449 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 16 Oct 2012 20:34:42 -0700 Subject: fixes #5496: use correct var for dropdown active link text --- less/dropdowns.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/dropdowns.less') diff --git a/less/dropdowns.less b/less/dropdowns.less index d4fdab47f..26ca0f9ea 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -97,7 +97,7 @@ // ------------ .dropdown-menu .active > a, .dropdown-menu .active > a:hover { - color: @dropdownLinkColorHover; + color: @dropdownLinkColorActive; text-decoration: none; outline: 0; #gradient > .vertical(@dropdownLinkBackgroundActive, darken(@dropdownLinkBackgroundActive, 5%)); -- cgit v1.2.3 From be03a5308663052be22d48cbe247b2c259fdefe9 Mon Sep 17 00:00:00 2001 From: Ninir Date: Tue, 30 Oct 2012 10:22:09 +0100 Subject: Replaced hardcoded CSS rules with mixins --- less/dropdowns.less | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'less/dropdowns.less') diff --git a/less/dropdowns.less b/less/dropdowns.less index 26ca0f9ea..730ff6e19 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -168,9 +168,7 @@ left: 100%; margin-top: -6px; margin-left: -1px; - -webkit-border-radius: 0 6px 6px 6px; - -moz-border-radius: 0 6px 6px 6px; - border-radius: 0 6px 6px 6px; + .border-radius(0 6px 6px 6px); } .dropdown-submenu:hover > .dropdown-menu { display: block; @@ -182,9 +180,7 @@ bottom: 0; margin-top: 0; margin-bottom: -2px; - -webkit-border-radius: 5px 5px 5px 0; - -moz-border-radius: 5px 5px 5px 0; - border-radius: 5px 5px 5px 0; + .border-radius(5px 5px 5px 0); } // Caret to indicate there is a submenu @@ -215,9 +211,7 @@ > .dropdown-menu { left: -100%; margin-left: 10px; - -webkit-border-radius: 6px 0 6px 6px; - -moz-border-radius: 6px 0 6px 6px; - border-radius: 6px 0 6px 6px; + .border-radius(6px 0 6px 6px); } } -- cgit v1.2.3