미디어위키:Common.css: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
(같은 사용자의 중간 판 2개는 보이지 않습니다) | |||
47번째 줄: | 47번째 줄: | ||
.page-대문 .mai | .page-대문 .mai | ||
/* ===== | /* ===== Compact Segmented Toolbar ===== */ | ||
.portal- | .portal-toolbar { | ||
/* | /* 색/크기 기본값 */ | ||
-- | --ptb-radius: 8px; | ||
-- | --ptb-divider: #c8ccd1; /* 칸막이/외곽선 */ | ||
-- | --ptb-surface: #f6f7f8; /* 블록 배경 */ | ||
-- | --ptb-hover: #eaecf0; /* 호버 배경 */ | ||
--ptb-label: #202122; /* 글자색 */ | |||
display: | display: inline-flex; /* 한 덩어리 */ | ||
align-items: stretch; | |||
border: 1px solid var(--ptb-divider); | |||
border-radius: var(--ptb-radius); | |||
background: var(--ptb-surface); | |||
overflow: hidden; | overflow: hidden; /* 둥근 모서리 내부로 자르기 */ | ||
margin: | gap: 0; | ||
margin: 8px 0 18px; | |||
font-size: 0.93em; /* 살짝 컴팩트 */ | |||
line-height: 1.2; | |||
} | } | ||
/* 위키텍스트 줄바꿈이 만들어내는 <p>를 평탄화 → 가로 유지 */ | |||
.portal-toolbar > p { margin: 0; display: contents; } | |||
/* 각 칸(세그먼트) */ | /* 각 칸(세그먼트) */ | ||
.portal- | .portal-toolbar .tab { display: flex; } | ||
/* 칸막이 */ | |||
.portal-toolbar .tab + .tab { | |||
border-left: 1px solid var(--ptb-divider); | |||
} | } | ||
/* 링크(버튼) | /* 링크(버튼) — 칸 전체 클릭 영역 */ | ||
.portal- | .portal-toolbar .tab a { | ||
flex: | display: inline-flex; | ||
align-items: center; | |||
padding: | justify-content: center; | ||
min-height: | padding: 4px 10px; /* 좌우 여백 */ | ||
text- | min-height: 30px; /* 버튼 높이 */ | ||
min-width: 76px; /* 너무 좁아지지 않게 */ | |||
text-decoration: none; | |||
font-weight: 600; | font-weight: 600; | ||
color: | color: var(--ptb-label); | ||
white-space: nowrap; | |||
} | } | ||
.portal-toolbar .tab a:hover { background: var(--ptb-hover); } | |||
.portal-toolbar .tab a:active { background: #e0e3e7; } | |||
/* | /* 가운데 정렬 유틸 */ | ||
.portal- | .portal-toolbar-wrap { display: flex; justify-content: center; } | ||
/* | /* 다크 모드(Vector-2022 night & 시스템 다크) */ | ||
@media ( | html.skin-theme-clientpref-night .portal-toolbar, | ||
.portal- | @media (prefers-color-scheme: dark) { | ||
.portal-toolbar { | |||
--ptb-divider: #3a3f44; | |||
--ptb-surface: #2e3237; | |||
--ptb-hover: #3a3f45; | |||
--ptb-label: #e6e8ea; | |||
} | } | ||
} | } |