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

fixes #8647: remove focus outline on :focus of buttons in button groups

This commit is contained in:
Mark Otto 2013-08-05 16:16:58 -07:00
parent ab090a29fb
commit f3bd6dbf03
3 changed files with 11 additions and 4 deletions

View file

@ -2102,7 +2102,7 @@ input[type="button"].btn-block {
padding: 6px 12px; padding: 6px 12px;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
line-height: 1.428571429; line-height: 1;
text-align: center; text-align: center;
background-color: #eeeeee; background-color: #eeeeee;
border: 1px solid #cccccc; border: 1px solid #cccccc;
@ -2112,14 +2112,12 @@ input[type="button"].btn-block {
.input-group-addon.input-sm { .input-group-addon.input-sm {
padding: 5px 10px; padding: 5px 10px;
font-size: 12px; font-size: 12px;
line-height: 1.5;
border-radius: 3px; border-radius: 3px;
} }
.input-group-addon.input-lg { .input-group-addon.input-lg {
padding: 10px 16px; padding: 10px 16px;
font-size: 18px; font-size: 18px;
line-height: 1.33;
border-radius: 6px; border-radius: 6px;
} }
@ -3180,6 +3178,11 @@ button.close {
z-index: 2; z-index: 2;
} }
.btn-group > .btn:focus,
.btn-group-vertical > .btn:focus {
outline: none;
}
.btn-group .btn + .btn { .btn-group .btn + .btn {
margin-left: -1px; margin-left: -1px;
} }

File diff suppressed because one or more lines are too long

View file

@ -47,6 +47,10 @@
&.active { &.active {
z-index: 2; z-index: 2;
} }
&:focus {
// Remove focus outline when dropdown JS adds it after closing the menu
outline: none;
}
} }
} }