Frontend update
This commit is contained in:
425
client/src/styles/theme.css
Normal file
425
client/src/styles/theme.css
Normal file
@@ -0,0 +1,425 @@
|
||||
/* ===== UOMysticmoon design tokens (from the Claude Design handoff) ===== */
|
||||
:root {
|
||||
--bg: #0e1318;
|
||||
--bg-deep: #0b0f14;
|
||||
--panel-a: #192231;
|
||||
--panel-b: #141a21;
|
||||
--panel-flat: #11161d;
|
||||
--line: #2a3544;
|
||||
--line-soft: #1d2733;
|
||||
--accent: #7f99bd;
|
||||
--accent-bright: #cdd9e8;
|
||||
--ink: #eef3f8;
|
||||
--head: #e6edf6;
|
||||
--text: #c4cdd8;
|
||||
--muted: #aeb8c4;
|
||||
--dim: #6f7d8e;
|
||||
--blue: #13243c;
|
||||
--mode-live: #5fb98a;
|
||||
--mode-maint: #e6c26a;
|
||||
|
||||
--serif: Georgia, "Times New Roman", serif;
|
||||
--display: Cinzel, Georgia, serif;
|
||||
--sans: "Helvetica Neue", Arial, sans-serif;
|
||||
|
||||
--shadow-card: 0 14px 34px rgba(0, 0, 0, 0.3);
|
||||
--panel-grad: linear-gradient(180deg, var(--panel-a), var(--panel-b));
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: var(--serif);
|
||||
line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* ===== Typography helpers ===== */
|
||||
.display {
|
||||
font-family: var(--display);
|
||||
font-weight: 600;
|
||||
color: var(--head);
|
||||
}
|
||||
.sans {
|
||||
font-family: var(--sans);
|
||||
}
|
||||
.eyebrow {
|
||||
margin: 0 0 14px;
|
||||
color: var(--accent);
|
||||
font-family: var(--sans);
|
||||
font-size: 0.74rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* ===== Layout shells ===== */
|
||||
.shell {
|
||||
width: min(1080px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
}
|
||||
.shell-mid {
|
||||
width: min(880px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
}
|
||||
.shell-narrow {
|
||||
width: min(760px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
}
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.page-body {
|
||||
flex: 1;
|
||||
padding: 56px 0 64px;
|
||||
}
|
||||
|
||||
/* ===== Cards / panels ===== */
|
||||
.card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 24px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
text-decoration: none;
|
||||
color: var(--ink);
|
||||
background: var(--panel-grad);
|
||||
box-shadow: var(--shadow-card);
|
||||
transition: border-color 0.18s, transform 0.18s;
|
||||
}
|
||||
a.card:hover,
|
||||
a.card:focus-visible {
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-3px);
|
||||
outline: none;
|
||||
}
|
||||
.card-kicker {
|
||||
color: var(--accent);
|
||||
font-family: var(--sans);
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.panel {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--panel-grad);
|
||||
}
|
||||
.panel-flat {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--panel-flat);
|
||||
}
|
||||
.note {
|
||||
border: 1px solid var(--line);
|
||||
border-left: 3px solid var(--accent);
|
||||
border-radius: 8px;
|
||||
background: rgba(19, 36, 60, 0.4);
|
||||
padding: 18px 22px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* ===== Grids ===== */
|
||||
.grid-2 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
.grid-3 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
.grid-4 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.grid-2,
|
||||
.grid-3,
|
||||
.grid-4 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== Pills / buttons ===== */
|
||||
.pill {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
padding: 7px 14px;
|
||||
color: var(--muted);
|
||||
background: rgba(11, 22, 48, 0.5);
|
||||
font-family: var(--sans);
|
||||
font-size: 0.86rem;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s, color 0.15s;
|
||||
}
|
||||
.pill:hover,
|
||||
.pill:focus-visible {
|
||||
border-color: var(--accent);
|
||||
background: var(--blue);
|
||||
color: var(--ink);
|
||||
outline: none;
|
||||
}
|
||||
.btn {
|
||||
border-radius: 999px;
|
||||
padding: 12px 26px;
|
||||
font-family: var(--sans);
|
||||
font-size: 0.92rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
border: 1px solid var(--accent);
|
||||
transition: background 0.16s, border-color 0.16s, transform 0.16s;
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--accent-bright);
|
||||
color: var(--bg-deep);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background: var(--ink);
|
||||
}
|
||||
.btn-ghost {
|
||||
border-color: rgba(200, 208, 216, 0.4);
|
||||
color: var(--ink);
|
||||
background: rgba(11, 22, 48, 0.45);
|
||||
}
|
||||
.btn-ghost:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--blue);
|
||||
}
|
||||
.btn-sq {
|
||||
border-radius: 8px;
|
||||
padding: 10px 18px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.btn[disabled],
|
||||
button[disabled] {
|
||||
opacity: 0.55;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ===== Forms ===== */
|
||||
.input,
|
||||
.textarea,
|
||||
.select {
|
||||
width: 100%;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 11px 14px;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: var(--sans);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.textarea {
|
||||
min-height: 200px;
|
||||
resize: vertical;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.input:focus,
|
||||
.textarea:focus,
|
||||
.select:focus {
|
||||
border-color: var(--accent);
|
||||
outline: none;
|
||||
}
|
||||
.field-label {
|
||||
display: block;
|
||||
margin-bottom: 7px;
|
||||
color: var(--muted);
|
||||
font-family: var(--sans);
|
||||
font-size: 0.78rem;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* ===== Headings used in prose ===== */
|
||||
.h1 {
|
||||
margin: 0;
|
||||
font-family: var(--display);
|
||||
font-weight: 600;
|
||||
font-size: clamp(2.4rem, 5.5vw, 3.6rem);
|
||||
line-height: 1.04;
|
||||
color: var(--head);
|
||||
}
|
||||
.lead {
|
||||
margin: 16px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 1.08rem;
|
||||
}
|
||||
|
||||
/* ===== Rich prose (wiki / newsletter body) ===== */
|
||||
.prose {
|
||||
color: var(--text);
|
||||
font-size: 1.06rem;
|
||||
}
|
||||
.prose h2 {
|
||||
margin: 32px 0 12px;
|
||||
font-family: var(--display);
|
||||
font-weight: 600;
|
||||
font-size: 1.6rem;
|
||||
color: var(--head);
|
||||
scroll-margin-top: 90px;
|
||||
}
|
||||
.prose h3 {
|
||||
margin: 24px 0 10px;
|
||||
font-family: var(--display);
|
||||
font-weight: 600;
|
||||
font-size: 1.25rem;
|
||||
color: var(--head);
|
||||
}
|
||||
.prose p {
|
||||
margin: 0 0 18px;
|
||||
}
|
||||
.prose ul,
|
||||
.prose ol {
|
||||
margin: 0 0 18px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
.prose li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.prose a {
|
||||
color: var(--accent);
|
||||
}
|
||||
.prose strong {
|
||||
color: #dbe2ea;
|
||||
}
|
||||
.prose img {
|
||||
max-width: 100%;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
|
||||
/* ===== Admin tables ===== */
|
||||
.adm-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.adm-th {
|
||||
text-align: left;
|
||||
padding: 11px 14px;
|
||||
color: var(--accent);
|
||||
font-family: var(--sans);
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.adm-td {
|
||||
padding: 13px 14px;
|
||||
color: var(--text);
|
||||
font-family: var(--sans);
|
||||
font-size: 0.88rem;
|
||||
border-bottom: 1px solid var(--line-soft);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.badge {
|
||||
border-radius: 999px;
|
||||
padding: 3px 11px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
font-family: var(--sans);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.badge-pub {
|
||||
background: rgba(95, 185, 138, 0.16);
|
||||
color: #7fd0a4;
|
||||
border: 1px solid rgba(95, 185, 138, 0.4);
|
||||
}
|
||||
.badge-draft {
|
||||
background: rgba(127, 153, 189, 0.14);
|
||||
color: #9fb0c6;
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.badge-admin {
|
||||
background: rgba(216, 226, 239, 0.12);
|
||||
color: #d8e2ef;
|
||||
border: 1px solid #3a4a5e;
|
||||
}
|
||||
.badge-editor {
|
||||
background: rgba(127, 153, 189, 0.1);
|
||||
color: var(--muted);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
.link-accent {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.link-accent:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ===== Misc ===== */
|
||||
.moon {
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle at 35% 30%, #eef3f8, #9fb0c6 55%, #5d6e88);
|
||||
}
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
.dim {
|
||||
color: var(--dim);
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
.spin {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border: 2px solid var(--line);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.7s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
.admin-grid {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
grid-template-columns: 236px 1fr;
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.admin-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.wiki-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 230px 1fr;
|
||||
gap: 44px;
|
||||
align-items: start;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.wiki-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user