notes/sources/resources/scss/03-base/_reset.scss

70 lines
1.1 KiB
SCSS
Raw Normal View History

2022-11-04 23:25:35 -06:00
//========== Modern CSS reset inspired by https://github.com/hankchizljaw/modern-css-reset ==========//
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Set core root defaults */
html {
min-height: 100%;
scroll-behavior: smooth;
}
/* Set core body defaults */
body {
overflow-x: hidden;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
margin: 0;
}
/* Make images easier to work with */
img {
display: block;
max-width: 100%;
height: auto;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Remove default padding and list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
list-style: none;
padding: 0;
}