rmcg.dev/projects/FrontendMentor/newbie/social-links-profile/assets/css/reset.css

97 lines
1.4 KiB
CSS
Raw Normal View History

/*
Mixture of different resets
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
Kevin Powell
*/
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
2. Remove default margin & padding
*/
* {
margin: 0;
padding: 0;
}
/* Set core root defaults */
html {
scroll-behavior: smooth;
}
/*
Typographic tweaks!
3. Add accessible line-height
4. Improve text rendering
*/
body {
text-rendering: optimizeSpeed;
/* line-height: 1.6; KP */
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/*
6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}
/*
7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/*
8. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}