Refresh paper UI styling
Test and publish the site / test (push) Successful in 51s
Test and publish the site / publish (push) Successful in 1m39s

This commit is contained in:
2026-10-23 20:00:46 +01:00
parent 19300d9b10
commit 7638d88570
9 changed files with 291 additions and 35 deletions
+38 -7
View File
@@ -34,7 +34,7 @@ const route = useRoute();
.shell {
max-width: 1100px;
margin: 0 auto;
padding: 0 16px 48px;
padding: 0 24px 56px;
}
.shell.wide {
max-width: none;
@@ -61,9 +61,20 @@ const route = useRoute();
align-items: baseline;
justify-content: space-between;
gap: 8px 24px;
padding: 24px 0 16px;
padding: 28px 0 18px;
border-bottom: 1px solid var(--color-line);
margin-bottom: 24px;
margin-bottom: 32px;
position: relative;
}
.top::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 64px;
height: 3px;
border-radius: 2px;
background: var(--color-accent);
}
.brand {
font-family: var(--font-heading);
@@ -76,17 +87,37 @@ const route = useRoute();
nav {
display: flex;
flex-wrap: wrap;
gap: 4px 20px;
gap: 4px 6px;
}
nav a {
padding: 6px 10px;
border-radius: 5px;
color: var(--color-ink-muted);
text-decoration: none;
white-space: nowrap;
}
nav a:hover,
nav a.on {
color: var(--color-ink);
text-decoration: underline;
text-underline-offset: 4px;
color: var(--color-accent);
background: var(--color-accent-soft);
text-decoration: none;
}
@media (max-width: 640px) {
.shell {
padding: 0 16px 40px;
}
.top {
align-items: flex-start;
margin-bottom: 24px;
}
.brand {
font-size: 2rem;
}
nav {
gap: 2px;
}
nav a {
padding: 5px 7px;
}
}
</style>
+47 -12
View File
@@ -32,13 +32,16 @@
--color-ink-soft: #333;
--color-ink-muted: #555;
--color-ink-faint: #8a8a8a;
--color-ink-link: #0066cc;
--color-ink-link: #1d5f8f;
--color-ink-danger: #c00;
--color-paper: #fff;
--color-paper-tint: #f5f5f5;
--color-paper-shade: #eee;
--color-line: #ccc;
--color-line-soft: #e0e0e0;
--color-paper-tint: #f4f1eb;
--color-paper-shade: #ebe7df;
--color-line: #c8c2b7;
--color-line-soft: #ded9d0;
--color-accent: #1d5f8f;
--color-accent-soft: #e3edf3;
--shadow-paper: 0 10px 26px rgb(46 39 28 / 0.06), 0 1px 2px rgb(46 39 28 / 0.08);
/* Status: identity, so always shown with its label, never colour alone. */
--color-solved: #0a7d0a;
@@ -63,6 +66,7 @@ body {
min-height: 100vh;
overflow-x: hidden;
background: var(--color-paper-tint);
background-image: linear-gradient(rgb(255 255 255 / 0.22), transparent 240px);
color: var(--color-ink);
line-height: 1.5;
}
@@ -80,6 +84,24 @@ a {
color: var(--color-ink-link);
}
input,
select,
textarea {
transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
input:focus,
select:focus,
textarea:focus {
border-color: var(--color-accent);
box-shadow: 0 0 0 3px rgb(29 95 143 / 0.14);
outline: none;
}
::selection {
background: #c8dbe8;
color: var(--color-ink);
}
/* Preflight leaves focus to the browser default, which is faint on the
paper background; keyboard users get a clear ring everywhere. */
:focus-visible {
@@ -90,7 +112,8 @@ a {
.card {
background: var(--color-paper);
border: 1px solid var(--color-line-soft);
border-radius: 6px;
border-radius: 8px;
box-shadow: var(--shadow-paper);
}
.badge {
@@ -117,23 +140,34 @@ a {
}
.btn {
min-height: 34px;
padding: 6px 14px;
border: 1px solid var(--color-line);
border-radius: 4px;
border-radius: 5px;
background: var(--color-paper);
color: var(--color-ink);
cursor: pointer;
font: inherit;
transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.btn:hover:not(:disabled) {
border-color: var(--color-ink-muted);
border-color: var(--color-accent);
background: var(--color-accent-soft);
color: var(--color-accent);
transform: translateY(-1px);
}
.btn:disabled {
opacity: 0.5;
cursor: default;
}
.btn.primary {
background: var(--color-ink);
border-color: var(--color-ink);
background: var(--color-accent);
border-color: var(--color-accent);
color: var(--color-paper);
}
.btn.primary:hover:not(:disabled) {
background: #174d74;
border-color: #174d74;
color: var(--color-paper);
}
@@ -211,9 +245,10 @@ a {
border-radius: 3px;
}
.prose pre {
background: var(--color-paper-tint);
background: #f1eee8;
padding: 12px;
border-radius: 4px;
border: 1px solid var(--color-line-soft);
border-radius: 6px;
overflow-x: auto;
}
.prose pre code {
+5 -1
View File
@@ -168,7 +168,7 @@ section {
min-width: 0;
}
h1 {
font-size: 2.25rem;
font-size: 3rem;
margin-bottom: 8px;
}
h2 {
@@ -189,6 +189,7 @@ p code {
flex-direction: column;
gap: 10px;
padding: 14px 16px;
border-top: 3px solid var(--color-accent);
}
pre {
background: var(--color-paper-tint);
@@ -204,6 +205,9 @@ pre {
padding: 10px 16px;
border-bottom: 1px solid var(--color-line-soft);
}
.row:hover {
background: var(--color-accent-soft);
}
.row:last-child {
border-bottom: none;
}
+51 -2
View File
@@ -112,6 +112,13 @@ onUnmounted(() => clearTimeout(poll));
<template>
<section class="page">
<header class="page-heading">
<div>
<p class="eyebrow">Reference library</p>
<h1>Concepts</h1>
</div>
<span v-if="!loading && !error" class="heading-count">{{ concepts.length }} guides</span>
</header>
<p class="intro muted">
Techniques and data structures, explained with diagrams, each with C++ ready to paste into a solution.
</p>
@@ -174,12 +181,37 @@ onUnmounted(() => clearTimeout(poll));
min-width: 0;
}
.intro {
max-width: 58ch;
margin: -8px 0 4px;
}
.page-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
}
.eyebrow {
margin: 0 0 4px;
color: var(--color-accent);
font-size: 0.75rem;
font-weight: bold;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
margin: 0;
font-size: 3rem;
}
.heading-count {
padding-bottom: 5px;
color: var(--color-ink-faint);
font-size: 0.85rem;
}
.ask {
display: grid;
gap: 10px;
padding: 16px;
padding: 18px;
border-top: 3px solid var(--color-accent);
}
.ask h2 {
font-size: 1.6rem;
@@ -218,6 +250,12 @@ textarea {
width: 100%;
max-width: 320px;
}
.controls {
padding: 8px;
border: 1px solid var(--color-line-soft);
border-radius: 8px;
background: rgb(255 255 255 / 0.42);
}
.list > li + li {
border-top: 1px solid var(--color-line-soft);
}
@@ -230,7 +268,7 @@ textarea {
text-decoration: none;
}
.item:hover {
background: var(--color-paper-tint);
background: var(--color-accent-soft);
}
li:first-child .item {
border-radius: 6px 6px 0 0;
@@ -259,4 +297,15 @@ time {
gap: 6px;
margin-top: 4px;
}
@media (max-width: 639px) {
.page-heading {
align-items: flex-start;
}
h1 {
font-size: 2.5rem;
}
.heading-count {
padding-top: 12px;
}
}
</style>
+22 -2
View File
@@ -102,6 +102,7 @@ async function forget() {
<template v-else-if="concept">
<header>
<p class="eyebrow">Reference guide</p>
<h1>{{ concept.title }}</h1>
<div class="facts">
<span v-for="t in concept.tags" :key="t" class="badge">{{ t }}</span>
@@ -168,9 +169,17 @@ async function forget() {
.back:hover {
color: var(--color-ink);
}
.eyebrow {
margin: 0 0 5px;
color: var(--color-accent);
font-size: 0.75rem;
font-weight: bold;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
font-size: 2.75rem;
margin: 0 0 10px;
font-size: 3rem;
margin: 0 0 12px;
overflow-wrap: anywhere;
}
h2 {
@@ -187,6 +196,12 @@ h2 {
.admin {
display: grid;
gap: 10px;
padding: 14px 16px;
border: 1px solid var(--color-line-soft);
border-top: 3px solid var(--color-accent);
border-radius: 8px;
background: var(--color-paper);
box-shadow: var(--shadow-paper);
}
.admin-row {
display: flex;
@@ -223,4 +238,9 @@ textarea {
.cli code {
font-family: var(--font-mono);
}
@media (max-width: 639px) {
h1 {
font-size: 2.5rem;
}
}
</style>
+51 -3
View File
@@ -109,6 +109,13 @@ const groups = computed(() => {
<template>
<section>
<header class="page-heading">
<div>
<p class="eyebrow">Practice archive</p>
<h1>Problems</h1>
</div>
<span v-if="!loading && !error" class="heading-count">{{ counts.all }} total</span>
</header>
<p v-if="!loading && !error" class="intro muted">
{{ counts.solved }} solved problems from USACO and other judges, each with its solution and test cases.
</p>
@@ -180,7 +187,32 @@ const groups = computed(() => {
<style scoped>
.intro {
margin-bottom: 16px;
max-width: 58ch;
margin: -8px 0 22px;
}
.page-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
}
.eyebrow {
margin: 0 0 4px;
color: var(--color-accent);
font-size: 0.75rem;
font-weight: bold;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
margin: 0;
font-size: 3rem;
}
.heading-count {
padding-bottom: 5px;
color: var(--color-ink-faint);
font-size: 0.85rem;
font-variant-numeric: tabular-nums;
}
.import-error {
margin: -8px 0 16px;
@@ -190,7 +222,11 @@ const groups = computed(() => {
flex-wrap: wrap;
gap: 8px 12px;
align-items: center;
margin-bottom: 16px;
margin-bottom: 12px;
padding: 8px;
border: 1px solid var(--color-line-soft);
border-radius: 8px;
background: rgb(255 255 255 / 0.42);
}
.tabs {
display: flex;
@@ -209,6 +245,7 @@ const groups = computed(() => {
border-color: var(--color-ink);
color: var(--color-ink);
background: var(--color-paper);
box-shadow: 0 1px 3px rgb(46 39 28 / 0.08);
}
.tabs .n {
color: var(--color-ink-faint);
@@ -260,7 +297,7 @@ input {
text-decoration: none;
}
.row:hover {
background: var(--color-paper-tint);
background: var(--color-accent-soft);
}
li:first-child .row {
border-radius: 6px 6px 0 0;
@@ -318,4 +355,15 @@ time {
display: contents;
}
}
@media (max-width: 639px) {
.page-heading {
align-items: flex-start;
}
h1 {
font-size: 2.5rem;
}
.heading-count {
padding-top: 12px;
}
}
</style>
+26 -6
View File
@@ -302,6 +302,7 @@ const moves = computed(() => {
<article v-else-if="problem" class="page">
<header class="head">
<RouterLink to="/" class="back">← All problems</RouterLink>
<p class="eyebrow">Problem archive</p>
<h1>{{ title(problem.name) }}</h1>
<div class="facts">
<span class="badge" :class="problem.status">{{ STATUS_LABELS[problem.status] }}</span>
@@ -490,7 +491,7 @@ const moves = computed(() => {
<style scoped>
.page {
display: grid;
gap: 28px;
gap: 32px;
min-width: 0;
}
.page > section {
@@ -504,9 +505,17 @@ const moves = computed(() => {
.back:hover {
color: var(--color-ink);
}
.eyebrow {
margin: 18px 0 0;
color: var(--color-accent);
font-size: 0.75rem;
font-weight: bold;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
font-size: 2.75rem;
margin: 6px 0 10px;
font-size: 3.25rem;
margin: 3px 0 12px;
overflow-wrap: anywhere;
}
h2 {
@@ -526,9 +535,10 @@ h2 {
font-size: 0.85em;
}
.admin {
padding: 12px 16px;
padding: 14px 16px;
display: grid;
gap: 12px;
border-top: 3px solid var(--color-accent);
}
.admin-row {
display: flex;
@@ -557,7 +567,8 @@ h2 {
background: var(--color-paper);
}
.notes {
padding: 16px 20px;
padding: 18px 22px;
border-left: 3px solid var(--color-accent);
}
.label-row {
display: flex;
@@ -694,7 +705,8 @@ h2 {
}
.file-tabs button.on {
border-color: var(--color-ink);
background: var(--color-paper);
background: var(--color-accent-soft);
color: var(--color-accent);
}
.filename {
font-family: var(--font-mono);
@@ -731,4 +743,12 @@ h2 {
.history time {
min-width: 7.5em;
}
@media (max-width: 639px) {
h1 {
font-size: 2.6rem;
}
.facts {
gap: 6px 10px;
}
}
</style>
+8 -1
View File
@@ -671,6 +671,7 @@ watch(() => props.name, load, { immediate: true });
min-height: 0;
overflow: auto;
padding: 14px 18px 20px;
border-top: 3px solid var(--color-accent);
display: grid;
align-content: start;
gap: 16px;
@@ -753,7 +754,7 @@ h2 {
}
.split:hover::after,
.split:focus-visible::after {
background: var(--color-line);
background: var(--color-accent);
}
.right {
min-width: 0;
@@ -767,6 +768,11 @@ h2 {
flex-wrap: wrap;
align-items: center;
gap: 8px;
padding: 8px;
border: 1px solid var(--color-line-soft);
border-radius: 8px;
background: var(--color-paper);
box-shadow: var(--shadow-paper);
}
.toolbar select {
padding: 6px 10px;
@@ -797,6 +803,7 @@ h2 {
gap: 4px 14px;
font-size: 0.85rem;
color: var(--color-ink-muted);
padding: 0 4px;
}
.status .draft {
color: var(--color-solving);
+43 -1
View File
@@ -156,6 +156,13 @@ const monthly = computed(() => {
<p v-else-if="error" class="error">{{ error }}</p>
<div v-else class="stats">
<header class="page-heading">
<div>
<p class="eyebrow">Progress journal</p>
<h1>Stats</h1>
</div>
<span class="heading-count">A year in review</span>
</header>
<div class="tiles">
<div v-for="t in tiles" :key="t.label" class="tile card">
<span class="label muted">{{ t.label }}</span>
@@ -226,6 +233,29 @@ const monthly = computed(() => {
gap: 28px;
min-width: 0;
}
.page-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
}
.eyebrow {
margin: 0 0 4px;
color: var(--color-accent);
font-size: 0.75rem;
font-weight: bold;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.page-heading h1 {
margin: 0;
font-size: 3rem;
}
.heading-count {
padding-bottom: 5px;
color: var(--color-ink-faint);
font-size: 0.85rem;
}
.stats > section {
min-width: 0;
}
@@ -242,6 +272,7 @@ h2 {
display: flex;
flex-direction: column;
padding: 14px 16px;
border-top: 3px solid var(--color-accent);
}
.label {
font-size: 0.8rem;
@@ -286,7 +317,7 @@ svg {
fill: var(--color-seq-4);
}
.cell.hot {
stroke: var(--color-ink);
stroke: var(--color-accent);
stroke-width: 1.5;
}
.legend {
@@ -342,4 +373,15 @@ tr:last-child td {
td:first-child {
white-space: nowrap;
}
@media (max-width: 640px) {
.page-heading {
align-items: flex-start;
}
.page-heading h1 {
font-size: 2.5rem;
}
.heading-count {
padding-top: 12px;
}
}
</style>