diff options
| author | Pete Hopkins <[email protected]> | 2012-01-27 16:06:58 -0500 |
|---|---|---|
| committer | Pete Hopkins <[email protected]> | 2012-01-27 16:10:40 -0500 |
| commit | 8328987b15e0bb9e1c2ee1bd90e8dee9843f0ea7 (patch) | |
| tree | ff8a5b9e2cd8273e8bf5e43cb7fc19e2a00176ca /less/button-groups.less | |
| parent | 347a15b69aff9cf3f9bc5c47c9bcadb459eb895b (diff) | |
| download | bootstrap-8328987b15e0bb9e1c2ee1bd90e8dee9843f0ea7.tar.xz bootstrap-8328987b15e0bb9e1c2ee1bd90e8dee9843f0ea7.zip | |
IE7 fixes for split buttons and dropdowns
Diffstat (limited to 'less/button-groups.less')
| -rw-r--r-- | less/button-groups.less | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index fd802cc35..a058f0344 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -6,6 +6,7 @@ .btn-group { position: relative; .clearfix(); // clears the floated buttons + .ie7-restore-left-whitespace; } // Space out series of button groups @@ -84,18 +85,27 @@ padding-right: 8px; @shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); .box-shadow(@shadow); + *padding-top: 5px; + *padding-bottom: 5px; } -// Reposition menu on open and round all corners -.btn-group.open .dropdown-menu { - display: block; - margin-top: 1px; - .border-radius(5px); -} -.btn-group.open .dropdown-toggle { - background-image: none; - @shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); - .box-shadow(@shadow); +.btn-group.open { + // IE7's z-index only goes to the nearest positioned ancestor, which would + // make the menu appear below buttons that appeared later on the page + *z-index: @zindexDropdown; + + // Reposition menu on open and round all corners + .dropdown-menu { + display: block; + margin-top: 1px; + .border-radius(5px); + } + + .dropdown-toggle { + background-image: none; + @shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); + .box-shadow(@shadow); + } } // Reposition the caret |
