X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/cb9355951d97aa591ad4397319d142cdb2980d8e..eb80e4eb5272f7faf657b68263dde1efb9ffdb33:/css/style.css diff --git a/css/style.css b/css/style.css index e775321..ea6ed59 100644 --- a/css/style.css +++ b/css/style.css @@ -1,87 +1,103 @@ +html { scroll-behavior: smooth } body { + font-size: 1em; + font: -apple-system-body; font-family: "Hoefler Text", "Times New Roman", serif; - font-feature-settings: "hlig" 1, "dlig" 1, "onum" 1, "zero" 1, "swsh" 1, "kern" 1, "medi" 1; + font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1; line-height: 1.6; letter-spacing: 0.02em; } - +aside { + clear: both; + padding: 2em; +} +::selection { + background-color: #e8e8e8; + color: #00f; +} @media only screen and (min-width: 500px) { - body { - overflow-x: auto; + body { overflow-x: auto } + main { padding: 0 64px 0 124px } + h1 a { + display: block; + width: 64px; + } + header { + float: left; + margin-top: 0.8em; } - .columned { - height: calc(100vh - 200px); width: max-content; - } - .columned .h2:not(:only-child) { - float: left; - margin: 0 40px; - height: calc(100vh - 200px); - } + .h2:not(:only-child) { + float: left; + margin: 0 60px 0 0; - .columned .h2:not(:only-child) h2 { - width: 14.6em; - } + h2 { max-width: 14.6em } + .h3, + li, + p { max-width: 24em } + pre { max-width: 25em } + } - .columned .h2:not(:only-child) .h3, .columned .h2:not(:only-child) p { - width: 22em; - } + .h2:first-of-type { + columns: 3; + width: 24em; - .columned .h2:not(:only-child) pre { width: 25em } + pre[role="img"]:first-of-type { margin-top: 1.64em } + h2:empty {display: none} + h2, + pre, + ul, + p:not(.a) { column-span: all } + p { break-after: column } + p.a { break-after: avoid } + } + } } -.columned .h2:first-of-type pre { - line-height: 1; +.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[role="img"] { line-height: 1 } +blockquote, p, article > div { + max-width: 45em } - -blockquote, p { max-width: 45em } -pre { max-width: 55em } blockquote { border-left: 4px solid #ccc; padding-left: 10px; } - -h1, h2, h3 { font-weight: normal } br { display: none } -pre { - font-family: courier, monospace; - font-size: 14px; - background-color: #eee; - overflow-x: auto; -} +h1, h2, h3 { font-weight: normal } +h1 { font-size: 2em } +h2 { font-size: 1.65em } +h3 { font-size: 1.25em } +header h1 { font-size: 1em } canvas { - width: 64px; - height: 64px; - display: inline-block; background-color: #000; border: 1px solid #000; + display: block; + height: 64px; + width: 64px; } @media (prefers-color-scheme: dark) { body { - color: #fff; background: #000; + color: #fff; } - canvas { background-color: #fff; border: 1px solid #fff; } - - a { - color: #5dc1fd; - display: inline-block; - min-height: 48px; - } - - a:visited { - color: #ed6eff; - } - - pre { - background-color: #222; - } + a { color: #5dc1fd } + a:visited { color: #ed6eff } + pre { background-color: #222 } }