Render selected links with box shadow not outline

Because there’s a mystery 2px gap between the outline and the element in
Firefox.
This commit is contained in:
Chris Hill-Scott
2018-11-26 11:33:27 +00:00
parent adcd699712
commit 7d20846d94

View File

@@ -8,6 +8,20 @@
display: inline;
margin-bottom: -$gutter;
padding-bottom: $gutter;
&:focus {
// Use box shadow instead of outline to avoid buggy outline
// rendering in Firefox
outline: none;
box-shadow: 0 0 0 3px $yellow;
@include ie-lte(8) {
// Box shadow is not supported in IE8
outline: 3px solid $yellow;
}
}
}
&-separator {