Landing/AstroLanding/src/styles/reset.css
2026-07-29 13:25:44 +03:00

107 lines
1.4 KiB
CSS

/* reset.css */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-size: 100.01%;
}
body {
margin: 0;
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
main {
display: block;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
margin: 0;
}
/* Reset list styles */
ul[role="list"],
ol[role="list"] {
list-style: none;
}
/* Links */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Images */
img,
picture {
max-width: 100%;
display: block;
}
/* Reset button and input styles */
button,
input[type="button"],
input[type="submit"],
input,
textarea,
select {
font: inherit;
cursor: pointer;
}
button,
input[type="button"],
input[type="submit"] {
background: transparent;
border: 0;
padding: 0;
margin: 0;
box-shadow: none;
color: inherit;
font-size: inherit;
}
button::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner {
border: 0;
padding: 0;
}
/* Hidden elements */
[hidden] {
display: none !important;
}
/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}