Forum: a lighter new thread form
The topic is a row of small labels with the topic icons (its description and who sees it below), the wish a three-way switch (Meghallgatásra, Véleményekre, Beszélgetésre; two in a listening topic) with its meaning below, and the title and the text are one writing surface with the send button at its foot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -734,3 +734,55 @@ a.fh-online-item:hover { color: var(--gold); }
|
||||
@media (min-width: 640px) {
|
||||
.fshare-drawn { flex-direction: row; align-items: center; gap: 18px; }
|
||||
}
|
||||
|
||||
/* --- new thread: topic labels, a wish switch, one writing surface --- */
|
||||
.fnew .fnew-set legend { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
|
||||
.fnew-chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.fnew-chip {
|
||||
display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 12px;
|
||||
border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--ink-2);
|
||||
font-size: 15px; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
|
||||
}
|
||||
.fnew-chip:hover { border-color: var(--f-border-hover); color: var(--ink); }
|
||||
.fnew-chip .topic-icon {
|
||||
width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8;
|
||||
stroke-linecap: round; stroke-linejoin: round;
|
||||
}
|
||||
.fnew-chip:has(input:checked) { border-color: var(--gold); background: var(--f-tint-strong); color: var(--ink); font-weight: 600; }
|
||||
.fnew-chip:has(input:focus-visible), .fnew-switch-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
|
||||
.fnew-note { margin: 8px 2px 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
|
||||
.fnew-audience { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
|
||||
.fnew-audience svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
|
||||
|
||||
.fnew-switch { display: grid; gap: 4px; padding: 4px; border-radius: 14px; background: var(--f-tint); border: 1px solid var(--line); }
|
||||
.fnew-switch-opt {
|
||||
display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 8px;
|
||||
border-radius: 10px; color: var(--ink-2); font-size: 15px; text-align: center; cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
.fnew-switch-opt svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.fnew-switch-opt:hover { color: var(--ink); }
|
||||
.fnew-switch-opt:has(input:checked) { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(27, 34, 54, 0.1); }
|
||||
.fnew-switch-opt:has(input:checked) svg { color: var(--gold); }
|
||||
@media (max-width: 479px) {
|
||||
.fnew-switch-opt { flex-direction: column; gap: 3px; min-height: 58px; font-size: 13px; }
|
||||
}
|
||||
|
||||
.fnew-paper {
|
||||
display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel);
|
||||
overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
.fnew-paper:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--f-tint-strong); }
|
||||
.fnew-title {
|
||||
border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 18px 12px; color: var(--ink);
|
||||
font: 600 21px/1.3 var(--font-display); outline: none;
|
||||
}
|
||||
.fnew-body {
|
||||
border: 0; background: none; padding: 14px 18px; min-height: 200px; resize: vertical; color: var(--ink);
|
||||
font: 400 16px/1.6 var(--font-body); outline: none;
|
||||
}
|
||||
.fnew-title::placeholder, .fnew-body::placeholder { color: var(--muted); }
|
||||
.fnew-foot {
|
||||
display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
|
||||
padding: 10px 12px 10px 18px; border-top: 1px solid var(--line); background: var(--f-tint);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user