Merge pull request #1947 from awesomerobot/master

removing any :focus and/or outline definition
This commit is contained in:
Jeff Atwood 2014-02-13 18:22:29 -08:00
commit 7c8e9fc88d
6 changed files with 1 additions and 31 deletions

View file

@ -8,13 +8,8 @@
// Base // Base
// -------------------------------------------------- // --------------------------------------------------
button {
outline: 0;
}
.btn { .btn {
display: inline-block; display: inline-block;
outline: 0;
margin: 0; margin: 0;
padding: 6px 12px; padding: 6px 12px;
font-weight: 500; font-weight: 500;

View file

@ -26,9 +26,6 @@ a {
&:hover { &:hover {
color: $link-color-hover; color: $link-color-hover;
} }
&:focus {
outline: 0;
}
&:active { &:active {
color: $link-color-active; color: $link-color-active;
} }

View file

@ -423,18 +423,9 @@ body {
height: auto; height: auto;
} }
&:focus { &:focus {
outline: thin dotted $primary;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
}
input {
&[type="file"]:focus, &[type="radio"]:focus, &[type="checkbox"]:focus {
outline: thin dotted $primary;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
} }
} }
.radio, .checkbox { .radio, .checkbox {
min-height: 18px; min-height: 18px;
padding-left: 18px; padding-left: 18px;

View file

@ -256,7 +256,6 @@ button {
border: 0; border: 0;
-webkit-appearance: none; -webkit-appearance: none;
display: block; display: block;
outline: none;
padding: 0; padding: 0;
z-index: $z-index-base + 6; z-index: $z-index-base + 6;
-webkit-box-shadow: none; -webkit-box-shadow: none;

View file

@ -147,7 +147,6 @@ nav.post-controls {
border: none; border: none;
margin-left: 3px; margin-left: 3px;
transition: all linear 0.15s; transition: all linear 0.15s;
outline: none;
&:hover { &:hover {
background: lighten($primary_light, 20%); background: lighten($primary_light, 20%);
color: $primary_medium; color: $primary_medium;
@ -803,7 +802,6 @@ button.show-replies {
.btn-group .dropdown-toggle:active, .btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle { .btn-group.open .dropdown-toggle {
outline: 0;
} }
.dropdown { .dropdown {
@ -814,7 +812,6 @@ button.show-replies {
} }
.dropdown-toggle:active, .dropdown-toggle:active,
.open .dropdown-toggle { .open .dropdown-toggle {
outline: 0;
} }
.caret { .caret {
display: inline-block; display: inline-block;

View file

@ -78,15 +78,6 @@ body {
/* ========================================================================== /* ==========================================================================
Links Links
========================================================================== */ ========================================================================== */
/**
* Address `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
}
/** /**
* Improve readability when focused and also mouse hovered in all browsers. * Improve readability when focused and also mouse hovered in all browsers.
*/ */