56 lines
3.3 KiB
TypeScript
56 lines
3.3 KiB
TypeScript
export const styles = `
|
|
:root {
|
|
color-scheme: light dark;
|
|
--bg: #f6f5f1; --card: #ffffff; --text: #1c1b19; --muted: #6b6860; --line: #e4e1d8;
|
|
--accent: #1f5fd1; --accent-text: #ffffff; --ok: #1d7a46; --warn-bg: #fff4d6; --warn-text: #6b4a00;
|
|
--err-bg: #fde8e6; --err-text: #8a1f14;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #151514; --card: #1f1f1d; --text: #f1efe9; --muted: #a29f96; --line: #33322e;
|
|
--accent: #7aa7ff; --accent-text: #10203f; --ok: #6fcf97; --warn-bg: #3b3115; --warn-text: #f3d98b;
|
|
--err-bg: #402019; --err-text: #ffb4a8;
|
|
}
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0; background: var(--bg); color: var(--text);
|
|
font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
}
|
|
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
|
|
header.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0 24px; }
|
|
.brand { font-weight: 700; letter-spacing: 0.02em; }
|
|
nav.langs { display: flex; gap: 4px; font-size: 14px; }
|
|
nav.langs a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
|
|
nav.langs a[aria-current="true"] { color: var(--text); background: var(--card); border: 1px solid var(--line); }
|
|
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
|
|
p { margin: 0 0 12px; }
|
|
.lead { color: var(--muted); max-width: 60ch; }
|
|
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; margin-bottom: 8px; }
|
|
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
|
|
.button {
|
|
display: inline-block; margin-top: 12px; padding: 12px 20px; border-radius: 10px;
|
|
background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
|
|
}
|
|
.button:focus-visible, nav.langs a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
|
|
.note { padding: 12px 16px; border-radius: 10px; margin: 0 0 20px; }
|
|
.note.warn { background: var(--warn-bg); color: var(--warn-text); }
|
|
.note.error { background: var(--err-bg); color: var(--err-text); }
|
|
.note.error.inline { margin: 20px 0 0; border-left: 4px solid currentColor; font-weight: 600; }
|
|
.note.error.inline + .button { margin-top: 12px; }
|
|
.link { display: inline-block; margin-top: 4px; color: var(--accent); }
|
|
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
|
|
section.sample { margin-top: 32px; padding-top: 20px; border-top: 1px dashed var(--line); }
|
|
section.sample > h2 { font-size: 18px; margin: 0 0 4px; }
|
|
section.day { margin-top: 28px; }
|
|
section.day h2 { font-size: 16px; margin: 0 0 8px; color: var(--muted); font-weight: 600; }
|
|
ul.items { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
|
|
ul.items li { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
|
|
ul.items li:first-child { border-top: 0; }
|
|
.when { flex: 0 0 104px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
.what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
.what.untitled { color: var(--muted); font-style: italic; }
|
|
.empty { margin-top: 28px; text-align: center; }
|
|
.empty strong { display: block; font-size: 20px; margin-bottom: 6px; }
|
|
`;
|