Skip to content

Commit

Permalink
Merge pull request #49 from ZexLabs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
krypton225 authored Sep 1, 2024
2 parents 2fe3e14 + 7271c31 commit 4794e02
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/mixins/general/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,22 @@
text-decoration-skip-ink: auto
) !default;

// stylelint-disable-next-line scss/dollar-variable-empty-line-before
$text-decoration-line-props: (
-webkit-text-decoration-line: underline,
text-decoration-line: underline
) !default;

@each $prop, $value in $text-decoration-ink-props {
#{$prop}: $value;
}

@each $prop, $value in $text-decoration-line-props {
#{$prop}: $value;
}

text-decoration-thickness: max(0.08em, 1px);
text-underline-offset: 0.15em;
}

// * Make images easier to work with
Expand Down Expand Up @@ -187,6 +200,27 @@
display: none;
}

:focus-visible {
--outline-offset-size: max(1px, 0.15em);
--outline-width: 0.063rem;
--outline-style: solid;
// stylelint-disable-next-line value-keyword-case
--outline-color: currentColor;

outline: var(--outline-width) var(--outline-style) var(--outline-color);
outline-offset: var(--outline-offset-size);
}

// * Scroll margin allowance above anchor links
:target {
scroll-padding-block-start: 2rem;
}

// * Scroll margin allowance below focused elements to ensure they are clearly in view
:focus {
scroll-padding-block-end: 8vh;
}

// * Remove all animations, transitions and smooth scroll for
// * people that prefer not to see them
@media (prefers-reduced-motion: reduce) {
Expand Down

0 comments on commit 4794e02

Please sign in to comment.