/* 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; } .section { padding-block-start: var(--flow-space, 1rem); padding-inline: calc(var(--flow-space, 1rem) / 2); } /* Utility */ .emphasis { font-size: 1.125rem; font-weight: 600; } .center { text-align: center; margin-inline: auto; } button { border-radius: 100vmax; padding-block: 0.25rem; border: 1px solid var(--highlight); } /* Block */ body { color: var(--highlight); background-color: var(--background); accent-color: var(--highlight); transition: accent-color 250ms, color 250ms, background-color 250ms; display: grid; grid-template-columns: 14rem 1fr 8rem; } body > * + * { border-inline-start: 1px solid var(--highlight); } #prevColors button { width: 100%; margin-block-end: 0.5ch; background-color: var(--button-bg); transition: background-color 100ms; } #prevColors button:hover { background-color: var(--button-bg-hover); } #colorSelect label { text-align: center; } #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; } #sidebar select:disabled { display: none; } .fn-fraction > *:first-child { padding-bottom: 2px; border-block-end: 1px solid var(--highlight); }