Files
uniare.sori.studio/style/app-shell.css
zenn a281d731a1 v4.0.0: UNIARE 리브랜딩·레이아웃·덱 UX 개선
제품명·헤더 로고 이미지 통일, 덱 이름 변경·조회 수 제거, 썸네일 홀드 미리보기를 누르는 동안만 표시하도록 수정하고 Tailwind CSS를 재빌드했다.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 11:19:07 +09:00

189 lines
3.5 KiB
CSS

/**
* 앱 공통 셸 (헤더 1280px / max-w-7xl, 광고 레일)
* index.html, cardList.html 과 동일한 콘텐츠 최대 너비 기준
*/
:root {
--app-max-width: 80rem; /* 1280px — Tailwind max-w-7xl */
--app-gutter: 1.5rem;
--app-nav-height: 4rem;
--app-ad-rail-width: 18.75rem; /* 300px — 디스플레이 광고 */
}
.app-page {
font-family: 'Inter', 'Noto Sans KR', sans-serif;
min-height: 100vh;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
color: #0f172a;
}
.app-nav {
position: sticky;
top: 0;
z-index: 50;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(12px);
border-bottom: 1px solid #e2e8f0;
}
.app-nav-inner {
max-width: var(--app-max-width);
margin: 0 auto;
padding: 0 var(--app-gutter);
height: var(--app-nav-height);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.app-brand {
display: inline-flex;
align-items: center;
text-decoration: none;
line-height: 0;
}
.app-brand-logo {
height: 2rem;
width: auto;
display: block;
}
.app-ad-top {
max-width: var(--app-max-width);
margin: 0 auto;
padding: 0.75rem var(--app-gutter) 0;
}
.app-shell {
max-width: var(--app-max-width);
margin: 0 auto;
padding: 2rem var(--app-gutter) 5rem;
}
@media (min-width: 640px) {
.app-shell {
padding-top: 3rem;
}
}
.app-body-layout {
display: flex;
flex-direction: column;
gap: 1.5rem;
align-items: stretch;
}
.app-main {
flex: 1;
min-width: 0;
}
.app-ad-rail {
display: none;
}
.app-ad-slot {
overflow: hidden;
border-radius: 0.75rem;
background: #f8fafc;
border: 1px dashed #e2e8f0;
}
.app-ad-slot--leaderboard {
min-height: 90px;
width: 100%;
}
.app-ad-slot--skyscraper {
min-height: 600px;
width: 100%;
}
.app-ad-slot--skyscraper:has(ins.adsbygoogle) {
min-height: auto;
border: none;
background: transparent;
}
.app-ad-slot ins {
display: block;
width: 100%;
}
@media (min-width: 1024px) {
.app-ad-top {
display: none;
}
.app-body-layout {
flex-direction: row;
align-items: flex-start;
}
.app-ad-rail {
display: block;
flex: 0 0 var(--app-ad-rail-width);
width: var(--app-ad-rail-width);
position: sticky;
top: calc(var(--app-nav-height) + 1rem);
}
}
@media (max-width: 1023px) {
.app-ad-rail {
display: none;
}
}
/* 페이지 제목 + ? 도움말 */
.page-title-row {
display: flex;
align-items: center;
gap: 0.625rem;
}
.page-title-row h1 {
margin: 0;
flex: 1;
min-width: 0;
}
.page-help-btn {
flex-shrink: 0;
width: 1.625rem;
height: 1.625rem;
border-radius: 50%;
border: 1px solid #cbd5e1;
background: #f8fafc;
color: #64748b;
font-size: 0.75rem;
font-weight: 800;
cursor: pointer;
line-height: 1;
padding: 0;
transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.page-help-btn:hover,
.page-help-btn[aria-expanded='true'] {
background: #eff6ff;
border-color: #93c5fd;
color: #2563eb;
}
.page-help-tooltip {
position: absolute;
z-index: 300;
max-width: min(22rem, calc(100vw - 2rem));
padding: 0.75rem 1rem;
font-size: 0.8125rem;
line-height: 1.55;
color: #334155;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}