Skip to content

Commit b10d235

Browse files
committed
Merge pull request twbs#573 from kasperp/kasperp-dropdown-btn-dev
Fixed IE7 positioning problem in btn-dropdown
2 parents 6e867e4 + ce6cab9 commit b10d235

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

bootstrap.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Wed Oct 26 15:52:05 PDT 2011
9+
* Date: Sun Nov 6 19:50:14 CET 2011
1010
*/
1111
/* Reset.less
1212
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -1598,6 +1598,9 @@ a.menu:after, .dropdown-toggle:after {
15981598
display: inline-block;
15991599
*display: inline;
16001600
}
1601+
.btn-dropdown .dropdown-menu {
1602+
*left: 0px;
1603+
}
16011604
.btn-dropdown .dropdown-toggle {
16021605
padding-right: 11px;
16031606
}
@@ -1636,6 +1639,10 @@ a.menu:after, .dropdown-toggle:after {
16361639
.btn-dropdown .large + .dropdown-menu {
16371640
top: 38px;
16381641
}
1642+
.btn-dropdown .small + .dropdown-menu {
1643+
top: 30px;
1644+
*top: 31px;
1645+
}
16391646
.tabs, .pills {
16401647
margin: 0 0 18px;
16411648
padding: 0;

bootstrap.min.css

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/patterns.less

+10
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ a.menu:after,
326326
.btn-dropdown {
327327
display: inline-block;
328328
*display: inline;
329+
330+
.dropdown-menu {
331+
*left: 0px;
332+
}
329333
}
330334

331335
// Define different toggle styles (colors, borders, margin and padding) for dropdown buttons
@@ -372,6 +376,12 @@ a.menu:after,
372376
top: 38px;
373377
}
374378

379+
// Change position for small buttons
380+
.btn-dropdown .small + .dropdown-menu {
381+
top: 30px;
382+
*top: 31px;
383+
}
384+
375385

376386
// TABS AND PILLS
377387
// --------------

0 commit comments

Comments
 (0)