Skip to content

Commit

Permalink
Make swoosh in hero compatible with language that use descenders
Browse files Browse the repository at this point in the history
This turns the swoosh off in `forced-colors` mode as they are the same
colour.

Refs: #2116
  • Loading branch information
erkannt committed Dec 12, 2024
1 parent c30bf07 commit e8d1823
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 37 deletions.
30 changes: 17 additions & 13 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2440,20 +2440,24 @@ skip-link {
position: relative;
font-style: inherit;

&::after {
content: '';
position: absolute;
block-size: var(--space-xs);
background-color: var(--color-primary);
mask-image: url('underline.svg');
mask-repeat: no-repeat;
mask-size: 100% 100%;
inset-block-start: 84%;
inset-inline: 0;
@media (forced-colors: none) {
text-shadow:
-1px -1px 0 var(--color-background),
1px -1px 0 var(--color-background),
-1px 1px 0 var(--color-background),
1px 1px 0 var(--color-background);

@media (forced-colors: active) {
forced-color-adjust: none;
background-color: CanvasText;
&::after {
content: '';
position: absolute;
z-index: -1;
block-size: var(--space-xs);
background-color: var(--color-primary);
mask-image: url('underline.svg');
mask-repeat: no-repeat;
mask-size: 100% 100%;
inset-block-start: 84%;
inset-inline: 0;
}
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e8d1823

Please sign in to comment.