MediaWiki:Common.css

From Erakh Codex
Revision as of 02:21, 9 April 2026 by Juoh (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* =============================================
   ERAKH CODEX — Common.css
   erakh.com 디자인 시스템 기준 (라이트 모드)
   ============================================= */

:root {
  --bg:        #f9f6f0;
  --beige-1:   #f0ebe0;
  --beige-2:   #e2d9c8;
  --beige-3:   #c8b99a;
  --beige-4:   #a89070;
  --gold:      #c8a060;
  --gold-dark: #a07840;
  --ink:       #2a2218;
  --ink-soft:  #6b5e4e;
  --ink-muted: #9c8e80;
  --surface:   #ffffff;
}

/* === Base === */
body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
}

/* === 제목 === */
h1, h2, h3, h4, h5, h6,
.firstHeading, #firstHeading {
  font-family: 'Cinzel', serif !important;
  color: var(--ink) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

/* === 링크 === */
a, a:visited {
  color: var(--gold-dark) !important;
  text-decoration: none !important;
}
a:hover {
  color: var(--gold) !important;
  text-decoration: underline !important;
}

/* === 페이지 배경 === */
#mw-page-base,
#mw-head-base {
  background-color: var(--beige-1) !important;
}

/* === 본문 영역 === */
#content,
.mw-body {
  background-color: var(--surface) !important;
  border: 1px solid var(--beige-2) !important;
  color: var(--ink) !important;
}

/* === 사이드바 === */
#mw-panel {
  background-color: transparent !important;
}

.vector-menu-portal h3,
#p-navigation h3,
#p-tb h3 {
  font-family: 'Cinzel', serif !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ink-muted) !important;
  border-bottom: 1px solid var(--beige-2) !important;
  padding-bottom: 4px !important;
}

.vector-menu-portal ul li a,
#p-navigation ul li a,
#p-tb ul li a {
  color: var(--ink-soft) !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 16px !important;
}

.vector-menu-portal ul li a:hover,
#p-navigation ul li a:hover,
#p-tb ul li a:hover {
  color: var(--gold) !important;
}

/* === 헤더 / 탭 === */
#mw-head {
  background-color: var(--beige-1) !important;
}

.vector-menu-tabs a,
#p-namespaces ul li a,
#p-views ul li a {
  font-family: 'Cinzel', serif !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  color: var(--ink-soft) !important;
}

li.selected a {
  color: var(--ink) !important;
}

/* === 검색창 === */
#searchInput {
  background-color: var(--beige-1) !important;
  border: 1px solid var(--beige-3) !important;
  color: var(--ink) !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  border-radius: 4px !important;
}

/* === 카테고리 === */
#catlinks {
  background-color: var(--beige-1) !important;
  border: 1px solid var(--beige-2) !important;
  border-radius: 4px !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  color: var(--ink-soft) !important;
}

/* === 푸터 === */
#footer {
  background-color: var(--beige-1) !important;
  border-top: 1px solid var(--beige-2) !important;
  color: var(--ink-muted) !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 14px !important;
}

#footer a {
  color: var(--ink-soft) !important;
}

/* === 위키테이블 === */
table.wikitable {
  background-color: var(--surface) !important;
  border-color: var(--beige-2) !important;
}

table.wikitable th {
  background-color: var(--beige-1) !important;
  color: var(--ink) !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 500 !important;
  border-color: var(--beige-2) !important;
}

table.wikitable td {
  border-color: var(--beige-2) !important;
}

/* === 구분선 === */
hr {
  border-color: var(--beige-2) !important;
}

/* =============================================
   LAYOUT — 기본 Vector UI 제거 + 풀width
   ============================================= */

/* 기존 헤더/사이드바/로고 전부 숨김 */
#mw-head,
#mw-panel,
#p-logo,
#mw-navigation,
#mw-head-base,
#mw-page-base {
  display: none !important;
}

/* 본문 풀width */
#mw-page-base { display: none !important; }

#content,
.mw-body {
  margin-left: 0 !important;
  margin-top: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 2rem 2rem 4rem !important;
  background: var(--surface) !important;
}

#bodyContent {
  margin-top: 1.5rem !important;
}

/* 전체 페이지 배경 */
body {
  padding-top: 56px !important;
}