2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

clean up some spacing on the dropdown for typeahead

This commit is contained in:
Mark Otto
2012-01-08 01:50:12 -08:00
parent 19986b3dd8
commit b780034a65
3 changed files with 26 additions and 12 deletions
+16 -9
View File
@@ -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);
}