mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
SpecialSource Frontend (React) CD / deploy (push) Successful in 14s
- 상태줄 / 이중선 창 / 명령줄 / 기능키(F1~F5) 레이아웃, PC·모바일 반응형 - 메인에 새 글 창 추가, 게시판을 번호·글쓴이·날짜·조회·제목 표로 변경 - 팔레트 버튼을 F4 색상 순환으로 대체 (PaletteSwitch 삭제) - 나눔고딕코딩 글꼴 적용 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
133 lines
6.4 KiB
CSS
133 lines
6.4 KiB
CSS
/* PC통신(DOS 텍스트 모드) 화면 — 상태줄 / 본문 / 명령줄 / 기능키 줄이 화면을 꽉 채움 */
|
|
/* <html data-palette>는 layout.tsx 인라인 스크립트가 첫 페인트 전에 설정 → 깜빡임 없음 */
|
|
.frame, :global(html[data-palette="blue"]) .frame {
|
|
--bbs-bg: #0000a8; --bbs-fg: #c0c0c0; --bbs-hi: #ffffff; --bbs-accent: #55ffff;
|
|
--bbs-highlight: #ffff55; --bbs-dim: #8080d0; --bbs-bar: #00a8a8; --bbs-bar-fg: #000000; --bbs-sel: #a8a8a8;
|
|
}
|
|
:global(html[data-palette="green"]) .frame {
|
|
--bbs-bg: #001400; --bbs-fg: #33ff66; --bbs-hi: #b8ffc8; --bbs-accent: #66ff99;
|
|
--bbs-highlight: #ccff66; --bbs-dim: #1f8f3f; --bbs-bar: #33ff66; --bbs-bar-fg: #000000; --bbs-sel: #1f8f3f;
|
|
}
|
|
:global(html[data-palette="amber"]) .frame {
|
|
--bbs-bg: #140a00; --bbs-fg: #ffb000; --bbs-hi: #ffe0a0; --bbs-accent: #ffcc55;
|
|
--bbs-highlight: #ffffff; --bbs-dim: #a06a00; --bbs-bar: #ffb000; --bbs-bar-fg: #000000; --bbs-sel: #a06a00;
|
|
}
|
|
|
|
.frame {
|
|
height: 100dvh; /* dvh: 모바일 주소창이 나타나거나 사라져도 화면에 딱 맞음 */
|
|
display: grid; grid-template-rows: auto 1fr auto auto;
|
|
background: var(--bbs-bg); color: var(--bbs-fg);
|
|
font-size: clamp(14px, 1.15vw + 4px, 20px); line-height: 1.55;
|
|
position: relative; overflow: hidden;
|
|
}
|
|
/* CRT 스캔라인 + 가장자리 어둡게 */
|
|
.frame::after {
|
|
content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
|
|
background:
|
|
repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.18) 2px 3px),
|
|
radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.45) 100%);
|
|
}
|
|
.frame :focus-visible { outline: 2px solid var(--bbs-highlight); outline-offset: -2px; }
|
|
|
|
/* 상단 상태줄 (반전색) */
|
|
.status {
|
|
display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 2ch;
|
|
padding: 0 16px; background: var(--bbs-bar); color: var(--bbs-bar-fg); font-weight: 700; white-space: nowrap;
|
|
}
|
|
|
|
/* 본문: 이중선 창들을 배치하는 격자 */
|
|
.screen { overflow-y: auto; min-height: 0; padding: 1.4em 16px; }
|
|
.grid {
|
|
display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.6em 2ch;
|
|
max-width: 120ch; margin: 0 auto;
|
|
}
|
|
.win { border: 4px double var(--bbs-hi); padding: 1.1em 1.5ch 0.8em; position: relative; min-width: 0; }
|
|
.full { grid-column: 1 / -1; }
|
|
/* 창 제목: 위쪽 테두리 위에 얹기 */
|
|
.cap {
|
|
position: absolute; top: -0.85em; left: 2ch; padding: 0 1ch;
|
|
background: var(--bbs-bg); color: var(--bbs-highlight); font-weight: 700; white-space: nowrap;
|
|
}
|
|
|
|
.logo { margin: 0; font: inherit; font-size: 0.9em; font-weight: 700; line-height: 1.15; color: var(--bbs-accent); overflow: hidden; }
|
|
.num { color: var(--bbs-highlight); font-weight: 700; }
|
|
.dim { color: var(--bbs-dim); }
|
|
.accent { color: var(--bbs-accent); }
|
|
.error { color: #ff6b6b; }
|
|
.rule { border: none; border-top: 1px dashed var(--bbs-dim); margin: 0.6em 0; }
|
|
.footer { color: var(--bbs-dim); margin-top: 0.6em; }
|
|
.footer b { color: var(--bbs-highlight); }
|
|
|
|
/* 메인 메뉴: 마우스를 올리면 반전 막대 */
|
|
.menu { list-style: none; margin: 0; padding: 0; }
|
|
.menu li { display: flex; gap: 1ch; padding: 0 0.5ch; cursor: pointer; }
|
|
.menu li .en { margin-left: auto; }
|
|
.menu li:hover, .menu li:hover * { background: var(--bbs-sel); color: var(--bbs-bar-fg); }
|
|
|
|
/* 게시판 표 */
|
|
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
|
|
.tbl th {
|
|
color: var(--bbs-accent); text-align: left; font-weight: 700; white-space: nowrap;
|
|
border-bottom: 1px dashed var(--bbs-dim); padding: 0 1ch 0.2em 0;
|
|
}
|
|
.tbl td { padding: 0 1ch 0 0; white-space: nowrap; }
|
|
.tbl .idx { color: var(--bbs-highlight); text-align: right; }
|
|
.tbl .title { width: 100%; white-space: normal; color: var(--bbs-hi); }
|
|
.tbl .title.dim { color: var(--bbs-dim); }
|
|
.tbl tbody tr { cursor: pointer; }
|
|
.tbl tbody tr:hover td { background: var(--bbs-sel); color: var(--bbs-bar-fg); }
|
|
|
|
/* 글 읽기 */
|
|
.postHead span { color: var(--bbs-accent); }
|
|
.body { white-space: pre-wrap; color: var(--bbs-hi); }
|
|
|
|
/* 로그인 */
|
|
.loginForm { display: flex; flex-direction: column; gap: 0.5em; }
|
|
.loginForm label { display: flex; gap: 1ch; align-items: center; }
|
|
.loginForm input {
|
|
flex: 1; max-width: 30ch; background: none; border: none; border-bottom: 1px solid var(--bbs-dim);
|
|
color: var(--bbs-hi); font: inherit; outline: none; caret-color: var(--bbs-highlight);
|
|
}
|
|
.loginForm input:focus { border-bottom-color: var(--bbs-accent); }
|
|
.loginForm button {
|
|
align-self: flex-start; background: none; border: 1px solid var(--bbs-accent); color: var(--bbs-accent);
|
|
font: inherit; padding: 0 1.5ch; cursor: pointer;
|
|
}
|
|
.loginForm button:disabled { opacity: 0.5; cursor: wait; }
|
|
|
|
/* 명령줄 */
|
|
.cmdline { display: flex; align-items: center; gap: 1ch; padding: 0.3em 16px; border-top: 1px solid var(--bbs-dim); }
|
|
.prompt { color: var(--bbs-highlight); font-weight: 700; white-space: nowrap; }
|
|
.cmdline input {
|
|
flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--bbs-hi); font: inherit;
|
|
caret-color: var(--bbs-hi); caret-shape: block; /* 블록 커서 (지원 브라우저만, 나머지는 일반 커서) */
|
|
}
|
|
.cmdline input::placeholder { color: var(--bbs-dim); }
|
|
|
|
/* 하단 기능키 줄 */
|
|
.fkeys { display: flex; padding-bottom: env(safe-area-inset-bottom, 0px); }
|
|
.fkeys button {
|
|
flex: 1; min-width: 0; display: flex; justify-content: center; gap: 0.4ch; padding: 0.15em 0;
|
|
background: none; border: none; color: var(--bbs-hi); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
|
|
}
|
|
.fkeys button span { background: var(--bbs-bar); color: var(--bbs-bar-fg); padding: 0 0.4ch; }
|
|
.fkeys button:hover span { background: var(--bbs-hi); }
|
|
.fkeys button:disabled { opacity: 0.4; cursor: default; }
|
|
|
|
/* ── 모바일 ── */
|
|
@media (max-width: 720px) {
|
|
.frame { font-size: 15px; }
|
|
.grid { grid-template-columns: minmax(0, 1fr); }
|
|
.opt { display: none; }
|
|
.logo { font-size: 3.4vw; }
|
|
.tbl .wide { display: none; } /* 글쓴이·조회 숨김 */
|
|
.tbl .title { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.fkeys button { flex-direction: column; align-items: center; gap: 0; padding: 0.4em 0; font-size: 13px; border-top: 1px solid var(--bbs-dim); }
|
|
}
|
|
/* 손가락 터치 영역 확보 + iOS는 16px 미만 input에 포커스하면 화면을 확대함 */
|
|
@media (pointer: coarse) {
|
|
.menu li { padding: 0.35em 0.5ch; }
|
|
.tbl td { padding-block: 0.3em; }
|
|
.cmdline input, .loginForm input { font-size: 16px; }
|
|
}
|