Rip out the tab-focus mixin, remove application to anchors in reboot

This commit is contained in:
Mark Otto 2016-12-31 12:26:11 -08:00 committed by Mark Otto
parent e2b6badb86
commit 22fcac2cea
3 changed files with 1 additions and 15 deletions

View File

@ -26,7 +26,6 @@
@import "mixins/resize";
@import "mixins/screen-reader";
@import "mixins/size";
@import "mixins/tab-focus";
@import "mixins/reset-text";
@import "mixins/text-emphasis";
@import "mixins/text-hide";

View File

@ -166,10 +166,6 @@ a {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
&:focus {
@include tab-focus();
}
}
// And undo these styles for placeholder links/named anchors (without href)
@ -188,7 +184,7 @@ a:not([href]):not([tabindex]) {
}
&:focus {
outline: none;
outline: 0;
}
}

View File

@ -1,9 +0,0 @@
// WebKit-style focus
@mixin tab-focus() {
// WebKit-specific. Other browsers will keep their default outline style.
// (Initially tried to also force default via `outline: initial`,
// but that seems to erroneously remove the outline in Firefox altogether.)
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}