틀:정보상자/styles.css: 두 판 사이의 차이
식물 vs 좀비 위키
편집 요약 없음 태그: 되돌려진 기여 모바일 편집 모바일 웹 편집 |
편집 요약 없음 태그: 되돌려진 기여 모바일 편집 모바일 웹 편집 |
||
| 1번째 줄: | 1번째 줄: | ||
.infobox { | .infobox { | ||
--infobox- | --infobox-outer: #6d473a; | ||
--infobox- | --infobox-outer-dark: #55362c; | ||
--infobox- | --infobox-inner: #ead6b3; | ||
--infobox- | --infobox-inner-edge: #ccb186; | ||
--infobox- | --infobox-line: #9a6b4f; | ||
--infobox- | --infobox-line-soft: #c3a286; | ||
--infobox- | --infobox-paper: #efe5d7; | ||
--infobox- | --infobox-paper-dark: #e6d8c3; | ||
--infobox-label | --infobox-ribbon: #8d5a45; | ||
--infobox- | --infobox-ribbon-dark: #6f4332; | ||
--infobox- | --infobox-label: #a06a52; | ||
--infobox- | --infobox-label-dark: #7c4e3b; | ||
--infobox-ink: # | --infobox-value: #f4ece0; | ||
--infobox-link: # | --infobox-value-border: #b89a7f; | ||
--infobox-link-hover: # | --infobox-ink: #463229; | ||
--infobox-focus: # | --infobox-link: #8a573f; | ||
--infobox- | --infobox-link-hover: #643d2d; | ||
--infobox- | --infobox-focus: #a7755e; | ||
--infobox | --infobox-title-text: #fffaf3; | ||
--infobox- | --infobox-text-outline: #4c3025; | ||
--infobox-shadow: rgba(74, 46, 35, 0.24); | |||
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png"); | |||
position: relative; | position: relative; | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
| 30번째 줄: | 29번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.25rem 1.25rem; | margin: 0 0 1.25rem 1.25rem; | ||
padding: 0. | padding: 1rem 0.88rem; | ||
border: | border: 0; | ||
border-radius: | border-radius: 30px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: var(--infobox- | background: var(--infobox-outer); | ||
color: var(--infobox-ink); | color: var(--infobox-ink); | ||
font-family: | font-family: | ||
| 48번째 줄: | 47번째 줄: | ||
font-weight: 300; | font-weight: 300; | ||
line-height: 1.55; | line-height: 1.55; | ||
box-shadow: 0 10px | box-shadow: 0 10px 24px var(--infobox-shadow); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| 54번째 줄: | 53번째 줄: | ||
.infobox::before { | .infobox::before { | ||
position: absolute; | position: absolute; | ||
top: 18px; | |||
top: | right: 16px; | ||
right: | bottom: 18px; | ||
bottom: | left: 16px; | ||
left: | border: 3px solid var(--infobox-inner-edge); | ||
border- | border-radius: 28px; | ||
box-sizing: border-box; | |||
background: var(--infobox-inner); | |||
background- | |||
content: ""; | content: ""; | ||
} | } | ||
.infobox::after { | .infobox::after { | ||
position: absolute; | position: absolute; | ||
top: 28px; | |||
top: | right: 24px; | ||
right: | bottom: 28px; | ||
bottom: | left: 24px; | ||
left: | border: 1px solid rgba(154, 107, 79, 0.32); | ||
border: 1px | border-radius: 22px; | ||
border-radius: | |||
box-sizing: border-box; | box-sizing: border-box; | ||
content: ""; | content: ""; | ||
} | } | ||
| 94번째 줄: | 87번째 줄: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 100%; | width: calc(100% - 26px); | ||
margin: 0 auto; | |||
padding: 0. | padding: 0.95rem 2.4rem; | ||
border: 2px solid var(--infobox- | border: 2px solid var(--infobox-ribbon-dark); | ||
border- | box-sizing: border-box; | ||
background: var(--infobox-ribbon); | |||
clip-path: polygon( | clip-path: polygon( | ||
4% 0, | |||
96% 0, | |||
100% | 100% 100%, | ||
0 100% | |||
0 | |||
); | ); | ||
color: var(--infobox-title-text); | |||
font-family: | font-family: | ||
"SB Aggro B", | "SB Aggro B", | ||
| 136번째 줄: | 109번째 줄: | ||
"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.16; | |||
letter-spacing: -0.03em; | |||
text-align: center; | text-align: center; | ||
text-shadow: | text-shadow: | ||
| 149번째 줄: | 122번째 줄: | ||
-1px 1px 0 var(--infobox-text-outline), | -1px 1px 0 var(--infobox-text-outline), | ||
0 1px 0 var(--infobox-text-outline), | 0 1px 0 var(--infobox-text-outline), | ||
1px 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; | ||
} | } | ||
.infobox__title p { | .infobox__title p { | ||
margin: 0; | margin: 0; | ||
font: inherit; | font: inherit; | ||
| 215번째 줄: | 134번째 줄: | ||
} | } | ||
/* 내용 패널 */ | |||
.infobox__panel { | .infobox__panel { | ||
margin | margin: 0.95rem 0 0; | ||
padding: 0 | padding: 0 0.16rem 0.1rem; | ||
background: transparent; | background: transparent; | ||
} | } | ||
/* 사진칸 */ | /* 사진칸 */ | ||
.infobox__image { | .infobox__image { | ||
position: relative; | |||
width: calc(100% - 18px); | |||
min-height: 90px; | |||
width: 100%; | max-height: 246px; | ||
min-height: | margin: 0 auto 0.82rem; | ||
max-height: | padding: 0.9rem 0.9rem 1rem; | ||
padding: 0. | border: 3px solid var(--infobox-line); | ||
border: | border-radius: 0; | ||
border-radius: | |||
box-sizing: border-box; | box-sizing: border-box; | ||
background: var(--infobox-paper); | background-color: var(--infobox-paper); | ||
background-image: var(--infobox-image-bg); | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: cover; | |||
box-shadow: inset 0 0 0 1px rgba(255, 248, 238, 0.55); | |||
clip-path: polygon( | |||
0 0, | |||
100% 0, | |||
100% 82%, | |||
97% 82%, | |||
97% 100%, | |||
60% 100%, | |||
56% 96%, | |||
52% 100%, | |||
6% 100%, | |||
6% 15%, | |||
0 12% | |||
); | |||
overflow: hidden; | overflow: hidden; | ||
text-align: center; | |||
} | } | ||
.infobox__image::before { | .infobox__image::before { | ||
position: absolute; | position: absolute; | ||
top: | top: 8px; | ||
right: | right: 8px; | ||
bottom: | bottom: 8px; | ||
left: | left: 8px; | ||
border: 1px solid rgba(154, 107, 79, 0.28); | |||
content: ""; | content: ""; | ||
pointer-events: none; | pointer-events: none; | ||
} | } | ||
| 299번째 줄: | 197번째 줄: | ||
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: 100%; | width: calc(100% - 18px); | ||
margin: 0 | margin: 0 auto; | ||
border: 0; | border: 0; | ||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0 0. | border-spacing: 0 0.42rem; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: transparent; | background: transparent; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| 338번째 줄: | 220번째 줄: | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0.52rem 0.8rem; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
vertical-align: middle; | vertical-align: middle; | ||
line-height: 1. | line-height: 1.36; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 29%; | ||
border: | border: 2px solid var(--infobox-line-soft); | ||
border-right | border-right: 0; | ||
border-radius: | border-radius: 6px 0 0 6px; | ||
background: var(--infobox-label); | background: var(--infobox-label); | ||
color: var(--infobox- | color: var(--infobox-title-text); | ||
font-family: | font-family: | ||
"SB Aggro M", | "SB Aggro M", | ||
| 364번째 줄: | 242번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 0. | font-size: 0.84rem; | ||
font-weight: 500; | font-weight: 500; | ||
text-align: left; | text-align: left; | ||
| 377번째 줄: | 255번째 줄: | ||
1px 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: 71%; | ||
border: | border: 2px solid var(--infobox-value-border); | ||
border-left: 0; | border-left: 0; | ||
border-radius: 0 | border-radius: 0 6px 6px 0; | ||
background: var(--infobox- | background: var(--infobox-value); | ||
color: var(--infobox-ink); | color: var(--infobox-ink); | ||
font-family: | font-family: | ||
| 401번째 줄: | 273번째 줄: | ||
"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__section-title, | |||
.infobox__subtitle, | |||
.infobox__panel > h2, | |||
.infobox__panel > h3 { | |||
display: block; | |||
width: calc(100% - 18px); | |||
margin: 0.96rem auto 0.72rem; | |||
padding: 0.72rem 2.2rem 0.72rem 1.45rem; | |||
border: 2px solid var(--infobox-ribbon-dark); | |||
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.1rem; | |||
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-dark); | |||
border-right: 9px solid transparent; | |||
border-left: 9px solid transparent; | |||
content: ""; | |||
transform: translateY(-35%); | |||
} | |||
/* 섹션 본문 박스 */ | |||
.infobox__section-body, | |||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
width: calc(100% - 18px); | |||
margin: 0 auto 0.4rem; | |||
padding: 0.92rem 1rem; | |||
border: 2px solid var(--infobox-value-border); | |||
border-radius: 8px; | |||
box-sizing: border-box; | |||
background: var(--infobox-paper); | |||
color: var(--infobox-ink); | |||
font-size: 0.92rem; | |||
line-height: 1.48; | |||
} | |||
.infobox__section-body p, | |||
.infobox__listbox p, | |||
.infobox__games p, | |||
.infobox__appearance-list p, | |||
.infobox__details p { | .infobox__details p { | ||
margin: 0. | margin: 0.12em 0; | ||
font: inherit; | font: inherit; | ||
} | } | ||
.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, | |||
.infobox__details ul, | .infobox__details ul, | ||
.infobox__details ol { | .infobox__details ol { | ||
margin: 0. | margin: 0.16em 0 0.16em 1.15em; | ||
padding: 0; | padding: 0; | ||
font: inherit; | font: inherit; | ||
} | } | ||
.infobox__section-body li, | |||
.infobox__listbox li, | |||
.infobox__games li, | |||
.infobox__appearance-list li, | |||
.infobox__details li { | .infobox__details li { | ||
margin: 0. | margin: 0.12em 0; | ||
font: inherit; | font: inherit; | ||
} | } | ||
| 429번째 줄: | 392번째 줄: | ||
.infobox sup, | .infobox sup, | ||
.infobox__details small, | .infobox__details small, | ||
.infobox__details sup { | .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; | position: static; | ||
top: auto; | top: auto; | ||
| 435번째 줄: | 406번째 줄: | ||
vertical-align: baseline; | vertical-align: baseline; | ||
line-height: inherit; | line-height: inherit; | ||
font-size: 0.85em; | |||
} | } | ||
| 450번째 줄: | 422번째 줄: | ||
.infobox a:focus { | .infobox a:focus { | ||
outline: 2px solid var(--infobox-focus); | outline: 2px solid var(--infobox-focus); | ||
outline-offset: 2px; | outline-offset: 2px; | ||
} | } | ||
/* 모바일 */ | |||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.infobox { | .infobox { | ||
| 462번째 줄: | 434번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.1rem; | margin: 0 0 1.1rem; | ||
padding: 0. | padding: 0.92rem 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: 22px; | ||
right: 19px; | |||
bottom: 22px; | |||
left: 19px; | |||
border-radius: 18px; | |||
} | } | ||
.infobox__title | .infobox__title, | ||
.infobox__section-title, | |||
.infobox__subtitle, | |||
.infobox__panel > h2, | |||
.infobox__panel > h3, | |||
.infobox__image, | |||
.infobox__details, | |||
.infobox__section-body, | |||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
width: calc(100% - 12px); | |||
} | } | ||
.infobox__title | .infobox__title { | ||
padding: 0.92rem 2.2rem; | |||
font-size: 1.5rem; | |||
} | } | ||
.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.72rem; | |||
} | } | ||
.infobox__details th { | |||
width: 31%; | |||
font-size: 0.97rem; | |||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: 69%; | |||
font-size: 1rem; | |||
} | } | ||
. | .infobox__section-title, | ||
.infobox__subtitle, | |||
font-size: | .infobox__panel > h2, | ||
.infobox__panel > h3 { | |||
padding: 0.74rem 2.05rem 0.74rem 1.35rem; | |||
font-size: 1.24rem; | |||
} | } | ||
. | .infobox__section-body, | ||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
| 539번째 줄: | 517번째 줄: | ||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.infobox { | .infobox { | ||
padding: 0. | padding: 0.82rem 0.62rem; | ||
border-radius: | border-radius: 22px; | ||
} | } | ||
.infobox::before { | .infobox::before { | ||
border-radius: | top: 12px; | ||
right: 10px; | |||
bottom: 12px; | |||
left: 10px; | |||
border-radius: 20px; | |||
} | } | ||
.infobox::after { | .infobox::after { | ||
top: | top: 18px; | ||
right: | right: 16px; | ||
bottom: | bottom: 18px; | ||
left: | left: 16px; | ||
border-radius: | border-radius: 15px; | ||
} | } | ||
.infobox__title | .infobox__title, | ||
.infobox__section-title, | |||
.infobox__subtitle, | |||
.infobox__panel > h2, | |||
.infobox__panel > h3, | |||
.infobox__image, | |||
.infobox__details, | |||
.infobox__section-body, | |||
.infobox__listbox, | |||
.infobox__games, | |||
.infobox__appearance-list { | |||
width: calc(100% - 8px); | |||
} | } | ||
.infobox__title | .infobox__title { | ||
padding: 0.82rem 1.9rem; | |||
font-size: 1.34rem; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
min-height: | min-height: 80px; | ||
max-height: | max-height: 220px; | ||
padding: 0. | padding: 0.72rem 0.7rem 0.84rem; | ||
} | } | ||
.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.5rem 0.62rem; | |||
} | } | ||
.infobox__details | .infobox__details th { | ||
width: 33%; | |||
font-size: 0.9rem; | |||
width: | |||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: 67%; | |||
font-size: 0.95rem; | |||
width: | |||
} | } | ||
. | .infobox__section-title, | ||
.infobox__subtitle, | |||
.infobox__panel > h2, | |||
font-size: | .infobox__panel > h3 { | ||
padding: 0.68rem 1.88rem 0.68rem 1.12rem; | |||
font-size: 1.08rem; | |||
} | } | ||
. | .infobox__section-body, | ||
.infobox__listbox, | |||
font-size: 0. | .infobox__games, | ||
.infobox__appearance-list { | |||
padding: 0.82rem 0.86rem; | |||
font-size: 0.95rem; | |||
} | } | ||
} | } | ||
/* 수동 다크 모드 */ | |||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .infobox { | html.skin-theme-clientpref-night .infobox { | ||
--infobox- | --infobox-outer: #52392f; | ||
--infobox- | --infobox-outer-dark: #3d2a23; | ||
--infobox- | --infobox-inner: #725a48; | ||
--infobox- | --infobox-inner-edge: #8f735c; | ||
--infobox-line: #ad8464; | |||
--infobox- | --infobox-line-soft: #98775d; | ||
--infobox- | --infobox-paper: #3a312c; | ||
--infobox- | --infobox-paper-dark: #493d36; | ||
--infobox- | --infobox-ribbon: #875a45; | ||
--infobox- | --infobox-ribbon-dark: #694332; | ||
--infobox- | --infobox-label: #94634d; | ||
--infobox- | --infobox-label-dark: #774d3b; | ||
--infobox- | --infobox-value: #3f342f; | ||
--infobox- | --infobox-value-border: #866956; | ||
--infobox- | --infobox-ink: #f2e7df; | ||
--infobox- | --infobox-link: #edc1a9; | ||
--infobox- | --infobox-link-hover: #ffe0d0; | ||
--infobox- | --infobox-focus: #d0a388; | ||
--infobox-title-text: #fff8f2; | |||
--infobox- | --infobox-text-outline: #311f18; | ||
--infobox- | --infobox-shadow: rgba(0, 0, 0, 0.35); | ||
--infobox- | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | ||
} | } | ||
} | } | ||
/* 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: #52392f; | ||
--infobox- | --infobox-outer-dark: #3d2a23; | ||
--infobox- | --infobox-inner: #725a48; | ||
--infobox- | --infobox-inner-edge: #8f735c; | ||
--infobox-line: #ad8464; | |||
--infobox- | --infobox-line-soft: #98775d; | ||
--infobox- | --infobox-paper: #3a312c; | ||
--infobox- | --infobox-paper-dark: #493d36; | ||
--infobox- | --infobox-ribbon: #875a45; | ||
--infobox- | --infobox-ribbon-dark: #694332; | ||
--infobox- | --infobox-label: #94634d; | ||
--infobox- | --infobox-label-dark: #774d3b; | ||
--infobox- | --infobox-value: #3f342f; | ||
--infobox- | --infobox-value-border: #866956; | ||
--infobox- | --infobox-ink: #f2e7df; | ||
--infobox- | --infobox-link: #edc1a9; | ||
--infobox- | --infobox-link-hover: #ffe0d0; | ||
--infobox- | --infobox-focus: #d0a388; | ||
--infobox-title-text: #fff8f2; | |||
--infobox- | --infobox-text-outline: #311f18; | ||
--infobox- | --infobox-shadow: rgba(0, 0, 0, 0.35); | ||
--infobox- | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | ||
} | } | ||
} | } | ||
