X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/43df122ca6b2055c27b5551c06cbbf0ae45e9a01..5ee42efa88f0f1be5111fd6f48e5c698187c3cab:/css/style.css diff --git a/css/style.css b/css/style.css index 79ce105..82b7a64 100644 --- a/css/style.css +++ b/css/style.css @@ -1,76 +1,156 @@ +* { + padding: 0; + margin: 0 +} +html { scroll-behavior: smooth } body { - font-family: "Times New Roman", Times, serif; + font-size: 1em; + font-family: "Hoefler Text", "Times New Roman", serif; + font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1; line-height: 1.6; letter-spacing: 0.02em; + padding: 2em; } - -@media only screen and (min-width: 500px) { +@supports (-webkit-touch-callout: none) { body { - overflow-x: auto; + font-size: 1em; + font: -apple-system-body; + font-family: "Hoefler Text", "Times New Roman", serif; + font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1; + line-height: 1.6; + letter-spacing: 0.02em; + padding: 2em; } - +} +aside { + clear: both; + padding: 2em 0; +} +::selection { + background-color: #e8e8e8; + color: #00f; +} +.h2 { margin-top: 1em } +@media only screen and (min-width: 500px) { + body { overflow-x: auto } .columned { - height: calc(100vh - 200px); width: max-content; - } - .columned .h2 { - float: left; - margin: 0 40px; - height: calc(100vh - 200px); - } + .h2:not(:only-child) { + float: left; + margin: 0 60px 0 0; - .columned h2 { - width: 14.6em; - } + h2 { max-width: 14.6em } + .h3, + li, + p { max-width: 24em } + pre { max-width: 25em } + } - .columned .h3, .columned p { - width: 22em; - } + .h2:first-of-type { + columns: 3; + width: 24em; - .columned pre { width: 25em } + h2:empty {display: none} + h2, + pre, + ul, + p:not(.a) { column-span: all } + p { break-after: column } + p.a { break-after: avoid } + } + } } -blockquote, p { max-width: 45em } -pre { max-width: 55em } +.a { margin: 0 0.3em } +pre { + background-color: #eee; + font-family: courier, monospace; + font-size: 0.875em; + max-width: 55em; + overflow-x: auto; + padding: 1em; +} +pre[aria-label="rbdr"] { display: none } +blockquote, p, article > div { + max-width: 45em +} blockquote { border-left: 4px solid #ccc; padding-left: 10px; } +p { margin: 1em 0 } +ul { padding-left: 2em } +br, p:empty { display: none } +h1, h2, h3 { + font-family: "Avenir Next", "Montserrat", "Segoe UI Variable Display", "Noto Sans", "Roboto", "Segoe UI", sans-serif; + font-weight: 900 +} +h1, h2 { + font-size: 2em; + text-transform: lowercase; +} +h3 { + display: inline-block; + font-weight: 600; + margin-top: 1em +} -h1, h2, h3 { font-weight: normal } -br { display: none } -pre { - font-family: Monaco, monospace; - font-size: 14px; - background-color: #eee; - overflow-x: auto; +h1, h2, h3, a { color: #00f } + +.h2 a { + display: inline-block; + padding: 0.25em 0; + margin: 0.25em 0; +} + +header { position: relative } +main { + position: relative; + z-index: 1 +} +header h1 { + font-size: min(7.5rem, 17vw); + font-weight: 900; + letter-spacing: -0.2em; + line-height: 1em; +} +header h1 a { + background: repeating-linear-gradient( + 0deg, + black, + black 1px, + white 1px, + white 2px + ); + background-clip: text; + color: transparent; + display: inline-block; + padding-right: 0.2em; + text-decoration: none; + -webkit-text-stroke: 1px #000; } canvas { - width: 64px; - height: 64px; + background-color: #000; + border: 1px solid #000; display: inline-block; - background-color: gainsboro; + height: 64px; + width: 64px; } @media (prefers-color-scheme: dark) { body { - color: #fff; background: #000; + color: #fff; } - - a { - color: #5dc1fd; - display: inline-block; - min-height: 48px; + canvas { + background-color: #fff; + border: 1px solid #fff; } - - a:visited { - color: #ed6eff; - } - - pre { - background-color: #222; + h1, h2, h3, a { color: #5dc1fd } + pre { background-color: #222 } + header h1 a { + -webkit-text-stroke: 1px #fff; } }