aboutsummaryrefslogtreecommitdiff
path: root/lib/dropdowns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-08 01:50:12 -0800
committerMark Otto <[email protected]>2012-01-08 01:50:12 -0800
commitb780034a65faf99acffb2c5cea27a98883ddf819 (patch)
tree0b5f90f80ae02bddfb26a675d231178ed1841470 /lib/dropdowns.less
parent19986b3dd8e921e9f0b4e238af6b4af83ef5bebe (diff)
downloadbootstrap-b780034a65faf99acffb2c5cea27a98883ddf819.tar.xz
bootstrap-b780034a65faf99acffb2c5cea27a98883ddf819.zip
clean up some spacing on the dropdown for typeahead
Diffstat (limited to 'lib/dropdowns.less')
-rw-r--r--lib/dropdowns.less25
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/dropdowns.less b/lib/dropdowns.less
index 34d83af2a..484cbbcd7 100644
--- a/lib/dropdowns.less
+++ b/lib/dropdowns.less
@@ -69,16 +69,17 @@
line-height: 18px;
color: @gray;
}
+}
- // Hover state
- &.typeahead .active a, a:hover {
- color: #fff;
- text-decoration: none;
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
- #gradient > .vertical(@linkColor, darken(@linkColor, 5%));
- @shadow: inset 0 1px 0 rgba(0,0,0,.075), inset 0 -1px rgba(0,0,0,.075);
- .box-shadow(@shadow);
- }
+// Hover & Active states
+.dropdown-menu a:hover,
+.dropdown-menu .active > a {
+ color: #fff;
+ text-decoration: none;
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
+ #gradient > .vertical(@linkColor, darken(@linkColor, 5%));
+ @shadow: inset 0 1px 0 rgba(0,0,0,.075), inset 0 -1px rgba(0,0,0,.075);
+ .box-shadow(@shadow);
}
// Open state for the dropdown
@@ -92,3 +93,9 @@
display: block;
}
}
+
+// Typeahead
+.typeahead {
+ margin-top: 2px; // give it some space to breathe
+ .border-radius(4px);
+}