gsmol/web/style.css

151 lines
4.5 KiB
CSS
Raw Normal View History

2026-09-26 15:59:28 +03:00
:root {
--bg: #fafaf7;
--fg: #26251f;
--muted: #7a766b;
--line: #dcd8cc;
--accent: #3a5a40;
--warn: #9c3f2c;
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
margin: 0;
display: flex;
flex-direction: column;
height: 100vh;
font: 15px/1.5 system-ui, sans-serif;
color: var(--fg);
background: var(--bg);
}
button {
font: inherit;
padding: 4px 14px;
border: 1px solid var(--line);
border-radius: 4px;
background: #fff;
cursor: pointer;
}
button:hover { border-color: var(--accent); color: var(--accent); }
button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
header {
display: flex;
align-items: center;
gap: 16px;
padding: 8px 16px;
border-bottom: 1px solid var(--line);
}
header h1 { font-size: 16px; margin: 0; font-weight: 600; }
.actions { margin-left: auto; display: flex; gap: 8px; }
.account { font-family: var(--mono); font-size: 13px; color: var(--muted); }
main { flex: 1; min-height: 0; display: flex; }
.setup { flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.setup h2 { margin: 0; }
.setup .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
input, textarea {
font: inherit;
font-family: var(--mono);
font-size: 13px;
padding: 4px 8px;
border: 1px solid var(--line);
border-radius: 4px;
background: #fff;
}
.folders {
display: flex;
flex-direction: column;
border-right: 1px solid var(--line);
min-width: 110px;
}
.folders button {
border: 0;
border-bottom: 1px solid var(--line);
border-radius: 0;
text-align: left;
padding: 10px 14px;
background: none;
}
.list {
min-width: 280px;
max-width: 380px;
overflow-y: auto;
border-right: 1px solid var(--line);
}
.item { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:hover { background: #f1efe6; }
.item.selected { background: #ece9dd; }
.item .who { font-weight: 600; }
.item .who.unread::before { content: "● "; color: var(--accent); }
.item .subject { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .when { float: right; font-size: 12px; color: var(--muted); }
.view { flex: 1; overflow-y: auto; padding: 20px 24px; }
.placeholder { color: var(--muted); font-style: italic; }
.view h2 { margin: 0 0 2px; font-size: 17px; }
.view .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.view .fields { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.view pre {
white-space: pre-wrap;
font-family: inherit;
margin: 12px 0 0;
border-top: 1px solid var(--line);
padding-top: 12px;
}
.verified { color: var(--accent); font-size: 12px; }
.warn { color: var(--warn); }
.name-sender { display: flex; gap: 8px; margin: 12px 0 0; }
.name-sender input { flex: 1; }
2026-09-26 15:59:28 +03:00
dialog {
border: 1px solid var(--line);
border-radius: 8px;
padding: 20px;
min-width: 460px;
max-width: 640px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.25); }
#compose form { display: flex; flex-direction: column; gap: 8px; }
#compose label { display: flex; gap: 8px; align-items: center; }
#compose input { flex: 1; }
#compose textarea { font-family: inherit; }
#compose footer { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.error { color: var(--warn); font-size: 13px; margin-right: auto; }
#settings section { margin-bottom: 20px; }
#settings form { display: flex; gap: 8px; margin: 8px 0; }
#settings form input { flex: 1; }
#settings h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
#settings footer { display: flex; justify-content: flex-end; }
.hint { font-size: 12px; color: var(--muted); margin: 4px 0; }
.kv { list-style: none; padding: 0; margin: 4px 0; font-family: var(--mono); font-size: 12px; }
.kv li { display: flex; gap: 10px; padding: 3px 0; align-items: baseline; }
.kv li button { padding: 0 8px; font-size: 11px; }
.kv .key { word-break: break-all; color: var(--muted); flex: 1; }
#identity-card { font-family: var(--mono); font-size: 12px; }
#identity-card div { margin: 4px 0; word-break: break-all; }
#identity-card .seed { border: 1px dashed var(--warn); padding: 6px; }
.status {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 6px 16px;
font-size: 13px;
border-top: 1px solid var(--line);
background: #fff;
min-height: 30px;
white-space: pre-wrap;
}