From 3f27dd65085fef7d4c0eef2972ec542653d71e7b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 23 Aug 2013 10:44:13 -0700 Subject: [PATCH] (less) fixes #9877: improve active state on nav list items in theme --- theme.less | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/theme.less b/theme.less index 79e52fd448a2..32c806696201 100644 --- a/theme.less +++ b/theme.less @@ -98,15 +98,16 @@ // Navbar // -------------------------------------------------- -// Basic navbar -.navbar { +// Default navbar +.navbar-default { #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg;); border-radius: @navbar-border-radius; @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075); .box-shadow(@shadow); .navbar-nav > .active > a { - background-color: @navbar-default-bg; + #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%);); + .box-shadow(inset 0 3px 9px rgba(0,0,0,.075)); } } .navbar-brand, @@ -119,7 +120,8 @@ #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg;); .navbar-nav > .active > a { - background-color: @navbar-inverse-bg; + #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%);); + .box-shadow(inset 0 3px 9px rgba(0,0,0,.25)); } .navbar-brand,