nav, buttons, and docs updates to account for outline: 0; on :active

This commit is contained in:
Mark Otto
2012-01-28 11:21:39 -08:00
parent d65ce1b64c
commit 28ba9d69c8
6 changed files with 36 additions and 17 deletions

View File

@@ -78,6 +78,13 @@
z-index: 2;
}
// On active and open, don't show outline
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
// Split button dropdowns
// ----------------------

View File

@@ -88,6 +88,7 @@
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
color: rgba(0,0,0,.5);
outline: 0;
}
&.disabled,
&[disabled] {

View File

@@ -5,10 +5,14 @@
.dropdown {
position: relative;
}
.dropdown .dropdown-toggle {
.dropdown-toggle {
// The caret makes the toggle a bit too tall in IE7
*margin-bottom: -3px;
}
.dropdown-toggle:active,
.open .dropdown-toggle {
outline: 0;
}
// Dropdown arrow/caret
.caret {
display: inline-block;

View File

@@ -29,10 +29,6 @@
// Webkit
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
// Firefox
-moz-outline: 5px auto -moz-mac-focusring;
-moz-outline-radius: 6px;
-moz-outline-offset: 0;
}
// Center-align a block level element