Update tab focus styles
This commit is contained in:
parent
443e9dbb30
commit
b6dae55664
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
.recommendation__header{margin-bottom:2rem}.recommendation__taxonomies{margin-bottom:1.5rem}.recommendation__thumbnail{--focus-offset: 2px;float:right;max-width:clamp(100px,25.4452926209vw + 4.5801526718px,200px);margin:0 0 clamp(10px,9.6692111959vw - 26.2595419847px,48px) clamp(24px,6.106870229vw + 1.0992366412px,48px)}.recommendation__thumbnail :is(a,img){display:block;cursor:zoom-in;border-radius:var(--layout-border-radius-small)}.recommendation__thumbnail-image{width:inherit;box-shadow:var(--recommendation-cover-box-shadow, var(--box-shadow-xl))}@media(max-width: 768px){.recommendation__thumbnail-image{height:auto}}.recommendation__tags{margin:2rem 0 3rem}.recommendation__support,.recommendation__read-on{margin-top:1.5rem}.recommendation__support h5,.recommendation__read-on h5{margin-bottom:.5rem}.recommendation__support :is(i,.icon),.recommendation__read-on :is(i,.icon){color:var(--fg-600);margin-right:.5rem}.recommendation__list-item{line-height:1.3}.recommendation__list-item:not(:last-child){margin-bottom:.5rem}.recommendation__footer{clear:both}
|
.recommendation__header{margin-bottom:2rem}.recommendation__taxonomies{margin-bottom:1.5rem}.recommendation__thumbnail{float:right;max-width:clamp(100px,25.4452926209vw + 4.5801526718px,200px);margin:0 0 clamp(10px,9.6692111959vw - 26.2595419847px,48px) clamp(24px,6.106870229vw + 1.0992366412px,48px)}.recommendation__thumbnail :is(a,img){display:block;cursor:zoom-in;border-radius:var(--layout-border-radius-small)}.recommendation__thumbnail-image{width:inherit;box-shadow:var(--recommendation-cover-box-shadow, var(--box-shadow-xl))}@media(max-width: 768px){.recommendation__thumbnail-image{height:auto}}.recommendation__tags{margin:2rem 0 3rem}.recommendation__support,.recommendation__read-on{margin-top:1.5rem}.recommendation__support h5,.recommendation__read-on h5{margin-bottom:.5rem}.recommendation__support :is(i,.icon),.recommendation__read-on :is(i,.icon){color:var(--fg-600);margin-right:.5rem}.recommendation__list-item{line-height:1.3}.recommendation__list-item:not(:last-child){margin-bottom:.5rem}.recommendation__footer{clear:both}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -166,7 +166,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
--focus-offset: 1px;
|
|
||||||
color: var(--card-heading-link, var(--heading-link-color));
|
color: var(--card-heading-link, var(--heading-link-color));
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|
||||||
@ -188,7 +187,6 @@
|
|||||||
|
|
||||||
&__delete,
|
&__delete,
|
||||||
&__info-toggle {
|
&__info-toggle {
|
||||||
--focus-offset: -8px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -256,7 +254,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__image {
|
&__image {
|
||||||
--focus-offset: 2px;
|
|
||||||
--this-border-radius: var(--layout-border-radius-small);
|
--this-border-radius: var(--layout-border-radius-small);
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
@ -395,12 +392,6 @@
|
|||||||
@include bp(desktop) {
|
@include bp(desktop) {
|
||||||
padding: 0.175em 0.35em 0.175em 0;
|
padding: 0.175em 0.35em 0.175em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports selector(:has(:focus-visible)) {
|
|
||||||
a:focus-visible {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-link {
|
&-link {
|
||||||
|
@ -235,11 +235,15 @@
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
|
|
||||||
&:hover,
|
&:hover {
|
||||||
&:focus-visible {
|
|
||||||
background: var(--button-secondary-background-hover);
|
background: var(--button-secondary-background-hover);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
box-shadow: var(--in-focus-box-shadow-override, none) !important;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
@ -58,12 +58,6 @@
|
|||||||
.follow-title-link {
|
.follow-title-link {
|
||||||
grid-area: 1 / 1 / 2 / 2;
|
grid-area: 1 / 1 / 2 / 2;
|
||||||
font-weight: var(--font-weight-medium);
|
font-weight: var(--font-weight-medium);
|
||||||
|
|
||||||
@supports selector(:has(:focus-visible)) {
|
|
||||||
&:focus-visible {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.follow-meta {
|
.follow-meta {
|
||||||
@ -100,8 +94,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.follow-item {
|
.follow-item {
|
||||||
--focus-offset: -2px;
|
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: var(--navigation-subitem-divider);
|
border-bottom: var(--navigation-subitem-divider);
|
||||||
}
|
}
|
||||||
@ -119,6 +111,14 @@
|
|||||||
font-size: var(--fs-xs);
|
font-size: var(--fs-xs);
|
||||||
padding: .35rem .75rem .45rem;
|
padding: .35rem .75rem .45rem;
|
||||||
|
|
||||||
|
&:has(a:focus-visible) {
|
||||||
|
background: var(--in-focus-background);
|
||||||
|
|
||||||
|
:is(.follow-placeholder, .follow-meta) {
|
||||||
|
color: var(--in-focus-color) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--navigation-subitem-background-hover);
|
background: var(--navigation-subitem-background-hover);
|
||||||
}
|
}
|
||||||
@ -130,9 +130,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.follow-title-link {
|
.follow-title-link {
|
||||||
--in-focus-outline: none;
|
|
||||||
color: var(--follow-title-link-color, var(--fg-400));
|
color: var(--follow-title-link-color, var(--fg-400));
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
background: none !important;
|
||||||
|
box-shadow: var(--in-focus-box-shadow-override, none) !important;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--follow-title-link-color-hover, var(--fg-200));
|
color: var(--follow-title-link-color-hover, var(--fg-200));
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__close {
|
&__close {
|
||||||
--focus-offset: -12px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -0.5rem;
|
top: -0.5rem;
|
||||||
right: -0.5rem;
|
right: -0.5rem;
|
||||||
|
@ -98,7 +98,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main-navigation {
|
.main-navigation {
|
||||||
--focus-offset: -2px;
|
|
||||||
top: calc(-0.1px - var(--nav-observer-offset, 0px)); // -0.1px to prevent hairline gaps
|
top: calc(-0.1px - var(--nav-observer-offset, 0px)); // -0.1px to prevent hairline gaps
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
color: var(--navigation-color);
|
color: var(--navigation-color);
|
||||||
@ -217,6 +216,10 @@
|
|||||||
height: fit-content;
|
height: fit-content;
|
||||||
transition: background-color .1s;
|
transition: background-color .1s;
|
||||||
|
|
||||||
|
:is(a, label, button):focus-visible {
|
||||||
|
box-shadow: var(--in-focus-box-shadow-override, none) !important;
|
||||||
|
}
|
||||||
|
|
||||||
&:not(:hover) {
|
&:not(:hover) {
|
||||||
.sub-menu {
|
.sub-menu {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@ -374,17 +377,6 @@
|
|||||||
.user-is-tabbing {
|
.user-is-tabbing {
|
||||||
:is(.main-navigation, .icon-menu) {
|
:is(.main-navigation, .icon-menu) {
|
||||||
:is(.menu-item, .page_item) {
|
:is(.menu-item, .page_item) {
|
||||||
:where(a, label, button):focus-visible {
|
|
||||||
color: var(--navigation-color-hover);
|
|
||||||
background: var(--navigation-item-background-hover);
|
|
||||||
}
|
|
||||||
|
|
||||||
.sub-menu {
|
|
||||||
:where(a, label, button):focus-visible {
|
|
||||||
color: var(--navigation-subitem-color-hover, var(--navigation-color-hover));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus-within {
|
&:focus-within {
|
||||||
background: var(--navigation-item-background-hover);
|
background: var(--navigation-item-background-hover);
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
grid-column: 1 / -1; // Span all grid columns if any
|
grid-column: 1 / -1; // Span all grid columns if any
|
||||||
|
|
||||||
.page-numbers {
|
.page-numbers {
|
||||||
--focus-offset: -2px;
|
|
||||||
@extend %button;
|
@extend %button;
|
||||||
background: var(--pagination-background);
|
background: var(--pagination-background);
|
||||||
color: var(--pagination-color);
|
color: var(--pagination-color);
|
||||||
|
@ -101,7 +101,6 @@
|
|||||||
margin: 2rem 0;
|
margin: 2rem 0;
|
||||||
|
|
||||||
.oauth-login-link {
|
.oauth-login-link {
|
||||||
--focus-offset: -2px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -42,7 +42,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__toggle {
|
&__toggle {
|
||||||
--focus-offset: 2px;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
||||||
&[aria-checked="true"] {
|
&[aria-checked="true"] {
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__thumbnail {
|
&__thumbnail {
|
||||||
--focus-offset: 2px;
|
|
||||||
float: right;
|
float: right;
|
||||||
max-width: get_clamp(100, 200, 375, 768);
|
max-width: get_clamp(100, 200, 375, 768);
|
||||||
margin: 0 0 get_clamp(10, 48, 375, 768) get_clamp(24, 48, 375, 768);
|
margin: 0 0 get_clamp(10, 48, 375, 768) get_clamp(24, 48, 375, 768);
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__list-item {
|
&__list-item {
|
||||||
--focus-offset: 2px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
aspect-ratio: var(--showcase-item-aspect-ratio);
|
aspect-ratio: var(--showcase-item-aspect-ratio);
|
||||||
border-radius: var(--layout-border-radius-small);
|
border-radius: var(--layout-border-radius-small);
|
||||||
@ -71,10 +70,6 @@
|
|||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
&:focus-visible {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
img {
|
img {
|
||||||
transform: scale(1.05);
|
transform: scale(1.05);
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
gap: 16px get_clamp(12, 16, 320, 480);
|
gap: 16px get_clamp(12, 16, 320, 480);
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
--focus-offset: 1px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: block;
|
display: block;
|
||||||
color: (--media-button-color, var(--fg-600));
|
color: (--media-button-color, var(--fg-600));
|
||||||
|
@ -143,7 +143,17 @@ $header_breakpoint: 640px;
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__thumbnail {
|
&__thumbnail {
|
||||||
--focus-offset: 2px;
|
a {
|
||||||
|
display: block;
|
||||||
|
border-radius: var(--layout-border-radius-small);
|
||||||
|
box-shadow: var(--story-cover-box-shadow, var(--box-shadow-xl));
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
background: none;
|
||||||
|
box-shadow: var(--story-cover-box-shadow, var(--box-shadow-xl));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:not(._in-content) {
|
&:not(._in-content) {
|
||||||
grid-area: 1 / 1 / 4 / 2;
|
grid-area: 1 / 1 / 4 / 2;
|
||||||
@ -185,7 +195,6 @@ $header_breakpoint: 640px;
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: var(--this-img-height);
|
max-height: var(--this-img-height);
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
box-shadow: var(--story-cover-box-shadow, var(--box-shadow-xl));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.comment-respond-option-toggle {
|
.comment-respond-option-toggle {
|
||||||
--focus-offset: -2px;
|
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
@ -463,7 +462,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__author {
|
&__author {
|
||||||
--focus-offset: -2px;
|
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
|
@ -176,11 +176,11 @@ button[type=submit]:where(:not(._inline)),
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
--focus-offset: -2px;
|
|
||||||
@extend %button;
|
@extend %button;
|
||||||
|
|
||||||
&:focus-visible {
|
&:is(button, a, label):focus-visible {
|
||||||
box-shadow: var(--in-focus-box-shadow);
|
color: var(--in-focus-color) !important;
|
||||||
|
box-shadow: var(--in-focus-box-shadow-override, none) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&._secondary {
|
&._secondary {
|
||||||
@ -319,7 +319,6 @@ button[type=submit]:where(:not(._inline)),
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:not(._inline) {
|
&:not(._inline) {
|
||||||
--focus-offset: -2px;
|
|
||||||
display: block;
|
display: block;
|
||||||
background: var(--tag-background);
|
background: var(--tag-background);
|
||||||
color: var(--tag-color);
|
color: var(--tag-color);
|
||||||
@ -332,7 +331,7 @@ button[type=submit]:where(:not(._inline)),
|
|||||||
contain: layout paint style; // Improve performance
|
contain: layout paint style; // Improve performance
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
box-shadow: var(--in-focus-box-shadow);
|
box-shadow: var(--in-focus-box-shadow-override, none) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -479,7 +478,6 @@ button[type=submit]:where(:not(._inline)),
|
|||||||
.popup-menu {
|
.popup-menu {
|
||||||
--translateX: translateX(0);
|
--translateX: translateX(0);
|
||||||
--translateY: translateY(0);
|
--translateY: translateY(0);
|
||||||
--focus-offset: -2px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
background: var(--popup-menu-background);
|
background: var(--popup-menu-background);
|
||||||
@ -697,7 +695,6 @@ html:not(.logged-in) body:not(.logged-in) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-link {
|
&-link {
|
||||||
--focus-offset: 1px;
|
|
||||||
grid-area: 1 / 2 / 2 / 3;
|
grid-area: 1 / 2 / 2 / 3;
|
||||||
color: var(--chapter-list-link-color, var(--heading-link-color));
|
color: var(--chapter-list-link-color, var(--heading-link-color));
|
||||||
font-family: var(--ff-chapter-list-title);
|
font-family: var(--ff-chapter-list-title);
|
||||||
@ -739,7 +736,6 @@ html:not(.logged-in) body:not(.logged-in) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.checkmark {
|
.checkmark {
|
||||||
--focus-offset: 2px;
|
|
||||||
grid-area: 1 / 3 / 3 / 4;
|
grid-area: 1 / 3 / 3 / 4;
|
||||||
display: block;
|
display: block;
|
||||||
color: var(--checkmark-checked);
|
color: var(--checkmark-checked);
|
||||||
|
@ -605,7 +605,6 @@ figure.wp-block-pullquote:where(:not(.no-theme-style)) {
|
|||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
.wp-block-file:where(:not(.no-theme-style)) {
|
.wp-block-file:where(:not(.no-theme-style)) {
|
||||||
--focus-offset: 2px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0 1px;
|
gap: 0 1px;
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
@ -625,12 +624,6 @@ figure.wp-block-pullquote:where(:not(.no-theme-style)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus-within {
|
|
||||||
a:focus-visible {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover :is(a, a.wp-block-file__button) {
|
&:hover :is(a, a.wp-block-file__button) {
|
||||||
background: var(--button-file-block-background-hover);
|
background: var(--button-file-block-background-hover);
|
||||||
color: var(--button-file-block-color-hover) !important;
|
color: var(--button-file-block-color-hover) !important;
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
--focus-offset: -2px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
option {
|
option {
|
||||||
@ -96,7 +95,6 @@ select {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input[type=range] {
|
input[type=range] {
|
||||||
--focus-offset: -2px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -148,7 +146,6 @@ input[type=number] {
|
|||||||
|
|
||||||
input[type=checkbox],
|
input[type=checkbox],
|
||||||
input[type=radio] {
|
input[type=radio] {
|
||||||
--focus-offset: 2px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: var(--input-background);
|
background: var(--input-background);
|
||||||
@ -227,7 +224,6 @@ input[type=radio] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__operator {
|
&__operator {
|
||||||
--focus-offset: -2px;
|
|
||||||
--this-border-radius: var(--input-border-radius, var(--layout-border-radius-small));
|
--this-border-radius: var(--input-border-radius, var(--layout-border-radius-small));
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -164,9 +164,10 @@
|
|||||||
|
|
||||||
// === FOCUS =================================================================
|
// === FOCUS =================================================================
|
||||||
|
|
||||||
--in-focus-border-color: var(--red-500);
|
// --in-focus-color: white;
|
||||||
// --in-focus-outline: 2px solid var(--in-focus-border-color);
|
// --in-focus-outline: none;
|
||||||
--in-focus-box-shadow: inset 0 0 0 2px rgb(255 255 255 / 75%);
|
--in-focus-background: #5593f6;
|
||||||
|
// --in-focus-box-shadow: 0 0 0 3px var(--in-focus-background);
|
||||||
|
|
||||||
// === NAVIGATION ============================================================
|
// === NAVIGATION ============================================================
|
||||||
|
|
||||||
|
@ -238,7 +238,6 @@
|
|||||||
|
|
||||||
.dialog-modal__close,
|
.dialog-modal__close,
|
||||||
.modal .close {
|
.modal .close {
|
||||||
--focus-offset: -4px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -294,9 +294,10 @@
|
|||||||
|
|
||||||
// === FOCUS =================================================================
|
// === FOCUS =================================================================
|
||||||
|
|
||||||
--in-focus-border-color: #ef4d4d;
|
--in-focus-color: white;
|
||||||
--in-focus-outline: 2px solid var(--in-focus-border-color);
|
--in-focus-outline: none;
|
||||||
--in-focus-box-shadow: inset 0 0 0 2px rgb(0 0 0 / 75%);
|
--in-focus-background: #ef4d4d;
|
||||||
|
--in-focus-box-shadow: 0 0 0 3px var(--in-focus-background);
|
||||||
|
|
||||||
// === NAVIGATION ============================================================
|
// === NAVIGATION ============================================================
|
||||||
|
|
||||||
|
@ -17,32 +17,36 @@ html:is(:root) {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
*:not(input, textarea, select, .wp-block-file a, .button-unset-oauth):focus-visible,
|
*:not(input, textarea, select, .wp-block-file a, .button-unset-oauth, .toggle):focus-visible,
|
||||||
input:is([type=checkbox], [type=radio], [type=range], [type=submit]):focus-visible,
|
input:is([type=checkbox], [type=radio], [type=range], [type=submit]):focus-visible,
|
||||||
.user-is-tabbing select:focus-visible,
|
.user-is-tabbing select:focus-visible,
|
||||||
.button:focus-visible,
|
|
||||||
.oauth-login-link button:focus-visible,
|
.oauth-login-link button:focus-visible,
|
||||||
.story__thumbnail a:focus-visible img,
|
|
||||||
.user-is-tabbing .showcase li:focus-within,
|
.user-is-tabbing .showcase li:focus-within,
|
||||||
.comment-respond-option-toggle:focus-visible {
|
.custom-skin._upload:focus-within,
|
||||||
outline: var(--in-focus-outline);
|
:is(.button, .comment-respond-option-toggle):focus-visible,
|
||||||
outline-offset: var(--focus-offset, 0);
|
.wp-block-file:focus-within a:focus-visible {
|
||||||
|
outline-offset: var(--in-focus-outline-offset, 0px);
|
||||||
|
outline: var(--in-focus-outline) !important;
|
||||||
|
background: var(--in-focus-background) !important;
|
||||||
|
box-shadow: var(--in-focus-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Split off for browsers without support
|
input:is([type=checkbox], [type=radio], [type=range], [type=submit]):focus-visible,
|
||||||
@supports selector(:has(:focus-visible)) {
|
:is(select, button, .oauth-login-link):not(.toggle):focus-visible,
|
||||||
.wp-block-file:has(a:focus-visible),
|
.custom-skin._upload:focus-within,
|
||||||
.card__link-list li:has(a:focus-visible),
|
.wp-block-file:focus-within a {
|
||||||
.oauth-login-link:has(:focus-visible),
|
box-shadow: var(--in-focus-box-shadow-override, none) !important;
|
||||||
.follow-item:has(:focus-visible) {
|
}
|
||||||
outline: var(--in-focus-outline);
|
|
||||||
outline-offset: var(--focus-offset, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Prevent double outline
|
a:focus-visible img,
|
||||||
.oauth-login-link button:focus-visible {
|
.toggle:focus-visible {
|
||||||
outline: none;
|
outline-offset: var(--in-focus-outline-offset, 0px);
|
||||||
}
|
outline: var(--in-focus-outline) !important;
|
||||||
|
box-shadow: var(--in-focus-box-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
*:not(.checkmark):focus-visible {
|
||||||
|
color: var(--in-focus-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body:not(.user-is-tabbing) :is(.modal__close, .dialog-modal__close) {
|
body:not(.user-is-tabbing) :is(.modal__close, .dialog-modal__close) {
|
||||||
@ -70,7 +74,6 @@ body {
|
|||||||
|
|
||||||
main {
|
main {
|
||||||
img {
|
img {
|
||||||
--focus-offset: 2px;
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
--focus-offset: -2px;
|
|
||||||
background: var(--tab-background);
|
background: var(--tab-background);
|
||||||
color: var(--tab-color);
|
color: var(--tab-color);
|
||||||
font-size: var(--fs-dxs);
|
font-size: var(--fs-dxs);
|
||||||
@ -28,7 +27,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
box-shadow: var(--in-focus-box-shadow);
|
box-shadow: var(--in-focus-box-shadow-override, none) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&._current {
|
&._current {
|
||||||
|
@ -69,7 +69,6 @@ body:not(.is-editor):not(.is-admin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.truncate {
|
.truncate {
|
||||||
--focus-offset: -2px;
|
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 1;
|
-webkit-line-clamp: 1;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user