197 lines
2.7 KiB
SCSS
197 lines
2.7 KiB
SCSS
// ===================
|
|
// © AngelaMos | 2026
|
|
// _reset.scss
|
|
// ===================
|
|
|
|
@use 'tokens' as *;
|
|
@use 'fonts' as *;
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
text-size-adjust: none;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
html {
|
|
interpolate-size: allow-keywords;
|
|
scroll-behavior: smooth;
|
|
}
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
line-height: $line-height-normal;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
overflow-x: hidden;
|
|
background-color: $bg-default;
|
|
color: $text-default;
|
|
font-family: $font-sans;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
line-height: $line-height-tight;
|
|
text-wrap: balance;
|
|
overflow-wrap: break-word;
|
|
font-weight: $font-weight-semibold;
|
|
}
|
|
|
|
p {
|
|
text-wrap: pretty;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
ul,
|
|
ol {
|
|
list-style: none;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
input[type='text'],
|
|
input[type='email'],
|
|
input[type='password'],
|
|
input[type='search'],
|
|
input[type='number'],
|
|
input[type='tel'],
|
|
input[type='url'],
|
|
textarea,
|
|
select {
|
|
font-size: $font-size-sm;
|
|
appearance: none;
|
|
}
|
|
|
|
button {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
text-align: inherit;
|
|
font-family: inherit;
|
|
}
|
|
|
|
fieldset {
|
|
border: none;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
textarea:not([rows]) {
|
|
min-height: 10em;
|
|
}
|
|
|
|
:target {
|
|
scroll-margin-block: 5ex;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid $border-strong;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
[disabled] {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
dialog {
|
|
padding: 0;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
summary {
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
@supports (padding: max(0px)) {
|
|
body {
|
|
padding-left: max(0px, env(safe-area-inset-left));
|
|
padding-right: max(0px, env(safe-area-inset-right));
|
|
}
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: $border-default;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: $border-strong;
|
|
}
|
|
|
|
::selection {
|
|
background-color: $bg-selection;
|
|
}
|