/* Colors, and the toolbar's own parts (its "More" menu) to match */ :root { --ink: #1a2748; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #054fb3; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); --epdf-toolbar-surface: var(--surface); --epdf-toolbar-border: var(--line); --epdf-toolbar-active: var(--tint); } /* The width slider */ .width { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--muted); } .width input { flex: 1; max-width: 220px; accent-color: var(--accent); } .width output { min-width: 40px; font-variant-numeric: tabular-nums; color: var(--ink); } /* The toolbar, above the pages */ .frame { margin-bottom: 14px; padding: 6px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px var(--shadow); color: var(--ink); font-size: 13px; } .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; font: inherit; font-weight: 550; white-space: nowrap; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 0 8px; cursor: pointer; } .button:hover { background: var(--tint); border-color: var(--line-strong); } .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; } .button:disabled { opacity: 0.4; cursor: not-allowed; } /* The page number: your own item */ .page-number { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; } .page-input { width: 3ch; font: inherit; font-weight: 600; text-align: center; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; } .page-input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(125 182 255 / 0.35); } /* "Go to page", opened from the "More" menu */ .go-to { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 12px; font-size: 13px; background: var(--tint); border: 1px solid var(--line-strong); border-radius: 10px; } /* 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); }