:root { /* The brand color; `admin.brand.color` replaces it, and every accent shade derives from it. */ --brand: #0f766e; --bg: #f6f6f7; --surface: #ffffff; --surface-2: #f2f2f4; --border: #e5e5e8; --border-strong: #d4d4d8; --text: #18181b; --text-muted: #52525b; --faint: #6b6b74; --accent: var(--brand); --accent-hover: color-mix(in srgb, var(--brand) 86%, #000); --accent-soft: color-mix(in srgb, var(--brand) 9%, var(--surface)); --accent-ink: color-mix(in srgb, var(--brand) 92%, #000); --accent-text: #ffffff; --danger: #b42318; --danger-soft: #fef3f2; --warning-soft: #fef6e7; --warning-text: #93370d; --ok: #067647; --success-soft: #ecfdf3; --info: #175cd3; --info-soft: #eff6ff; --focus: var(--brand); --radius: 12px; --radius-sm: 8px; --shadow: 0 12px 32px rgb(24 24 27 / 10%), 0 2px 6px rgb(24 24 27 / 6%); --shadow-sm: 0 1px 2px rgb(24 24 27 / 8%); --font: "Anuphan Variable", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace; /* File types in the media library. */ --kind-pdf: #c0362c; --kind-word: #2b5cb8; --kind-sheet: #1f7a45; --kind-slides: #c4561d; --kind-archive: #6b6b74; --kind-audio: #7c3aed; --kind-video: #be2a6c; --kind-text: #52525b; --kind-image: #0f766e; --kind-file: #6b6b74; /* Loading placeholders. */ --skeleton: var(--border); /* The arrow of dropdowns (`select`), in --faint. */ --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); color-scheme: light; } /* Dark: chosen in the menu (data-theme), or by the operating system unless light was chosen. */ :root[data-theme="dark"] { --bg: #0c0c0e; --surface: #141417; --surface-2: #1d1d21; --border: #28282d; --border-strong: #3a3a41; --text: #f4f4f5; --text-muted: #b4b4bc; --faint: #8e8e98; --accent-hover: color-mix(in srgb, var(--brand) 85%, #fff); --accent-soft: color-mix(in srgb, var(--brand) 24%, var(--surface)); --accent-ink: color-mix(in srgb, var(--brand) 50%, #fff); --danger: #f97066; --danger-soft: color-mix(in srgb, #f97066 14%, var(--surface)); --warning-soft: color-mix(in srgb, #fdb022 14%, var(--surface)); --warning-text: #fdb022; --ok: #47cd89; --success-soft: color-mix(in srgb, #47cd89 14%, var(--surface)); --info: #6cb8ff; --info-soft: color-mix(in srgb, #6cb8ff 14%, var(--surface)); --focus: var(--accent-ink); --shadow: 0 12px 32px rgb(0 0 0 / 45%), 0 2px 6px rgb(0 0 0 / 30%); --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%); --kind-pdf: #f97066; --kind-word: #7cabf6; --kind-sheet: #5fd394; --kind-slides: #f8a26b; --kind-archive: #a1a1aa; --kind-audio: #b79cf9; --kind-video: #f582b4; --kind-text: #b4b4bc; --kind-image: #5ed2c4; --kind-file: #a1a1aa; --skeleton: var(--border-strong); --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); color-scheme: dark; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0c0c0e; --surface: #141417; --surface-2: #1d1d21; --border: #28282d; --border-strong: #3a3a41; --text: #f4f4f5; --text-muted: #b4b4bc; --faint: #8e8e98; --accent-hover: color-mix(in srgb, var(--brand) 85%, #fff); --accent-soft: color-mix(in srgb, var(--brand) 24%, var(--surface)); --accent-ink: color-mix(in srgb, var(--brand) 50%, #fff); --danger: #f97066; --danger-soft: color-mix(in srgb, #f97066 14%, var(--surface)); --warning-soft: color-mix(in srgb, #fdb022 14%, var(--surface)); --warning-text: #fdb022; --ok: #47cd89; --success-soft: color-mix(in srgb, #47cd89 14%, var(--surface)); --info: #6cb8ff; --info-soft: color-mix(in srgb, #6cb8ff 14%, var(--surface)); --focus: var(--accent-ink); --shadow: 0 12px 32px rgb(0 0 0 / 45%), 0 2px 6px rgb(0 0 0 / 30%); --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%); --kind-pdf: #f97066; --kind-word: #7cabf6; --kind-sheet: #5fd394; --kind-slides: #f8a26b; --kind-archive: #a1a1aa; --kind-audio: #b79cf9; --kind-video: #f582b4; --kind-text: #b4b4bc; --kind-image: #5ed2c4; --kind-file: #a1a1aa; --skeleton: var(--border-strong); --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); color-scheme: dark; } } *, *::before, *::after { box-sizing: border-box; } html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; } a { color: var(--accent-ink); } h1, h2, h3 { line-height: 1.25; margin: 0; } h1 { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.01em; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.25rem; padding: 0 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 0.12s, border-color 0.12s, color 0.12s; } .btn svg { flex-shrink: 0; } .btn:hover:not(:disabled) { background: var(--surface-2); } .btn:disabled { opacity: 0.55; cursor: not-allowed; } .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } .btn-primary:hover:not(:disabled) { background: var(--accent-hover); } .btn-danger { color: var(--danger); border-color: var(--border-strong); background: var(--surface); } .btn-danger:hover:not(:disabled) { background: var(--danger-soft); } .btn-ghost { border-color: transparent; background: transparent; color: var(--text-muted); } .btn-ghost:hover:not(:disabled) { color: var(--text); } .btn-sm { min-height: 1.9rem; padding: 0 0.6rem; font-size: 0.875rem; } .btn-icon { width: 2rem; min-height: 2rem; padding: 0; } /* Forms */ .field { display: flex; flex-direction: column; gap: 0.35rem; } .field-label { font-weight: 600; font-size: 0.9rem; } .field-required { color: var(--danger); margin-left: 0.15rem; } /* Marks fields with one value per content language. */ .field-locale { margin-left: 0.4rem; padding: 0 0.35rem; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.7rem; font-weight: 650; vertical-align: middle; } .field-hint { color: var(--faint); font-size: 0.85rem; } .field-error { color: var(--danger); font-size: 0.85rem; margin: 0; } .input, .select, .textarea { width: 100%; min-height: 2.5rem; padding: 0.45rem 0.75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; } .textarea { min-height: 6rem; resize: vertical; } .textarea.mono { font-family: var(--mono); font-size: 0.85rem; } .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); } .input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); } .input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--text-muted); } /* * Dropdowns: one arrow in every browser, with the same room on the right. Native arrows hug the * border and sit differently by browser and system. */ select:not([multiple]):not([size]) { appearance: none; padding-right: 2.25rem; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 1rem 1rem; cursor: pointer; } select:not([multiple]):not([size]):disabled { cursor: default; opacity: 0.7; } .checkbox { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; } .checkbox input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); } fieldset { border: 0; margin: 0; padding: 0; min-width: 0; } /* Surfaces */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); } .badge { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 1.5rem; padding: 0 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--text-muted); } /* A status dot before document states. */ .badge-published::before, .badge-draft::before, .badge-changed::before, .badge-scheduled::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; } .badge-published { background: var(--success-soft); color: var(--ok); } .badge-changed { background: var(--warning-soft); color: var(--warning-text); } .badge-scheduled { background: var(--info-soft); color: var(--info); } .notice { padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.9rem; } .notice-error { background: var(--danger-soft); color: var(--danger); } .notice-warning { background: var(--warning-soft); color: var(--warning-text); } .muted { color: var(--text-muted); } /* Loading: placeholders shaped like the content (Skeleton.vue), and a small spinner. */ .skeleton { display: block; height: 0.85em; border-radius: 6px; background: var(--skeleton); animation: skeleton-pulse 1.6s ease-in-out infinite; } .skeleton.block { height: 2.25rem; border-radius: var(--radius-sm); } .skeleton.circle { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; } @keyframes skeleton-pulse { 50% { opacity: 0.45; } } .spinner { display: inline-block; flex-shrink: 0; width: 1em; height: 1em; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; vertical-align: -0.15em; animation: spinner 0.8s linear infinite; } .loading-line { display: flex; align-items: center; gap: 0.5rem; } @keyframes spinner { to { transform: rotate(1turn); } } /* A thin bar that runs while something loads: route changes, a list reloading. */ .progress-line { height: 3px; overflow: hidden; background: var(--accent-soft); pointer-events: none; } .progress-line > span { display: block; width: 40%; height: 100%; background: var(--accent); animation: progress-line 1.1s ease-in-out infinite; } @keyframes progress-line { from { transform: translateX(-100%); } to { transform: translateX(250%); } } /* Reduced motion: loading indicators stay still. */ @media (prefers-reduced-motion: reduce) { .skeleton, .spinner, .progress-line > span { animation: none; } .progress-line > span { width: 100%; opacity: 0.6; } } /* Calendar colours (#272): one per value of `admin.calendar.color`, or per collection. */ .cal-c0 { --c: #2563eb; } .cal-c1 { --c: #059669; } .cal-c2 { --c: #d97706; } .cal-c3 { --c: #db2777; } .cal-c4 { --c: #7c3aed; } .cal-c5 { --c: #0891b2; } .cal-c6 { --c: #65a30d; } .cal-c7 { --c: #dc2626; } /* A checkbox with role="switch" looks like one: a track, a knob that slides when on. */ input[type="checkbox"][role="switch"] { appearance: none; position: relative; flex: none; width: 2.25rem; height: 1.25rem; margin: 0; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: background-color 0.15s ease; } input[type="checkbox"][role="switch"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: transform 0.15s ease; } input[type="checkbox"][role="switch"]:checked { background: var(--brand); } input[type="checkbox"][role="switch"]:checked::before { transform: translateX(1rem); } input[type="checkbox"][role="switch"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } input[type="checkbox"][role="switch"]:disabled { opacity: 0.5; cursor: not-allowed; } @media (prefers-reduced-motion: reduce) { input[type="checkbox"][role="switch"], input[type="checkbox"][role="switch"]::before { transition: none; } }