Files
11ty/css/main.css
T

50 lines
1.1 KiB
CSS
Raw Normal View History

2026-05-13 10:05:41 -07:00
:root {
color-scheme: light dark;
}
/* numbered components are from https://www.joshwcomeau.com/css/custom-css-reset/ */
*, *::before, *::after {
2026-09-04 08:02:36 -07:00
box-sizing: border-box; /* 1. Use a more-intuitive box-sizing model */
2026-05-13 10:05:41 -07:00
}
*:not(dialog) {
2026-09-04 08:02:36 -07:00
margin: 0; /* 2. Remove default margin */
2026-05-13 10:05:41 -07:00
}
@media (prefers-reduced-motion: no-preference) {
html {
2026-09-04 08:02:36 -07:00
interpolate-size: allow-keywords; /* 3. Enable keyword animations */
2026-05-13 10:05:41 -07:00
}
}
body {
2026-09-04 08:02:36 -07:00
line-height: 1.5; /* 4. Increase line-height */
-webkit-font-smoothing: antialiased; /* 5. Improve text rendering */
2026-05-13 10:05:41 -07:00
}
img, picture, video, canvas, svg {
2026-09-04 08:02:36 -07:00
display: block; /* 6. Improve media defaults */
max-width: 100%; /* 6. Improve media defaults */
height: auto; /* 6. Improve media defaults */
2026-05-13 10:05:41 -07:00
}
input, button, textarea, select {
2026-09-04 08:02:36 -07:00
font: inherit; /* 7. Inherit fonts for form controls */
2026-05-13 10:05:41 -07:00
}
p, h1, h2, h3, h4, h5, h6 {
2026-09-04 08:02:36 -07:00
overflow-wrap: break-word; /* 8. Avoid text overflows */
2026-05-13 10:05:41 -07:00
}
p {
2026-09-04 08:02:36 -07:00
text-wrap: pretty; /* 9. Improve line wrapping */
2026-05-13 10:05:41 -07:00
}
2026-09-04 08:02:36 -07:00
h1, h2, h3, h4, h5, h6 {
text-wrap: balance; /* 9. Improve line wrapping */
}
2026-05-13 10:05:41 -07:00
#root, #__next {
2026-09-04 08:02:36 -07:00
isolation: isolate; /* 10. Create a root stacking context */
2026-05-13 10:05:41 -07:00
}