/* Colors */ :root { --ink: #1a2748; --text: #3b4b7a; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #054fb3; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); --handle: #e91e63; --handle-active: #ad1457; } /* The controls, above the pages */ .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; } .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 550; line-height: 1.1; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px var(--shadow); transition: background-color 0.15s ease, border-color 0.15s ease; } .button:hover { background: var(--tint); border-color: var(--line-strong); } .button:active { transform: translateY(1px); } .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .button[aria-pressed='true'] { color: var(--accent); background: var(--tint); border-color: var(--line-strong); } .button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; } /* Colors to pick from: the pressed one is the current one */ .swatches { display: inline-flex; gap: 6px; } .swatch { width: 26px; height: 26px; padding: 0; border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; } .swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--ink); } .swatch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } /* A switch: a checkbox with its label */ .check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink); cursor: pointer; } .check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); } /* Your own handles: the layer places them, in pixels on the page */ .handle { position: absolute; box-sizing: border-box; background: var(--surface); border: 2px solid var(--handle); border-radius: 3px; } .handle--side { border-radius: 50%; } .handle--active { background: var(--handle); } .turn { position: absolute; box-sizing: border-box; display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--surface); background: var(--handle); border-radius: 50%; } .turn--active { background: var(--handle-active); } /* The pages */ .stage { height: 420px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); box-shadow: 0 1px 2px var(--shadow), 0 18px 40px -28px rgb(7 32 76 / 0.28); } .loading { margin: 0; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }