틀:정보상자/styles.css: 두 판 사이의 차이
둘러보기로 이동
검색으로 이동
편집 요약 없음 태그: 수동 되돌리기 되돌려진 기여 모바일 편집 모바일 웹 편집 |
편집 요약 없음 태그: 수동 되돌리기 모바일 편집 모바일 웹 편집 |
||
| 1번째 줄: | 1번째 줄: | ||
.infobox { | .infobox { | ||
--infobox- | --infobox-outer: #5d3b30; | ||
--infobox- | --infobox-outer-edge: #45291f; | ||
--infobox- | --infobox-inner: #ead5af; | ||
--infobox- | --infobox-inner-edge: #cfb283; | ||
--infobox- | --infobox-panel: #f3e8d7; | ||
--infobox- | --infobox-panel-edge: #b88d68; | ||
--infobox- | --infobox-image-frame: #925f46; | ||
--infobox- | --infobox-image-inner: #e9dcc8; | ||
--infobox- | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png"); | ||
--infobox- | --infobox-ribbon: #875340; | ||
--infobox-label | --infobox-ribbon-edge: #6a3f31; | ||
--infobox- | --infobox-row-label: #9a644c; | ||
--infobox- | --infobox-row-label-edge: #7a4a38; | ||
--infobox- | --infobox-row-value: #f7efe4; | ||
--infobox- | --infobox-row-value-edge: #bca184; | ||
--infobox-link: # | --infobox-text: #493329; | ||
--infobox-link-hover: # | --infobox-link: #8f573f; | ||
--infobox-focus: # | --infobox-link-hover: #653929; | ||
--infobox- | --infobox-focus: #ad775f; | ||
--infobox- | --infobox-title-text: #fffaf4; | ||
--infobox | --infobox-text-outline: #472b20; | ||
--infobox-shadow: rgba(68, 42, 31, 0.24); | |||
position: relative; | position: relative; | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
| 29번째 줄: | 29번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.25rem 1.25rem; | margin: 0 0 1.25rem 1.25rem; | ||
padding: 0. | padding: 0.95rem 0.85rem; | ||
border: | border: 0; | ||
border-radius: | border-radius: 30px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: var(--infobox-outer); | ||
color: var(--infobox-text); | |||
color: var(--infobox- | |||
font-family: | font-family: | ||
"SB Aggro L", | "SB Aggro L", | ||
| 57번째 줄: | 47번째 줄: | ||
font-weight: 300; | font-weight: 300; | ||
line-height: 1.55; | line-height: 1.55; | ||
box-shadow: | box-shadow: 0 10px 26px var(--infobox-shadow); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| 65번째 줄: | 53번째 줄: | ||
.infobox::before { | .infobox::before { | ||
position: absolute; | position: absolute; | ||
top: 16px; | |||
top: | right: 14px; | ||
right: | bottom: 16px; | ||
bottom: | left: 14px; | ||
left: | border: 4px solid var(--infobox-inner-edge); | ||
border- | border-radius: 26px; | ||
box-sizing: border-box; | |||
background: var(--infobox-inner); | |||
background- | |||
content: ""; | content: ""; | ||
} | } | ||
.infobox::after { | .infobox::after { | ||
position: absolute; | position: absolute; | ||
top: 27px; | |||
top: | right: 24px; | ||
right: | bottom: 27px; | ||
bottom: | left: 24px; | ||
left: | border: 1px solid rgba(146, 95, 70, 0.28); | ||
border: 1px | border-radius: 20px; | ||
border-radius: | |||
box-sizing: border-box; | box-sizing: border-box; | ||
content: ""; | content: ""; | ||
} | } | ||
| 105번째 줄: | 87번째 줄: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 100%; | width: calc(100% - 24px); | ||
margin: 0 auto; | |||
padding: 0. | padding: 0.96rem 2.25rem; | ||
border: | border: 2px solid var(--infobox-ribbon-edge); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: var(--infobox-ribbon); | ||
clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); | |||
color: var(--infobox-title-text); | |||
clip-path: polygon( | |||
color: | |||
font-family: | font-family: | ||
"SB Aggro B", | "SB Aggro B", | ||
| 136번째 줄: | 104번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 1. | font-size: 1.28rem; | ||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.14; | |||
letter-spacing: -0.03em; | |||
text-align: center; | text-align: center; | ||
text-shadow: | text-shadow: | ||
-1px -1px 0 var(--infobox-text-outline), | |||
0 | 0 -1px 0 var(--infobox-text-outline), | ||
1px -1px 0 var(--infobox-text-outline), | |||
-1px 0 0 var(--infobox-text-outline), | |||
1px 0 0 var(--infobox-text-outline), | |||
-1px 1px 0 var(--infobox-text-outline), | |||
0 1px 0 var(--infobox-text-outline), | |||
1px 1px 0 var(--infobox-text-outline); | |||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: keep-all; | word-break: keep-all; | ||
| 159번째 줄: | 129번째 줄: | ||
} | } | ||
/* | /* 내부 영역 */ | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0. | margin-top: 0.92rem; | ||
padding: 0 | padding: 0 0.16rem 0.1rem; | ||
background: transparent; | background: transparent; | ||
} | } | ||
.infobox__image | /* 이미지칸 */ | ||
.infobox__image { | |||
position: relative; | position: relative; | ||
width: calc(100% - 18px); | |||
min-height: 92px; | |||
max-height: 248px; | |||
margin: 0 auto 0.78rem; | |||
padding: 0.9rem 0.9rem 1rem; | |||
border: 3px solid var(--infobox-image-frame); | |||
width: 100%; | |||
min-height: | |||
max-height: | |||
padding: 0. | |||
border: | |||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background-color: var(--infobox-image-inner); | ||
background-image: var(--infobox-image-bg); | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: cover; | |||
clip-path: polygon( | |||
0 0, | |||
box-shadow: | 100% 0, | ||
100% 82%, | |||
97% 82%, | |||
97% 100%, | |||
61% 100%, | |||
57% 96%, | |||
53% 100%, | |||
7% 100%, | |||
7% 15%, | |||
0 12% | |||
); | |||
box-shadow: inset 0 0 0 1px rgba(255, 249, 241, 0.55); | |||
overflow: hidden; | overflow: hidden; | ||
text-align: center; | |||
} | } | ||
.infobox__image::before { | .infobox__image::before { | ||
position: absolute; | position: absolute; | ||
top: | top: 9px; | ||
right: | right: 9px; | ||
bottom: | bottom: 9px; | ||
left: | left: 9px; | ||
border: 1px solid rgba(146, 95, 70, 0.23); | |||
content: ""; | content: ""; | ||
pointer-events: none; | pointer-events: none; | ||
} | } | ||
| 252번째 줄: | 191번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
max-height: | max-height: 208px; | ||
margin: 0 auto; | margin: 0 auto; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
/* | /* 정보 표 */ | ||
.infobox__details { | .infobox__details { | ||
width: calc(100% | width: calc(100% - 18px); | ||
margin: 0 | margin: 0 auto; | ||
border: 0; | border: 0; | ||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0 | border-spacing: 0 0.38rem; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: transparent; | background: transparent; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| 291번째 줄: | 214번째 줄: | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0.5rem 0.76rem; | |||
padding | |||
box-sizing: border-box; | box-sizing: border-box; | ||
vertical-align: middle; | vertical-align: middle; | ||
line-height: 1. | line-height: 1.35; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 31%; | ||
border: 2px solid var(--infobox-row-label-edge); | |||
border-right: 0; | |||
border: | border-radius: 6px 0 0 6px; | ||
border- | background: var(--infobox-row-label); | ||
color: var(--infobox-title-text); | |||
background | |||
color: var(--infobox- | |||
font-family: | font-family: | ||
"SB Aggro M", | "SB Aggro M", | ||
| 348번째 줄: | 236번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 0. | font-size: 0.83rem; | ||
font-weight: 500; | font-weight: 500; | ||
text-align: left; | text-align: left; | ||
text-shadow: | text-shadow: | ||
0 1px 0 | -1px -1px 0 var(--infobox-text-outline), | ||
0 1px | 0 -1px 0 var(--infobox-text-outline), | ||
1px -1px 0 var(--infobox-text-outline), | |||
-1px 0 0 var(--infobox-text-outline), | |||
1px 0 0 var(--infobox-text-outline), | |||
-1px 1px 0 var(--infobox-text-outline), | |||
0 1px 0 var(--infobox-text-outline), | |||
1px 1px 0 var(--infobox-text-outline); | |||
word-break: keep-all; | word-break: keep-all; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 69%; | ||
border: 2px solid var(--infobox-row-value-edge); | |||
border-left: 0; | |||
border: | border-radius: 0 6px 6px 0; | ||
border- | background: var(--infobox-row-value); | ||
color: var(--infobox-text); | |||
background | |||
color: var(--infobox- | |||
font-family: | font-family: | ||
"SB Aggro L", | "SB Aggro L", | ||
| 404번째 줄: | 267번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 0. | font-size: 0.9rem; | ||
font-weight: 300; | font-weight: 300; | ||
text-align: left; | text-align: left; | ||
word-break: break-word; | |||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
} | } | ||
.infobox__details p { | /* 섹션 제목 */ | ||
margin: 0. | .infobox__section-title, | ||
.infobox__subtitle, | |||
.infobox__panel > h2, | |||
.infobox__panel > h3 { | |||
position: relative; | |||
display: block; | |||
width: calc(100% - 18px); | |||
margin: 0.94rem auto 0.68rem; | |||
padding: 0.72rem 2.1rem 0.72rem 1.25rem; | |||
border: 2px solid var(--infobox-ribbon-edge); | |||
box-sizing: border-box; | |||
background: var(--infobox-ribbon); | |||
clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); | |||
color: var(--infobox-title-text); | |||
font-family: | |||
"SB Aggro B", | |||
"SB 어그로 B", | |||
-apple-system, | |||
BlinkMacSystemFont, | |||
"Segoe UI", | |||
"Apple SD Gothic Neo", | |||
"Noto Sans KR", | |||
sans-serif; | |||
font-size: 1.08rem; | |||
font-weight: 700; | |||
line-height: 1.14; | |||
text-align: center; | |||
text-shadow: | |||
-1px -1px 0 var(--infobox-text-outline), | |||
0 -1px 0 var(--infobox-text-outline), | |||
1px -1px 0 var(--infobox-text-outline), | |||
-1px 0 0 var(--infobox-text-outline), | |||
1px 0 0 var(--infobox-text-outline), | |||
-1px 1px 0 var(--infobox-text-outline), | |||
0 1px 0 var(--infobox-text-outline), | |||
1px 1px 0 var(--infobox-text-outline); | |||
} | |||
.infobox__section-title::after, | |||
.infobox__subtitle::after, | |||
.infobox__panel > h2::after, | |||
.infobox__panel > h3::after { | |||
position: absolute; | |||
top: 50%; | |||
right: 0.92rem; | |||
width: 0; | |||
height: 0; | |||
border-top: 9px solid var(--infobox-outer-edge); | |||
border-right: 9px solid transparent; | |||
border-left: 9px solid transparent; | |||
content: ""; | |||
transform: translateY(-34%); | |||
} | |||
/* 섹션 본문 */ | |||
.infobox__section-body, | |||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
width: calc(100% - 18px); | |||
margin: 0 auto 0.38rem; | |||
padding: 0.88rem 0.96rem; | |||
border: 2px solid var(--infobox-row-value-edge); | |||
border-radius: 8px; | |||
box-sizing: border-box; | |||
background: var(--infobox-panel); | |||
color: var(--infobox-text); | |||
font-size: 0.92rem; | |||
line-height: 1.48; | |||
} | |||
/* 공통 텍스트 */ | |||
.infobox__details p, | |||
.infobox__section-body p, | |||
.infobox__listbox p, | |||
.infobox__games p, | |||
.infobox__appearance-list p { | |||
margin: 0.12em 0; | |||
font: inherit; | font: inherit; | ||
} | } | ||
.infobox__details ul, | .infobox__details ul, | ||
.infobox__details ol { | .infobox__details ol, | ||
margin: 0. | .infobox__section-body ul, | ||
.infobox__section-body ol, | |||
.infobox__listbox ul, | |||
.infobox__listbox ol, | |||
.infobox__games ul, | |||
.infobox__games ol, | |||
.infobox__appearance-list ul, | |||
.infobox__appearance-list ol { | |||
margin: 0.16em 0 0.16em 1.15em; | |||
padding: 0; | padding: 0; | ||
font: inherit; | font: inherit; | ||
} | } | ||
.infobox__details li { | .infobox__details li, | ||
margin: 0. | .infobox__section-body li, | ||
.infobox__listbox li, | |||
.infobox__games li, | |||
.infobox__appearance-list li { | |||
margin: 0.12em 0; | |||
font: inherit; | font: inherit; | ||
} | } | ||
.infobox__details sup { | .infobox small, | ||
line-height: | .infobox sup, | ||
.infobox__details small, | |||
.infobox__details sup, | |||
.infobox__section-body small, | |||
.infobox__section-body sup, | |||
.infobox__listbox small, | |||
.infobox__listbox sup, | |||
.infobox__games small, | |||
.infobox__games sup, | |||
.infobox__appearance-list small, | |||
.infobox__appearance-list sup { | |||
position: static; | |||
top: auto; | |||
bottom: auto; | |||
vertical-align: baseline; | |||
line-height: inherit; | |||
font-size: 0.85em; | |||
} | } | ||
| 439번째 줄: | 404번째 줄: | ||
font-family: inherit; | font-family: inherit; | ||
font-weight: inherit; | font-weight: inherit; | ||
text-decoration: | text-decoration: none; | ||
} | } | ||
.infobox a:hover { | .infobox a:hover { | ||
color: var(--infobox-link-hover); | color: var(--infobox-link-hover); | ||
text-decoration | text-decoration: underline; | ||
} | } | ||
.infobox a:focus { | .infobox a:focus { | ||
outline: 2px solid var(--infobox-focus); | outline: 2px solid var(--infobox-focus); | ||
outline-offset: 2px; | outline-offset: 2px; | ||
} | } | ||
/* | /* 720px 이하 */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.infobox { | .infobox { | ||
| 461번째 줄: | 425번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.1rem; | margin: 0 0 1.1rem; | ||
padding: 0. | padding: 0.9rem 0.76rem; | ||
border-radius: | border-radius: 26px; | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
.infobox::before { | .infobox::before { | ||
border-radius: | top: 14px; | ||
right: 12px; | |||
bottom: 14px; | |||
left: 12px; | |||
border-radius: 24px; | |||
} | } | ||
.infobox::after { | .infobox::after { | ||
border-radius: | top: 23px; | ||
right: 19px; | |||
bottom: 23px; | |||
left: 19px; | |||
border-radius: 18px; | |||
} | } | ||
.infobox__title | .infobox__title, | ||
.infobox__image, | |||
.infobox__details, | |||
.infobox__section-title, | |||
.infobox__subtitle, | |||
.infobox__panel > h2, | |||
.infobox__panel > h3, | |||
.infobox__section-body, | |||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
width: calc(100% - 10px); | |||
} | } | ||
. | .infobox__title { | ||
padding: 0.9rem 2rem; | |||
font-size: 1.48rem; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
min-height: | min-height: 94px; | ||
max-height: | max-height: 250px; | ||
padding: 0. | padding: 0.82rem 0.82rem 0.94rem; | ||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: | max-height: 212px; | ||
} | } | ||
.infobox__details | .infobox__details th, | ||
.infobox__details td { | |||
padding: 0.54rem 0.7rem; | |||
} | } | ||
.infobox__details th { | |||
width: 32%; | |||
font-size: 0.96rem; | |||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: 68%; | |||
font-size: 1rem; | |||
} | } | ||
. | .infobox__section-title, | ||
.infobox__subtitle, | |||
padding | .infobox__panel > h2, | ||
.infobox__panel > h3 { | |||
font-size: | padding: 0.72rem 1.96rem 0.72rem 1.18rem; | ||
font-size: 1.2rem; | |||
} | } | ||
. | .infobox__section-body, | ||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
} | } | ||
/* 480px 이하 */ | |||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.infobox { | .infobox { | ||
padding: 0. | padding: 0.8rem 0.6rem; | ||
border-radius: | border-radius: 22px; | ||
} | } | ||
.infobox::before { | .infobox::before { | ||
border-radius: | top: 11px; | ||
right: 10px; | |||
bottom: 11px; | |||
left: 10px; | |||
border-radius: 20px; | |||
} | } | ||
.infobox::after { | .infobox::after { | ||
top: | top: 18px; | ||
right: | right: 16px; | ||
bottom: | bottom: 18px; | ||
left: | left: 16px; | ||
border-radius: 14px; | border-radius: 14px; | ||
} | } | ||
.infobox__title | .infobox__title, | ||
.infobox__image, | |||
.infobox__details, | |||
.infobox__section-title, | |||
.infobox__subtitle, | |||
.infobox__panel > h2, | |||
.infobox__panel > h3, | |||
.infobox__section-body, | |||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
width: calc(100% - 6px); | |||
} | } | ||
. | .infobox__title { | ||
padding: 0.8rem 1.72rem; | |||
font-size: 1.3rem; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
min-height: | min-height: 80px; | ||
max-height: | max-height: 220px; | ||
padding: 0. | padding: 0.7rem 0.68rem 0.82rem; | ||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: | max-height: 178px; | ||
} | } | ||
.infobox__details { | .infobox__details { | ||
border-spacing: 0 0.34rem; | |||
border-spacing: 0; | |||
} | } | ||
.infobox__details | .infobox__details th, | ||
.infobox__details td { | |||
padding: 0.48rem 0.6rem; | |||
} | } | ||
.infobox__details | .infobox__details th { | ||
width: 34%; | |||
font-size: 0.89rem; | |||
width: | |||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: 66%; | |||
font-size: 0.95rem; | |||
width: | |||
} | } | ||
. | .infobox__section-title, | ||
padding | .infobox__subtitle, | ||
.infobox__panel > h2, | |||
.infobox__panel > h3 { | |||
font-size: | padding: 0.66rem 1.82rem 0.66rem 1.05rem; | ||
font-size: 1.05rem; | |||
} | } | ||
. | .infobox__section-body, | ||
padding | .infobox__listbox, | ||
.infobox__games, | |||
.infobox__appearance-list { | |||
font-size: 0. | padding: 0.8rem 0.82rem; | ||
font-size: 0.95rem; | |||
} | } | ||
} | } | ||
/* | /* 수동 다크 모드 */ | ||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .infobox { | html.skin-theme-clientpref-night .infobox { | ||
--infobox- | --infobox-outer: #4c3329; | ||
--infobox- | --infobox-outer-edge: #36231c; | ||
--infobox- | --infobox-inner: #6d5644; | ||
--infobox- | --infobox-inner-edge: #8c7157; | ||
--infobox- | --infobox-panel: #3d332d; | ||
--infobox- | --infobox-panel-edge: #866a57; | ||
--infobox- | --infobox-image-frame: #a07a60; | ||
--infobox- | --infobox-image-inner: #433832; | ||
--infobox- | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | ||
--infobox- | --infobox-ribbon: #805542; | ||
--infobox- | --infobox-ribbon-edge: #643f31; | ||
--infobox- | --infobox-row-label: #93614c; | ||
--infobox- | --infobox-row-label-edge: #754a39; | ||
--infobox- | --infobox-row-value: #433731; | ||
--infobox- | --infobox-row-value-edge: #896c59; | ||
--infobox- | --infobox-text: #f3e8df; | ||
--infobox-link | --infobox-link: #edc1a9; | ||
--infobox- | --infobox-link-hover: #ffe1d0; | ||
--infobox- | --infobox-focus: #d1a58b; | ||
--infobox- | --infobox-title-text: #fff8f2; | ||
--infobox-text-outline: #301d16; | |||
--infobox-shadow: rgba(0, 0, 0, 0.35); | |||
} | } | ||
} | } | ||
/* | /* OS 다크 모드 */ | ||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
html.skin-theme-clientpref-os .infobox { | html.skin-theme-clientpref-os .infobox { | ||
--infobox- | --infobox-outer: #4c3329; | ||
--infobox- | --infobox-outer-edge: #36231c; | ||
--infobox- | --infobox-inner: #6d5644; | ||
--infobox- | --infobox-inner-edge: #8c7157; | ||
--infobox- | --infobox-panel: #3d332d; | ||
--infobox- | --infobox-panel-edge: #866a57; | ||
--infobox- | --infobox-image-frame: #a07a60; | ||
--infobox- | --infobox-image-inner: #433832; | ||
--infobox- | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | ||
--infobox- | --infobox-ribbon: #805542; | ||
--infobox- | --infobox-ribbon-edge: #643f31; | ||
--infobox- | --infobox-row-label: #93614c; | ||
--infobox- | --infobox-row-label-edge: #754a39; | ||
--infobox- | --infobox-row-value: #433731; | ||
--infobox- | --infobox-row-value-edge: #896c59; | ||
--infobox- | --infobox-text: #f3e8df; | ||
--infobox-link | --infobox-link: #edc1a9; | ||
--infobox- | --infobox-link-hover: #ffe1d0; | ||
--infobox- | --infobox-focus: #d1a58b; | ||
--infobox- | --infobox-title-text: #fff8f2; | ||
--infobox-text-outline: #301d16; | |||
--infobox-shadow: rgba(0, 0, 0, 0.35); | |||
} | } | ||
} | } | ||
2026년 7월 23일 (목) 17:43 판
.infobox {
--infobox-outer: #5d3b30;
--infobox-outer-edge: #45291f;
--infobox-inner: #ead5af;
--infobox-inner-edge: #cfb283;
--infobox-panel: #f3e8d7;
--infobox-panel-edge: #b88d68;
--infobox-image-frame: #925f46;
--infobox-image-inner: #e9dcc8;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png");
--infobox-ribbon: #875340;
--infobox-ribbon-edge: #6a3f31;
--infobox-row-label: #9a644c;
--infobox-row-label-edge: #7a4a38;
--infobox-row-value: #f7efe4;
--infobox-row-value-edge: #bca184;
--infobox-text: #493329;
--infobox-link: #8f573f;
--infobox-link-hover: #653929;
--infobox-focus: #ad775f;
--infobox-title-text: #fffaf4;
--infobox-text-outline: #472b20;
--infobox-shadow: rgba(68, 42, 31, 0.24);
position: relative;
float: right;
clear: right;
width: 328px;
max-width: 100%;
margin: 0 0 1.25rem 1.25rem;
padding: 0.95rem 0.85rem;
border: 0;
border-radius: 30px;
box-sizing: border-box;
background: var(--infobox-outer);
color: var(--infobox-text);
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.92rem;
font-weight: 300;
line-height: 1.55;
box-shadow: 0 10px 26px var(--infobox-shadow);
overflow: hidden;
}
.infobox::before {
position: absolute;
top: 16px;
right: 14px;
bottom: 16px;
left: 14px;
border: 4px solid var(--infobox-inner-edge);
border-radius: 26px;
box-sizing: border-box;
background: var(--infobox-inner);
content: "";
}
.infobox::after {
position: absolute;
top: 27px;
right: 24px;
bottom: 27px;
left: 24px;
border: 1px solid rgba(146, 95, 70, 0.28);
border-radius: 20px;
box-sizing: border-box;
content: "";
}
.infobox__title,
.infobox__panel {
position: relative;
z-index: 1;
}
/* 이름칸 */
.infobox__title {
display: flex;
align-items: center;
justify-content: center;
width: calc(100% - 24px);
margin: 0 auto;
padding: 0.96rem 2.25rem;
border: 2px solid var(--infobox-ribbon-edge);
box-sizing: border-box;
background: var(--infobox-ribbon);
clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
color: var(--infobox-title-text);
font-family:
"SB Aggro B",
"SB 어그로 B",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 1.28rem;
font-weight: 700;
line-height: 1.14;
letter-spacing: -0.03em;
text-align: center;
text-shadow:
-1px -1px 0 var(--infobox-text-outline),
0 -1px 0 var(--infobox-text-outline),
1px -1px 0 var(--infobox-text-outline),
-1px 0 0 var(--infobox-text-outline),
1px 0 0 var(--infobox-text-outline),
-1px 1px 0 var(--infobox-text-outline),
0 1px 0 var(--infobox-text-outline),
1px 1px 0 var(--infobox-text-outline);
overflow-wrap: anywhere;
word-break: keep-all;
}
.infobox__title p {
margin: 0;
font: inherit;
color: inherit;
line-height: inherit;
}
/* 내부 영역 */
.infobox__panel {
margin-top: 0.92rem;
padding: 0 0.16rem 0.1rem;
background: transparent;
}
/* 이미지칸 */
.infobox__image {
position: relative;
width: calc(100% - 18px);
min-height: 92px;
max-height: 248px;
margin: 0 auto 0.78rem;
padding: 0.9rem 0.9rem 1rem;
border: 3px solid var(--infobox-image-frame);
box-sizing: border-box;
background-color: var(--infobox-image-inner);
background-image: var(--infobox-image-bg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
clip-path: polygon(
0 0,
100% 0,
100% 82%,
97% 82%,
97% 100%,
61% 100%,
57% 96%,
53% 100%,
7% 100%,
7% 15%,
0 12%
);
box-shadow: inset 0 0 0 1px rgba(255, 249, 241, 0.55);
overflow: hidden;
text-align: center;
}
.infobox__image::before {
position: absolute;
top: 9px;
right: 9px;
bottom: 9px;
left: 9px;
border: 1px solid rgba(146, 95, 70, 0.23);
content: "";
pointer-events: none;
}
.infobox__image a,
.infobox__image img {
position: relative;
z-index: 1;
}
.infobox__image img {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 208px;
margin: 0 auto;
object-fit: contain;
}
/* 정보 표 */
.infobox__details {
width: calc(100% - 18px);
margin: 0 auto;
border: 0;
border-collapse: separate;
border-spacing: 0 0.38rem;
table-layout: fixed;
background: transparent;
box-sizing: border-box;
}
.infobox__details tr {
background: transparent;
}
.infobox__details th,
.infobox__details td {
padding: 0.5rem 0.76rem;
box-sizing: border-box;
vertical-align: middle;
line-height: 1.35;
}
.infobox__details th {
width: 31%;
border: 2px solid var(--infobox-row-label-edge);
border-right: 0;
border-radius: 6px 0 0 6px;
background: var(--infobox-row-label);
color: var(--infobox-title-text);
font-family:
"SB Aggro M",
"SB 어그로 M",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.83rem;
font-weight: 500;
text-align: left;
text-shadow:
-1px -1px 0 var(--infobox-text-outline),
0 -1px 0 var(--infobox-text-outline),
1px -1px 0 var(--infobox-text-outline),
-1px 0 0 var(--infobox-text-outline),
1px 0 0 var(--infobox-text-outline),
-1px 1px 0 var(--infobox-text-outline),
0 1px 0 var(--infobox-text-outline),
1px 1px 0 var(--infobox-text-outline);
word-break: keep-all;
}
.infobox__details td {
width: 69%;
border: 2px solid var(--infobox-row-value-edge);
border-left: 0;
border-radius: 0 6px 6px 0;
background: var(--infobox-row-value);
color: var(--infobox-text);
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.9rem;
font-weight: 300;
text-align: left;
word-break: break-word;
overflow-wrap: anywhere;
}
/* 섹션 제목 */
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3 {
position: relative;
display: block;
width: calc(100% - 18px);
margin: 0.94rem auto 0.68rem;
padding: 0.72rem 2.1rem 0.72rem 1.25rem;
border: 2px solid var(--infobox-ribbon-edge);
box-sizing: border-box;
background: var(--infobox-ribbon);
clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
color: var(--infobox-title-text);
font-family:
"SB Aggro B",
"SB 어그로 B",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 1.08rem;
font-weight: 700;
line-height: 1.14;
text-align: center;
text-shadow:
-1px -1px 0 var(--infobox-text-outline),
0 -1px 0 var(--infobox-text-outline),
1px -1px 0 var(--infobox-text-outline),
-1px 0 0 var(--infobox-text-outline),
1px 0 0 var(--infobox-text-outline),
-1px 1px 0 var(--infobox-text-outline),
0 1px 0 var(--infobox-text-outline),
1px 1px 0 var(--infobox-text-outline);
}
.infobox__section-title::after,
.infobox__subtitle::after,
.infobox__panel > h2::after,
.infobox__panel > h3::after {
position: absolute;
top: 50%;
right: 0.92rem;
width: 0;
height: 0;
border-top: 9px solid var(--infobox-outer-edge);
border-right: 9px solid transparent;
border-left: 9px solid transparent;
content: "";
transform: translateY(-34%);
}
/* 섹션 본문 */
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
width: calc(100% - 18px);
margin: 0 auto 0.38rem;
padding: 0.88rem 0.96rem;
border: 2px solid var(--infobox-row-value-edge);
border-radius: 8px;
box-sizing: border-box;
background: var(--infobox-panel);
color: var(--infobox-text);
font-size: 0.92rem;
line-height: 1.48;
}
/* 공통 텍스트 */
.infobox__details p,
.infobox__section-body p,
.infobox__listbox p,
.infobox__games p,
.infobox__appearance-list p {
margin: 0.12em 0;
font: inherit;
}
.infobox__details ul,
.infobox__details ol,
.infobox__section-body ul,
.infobox__section-body ol,
.infobox__listbox ul,
.infobox__listbox ol,
.infobox__games ul,
.infobox__games ol,
.infobox__appearance-list ul,
.infobox__appearance-list ol {
margin: 0.16em 0 0.16em 1.15em;
padding: 0;
font: inherit;
}
.infobox__details li,
.infobox__section-body li,
.infobox__listbox li,
.infobox__games li,
.infobox__appearance-list li {
margin: 0.12em 0;
font: inherit;
}
.infobox small,
.infobox sup,
.infobox__details small,
.infobox__details sup,
.infobox__section-body small,
.infobox__section-body sup,
.infobox__listbox small,
.infobox__listbox sup,
.infobox__games small,
.infobox__games sup,
.infobox__appearance-list small,
.infobox__appearance-list sup {
position: static;
top: auto;
bottom: auto;
vertical-align: baseline;
line-height: inherit;
font-size: 0.85em;
}
.infobox a {
color: var(--infobox-link);
font-family: inherit;
font-weight: inherit;
text-decoration: none;
}
.infobox a:hover {
color: var(--infobox-link-hover);
text-decoration: underline;
}
.infobox a:focus {
outline: 2px solid var(--infobox-focus);
outline-offset: 2px;
}
/* 720px 이하 */
@media screen and (max-width: 720px) {
.infobox {
float: none;
clear: both;
width: 100%;
max-width: 100%;
margin: 0 0 1.1rem;
padding: 0.9rem 0.76rem;
border-radius: 26px;
font-size: 1rem;
}
.infobox::before {
top: 14px;
right: 12px;
bottom: 14px;
left: 12px;
border-radius: 24px;
}
.infobox::after {
top: 23px;
right: 19px;
bottom: 23px;
left: 19px;
border-radius: 18px;
}
.infobox__title,
.infobox__image,
.infobox__details,
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3,
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
width: calc(100% - 10px);
}
.infobox__title {
padding: 0.9rem 2rem;
font-size: 1.48rem;
}
.infobox__image {
min-height: 94px;
max-height: 250px;
padding: 0.82rem 0.82rem 0.94rem;
}
.infobox__image img {
max-height: 212px;
}
.infobox__details th,
.infobox__details td {
padding: 0.54rem 0.7rem;
}
.infobox__details th {
width: 32%;
font-size: 0.96rem;
}
.infobox__details td {
width: 68%;
font-size: 1rem;
}
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3 {
padding: 0.72rem 1.96rem 0.72rem 1.18rem;
font-size: 1.2rem;
}
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
font-size: 1rem;
}
}
/* 480px 이하 */
@media screen and (max-width: 480px) {
.infobox {
padding: 0.8rem 0.6rem;
border-radius: 22px;
}
.infobox::before {
top: 11px;
right: 10px;
bottom: 11px;
left: 10px;
border-radius: 20px;
}
.infobox::after {
top: 18px;
right: 16px;
bottom: 18px;
left: 16px;
border-radius: 14px;
}
.infobox__title,
.infobox__image,
.infobox__details,
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3,
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
width: calc(100% - 6px);
}
.infobox__title {
padding: 0.8rem 1.72rem;
font-size: 1.3rem;
}
.infobox__image {
min-height: 80px;
max-height: 220px;
padding: 0.7rem 0.68rem 0.82rem;
}
.infobox__image img {
max-height: 178px;
}
.infobox__details {
border-spacing: 0 0.34rem;
}
.infobox__details th,
.infobox__details td {
padding: 0.48rem 0.6rem;
}
.infobox__details th {
width: 34%;
font-size: 0.89rem;
}
.infobox__details td {
width: 66%;
font-size: 0.95rem;
}
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3 {
padding: 0.66rem 1.82rem 0.66rem 1.05rem;
font-size: 1.05rem;
}
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
padding: 0.8rem 0.82rem;
font-size: 0.95rem;
}
}
/* 수동 다크 모드 */
@media screen {
html.skin-theme-clientpref-night .infobox {
--infobox-outer: #4c3329;
--infobox-outer-edge: #36231c;
--infobox-inner: #6d5644;
--infobox-inner-edge: #8c7157;
--infobox-panel: #3d332d;
--infobox-panel-edge: #866a57;
--infobox-image-frame: #a07a60;
--infobox-image-inner: #433832;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
--infobox-ribbon: #805542;
--infobox-ribbon-edge: #643f31;
--infobox-row-label: #93614c;
--infobox-row-label-edge: #754a39;
--infobox-row-value: #433731;
--infobox-row-value-edge: #896c59;
--infobox-text: #f3e8df;
--infobox-link: #edc1a9;
--infobox-link-hover: #ffe1d0;
--infobox-focus: #d1a58b;
--infobox-title-text: #fff8f2;
--infobox-text-outline: #301d16;
--infobox-shadow: rgba(0, 0, 0, 0.35);
}
}
/* OS 다크 모드 */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox {
--infobox-outer: #4c3329;
--infobox-outer-edge: #36231c;
--infobox-inner: #6d5644;
--infobox-inner-edge: #8c7157;
--infobox-panel: #3d332d;
--infobox-panel-edge: #866a57;
--infobox-image-frame: #a07a60;
--infobox-image-inner: #433832;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
--infobox-ribbon: #805542;
--infobox-ribbon-edge: #643f31;
--infobox-row-label: #93614c;
--infobox-row-label-edge: #754a39;
--infobox-row-value: #433731;
--infobox-row-value-edge: #896c59;
--infobox-text: #f3e8df;
--infobox-link: #edc1a9;
--infobox-link-hover: #ffe1d0;
--infobox-focus: #d1a58b;
--infobox-title-text: #fff8f2;
--infobox-text-outline: #301d16;
--infobox-shadow: rgba(0, 0, 0, 0.35);
}
}