personal-site/public/reset.css
badbl0cks 0350a4b8e3
Modularize CSS; add reset, theme and fonts
Introduce reset.css and theme.css and refactor style.css
to import them via layers; add Unscii font files and preload links.
Add RSS XSL/CSS and a css-test page; remove legacy snes.min.css.
Tweak BaseLayout and contact layout (preloads, grid gaps). Rename index.astro to parallax.astro and
created new basic index page. Improve input styles and contact form placeholders
2026-02-01 10:08:58 -08:00

137 lines
2.2 KiB
CSS

*,
*::after,
*::before {
font-feature-settings: "kern";
font-kerning: normal;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
margin: 0;
padding: 0;
}
input:is([type="checkbox"], [type="radio"], [type="file"]),
select,
label,
button,
a {
cursor: pointer;
}
:where(html) {
color-scheme: light dark;
hanging-punctuation: first allow-end last;
interpolate-size: allow-keywords;
scroll-behavior: smooth;
scrollbar-gutter: stable;
text-size-adjust: none;
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: transparent;
-webkit-font-smoothing: antialiased;
}
:where(html.translated-rtl) {
direction: rtl;
}
@media (prefers-reduced-motion: reduce) {
:where(html) {
scroll-behavior: auto;
}
}
:where(body) {
min-block-size: 100svb;
min-inline-size: 300px;
}
:where(canvas, img, picture, svg, video) {
block-size: auto;
border: none;
display: block;
max-inline-size: 100%;
}
:where(svg) {
fill: currentcolor;
}
:where(button, input, progress, select, textarea) {
appearance: none;
background: transparent;
border: none;
color: inherit;
font: inherit;
hanging-punctuation: none;
line-height: inherit;
text-align: start;
touch-action: manipulation;
}
:where(button) {
cursor: pointer;
user-select: none;
}
:where(textarea) {
resize: vertical;
}
:where(textarea:not([rows])) {
field-sizing: content;
}
:where(fieldset, iframe) {
border: none;
}
:where(p, li, h1, h2, h3, h4, h5, h6) {
overflow-wrap: break-word;
text-wrap: pretty;
}
:where(abbr[title]) {
border: none;
text-decoration: none;
}
:where(cite) {
font-style: inherit;
}
:where(small) {
font-size: inherit;
}
:where(li, ol, ul) {
list-style: none;
}
:where(dialog, [popover]) {
background: transparent;
border: none;
color: inherit;
margin: auto;
max-block-size: none;
max-inline-size: none;
position: fixed;
}
:where([popover]) {
inset: auto;
}
:where(dialog:not([open], [popover]), [popover]:not(:popover-open)) {
display: none;
}
:where([hidden]:not([hidden="until-found"])) {
display: none !important;
}
/* For Windows High Contrast Mode */
@media (forced-colors: active) {
button {
border: 1px solid;
}
}