aboutsummaryrefslogtreecommitdiff
path: root/lib/patterns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-08-21 20:30:58 -0700
committerMark Otto <[email protected]>2011-08-21 20:30:58 -0700
commit027538e66d633b15c9074b14d206602ad8fb42a1 (patch)
treebc878824debbfbee4c418121a303c2760ed06b8b /lib/patterns.less
parentf630615d2603337843a1b8766496cb313e60fb6c (diff)
downloadbootstrap-027538e66d633b15c9074b14d206602ad8fb42a1.tar.xz
bootstrap-027538e66d633b15c9074b14d206602ad8fb42a1.zip
fix topbar dropdown active and hover states
Diffstat (limited to 'lib/patterns.less')
-rw-r--r--lib/patterns.less6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/patterns.less b/lib/patterns.less
index 1f8f28963..79b8b2de9 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -7,7 +7,7 @@
// ------
// Topbar for Branding and Nav
-div.topbar {
+.topbar {
#gradient > .vertical(#333, #222);
height: 40px;
position: fixed;
@@ -73,11 +73,13 @@ div.topbar {
&::-webkit-input-placeholder {
color: @grayLighter;
}
+ // Hover states
&:hover {
background-color: #444;
background-color: rgba(255,255,255,.5);
color: #fff;
}
+ // Focus states (we use .focused since IE8 and down doesn't support :focus)
&:focus,
&.focused {
outline: none;
@@ -151,7 +153,7 @@ div.topbar {
&.open {
a.menu,
a:hover {
- background-color: lighten(#00a0d1,5);
+ background-color: #333;
background-color: rgba(255,255,255,.1);
color: #fff;
}