본문으로 이동

미디어위키:Common.css

kosha Wiki
Maintenance (기여)님의 2026년 8월 10일 (월) 17:57 판 (Pretendard 적용 및 타이포그래피 조정)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.

  • 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
  • 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
  • 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
/* ────────────────────────────────────────────────────────────────
   전역 스타일. 폰트는 /custom/fonts/ 에서 자체 호스팅한다(폐쇄망 대비).
   되돌리려면 이 문서를 비우면 된다.
   ──────────────────────────────────────────────────────────────── */

@font-face {
	font-family: 'Pretendard Variable';
	font-weight: 45 920;
	font-style: normal;
	font-display: swap;
	src: url('/custom/fonts/PretendardVariable.woff2') format('woff2-variations');
}

body,
.mw-body,
.mw-parser-output {
	font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
		system-ui, 'Malgun Gothic', sans-serif;
}

/* 문단 제목 — 아래 구분선을 둬서 문서 구조가 눈에 들어오게 */
.mw-parser-output h2 {
	font-size: 1.65em;
	font-weight: 700;
	padding-bottom: 0.25em;
	border-bottom: 1px solid var(--border-color-base, rgba(255, 255, 255, 0.12));
	margin-top: 1.6em;
}

.mw-parser-output h3 {
	font-size: 1.3em;
	font-weight: 600;
	margin-top: 1.3em;
}

/* 본문 가독성 */
.mw-parser-output {
	line-height: 1.75;
	word-break: keep-all;      /* 한글 단어 중간에서 줄바꿈되지 않게 */
	overflow-wrap: break-word;
}

.mw-parser-output p {
	margin: 0.7em 0;
}

/* 표 */
.mw-parser-output .wikitable {
	border-collapse: collapse;
	font-size: 0.95em;
}

.mw-parser-output .wikitable > * > tr > th,
.mw-parser-output .wikitable > * > tr > td {
	padding: 0.45em 0.7em;
}

/* 각주 번호를 조금 작게 */
.mw-parser-output .reference {
	font-size: 0.82em;
}