/* START vars */ :root { --bg-color: #cfcfcf; --fg-color: white; --border-color: black; --border-radius: 10px; --border-width: 2px; --border-style: solid; --default-margin: 1%; --default-padding: 2%; --text-color: black; --tint-color: #00000015; --sidebar-size: 10vw; } /* END vars */ /* START defaults */ body, html { background-color: var(--bg-color); font-family: monospace; scroll-behavior: smooth; color: var(--text-color); margin: 0; padding: 0; } div { border-radius: var(--border-radius); background-color: var(--fg-color); margin: var(--default-margin); border-color: var(--border-color); border-style: var(--border-style); border-width: var(--border-width); padding: var(--default-padding); } code { white-space: pre; display: inline; overflow: scroll; overflow-block: scroll; /* hide scrollbar in code blocks */ -ms-overflow-style: none; /* IE & Edge (Legacy) */ scrollbar-width: none; /* Firefox */ background-color: var(--tint-color); } details { transition: 0.2s; } /* hide scrollbar in code blocks (Chrome & Safari) */ code::-webkit-scrollbar { display: none; } /* END defaults */ /* START fonts */ .title-font { font-size: 3em; } .subtitle-font { font-size: 2em; } .large-font, h1 { font-size: 2em; } .medium-large-font, h2 { font-size: 1.75em; } .medium-font, p, text, li, h3 { font-size: 1.5em; } .small-font { font-size: 1em; } /* END fonts */ /* START modifiers */ .rotate-90 { position: relative; transform: rotate(-180deg); display: inline-block; } .nodecorate { color: var(--text-color); text-decoration: none; } /* END modifiers */ /* START grids */ .two-column-grid-with-spacer { display: grid; grid-template-columns: 47.5% 5% 47.5%; } /* END grids */ /* START components */ named-code-block { } named-code-block > pre { padding: var(--default-padding); border-color: var(--border-color); border-style: var(--border-style); border-width: var(--border-width); border-radius: var(--border-radius); background-color: var(--tint-color); } named-code-block > pre > code { background-color: #00000000; display: block; } content > div { margin-left: var(--sidebar-size); } nav, footer { position: fixed; overflow: hidden; max-width: calc(var(--sidebar-size) - calc(var(--default-padding) / 5) - 1%); border-radius: var(--border-radius); background-color: var(--fg-color); border-color: var(--border-color); border-style: var(--border-style); border-width: var(--border-width); padding: calc(var(--default-padding) / 5); margin: 0; top: 0; } nav:hover, footer:hover { max-width: 100vw; } nav > a > l { display: none; } nav:hover > a > c { display: none; } nav:hover > a > l { display: inline; } nav > a { font-size: 1.5em; display: block; text-decoration: none; color: var(--text-color); } nav > a:hover { background-color: var(--tint-color); } footer { top: auto; bottom: 0; } /* END components */ /* START media queries */ @media only screen and (max-width: 800px) { /* START mobile fonts */ .title-font { font-size: 2.5em; } .subtitle-font { font-size: 1.5em; } .large-font, h1 { font-size: 2em; } .medium-large-font, h2 { font-size: 1.5em; } .medium-font, p, text, li, h3 { font-size: 1.25em; } .small-font { font-size: 1em; } /* END mobile fonts */ /* START mobile grids */ .two-column-grid-with-spacer { /* Two columns on desktop become one column on mobile */ display: grid; grid-template-columns: 100% 0%; } /* END mobile grids */ /* START mobile components */ content > div { margin-left: var(--default-margin); } nav, footer { max-width: calc(100% - var(--default-margin)*2 - var(--default-padding)*2 - 1%); height: auto; position: relative; margin: var(--default-margin); padding: var(--default-padding); } nav > a > l { display: inline; } nav > a > c { display: none; } /* END mobile components */ } /* END media queries */