mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
This commit is contained in:
1 parent
cfda95c1ba
commit
a49df04adf
28 files changed
+734
-304
No files matched your search
@@ -0,0 +1,87 @@
|
||||
/* --- BBS 팔레트 (시대별 PC통신 느낌) --- */
|
||||
/* <html data-palette>는 layout.tsx 인라인 스크립트가 첫 페인트 전에 설정 → 깜빡임 없음 */
|
||||
.frame, :global(html[data-palette="blue"]) .frame {
|
||||
--bbs-bg: #000033; --bbs-fg: #d9d9f5; --bbs-accent: #55ffff;
|
||||
--bbs-highlight: #ffff55; --bbs-dim: #7d7dc4; --bbs-border: #ffffff; --bbs-glow: rgba(85, 255, 255, 0.35);
|
||||
}
|
||||
:global(html[data-palette="green"]) .frame {
|
||||
--bbs-bg: #000d00; --bbs-fg: #cdf7cd; --bbs-accent: #4dff4d;
|
||||
--bbs-highlight: #ffff55; --bbs-dim: #3f8f3f; --bbs-border: #4dff4d; --bbs-glow: rgba(77, 255, 77, 0.35);
|
||||
}
|
||||
:global(html[data-palette="amber"]) .frame {
|
||||
--bbs-bg: #190f00; --bbs-fg: #ffe3ba; --bbs-accent: #ffb347;
|
||||
--bbs-highlight: #ffffff; --bbs-dim: #a06a2c; --bbs-border: #ffb347; --bbs-glow: rgba(255, 179, 71, 0.35);
|
||||
}
|
||||
|
||||
.shell { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
|
||||
|
||||
.paletteSwitch { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
|
||||
.paletteBtn {
|
||||
background: none; border: 1px solid #333; color: #8fae93; font-size: 11px;
|
||||
padding: 6px 12px; cursor: pointer; letter-spacing: 0.02em;
|
||||
}
|
||||
.paletteBtn:hover, .active { border-color: #eafff0; color: #eafff0; }
|
||||
|
||||
.frame {
|
||||
width: 100%; background: var(--bbs-bg); color: var(--bbs-fg);
|
||||
border: 3px double var(--bbs-border);
|
||||
box-shadow: 0 0 24px var(--bbs-glow), 0 20px 60px rgba(0, 0, 0, 0.6);
|
||||
position: relative; overflow: hidden;
|
||||
}
|
||||
/* CRT 스캔라인 */
|
||||
.frame::after {
|
||||
content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
|
||||
background: linear-gradient(rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 50%);
|
||||
background-size: 100% 3px; mix-blend-mode: overlay; opacity: 0.5;
|
||||
}
|
||||
.frame :focus-visible { outline: 2px solid var(--bbs-accent); outline-offset: 2px; }
|
||||
|
||||
.titlebar {
|
||||
display: flex; justify-content: space-between; align-items: center; gap: 8px;
|
||||
padding: 8px 16px; border-bottom: 1px solid var(--bbs-border);
|
||||
font-size: 12.5px; font-weight: 700; color: var(--bbs-accent); letter-spacing: 0.03em;
|
||||
}
|
||||
.screen { padding: 18px 20px; min-height: 360px; font-size: 13.5px; line-height: 1.9; }
|
||||
|
||||
.row { display: flex; gap: 10px; cursor: pointer; padding: 1px 4px; margin: 0 -4px; }
|
||||
.row:hover { background: rgba(255, 255, 255, 0.08); }
|
||||
.num { color: var(--bbs-highlight); font-weight: 700; width: 1.4em; flex-shrink: 0; text-align: right; }
|
||||
.dim { color: var(--bbs-dim); }
|
||||
.accent { color: var(--bbs-accent); }
|
||||
|
||||
.title { color: var(--bbs-accent); font-weight: 700; margin-bottom: 4px; }
|
||||
.sub { color: var(--bbs-dim); font-size: 12px; margin-bottom: 10px; }
|
||||
.error { color: #ff6b6b; }
|
||||
.rule { border: none; border-top: 1px solid var(--bbs-dim); opacity: 0.5; margin: 8px 0 12px; }
|
||||
|
||||
.postRow { font-size: 13px; }
|
||||
.postIdx { color: var(--bbs-highlight); width: 1.6em; flex-shrink: 0; text-align: right; }
|
||||
.postTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.postMeta { color: var(--bbs-dim); font-size: 11.5px; flex-shrink: 0; white-space: nowrap; }
|
||||
|
||||
.body { white-space: pre-wrap; margin-bottom: 14px; }
|
||||
|
||||
.footer { color: var(--bbs-dim); font-size: 11.5px; }
|
||||
.footer b { color: var(--bbs-highlight); }
|
||||
|
||||
.cmdline {
|
||||
display: flex; align-items: center; gap: 8px; padding: 10px 16px;
|
||||
border-top: 1px solid var(--bbs-border); background: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.prompt { color: var(--bbs-highlight); font-size: 13px; font-weight: 700; flex-shrink: 0; }
|
||||
.cmdline input {
|
||||
flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--bbs-fg);
|
||||
font-size: 13.5px; caret-color: var(--bbs-highlight);
|
||||
}
|
||||
.cmdline input::placeholder { color: var(--bbs-dim); }
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.postMeta { display: none; }
|
||||
.screen { padding: 14px; }
|
||||
.titlebar { padding: 8px 12px; font-size: 11.5px; }
|
||||
}
|
||||
/* iOS는 16px 미만 input에 포커스하면 화면을 확대함 */
|
||||
@media (pointer: coarse) {
|
||||
.cmdline input { font-size: 16px; }
|
||||
.row { padding: 4px; } /* 손가락 터치 영역 확보 */
|
||||
}
|
||||
Reference in new issue
Block a user