Files
flowers/static/flower.css
T
2026-07-18 22:19:10 +02:00

140 lines
8.8 KiB
CSS

:root {
--bg: #0b1010;
--panel: #131b1a;
--panel-2: #182321;
--line: #293735;
--text: #f3f4ec;
--muted: #98a6a1;
--accent: #e5ff78;
--accent-ink: #172000;
--danger: #ff8e85;
--radius: 18px;
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
color: var(--text);
background: var(--bg);
font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 0%, #172522 0, transparent 35rem), var(--bg); }
button, input { font: inherit; }
a { color: inherit; }
.site-header { min-height: 76px; padding: 16px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.35rem Georgia, serif; text-decoration: none; }
.brand-logo { display: block; width: 34px; height: 34px; border-radius: 9px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions form { margin: 0; }
.text-link { color: var(--muted); text-decoration: none; font-size: .92rem; }
.text-link:hover { color: var(--text); }
.page-shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: clamp(44px, 7vw, 80px) 0; min-height: calc(100vh - 150px); }
footer { padding: 24px; color: #65716e; text-align: center; font-size: .8rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font: 600 clamp(2.25rem, 5vw, 4rem)/1.02 Georgia, serif; letter-spacing: -.035em; }
h2 { font: 600 1.55rem Georgia, serif; }
.eyebrow { margin-bottom: 10px; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
.muted, .intro p { color: var(--muted); line-height: 1.7; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px); align-items: center; gap: clamp(40px, 8vw, 96px); }
.intro { max-width: 620px; }
.intro p:not(.eyebrow) { max-width: 520px; font-size: 1.05rem; }
.card { background: linear-gradient(145deg, rgba(27, 39, 37, .94), rgba(16, 23, 22, .98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 26px 80px rgba(0, 0, 0, .25); }
.form-card { display: flex; flex-direction: column; padding: clamp(28px, 5vw, 44px); }
.form-card label { margin: 18px 0 8px; color: #c8cfcb; font-size: .82rem; font-weight: 600; }
.form-card label span { color: var(--muted); font-weight: 400; }
input { width: 100%; padding: 14px 15px; color: var(--text); background: #0d1413; border: 1px solid #344340; border-radius: 10px; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 255, 120, .1); }
input::placeholder { color: #61706c; }
.form-card .button { margin-top: 26px; }
.field-help { margin: 8px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.field-error { padding: 10px 12px; color: #ffd0cc; background: #3b1d1b; border-radius: 8px; font-size: .85rem; }
.button, .icon-button { border: 0; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 19px; border-radius: 10px; font-weight: 700; }
.button.primary { color: var(--accent-ink); background: var(--accent); }
.button.primary:hover { background: #efffa9; transform: translateY(-1px); }
.button.ghost { color: var(--text); background: transparent; border: 1px solid var(--line); }
.button.ghost:hover { background: var(--panel-2); }
.button.compact { min-height: 38px; padding: 0 14px; font-size: .82rem; }
.button.danger { color: #2c0906; background: var(--danger); }
.notices { position: fixed; z-index: 10; top: 88px; right: 24px; display: grid; gap: 8px; }
.notice { max-width: 380px; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 35px #0008; font-size: .86rem; }
.notice-success { border-color: #53642f; }
.notice-error { border-color: #713b36; }
.vault-header { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.vault-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.search-field { width: min(100%, 360px); }
.entry-list { display: grid; gap: 10px; }
.entry-row { margin: 0; }
.entry-button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 15px; padding: 17px 18px; color: var(--text); text-align: left; background: rgba(19, 27, 26, .78); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.entry-button:hover { background: var(--panel-2); border-color: #42524f; transform: translateX(2px); }
.entry-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); background: #263020; border-radius: 12px; font: 600 1.15rem Georgia, serif; }
.entry-icon.large { width: 64px; height: 64px; font-size: 1.55rem; border-radius: 16px; }
.entry-copy { min-width: 0; display: grid; gap: 4px; }
.entry-copy strong, .entry-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-copy span, .entry-button time { color: var(--muted); font-size: .82rem; }
.chevron { color: #6e7d78; font-size: 1.6rem; }
.empty-state { padding: 72px 20px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state > span { color: var(--accent); font-size: 2rem; }
.empty-state h2 { margin: 12px 0 6px; color: var(--text); }
.detail-card { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 58px); }
.detail-heading { display: flex; align-items: center; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.detail-heading h1 { margin: 0 0 5px; font-size: clamp(1.9rem, 4vw, 2.8rem); overflow-wrap: anywhere; }
.detail-heading p { margin-bottom: 6px; }
.details { margin: 0; }
.details > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: .8rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.secret-line { display: flex; align-items: center; gap: 10px; }
.secret-line > span { flex: 1; font-family: ui-monospace, monospace; }
.icon-button { padding: 7px 10px; color: var(--accent); background: #263020; border-radius: 7px; font-size: .76rem; }
.detail-actions { display: flex; justify-content: flex-end; padding-top: 30px; }
.editor-layout { max-width: 760px; margin: 0 auto; }
.editor-layout > div:first-child { margin-bottom: 34px; }
.editor-layout h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.form-card.wide { padding: clamp(25px, 5vw, 44px); }
.danger-zone { display: flex; justify-content: flex-end; margin-top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
body { padding-bottom: 68px; }
.site-header { min-height: 64px; padding: 14px 16px; }
.brand { font-size: 1.15rem; }
.brand-logo { width: 32px; height: 32px; }
.nav-actions { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; min-height: 60px; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); justify-content: center; gap: 6px; background: rgba(11, 16, 16, .97); border-top: 1px solid var(--line); }
.nav-actions .button { min-height: 42px; padding: 0 13px; }
.nav-actions .text-link { display: inline-flex; min-height: 42px; padding: 0 18px; align-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 9px; }
.auth-layout { grid-template-columns: 1fr; }
.intro { max-width: 34rem; }
.intro h1 { font-size: 2.35rem; }
.intro p:not(.eyebrow) { font-size: .95rem; }
.page-shell { width: min(calc(100% - 28px), 680px); padding: 38px 0; min-height: auto; }
.form-card { padding: 24px 20px; }
input { min-height: 48px; font-size: 16px; }
.notices { top: 74px; right: 14px; left: 14px; }
.notice { max-width: none; }
.vault-header { align-items: stretch; flex-direction: column; }
.vault-header h1 { font-size: 2.35rem; }
.search-field { width: 100%; }
.entry-button { min-height: 72px; grid-template-columns: 40px minmax(0, 1fr) 14px; gap: 12px; padding: 14px 12px; }
.entry-icon { width: 40px; height: 40px; }
.entry-button time { display: none; }
.detail-card { padding: 24px 18px; }
.detail-heading { align-items: flex-start; gap: 14px; padding-bottom: 24px; }
.entry-icon.large { width: 48px; height: 48px; border-radius: 12px; font-size: 1.2rem; }
.detail-heading h1 { font-size: 2rem; }
.details > div { grid-template-columns: 1fr; gap: 8px; }
.secret-line { flex-wrap: wrap; }
.secret-line > span { flex-basis: 100%; min-height: 28px; }
.icon-button { min-height: 42px; padding: 8px 14px; }
.detail-actions .button, .danger-zone .button { min-height: 48px; width: 100%; }
.detail-actions, .detail-actions form, .danger-zone { width: 100%; }
footer { display: none; }
}