/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * RESET CSS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ body * { margin: 0px; } input, button, textarea, select { /* Remove built-in form typography styles */ font: inherit; } body { -webkit-font-smoothing: antialiased; } img, picture, video, canvas, svg { display: block; max-width: 100%; } li, p, h1, h2, h3, h4, h5, h6 { /* Avoid text overflows overflow-wrap: break-word; */ overflow-wrap: anywhere; } /* style details elements */ details summary { cursor: pointer; } details summary > * { /* allow to put h1 or anything inside the summary without breaking the line */ display: inline; } script, style { display: none; } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GLOBAL CSS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ :root { --base_font_size: 62.5%; } html { font-size: var(--base_font_size); } body { overflow-x: clip; margin: auto; width: fit-content; background-color: #f6f6f6; } /* https://css-tricks.com/slow-movement/#h-you-can-implement-native-smooth-scrolling-in-css */ /* Animate scrolling only if users don’t prefer reduced motion */ @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } /* Add some spacing between the target and the top of the viewport */ :target { scroll-margin-top: 0px; } } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * TEXT CSS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @font-face { font-family: "notomono"; src: url("./fonts/notomono/NotoMono-Dot.woff") format("woff"); font-weight: normal; font-style: normal; } body, pre { font-family: "notomono", monospace; font-size: 1.5rem; font-weight: normal; font-style: normal; } @media screen and (min-width: 500px) { html { font-size: calc(var(--base_font_size) * 1.2); } } ul { display: block; list-style-type: "• "; padding-left: 25px; /* list-style-position: inside; */ list-style-position: outside; } li { display: list-item; } li::marker { font-size: 1.8rem; } a:empty::after { content: attr(href); } h1 { margin: 30px 0px; font-size: 2.25rem; } h2 { margin: 30px 0px; font-size: 2rem; } h3 { margin: 20px 0px; font-size: 1.75rem; } h4 { margin: 20px 0px; font-size: 1.5rem; } h5 { margin: 10px 0px; font-size: 1.25rem; } h6 { margin: 10px 0px; font-size: 1rem; } .pre, pre { display: flex; white-space: pre; line-height: 0.8; font-size: min(2.1vw, 1rem); } .pre_small { font-size: min(1.5vw, 0.7rem); } a { word-break: break-all; } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * SECTIONS GLOBAL CSS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ section { display: grid; margin: 0px; width: 100vw; grid-template-columns: auto auto auto; grid-auto-rows: auto; grid-gap: 10px; gap: 10px; min-height: 100vh; justify-items: center; text-align: center; > * { grid-column: 2 / span 1; } > .grid_full_width { grid-column: 1 / span 3; } header { display: flex; flex-direction: column; place-content: center; h1 { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; } } article { text-align: left; } .banner { overflow-x: hidden; } }