diff options
author | Mark Otto <markotto@twitter.com> | 2012-03-12 20:57:10 +0400 |
---|---|---|
committer | Mark Otto <markotto@twitter.com> | 2012-03-12 20:57:10 +0400 |
commit | e12c66aabead93f3ac015e6a6aee307185bc7667 (patch) | |
tree | 8a5f35566ee033b95ef9c303496e0d2157feb58d /less | |
parent | 40fddffeec58565eac698de0ed5697fde8a46130 (diff) |
adding border variable for dropdowns, making dropdown carets use dropdown vars
Diffstat (limited to 'less')
-rw-r--r-- | less/navbar.less | 8 | ||||
-rw-r--r-- | less/variables.less | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/less/navbar.less b/less/navbar.less index d443a37d05..8eb1332ae6 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -270,7 +270,7 @@ border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; - border-bottom-color: rgba(0,0,0,.2); + border-bottom-color: @dropdownBorder; position: absolute; top: -7px; left: 9px; @@ -280,7 +280,7 @@ display: inline-block; border-left: 6px solid transparent; border-right: 6px solid transparent; - border-bottom: 6px solid @white; + border-bottom: 6px solid @dropdownBackground; position: absolute; top: -6px; left: 10px; @@ -290,13 +290,13 @@ .navbar-fixed-bottom .dropdown-menu { &:before { border-top: 7px solid #ccc; - border-top-color: rgba(0, 0, 0, 0.2); + border-top-color: @dropdownBorder; border-bottom: 0; bottom: -7px; top: auto; } &:after { - border-top: 6px solid #ffffff; + border-top: 6px solid @dropdownBackground; border-bottom: 0; bottom: -6px; top: auto; diff --git a/less/variables.less b/less/variables.less index c4614dd766..94c3a0667c 100644 --- a/less/variables.less +++ b/less/variables.less @@ -98,6 +98,7 @@ // Dropdowns // ------------------------- @dropdownBackground: @white; +@dropdownBorder: rgba(0,0,0,.2); @dropdownLinkColor: @grayDark; @dropdownLinkColorHover: @white; @dropdownLinkBackgroundHover: @linkColor; |