/* Reset */ *, *::before, *::after { box-sizing: border-box; } * { margin: 0; padding: 0; } html { color-scheme: dark light; } body { min-height: 100vh; } img, picture, video, canvas, svg { display: block; max-width: 100%; } input, button, textarea, select { font: inherit; } /* Colors */ :root { --color-dark: #1f2123; --color-light: #e8e6e3; } :root { /* separated since these are used by the actual script */ --highlight: #ddd; --background: #222; } /* Font */ body { font-family: Arial, Helvetica, sans-serif; } /* Composition */ .flex { display: flex; gap: var(--gap, 1rem); } .even { justify-content: space-between; align-items: stretch; } .col { flex-direction: column; } .grid { display: grid; gap: var(--gap, 1rem); } .flow > * + * { margin-block-start: var(--flow-space, 1rem); } .no-gap { --gap: 0px; } .small-gap { --gap: 0.5rem; } /* Utility */ .emphasis { font-size: 1.2rem; font-weight: 600; } /* Block */ body { color: var(--highlight); background-color: var(--background); accent-color: var(--highlight); transition: accent-color 250ms, color 250ms, background-color 250ms; } .sidebar { position: fixed; width: 14rem; height: 100%; border-right: 1px solid var(--highlight); padding-block-start: var(--flow-space, 1rem); padding-inline: calc(var(--flow-space, 1rem) / 2); } main { position: relative; width: calc(100% - 14rem); padding-inline: calc(var(--flow-space, 1rem) / 2); float: right; } #colorSelect label { text-align: center; } #colorSelect button { border-radius: 100vmax; padding-block: 0.25rem; border: 1px solid var(--highlight); } #colorSelect input[type="text"] { border-radius: 100vmax; padding-inline: 1rem; text-align: center; border: 1px solid var(--highlight); min-width: 0px; } #colorSelect input[type="color"] { flex: 0 0 2rem; }