Files
wingedit.pl/wp-content/themes/twentytwentyone/assets/sass/04-elements/links.css
2024-11-04 20:48:19 +01:00

63 lines
2.4 KiB
CSS

@charset "UTF-8";
/*
* text-underline-offset doesn't work in Chrome at all 👎
* But looks nice in Safari/Firefox, so let's keep it and
* maybe Chrome will support it soon.
*/
a {
cursor: pointer;
color: var(--wp--style--color--link, var(--global--color-primary));
text-underline-offset: 3px;
-webkit-text-decoration-skip-ink: all;
text-decoration-skip-ink: all;
}
a:hover {
text-decoration-style: dotted;
-webkit-text-decoration-skip-ink: none;
text-decoration-skip-ink: none;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) {
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
-webkit-text-decoration: underline 1px dotted currentColor;
text-decoration: underline 1px dotted currentColor;
-webkit-text-decoration-skip-ink: none;
text-decoration-skip-ink: none;
background: rgba(255, 255, 255, 0.9);
}
.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) {
background: var(--global--color-black);
color: var(--global--color-white);
text-decoration: none;
}
.is-dark-theme .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) .meta-nav {
color: var(--wp--style--color--link, var(--global--color-white));
}
.has-background-white .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) {
background: rgba(0, 0, 0, 0.9);
color: var(--wp--style--color--link, var(--global--color-white));
}
.has-background-white .site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) .meta-nav {
color: var(--wp--style--color--link, var(--global--color-white));
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).skip-link {
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -2px;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).skip-link:focus {
color: #21759b;
background-color: #f1f1f1;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button).custom-logo-link {
background: none;
}
.site a:focus:not(.wp-block-button__link):not(.wp-block-file__button) img {
outline: 2px dotted var(--wp--style--color--link, var(--global--color-primary));
}
.has-background .has-link-color a, .has-background.has-link-color a {
color: var(--wp--style--color--link, var(--global--color-primary));
}/*# sourceMappingURL=links.css.map */