Normalize rather than Reset.
The reset we used was a mix of Normalize, the Paul Irish reset,
sprinkled with some blueprint.css, and base styles. It was hard to
maintain and just seemed outdated (setting the base font-size to 10px
instead of 16px, among other things).
Normalize sets saner defaults and is generally just not as disruptive
as a full reset.
The code was added as is, has only its comments stripped (for now), and
is not mixed with any styles to make future updates to it as easy as
possible.
See #3, #44, #174, #267, #617.
2014-12-30 00:28:19 +00:00
|
|
|
/* Text meant only for screen readers. */
|
2014-07-28 13:35:53 +00:00
|
|
|
.screen-reader-text {
|
2017-10-22 16:00:06 +00:00
|
|
|
border: 0;
|
2014-07-28 13:35:53 +00:00
|
|
|
clip: rect(1px, 1px, 1px, 1px);
|
2017-10-22 16:00:06 +00:00
|
|
|
clip-path: inset(50%);
|
2014-07-28 13:35:53 +00:00
|
|
|
height: 1px;
|
2017-10-22 16:00:06 +00:00
|
|
|
margin: -1px;
|
2014-07-28 13:35:53 +00:00
|
|
|
overflow: hidden;
|
2017-10-22 16:00:06 +00:00
|
|
|
padding: 0;
|
|
|
|
position: absolute !important;
|
|
|
|
width: 1px;
|
2020-04-08 21:36:58 +00:00
|
|
|
word-wrap: normal !important; // Many screen reader and browser combinations announce broken words as they would appear visually.
|
2014-07-28 13:35:53 +00:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: $color__background-screen;
|
2014-09-14 17:26:29 +00:00
|
|
|
border-radius: 3px;
|
2014-07-28 13:35:53 +00:00
|
|
|
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
|
|
|
clip: auto !important;
|
2017-10-22 16:00:06 +00:00
|
|
|
clip-path: none;
|
2014-07-28 13:35:53 +00:00
|
|
|
color: $color__text-screen;
|
|
|
|
display: block;
|
2020-04-05 20:49:27 +00:00
|
|
|
|
Normalize rather than Reset.
The reset we used was a mix of Normalize, the Paul Irish reset,
sprinkled with some blueprint.css, and base styles. It was hard to
maintain and just seemed outdated (setting the base font-size to 10px
instead of 16px, among other things).
Normalize sets saner defaults and is generally just not as disruptive
as a full reset.
The code was added as is, has only its comments stripped (for now), and
is not mixed with any styles to make future updates to it as easy as
possible.
See #3, #44, #174, #267, #617.
2014-12-30 00:28:19 +00:00
|
|
|
@include font-size(0.875);
|
2020-04-05 20:49:27 +00:00
|
|
|
|
|
|
|
font-weight: 700;
|
2014-07-28 13:35:53 +00:00
|
|
|
height: auto;
|
|
|
|
left: 5px;
|
|
|
|
line-height: normal;
|
|
|
|
padding: 15px 23px 14px;
|
|
|
|
text-decoration: none;
|
|
|
|
top: 5px;
|
|
|
|
width: auto;
|
2020-04-08 21:36:58 +00:00
|
|
|
z-index: 100000; // Above WP toolbar.
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
2015-08-05 18:28:40 +00:00
|
|
|
}
|
2015-11-11 19:54:08 +00:00
|
|
|
|
|
|
|
/* Do not show the outline on the skip link target. */
|
2018-01-02 22:57:02 +00:00
|
|
|
#primary[tabindex="-1"]:focus {
|
2015-11-11 19:54:08 +00:00
|
|
|
outline: 0;
|
|
|
|
}
|