1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

fix right aligned dropdowns

This commit is contained in:
Mark Otto 2012-02-18 20:06:38 -08:00
parent fed3b59e46
commit bbb2fb3395
4 changed files with 10 additions and 6 deletions

Binary file not shown.

View file

@ -1641,6 +1641,10 @@ table .span12 {
.dropdown.open .dropdown-menu {
display: block;
}
.pull-right .dropdown-menu {
left: auto;
right: 0;
}
.typeahead {
margin-top: 2px;
-webkit-border-radius: 4px;
@ -2709,10 +2713,6 @@ button.btn.small, input[type="submit"].btn.small {
.navbar .nav .active > .dropdown-toggle:hover {
color: #ffffff;
}
.navbar .nav.pull-right .dropdown-menu {
left: auto;
right: 0;
}
.navbar .nav.pull-right .dropdown-menu:before {
left: auto;
right: 12px;

View file

@ -123,6 +123,12 @@
}
}
// Right aligned dropdowns
.pull-right .dropdown-menu {
left: auto;
right: 0;
}
// Typeahead
.typeahead {
margin-top: 2px; // give it some space to breathe

View file

@ -286,8 +286,6 @@
// Right aligned menus need alt position
.navbar .nav.pull-right .dropdown-menu {
left: auto;
right: 0;
&:before {
left: auto;
right: 12px;