Richte die Oberflaeche an den Designrichtlinien von Mitai aus.
Deploy Development / deploy (push) Successful in 22s
Deploy Development / deploy (push) Successful in 22s
Farben, Karten, Formulare und die Shell folgen Mitai: unten die Navigation, ab 1024 Pixel die Seitenleiste. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2558239bfd
commit
332be8376e
3 files changed
+432
-117
No files matched your search
@@ -50,7 +50,7 @@ export function Login() {
|
||||
<input type="password" autoComplete="current-password" value={password} onChange={(event) => setPassword(event.target.value)} required />
|
||||
</label>
|
||||
{error ? <p className="error">{error}</p> : null}
|
||||
<button type="submit" disabled={pending}>{pending ? "Anmeldung …" : "Anmelden"}</button>
|
||||
<button type="submit" className="btn-full" disabled={pending}>{pending ? "Anmeldung …" : "Anmelden"}</button>
|
||||
</form>
|
||||
{demo ? (
|
||||
<div className="demo">
|
||||
|
||||
@@ -2,6 +2,13 @@ import { useContext, useState } from "react";
|
||||
import { NavLink, Outlet, useNavigate } from "react-router-dom";
|
||||
import { SessionContext } from "../session.js";
|
||||
|
||||
const NAV = [
|
||||
{ to: "/", end: true, label: "Übersicht", icon: "home" },
|
||||
{ to: "/cases", label: "Akten", icon: "folder" },
|
||||
{ to: "/matters", label: "Vorgänge", icon: "layers" },
|
||||
{ to: "/rooms", label: "Datenräume", icon: "rooms" },
|
||||
];
|
||||
|
||||
export function Shell() {
|
||||
const { session, changeScope, logout } = useContext(SessionContext);
|
||||
const navigate = useNavigate();
|
||||
@@ -26,41 +33,98 @@ export function Shell() {
|
||||
navigate(`/search?q=${encodeURIComponent(term)}`);
|
||||
}
|
||||
|
||||
function scopeSelect() {
|
||||
return (
|
||||
<select value={session.scope.id} onChange={onScope} aria-label="Datenraum">
|
||||
{session.rooms.map((room) => (
|
||||
<option key={room.id} value={room.id}>{room.name}</option>
|
||||
))}
|
||||
</select>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="app">
|
||||
<header className="top">
|
||||
<div className="brand">
|
||||
<NavLink to="/">Tsumugu</NavLink>
|
||||
<span>{session.account.display_name}</span>
|
||||
<div className="app-shell">
|
||||
<aside className="desktop-sidebar" aria-label="Hauptnavigation">
|
||||
<div className="desktop-sidebar__brand">
|
||||
<div className="desktop-sidebar__logo" aria-hidden="true" />
|
||||
<div className="desktop-sidebar__title">Tsumugu</div>
|
||||
</div>
|
||||
<label className="scope">
|
||||
Datenraum
|
||||
<select value={session.scope.id} onChange={onScope}>
|
||||
{session.rooms.map((room) => (
|
||||
<option key={room.id} value={room.id}>
|
||||
{room.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
<form className="search" onSubmit={onSearch}>
|
||||
<input
|
||||
value={query}
|
||||
onChange={(event) => setQuery(event.target.value)}
|
||||
placeholder="Suchen"
|
||||
aria-label="Suchen"
|
||||
/>
|
||||
</form>
|
||||
<button type="button" className="quiet" onClick={logout}>Abmelden</button>
|
||||
</header>
|
||||
<nav className="nav">
|
||||
<NavLink to="/" end>Übersicht</NavLink>
|
||||
<NavLink to="/cases">Akten</NavLink>
|
||||
<NavLink to="/matters">Vorgänge</NavLink>
|
||||
<NavLink to="/rooms">Datenräume</NavLink>
|
||||
</nav>
|
||||
{error ? <p className="error banner">{error}</p> : null}
|
||||
<Outlet />
|
||||
<nav className="desktop-sidebar__nav">
|
||||
{NAV.map((item) => (
|
||||
<NavLink key={item.to} to={item.to} end={item.end} className={({ isActive }) => `desktop-sidebar__link${isActive ? " active" : ""}`}>
|
||||
<NavIcon name={item.icon} />
|
||||
<span>{item.label}</span>
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
<div className="desktop-sidebar__scope">
|
||||
<label>
|
||||
Datenraum
|
||||
{scopeSelect()}
|
||||
</label>
|
||||
</div>
|
||||
<div className="desktop-sidebar__footer">
|
||||
<div className="desktop-sidebar__user-text">
|
||||
<span className="desktop-sidebar__user-name">{session.account.display_name}</span>
|
||||
<span className="desktop-sidebar__user-tier">{session.scope.name}</span>
|
||||
</div>
|
||||
<button type="button" className="desktop-sidebar__logout" onClick={logout} title="Abmelden">
|
||||
<NavIcon name="logout" />
|
||||
</button>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div className="app-shell__column">
|
||||
<header className="app-header">
|
||||
<div className="app-header__bar mobile-only">
|
||||
<NavLink to="/" className="app-logo">Tsumugu</NavLink>
|
||||
<button type="button" className="quiet" onClick={logout}>Abmelden</button>
|
||||
</div>
|
||||
<label className="scope mobile-only">
|
||||
Datenraum
|
||||
{scopeSelect()}
|
||||
</label>
|
||||
<form className="search" onSubmit={onSearch}>
|
||||
<input
|
||||
value={query}
|
||||
onChange={(event) => setQuery(event.target.value)}
|
||||
placeholder="Suchen"
|
||||
aria-label="Suchen"
|
||||
/>
|
||||
<button type="submit">Suchen</button>
|
||||
</form>
|
||||
</header>
|
||||
{error ? <p className="error banner">{error}</p> : null}
|
||||
<div className="app-main">
|
||||
<Outlet />
|
||||
</div>
|
||||
<nav className="bottom-nav" aria-label="Hauptnavigation">
|
||||
{NAV.map((item) => (
|
||||
<NavLink key={item.to} to={item.to} end={item.end} className={({ isActive }) => `nav-item${isActive ? " active" : ""}`}>
|
||||
<NavIcon name={item.icon} />
|
||||
<span>{item.label}</span>
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function NavIcon({ name }) {
|
||||
const common = { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true };
|
||||
if (name === "home") {
|
||||
return <svg {...common}><path d="M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z" /></svg>;
|
||||
}
|
||||
if (name === "folder") {
|
||||
return <svg {...common}><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /></svg>;
|
||||
}
|
||||
if (name === "layers") {
|
||||
return <svg {...common}><path d="m12 3 9 5-9 5-9-5z" /><path d="m3 12 9 5 9-5" /><path d="m3 17 9 5 9-5" /></svg>;
|
||||
}
|
||||
if (name === "logout") {
|
||||
return <svg {...common}><path d="M9 6H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h4" /><path d="M14 16l4-4-4-4" /><path d="M18 12H9" /></svg>;
|
||||
}
|
||||
return <svg {...common}><path d="M4 8h16M4 12h16M4 16h10" /></svg>;
|
||||
}
|
||||
+334
-83
@@ -1,113 +1,364 @@
|
||||
:root {
|
||||
color: #1c1915;
|
||||
background: #f3efe6;
|
||||
font-family: "Segoe UI", "Helvetica Neue", sans-serif;
|
||||
--bg: #f4f3ef;
|
||||
--surface: #ffffff;
|
||||
--surface2: #f9f8f5;
|
||||
--border: rgba(0, 0, 0, 0.09);
|
||||
--border2: rgba(0, 0, 0, 0.16);
|
||||
--text1: #1c1b18;
|
||||
--text2: #5a5955;
|
||||
--text3: #9a9892;
|
||||
--accent: #1d9e75;
|
||||
--accent-light: #e1f5ee;
|
||||
--accent-dark: #0a5c43;
|
||||
--danger: #d85a30;
|
||||
--warn: #ef9f27;
|
||||
--nav-h: 56px;
|
||||
--nav-pad-top: 8px;
|
||||
--header-h: 52px;
|
||||
--font: system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #181816;
|
||||
--surface: #222220;
|
||||
--surface2: #1e1e1c;
|
||||
--border: rgba(255, 255, 255, 0.08);
|
||||
--border2: rgba(255, 255, 255, 0.14);
|
||||
--text1: #eeecea;
|
||||
--text2: #aaa9a4;
|
||||
--text3: #686762;
|
||||
--accent-light: #04342c;
|
||||
--accent-dark: #5dcaa5;
|
||||
}
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
html, body, #root { height: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--font);
|
||||
background: var(--bg);
|
||||
color: var(--text1);
|
||||
line-height: 1.45;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body { margin: 0; }
|
||||
|
||||
button, input, select, textarea {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
button, input, select, textarea { font: inherit; color: inherit; }
|
||||
a { color: var(--accent-dark); }
|
||||
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
|
||||
h1, .page-title { font-size: 20px; margin-bottom: 4px; }
|
||||
h2, h3 { font-size: 15px; }
|
||||
p { margin: 0; }
|
||||
|
||||
button, .linkish {
|
||||
background: #1f4d3a;
|
||||
color: #f7f4ee;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 0.45rem 0.9rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
padding: 10px 18px;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
transition: opacity 0.15s, transform 0.1s;
|
||||
}
|
||||
|
||||
button.quiet, button.danger {
|
||||
background: transparent;
|
||||
color: #1f4d3a;
|
||||
border: 1px solid #cfc4b2;
|
||||
button:active { transform: scale(0.97); }
|
||||
button:disabled { opacity: 0.5; pointer-events: none; }
|
||||
button.quiet, button.linkish, .linkish {
|
||||
background: var(--surface2);
|
||||
border: 1px solid var(--border2);
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
button.danger { color: #8c3a32; }
|
||||
|
||||
button:disabled { opacity: 0.6; }
|
||||
button.danger {
|
||||
background: #fcebeb;
|
||||
color: var(--danger);
|
||||
}
|
||||
.btn-full { width: 100%; }
|
||||
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
border: 1px solid #d9d0c2;
|
||||
background: #fffdf8;
|
||||
border-radius: 0.6rem;
|
||||
padding: 0.55rem 0.7rem;
|
||||
padding: 8px 10px;
|
||||
font-size: 15px;
|
||||
background: var(--surface2);
|
||||
border: 1.5px solid var(--border2);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
|
||||
|
||||
a { color: #1f4d3a; }
|
||||
|
||||
h1, h2, h3, h4 { font-family: Georgia, "Iowan Old Style", serif; font-weight: 500; margin: 0; }
|
||||
|
||||
.boot, .login { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
|
||||
|
||||
.login-card { width: min(32rem, 100%); }
|
||||
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
|
||||
textarea { min-height: 7rem; resize: vertical; }
|
||||
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text1); }
|
||||
|
||||
.card, .assumption {
|
||||
background: #fffdf8;
|
||||
border: 1px solid #e4dccb;
|
||||
border-radius: 1rem;
|
||||
padding: 1rem 1.1rem;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
}
|
||||
.assumption {
|
||||
background: var(--accent-light);
|
||||
color: var(--text1);
|
||||
}
|
||||
.card + .card, .stack > .card + .card { margin-top: 12px; }
|
||||
.card h2, .card h3, .form-section-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text3);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.assumption { background: #f6f1e4; }
|
||||
|
||||
.stack { display: grid; gap: 0.75rem; }
|
||||
.stack { display: grid; gap: 12px; }
|
||||
.stack.compact { align-content: start; }
|
||||
.inline { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
|
||||
.inline > input, .inline > select { flex: 1 1 14rem; }
|
||||
.row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
|
||||
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
|
||||
.inline > input, .inline > select, .inline > label { flex: 1 1 14rem; }
|
||||
.row { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
|
||||
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; margin: 0; color: #6d6458; }
|
||||
.lead, .muted, .notice { color: #5e564c; }
|
||||
.error { color: #8c3a32; }
|
||||
.banner { margin: 0 1.25rem; }
|
||||
.eyebrow {
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 4px;
|
||||
color: var(--text3);
|
||||
}
|
||||
.lead, .muted { color: var(--text2); font-size: 14px; font-weight: 400; }
|
||||
.notice { color: var(--accent-dark); font-size: 14px; }
|
||||
.error { color: var(--danger); font-size: 14px; }
|
||||
.banner { margin: 0 16px 8px; }
|
||||
|
||||
.app { min-height: 100vh; }
|
||||
.top, .nav, .page { padding: 0.9rem 1.25rem; }
|
||||
.top { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; border-bottom: 1px solid #e4dccb; }
|
||||
.brand { display: grid; }
|
||||
.brand a { font-family: Georgia, serif; font-size: 1.5rem; text-decoration: none; }
|
||||
.scope { min-width: 14rem; }
|
||||
.search { flex: 1 1 12rem; }
|
||||
.nav { display: flex; gap: 1rem; }
|
||||
.nav a { text-decoration: none; }
|
||||
.nav a.active { border-bottom: 2px solid #1f4d3a; }
|
||||
.boot, .login {
|
||||
min-height: 100%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px 16px;
|
||||
background: var(--bg);
|
||||
}
|
||||
.login-card { width: min(28rem, 100%); display: grid; gap: 16px; }
|
||||
.login-card h1 { color: var(--accent); letter-spacing: -0.02em; font-size: 28px; margin: 0; }
|
||||
|
||||
.page { display: grid; gap: 1rem; }
|
||||
.page-head { display: flex; justify-content: space-between; gap: 1rem; }
|
||||
.split, .forms { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
|
||||
.index, .work, .people, .timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
|
||||
.index li, .work li, .people li { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; padding-bottom: 0.6rem; border-bottom: 1px solid #eee6d8; }
|
||||
.app-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.app-shell__column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
.app-header {
|
||||
min-height: var(--header-h);
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 10px 16px;
|
||||
background: var(--surface);
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
.app-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
||||
.app-logo { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; text-decoration: none; }
|
||||
.scope { min-width: 0; }
|
||||
.search { display: flex; gap: 8px; }
|
||||
.search input { flex: 1; }
|
||||
.app-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px 16px calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px) + 20px);
|
||||
}
|
||||
|
||||
.bottom-nav {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
display: flex;
|
||||
background: var(--surface);
|
||||
border-top: 1px solid var(--border);
|
||||
z-index: 20;
|
||||
padding: var(--nav-pad-top) 6px env(safe-area-inset-bottom, 0px);
|
||||
min-height: calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
.nav-item {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 3px;
|
||||
color: var(--text3);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-size: 10px;
|
||||
line-height: 1.15;
|
||||
padding: 2px 4px 4px;
|
||||
}
|
||||
.nav-item.active { color: var(--accent); }
|
||||
.nav-item svg { flex-shrink: 0; }
|
||||
|
||||
.desktop-sidebar {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
width: 220px;
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 30;
|
||||
background: var(--surface);
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 16px 0;
|
||||
}
|
||||
.desktop-sidebar__brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 16px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.desktop-sidebar__logo {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.desktop-sidebar__title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.desktop-sidebar__nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 0 0 12px;
|
||||
}
|
||||
.desktop-sidebar__link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 16px 10px 13px;
|
||||
text-decoration: none;
|
||||
color: var(--text2);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
border-left: 3px solid transparent;
|
||||
border-radius: 0 8px 8px 0;
|
||||
}
|
||||
.desktop-sidebar__link:hover { background: var(--surface2); color: var(--text1); }
|
||||
.desktop-sidebar__link.active {
|
||||
background: var(--accent-light);
|
||||
color: var(--accent);
|
||||
border-left-color: var(--accent);
|
||||
}
|
||||
.desktop-sidebar__scope { padding: 0 16px 12px; }
|
||||
.desktop-sidebar__footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 16px 12px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.desktop-sidebar__user-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
|
||||
.desktop-sidebar__user-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.desktop-sidebar__user-tier { font-size: 11px; color: var(--text3); }
|
||||
.desktop-sidebar__logout {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text3);
|
||||
padding: 8px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.desktop-sidebar__logout:hover { color: var(--danger); background: rgba(216, 90, 48, 0.08); }
|
||||
|
||||
.page { display: grid; gap: 16px; }
|
||||
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
|
||||
.split, .forms { display: grid; gap: 12px; }
|
||||
.forms > form {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
}
|
||||
.index, .work, .people, .timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
|
||||
.index li, .work li, .people li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.work li { align-items: start; }
|
||||
.work li div, .people li { display: grid; }
|
||||
.work li div, .people li { display: grid; gap: 2px; }
|
||||
.index a { font-weight: 600; text-decoration: none; }
|
||||
|
||||
.item { border-top: 1px solid #eee6d8; padding-top: 0.8rem; display: grid; gap: 0.6rem; }
|
||||
.item-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
|
||||
.dates { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0; }
|
||||
.item { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 10px; }
|
||||
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
|
||||
.dates { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; }
|
||||
.dates div { display: grid; }
|
||||
.dates dt { font-size: 0.75rem; color: #6d6458; }
|
||||
.dates dt { font-size: 12px; color: var(--text3); }
|
||||
.dates dd { margin: 0; }
|
||||
.annotations ul { padding-left: 1rem; }
|
||||
.annotations ul { padding-left: 1rem; margin: 8px 0 0; }
|
||||
.annotations li { display: grid; }
|
||||
.ref { display: grid; }
|
||||
.check { display: flex; gap: 0.5rem; align-items: center; }
|
||||
.ref { display: grid; gap: 2px; }
|
||||
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
|
||||
.check input { width: auto; }
|
||||
.demo { border-top: 1px solid #eee6d8; padding-top: 0.8rem; }
|
||||
.demo ul { padding-left: 1.1rem; }
|
||||
.demo li { margin: 0.4rem 0; }
|
||||
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.8rem; }
|
||||
.demo { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; }
|
||||
.demo ul { padding-left: 1.1rem; margin: 0; }
|
||||
.demo li { margin: 6px 0; display: grid; gap: 4px; }
|
||||
.demo code { font-size: 13px; color: var(--text2); }
|
||||
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
|
||||
.timeline time { color: var(--text3); font-size: 13px; }
|
||||
.timeline div { display: grid; }
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.timeline li { grid-template-columns: 1fr; }
|
||||
.item-head, .index li, .work li { display: grid; }
|
||||
@media (min-width: 1024px) {
|
||||
.app-shell { display: block; max-width: none; margin: 0; width: 100%; min-height: 100%; }
|
||||
.desktop-sidebar { display: flex; }
|
||||
.app-shell__column { margin-left: 220px; min-height: 100vh; }
|
||||
.mobile-only { display: none !important; }
|
||||
.bottom-nav { display: none !important; }
|
||||
.app-header { grid-template-columns: 1fr; }
|
||||
.app-main {
|
||||
padding: 24px 32px 32px;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 100%;
|
||||
}
|
||||
.split { grid-template-columns: 1fr 1fr; }
|
||||
.forms { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.timeline li, .item-head, .index li, .work li { display: grid; }
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
button.danger { background: rgba(216, 90, 48, 0.16); }
|
||||
.notice { color: var(--accent-dark); }
|
||||
}
|
||||
Reference in new issue
Block a user