MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Erakh design system - light mode |
No edit summary |
||
| (21 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
@import url('https://fonts.googleapis.com/css2?family= | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap'); | ||
:root { | :root { | ||
| Line 20: | Line 15: | ||
} | } | ||
body { | body { | ||
background-color: var(--bg) !important; | background-color: var(--bg) !important; | ||
color: var(--ink) !important; | color: var(--ink) !important; | ||
font-family: ' | font-family: 'Inter', sans-serif !important; | ||
font-size: | font-size: 16px !important; | ||
line-height: 1.7 !important; | line-height: 1.7 !important; | ||
padding-top: 100px !important; | |||
} | } | ||
h1, h2, h3, h4, h5, h6, | h1, h2, h3, h4, h5, h6, | ||
.firstHeading, #firstHeading { | .firstHeading, #firstHeading { | ||
font-family: ' | font-family: 'Inter', sans-serif !important; | ||
color: var(--ink) !important; | color: var(--ink) !important; | ||
font-weight: | font-weight: 600 !important; | ||
letter-spacing: 0. | letter-spacing: -0.01em !important; | ||
} | } | ||
/* | /* 링크 — 본문만 (헤더 링크 간섭 방지) */ | ||
a, a:visited { | #bodyContent a, | ||
#bodyContent a:visited, | |||
#footer a { | |||
color: var(--gold-dark) !important; | color: var(--gold-dark) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
a:hover { | #bodyContent a:hover, | ||
#footer a:hover { | |||
color: var(--gold) !important; | color: var(--gold) !important; | ||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | } | ||
/* | /* Vector 기본 UI 전부 숨김 */ | ||
#mw- | #mw-head, | ||
#mw- | #mw-panel, | ||
#p-logo, | |||
#mw-navigation, | |||
#mw-head-base, | |||
#mw-page-base { | |||
display: none !important; | |||
} | } | ||
#content, | #content, | ||
.mw-body { | .mw-body { | ||
background | margin: 0 !important; | ||
border: | max-width: none !important; | ||
padding: 2rem 2rem 4rem !important; | |||
background: var(--bg) !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
outline: none !important; | |||
} | } | ||
.mw-body-content { | |||
border: none !important; | |||
outline: none !important; | |||
} | } | ||
#bodyContent { | |||
margin-top: 1.5rem !important; | |||
# | |||
} | } | ||
#footer { | |||
background-color: var(--beige-1) !important; | |||
border-top: 1px solid var(--beige-2) !important; | |||
color: var(--ink- | color: var(--ink-muted) !important; | ||
font-family: ' | font-family: 'Inter', sans-serif !important; | ||
font-size: | font-size: 13px !important; | ||
} | } | ||
. | table.wikitable { | ||
background-color: var(--surface) !important; | |||
border-color: var(--beige-2) !important; | |||
color: var(-- | |||
} | } | ||
table.wikitable th { | |||
background-color: var(--beige-1) !important; | background-color: var(--beige-1) !important; | ||
color: var(--ink) !important; | |||
font-family: 'Inter', sans-serif !important; | |||
font-weight: 600 !important; | |||
border-color: var(--beige-2) !important; | |||
} | } | ||
table.wikitable td { | |||
. | border-color: var(--beige-2) !important; | ||
} | } | ||
hr { | |||
color: var(-- | border-color: var(--beige-2) !important; | ||
} | } | ||
#catlinks { | #catlinks { | ||
background-color: var(--beige-1) !important; | background-color: var(--beige-1) !important; | ||
border: 1px solid var(--beige-2) !important; | border: 1px solid var(--beige-2) !important; | ||
border-radius: 4px !important; | border-radius: 4px !important; | ||
font-family: ' | font-family: 'Inter', sans-serif !important; | ||
color: var(--ink-soft) !important; | color: var(--ink-soft) !important; | ||
} | } | ||
/* | /* ─── 3컬럼 레이아웃 ─── */ | ||
.erakh-layout { | |||
display: grid !important; | |||
border- | grid-template-columns: 15% minmax(0, 1fr) 13% !important; | ||
align-items: start !important; | |||
max-width: 1440px !important; | |||
margin: 0 auto !important; | |||
} | |||
.erakh-layout.no-toc { | |||
grid-template-columns: minmax(0, 1fr) 13% !important; | |||
} | |||
.erakh-col-left { | |||
position: sticky !important; | |||
top: 100px !important; | |||
max-height: calc(100vh - 100px) !important; | |||
overflow-y: auto !important; | |||
border-right: 1px solid var(--beige-2) !important; | |||
padding: 1.5rem 1rem !important; | |||
background: var(--bg) !important; | |||
} | |||
.erakh-col-center { | |||
min-width: 0 !important; | |||
} | |||
.erakh-col-right { | |||
position: sticky !important; | |||
top: 100px !important; | |||
max-height: calc(100vh - 100px) !important; | |||
overflow-y: auto !important; | |||
border-left: 1px solid var(--beige-2) !important; | |||
background: var(--beige-1) !important; | |||
padding: 1.5rem 1rem !important; | |||
} | |||
.erakh-toc-label { | |||
font-family: 'Inter', sans-serif !important; | |||
font-size: 0.6875rem !important; | |||
font-weight: 500 !important; | |||
letter-spacing: 0.1em !important; | |||
color: var(--ink-muted) !important; | color: var(--ink-muted) !important; | ||
font-family: ' | text-transform: uppercase !important; | ||
margin-bottom: 0.75rem !important; | |||
padding-bottom: 0.5rem !important; | |||
border-bottom: 1px solid var(--beige-2) !important; | |||
} | |||
#toc { | |||
display: none !important; | |||
background: transparent !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
font-family: 'Inter', sans-serif !important; | |||
} | |||
#toctitle { display: none !important; } | |||
#toc ul { | |||
list-style: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
#toc li { | |||
# | padding: 0.25rem 0 0.25rem 0.5rem !important; | ||
border-left: 2px solid transparent !important; | |||
line-height: 1.4 !important; | |||
} | |||
#toc li a { | |||
font-family: 'Inter', sans-serif !important; | |||
font-size: 0.78rem !important; | |||
color: var(--ink-soft) !important; | color: var(--ink-soft) !important; | ||
text-decoration: none !important; | |||
} | |||
#toc li a:hover { color: var(--ink) !important; } | |||
#toc .toclevel-2 { padding-left: 1.25rem !important; } | |||
#toc .toclevel-2 a { | |||
font-size: 0.74rem !important; | |||
color: var(--ink-muted) !important; | |||
} | |||
#toc .toclevel-3 { padding-left: 2rem !important; } | |||
#toc .toclevel-3 a { font-size: 0.72rem !important; } | |||
.tocnumber { | |||
color: var(--ink-muted) !important; | |||
margin-right: 0.35rem !important; | |||
} | |||
.erakh-sidebar-label { | |||
font-family: 'Inter', sans-serif !important; | |||
font-size: 0.6875rem !important; | |||
font-weight: 500 !important; | |||
letter-spacing: 0.1em !important; | |||
color: var(--ink-muted) !important; | |||
text-transform: uppercase !important; | |||
margin-bottom: 0.75rem !important; | |||
padding-bottom: 0.5rem !important; | |||
border-bottom: 1px solid var(--beige-2) !important; | |||
} | |||
.erakh-sidebar-placeholder { | |||
border: 1.5px dashed var(--beige-3) !important; | |||
border-radius: 4px !important; | |||
padding: 1.25rem 0.75rem !important; | |||
text-align: center !important; | |||
color: var(--ink-muted) !important; | |||
font-family: 'Inter', sans-serif !important; | |||
font-size: 0.72rem !important; | |||
line-height: 1.8 !important; | |||
margin-bottom: 0.75rem !important; | |||
} | } | ||
/* | @media (max-width: 900px) { | ||
table. | .erakh-layout, | ||
background | .erakh-layout.no-toc { | ||
border-color: | grid-template-columns: minmax(0, 1fr) 13% !important; | ||
} | |||
.erakh-col-left { display: none !important; } | |||
} | |||
@media (max-width: 600px) { | |||
.erakh-layout, | |||
.erakh-layout.no-toc { | |||
grid-template-columns: 1fr !important; | |||
} | |||
.erakh-col-right { display: none !important; } | |||
} | |||
/* ─── Infobox ─── */ | |||
.erakh-infobox { | |||
float: right !important; | |||
clear: right !important; | |||
width: 220px !important; | |||
margin: 0 0 1rem 1.5rem !important; | |||
background: #f0ebe0 !important; | |||
border: 1px solid #e2d9c8 !important; | |||
font-family: 'Inter', sans-serif !important; | |||
font-size: 0.78rem !important; | |||
line-height: 1.4 !important; | |||
} | |||
.erakh-ib-title { | |||
background: #2a2218 !important; | |||
color: #f9f6f0 !important; | |||
text-align: center !important; | |||
padding: 0.5rem 0.75rem !important; | |||
font-weight: 500 !important; | |||
font-size: 0.8rem !important; | |||
letter-spacing: 0.02em !important; | |||
} | |||
.erakh-ib-img { | |||
text-align: center !important; | |||
padding: 0.5rem !important; | |||
border-bottom: 1px solid #e2d9c8 !important; | |||
background: #e2d9c8 !important; | |||
} | |||
.erakh-ib-section { | |||
background: #e2d9c8 !important; | |||
color: #2a2218 !important; | |||
font-weight: 500 !important; | |||
font-size: 0.68rem !important; | |||
letter-spacing: 0.08em !important; | |||
text-transform: uppercase !important; | |||
padding: 0.3rem 0.6rem !important; | |||
border-top: 1px solid #c8b99a !important; | |||
border-bottom: 1px solid #c8b99a !important; | |||
} | |||
.erakh-ib-table { | |||
width: 100% !important; | |||
border-collapse: collapse !important; | |||
background: transparent !important; | |||
border: none !important; | |||
} | |||
.erakh-ib-table th { | |||
width: 72px !important; | |||
background: #ebe5d8 !important; | |||
color: #6b5e4e !important; | |||
font-weight: 500 !important; | |||
font-size: 0.7rem !important; | |||
padding: 0.3rem 0.5rem !important; | |||
border: none !important; | |||
border-bottom: 1px solid #e2d9c8 !important; | |||
text-align: left !important; | |||
vertical-align: top !important; | |||
} | |||
.erakh-ib-table td { | |||
color: #2a2218 !important; | |||
font-size: 0.75rem !important; | |||
padding: 0.3rem 0.5rem !important; | |||
border: none !important; | |||
border-bottom: 1px solid #e2d9c8 !important; | |||
vertical-align: top !important; | |||
} | |||
/* ─── Special:Search 페이지 기본 검색 UI 전체 숨김 ─── */ | |||
.mw-search-form-wrapper, | |||
.search-types, | |||
.mw-search-top-table, | |||
.mw-search-profile-form, | |||
form#search { | |||
display: none !important; | |||
} | } | ||
/* Hide MW help link on category pages */ | |||
.mw-indicator-mw-helplink { display: none !important; } | |||
.mw-indicator { display: none !important; } | |||
/* ── Box 템플릿 ── */ | |||
.erakh-box { | |||
background: #ffffff; | |||
border: 1px solid #c8a060; | |||
border-left: 0.3em solid #a07840; | |||
padding: 1em 1.25em; | |||
margin: 1em 0; | |||
color: #2a2218; | |||
font-size: 1em; | |||
line-height: 1.7; | |||
} | } | ||
.erakh-box-source { | |||
display: block; | |||
margin-top: 0.625em; | |||
color: #6b5e4e; | |||
font-size: 0.9em; | |||
} | } | ||
/* | /* 업로드 다이얼로그 크기 축소 */ | ||
.oo-ui-window-frame { | |||
max-height: 400px !important; | |||
height: 400px !important; | |||
} | } | ||
Latest revision as of 20:55, 24 May 2026
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
: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;
}
body {
background-color: var(--bg) !important;
color: var(--ink) !important;
font-family: 'Inter', sans-serif !important;
font-size: 16px !important;
line-height: 1.7 !important;
padding-top: 100px !important;
}
h1, h2, h3, h4, h5, h6,
.firstHeading, #firstHeading {
font-family: 'Inter', sans-serif !important;
color: var(--ink) !important;
font-weight: 600 !important;
letter-spacing: -0.01em !important;
}
/* 링크 — 본문만 (헤더 링크 간섭 방지) */
#bodyContent a,
#bodyContent a:visited,
#footer a {
color: var(--gold-dark) !important;
text-decoration: none !important;
}
#bodyContent a:hover,
#footer a:hover {
color: var(--gold) !important;
text-decoration: underline !important;
}
/* Vector 기본 UI 전부 숨김 */
#mw-head,
#mw-panel,
#p-logo,
#mw-navigation,
#mw-head-base,
#mw-page-base {
display: none !important;
}
#content,
.mw-body {
margin: 0 !important;
max-width: none !important;
padding: 2rem 2rem 4rem !important;
background: var(--bg) !important;
border: none !important;
box-shadow: none !important;
outline: none !important;
}
.mw-body-content {
border: none !important;
outline: none !important;
}
#bodyContent {
margin-top: 1.5rem !important;
}
#footer {
background-color: var(--beige-1) !important;
border-top: 1px solid var(--beige-2) !important;
color: var(--ink-muted) !important;
font-family: 'Inter', sans-serif !important;
font-size: 13px !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: 'Inter', sans-serif !important;
font-weight: 600 !important;
border-color: var(--beige-2) !important;
}
table.wikitable td {
border-color: var(--beige-2) !important;
}
hr {
border-color: var(--beige-2) !important;
}
#catlinks {
background-color: var(--beige-1) !important;
border: 1px solid var(--beige-2) !important;
border-radius: 4px !important;
font-family: 'Inter', sans-serif !important;
color: var(--ink-soft) !important;
}
/* ─── 3컬럼 레이아웃 ─── */
.erakh-layout {
display: grid !important;
grid-template-columns: 15% minmax(0, 1fr) 13% !important;
align-items: start !important;
max-width: 1440px !important;
margin: 0 auto !important;
}
.erakh-layout.no-toc {
grid-template-columns: minmax(0, 1fr) 13% !important;
}
.erakh-col-left {
position: sticky !important;
top: 100px !important;
max-height: calc(100vh - 100px) !important;
overflow-y: auto !important;
border-right: 1px solid var(--beige-2) !important;
padding: 1.5rem 1rem !important;
background: var(--bg) !important;
}
.erakh-col-center {
min-width: 0 !important;
}
.erakh-col-right {
position: sticky !important;
top: 100px !important;
max-height: calc(100vh - 100px) !important;
overflow-y: auto !important;
border-left: 1px solid var(--beige-2) !important;
background: var(--beige-1) !important;
padding: 1.5rem 1rem !important;
}
.erakh-toc-label {
font-family: 'Inter', sans-serif !important;
font-size: 0.6875rem !important;
font-weight: 500 !important;
letter-spacing: 0.1em !important;
color: var(--ink-muted) !important;
text-transform: uppercase !important;
margin-bottom: 0.75rem !important;
padding-bottom: 0.5rem !important;
border-bottom: 1px solid var(--beige-2) !important;
}
#toc {
display: none !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
font-family: 'Inter', sans-serif !important;
}
#toctitle { display: none !important; }
#toc ul {
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}
#toc li {
padding: 0.25rem 0 0.25rem 0.5rem !important;
border-left: 2px solid transparent !important;
line-height: 1.4 !important;
}
#toc li a {
font-family: 'Inter', sans-serif !important;
font-size: 0.78rem !important;
color: var(--ink-soft) !important;
text-decoration: none !important;
}
#toc li a:hover { color: var(--ink) !important; }
#toc .toclevel-2 { padding-left: 1.25rem !important; }
#toc .toclevel-2 a {
font-size: 0.74rem !important;
color: var(--ink-muted) !important;
}
#toc .toclevel-3 { padding-left: 2rem !important; }
#toc .toclevel-3 a { font-size: 0.72rem !important; }
.tocnumber {
color: var(--ink-muted) !important;
margin-right: 0.35rem !important;
}
.erakh-sidebar-label {
font-family: 'Inter', sans-serif !important;
font-size: 0.6875rem !important;
font-weight: 500 !important;
letter-spacing: 0.1em !important;
color: var(--ink-muted) !important;
text-transform: uppercase !important;
margin-bottom: 0.75rem !important;
padding-bottom: 0.5rem !important;
border-bottom: 1px solid var(--beige-2) !important;
}
.erakh-sidebar-placeholder {
border: 1.5px dashed var(--beige-3) !important;
border-radius: 4px !important;
padding: 1.25rem 0.75rem !important;
text-align: center !important;
color: var(--ink-muted) !important;
font-family: 'Inter', sans-serif !important;
font-size: 0.72rem !important;
line-height: 1.8 !important;
margin-bottom: 0.75rem !important;
}
@media (max-width: 900px) {
.erakh-layout,
.erakh-layout.no-toc {
grid-template-columns: minmax(0, 1fr) 13% !important;
}
.erakh-col-left { display: none !important; }
}
@media (max-width: 600px) {
.erakh-layout,
.erakh-layout.no-toc {
grid-template-columns: 1fr !important;
}
.erakh-col-right { display: none !important; }
}
/* ─── Infobox ─── */
.erakh-infobox {
float: right !important;
clear: right !important;
width: 220px !important;
margin: 0 0 1rem 1.5rem !important;
background: #f0ebe0 !important;
border: 1px solid #e2d9c8 !important;
font-family: 'Inter', sans-serif !important;
font-size: 0.78rem !important;
line-height: 1.4 !important;
}
.erakh-ib-title {
background: #2a2218 !important;
color: #f9f6f0 !important;
text-align: center !important;
padding: 0.5rem 0.75rem !important;
font-weight: 500 !important;
font-size: 0.8rem !important;
letter-spacing: 0.02em !important;
}
.erakh-ib-img {
text-align: center !important;
padding: 0.5rem !important;
border-bottom: 1px solid #e2d9c8 !important;
background: #e2d9c8 !important;
}
.erakh-ib-section {
background: #e2d9c8 !important;
color: #2a2218 !important;
font-weight: 500 !important;
font-size: 0.68rem !important;
letter-spacing: 0.08em !important;
text-transform: uppercase !important;
padding: 0.3rem 0.6rem !important;
border-top: 1px solid #c8b99a !important;
border-bottom: 1px solid #c8b99a !important;
}
.erakh-ib-table {
width: 100% !important;
border-collapse: collapse !important;
background: transparent !important;
border: none !important;
}
.erakh-ib-table th {
width: 72px !important;
background: #ebe5d8 !important;
color: #6b5e4e !important;
font-weight: 500 !important;
font-size: 0.7rem !important;
padding: 0.3rem 0.5rem !important;
border: none !important;
border-bottom: 1px solid #e2d9c8 !important;
text-align: left !important;
vertical-align: top !important;
}
.erakh-ib-table td {
color: #2a2218 !important;
font-size: 0.75rem !important;
padding: 0.3rem 0.5rem !important;
border: none !important;
border-bottom: 1px solid #e2d9c8 !important;
vertical-align: top !important;
}
/* ─── Special:Search 페이지 기본 검색 UI 전체 숨김 ─── */
.mw-search-form-wrapper,
.search-types,
.mw-search-top-table,
.mw-search-profile-form,
form#search {
display: none !important;
}
/* Hide MW help link on category pages */
.mw-indicator-mw-helplink { display: none !important; }
.mw-indicator { display: none !important; }
/* ── Box 템플릿 ── */
.erakh-box {
background: #ffffff;
border: 1px solid #c8a060;
border-left: 0.3em solid #a07840;
padding: 1em 1.25em;
margin: 1em 0;
color: #2a2218;
font-size: 1em;
line-height: 1.7;
}
.erakh-box-source {
display: block;
margin-top: 0.625em;
color: #6b5e4e;
font-size: 0.9em;
}
/* 업로드 다이얼로그 크기 축소 */
.oo-ui-window-frame {
max-height: 400px !important;
height: 400px !important;
}