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>
365 lines
9.7 KiB
CSS
365 lines
9.7 KiB
CSS
:root {
|
|
--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%;
|
|
}
|
|
|
|
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 {
|
|
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: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 {
|
|
background: #fcebeb;
|
|
color: var(--danger);
|
|
}
|
|
.btn-full { width: 100%; }
|
|
|
|
input, select, textarea {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
font-size: 15px;
|
|
background: var(--surface2);
|
|
border: 1.5px solid var(--border2);
|
|
border-radius: 8px;
|
|
}
|
|
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: 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;
|
|
}
|
|
|
|
.stack { display: grid; gap: 12px; }
|
|
.stack.compact { align-content: start; }
|
|
.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.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; }
|
|
|
|
.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; }
|
|
|
|
.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; gap: 2px; }
|
|
.index a { font-weight: 600; text-decoration: none; }
|
|
|
|
.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: 12px; color: var(--text3); }
|
|
.dates dd { margin: 0; }
|
|
.annotations ul { padding-left: 1rem; margin: 8px 0 0; }
|
|
.annotations li { display: grid; }
|
|
.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 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 (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); }
|
|
}
|