Skip to content

Commit

Permalink
refactor(mixins-general): ♻️ update place of html & body tags at …
Browse files Browse the repository at this point in the history
…top of `reset` mixin
  • Loading branch information
krypton225 committed Jun 17, 2024
1 parent 4555d3a commit e83dffb
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/mixins/general/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,37 @@
}
}

// * Set core root defaults
html,
html:focus-within {
scroll-behavior: smooth;
}

// * Set core body defaults
body {
min-block-size: 100dvh;
min-height: 100dvh;
line-height: 1.5;

// * This is for improve text rendering in the browsers
-webkit-font-smoothing: antialiased;

// stylelint-disable-next-line scss/selector-no-redundant-nesting-selector
:where(&) {
overflow-wrap: break-word;

$hyphens-props: (
-webkit-hyphens: auto,
-ms-hyphens: auto,
hyphens: auto
) !default;

@each $prop, $value in $hyphens-props {
#{$prop}: $value;
}
}
}

// * Remove default margin
body,
h1,
Expand Down Expand Up @@ -92,37 +123,6 @@
unicode-bidi: isolate;
}

// * Set core root defaults
html,
html:focus-within {
scroll-behavior: smooth;
}

// * Set core body defaults
body {
min-block-size: 100dvh;
min-height: 100dvh;
line-height: 1.5;

// * This is for improve text rendering in the browsers
-webkit-font-smoothing: antialiased;

// stylelint-disable-next-line scss/selector-no-redundant-nesting-selector
:where(&) {
overflow-wrap: break-word;

$hyphens-props: (
-webkit-hyphens: auto,
-ms-hyphens: auto,
hyphens: auto
) !default;

@each $prop, $value in $hyphens-props {
#{$prop}: $value;
}
}
}

// * A elements that don't have a class get default styles
a:not([class]) {
$text-decoration-ink-props: (
Expand Down

0 comments on commit e83dffb

Please sign in to comment.