틀:정보상자/styles.css: 두 판 사이의 차이
식물 vs 좀비 위키
편집 요약 없음 태그: 되돌려진 기여 |
태그: 편집 취소 |
||
| 1번째 줄: | 1번째 줄: | ||
.infobox { | .infobox { | ||
--infobox-outer: # | --infobox-outer: #5d3b30; | ||
--infobox-outer-edge: # | --infobox-outer-edge: #45291f; | ||
--infobox-inner: #ead5af; | |||
--infobox-inner: # | --infobox-inner-edge: #c8aa7e; | ||
--infobox-inner-edge: # | --infobox-panel: #f3e8d7; | ||
--infobox-panel | |||
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png"); | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png"); | ||
--infobox-ribbon: # | --infobox-ribbon: #875340; | ||
--infobox-row-bg: #f7efe4; | |||
--infobox-row-edge: #bca184; | |||
--infobox-row-bg: # | --infobox-row-divider: #d5c0aa; | ||
--infobox-row-edge: # | --infobox-label-text: #231915; | ||
--infobox-row-divider: # | |||
--infobox-label-text: # | |||
--infobox-text: #493329; | --infobox-text: #493329; | ||
--infobox-link: # | --infobox-link: #8f573f; | ||
--infobox-link-hover: # | --infobox-link-hover: #653929; | ||
--infobox-focus: # | --infobox-focus: #ad775f; | ||
--infobox-title-text: #fffaf4; | --infobox-title-text: #fffaf4; | ||
--infobox-text-outline: # | --infobox-text-outline: #472b20; | ||
--infobox-shadow: rgba( | --infobox-shadow: rgba(68, 42, 31, 0.22); | ||
position: relative; | position: relative; | ||
| 33번째 줄: | 25번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.25rem 1.25rem; | margin: 0 0 1.25rem 1.25rem; | ||
padding: 1. | padding: 1.05rem 0.48rem 0.72rem; | ||
border: | border: 3px solid var(--infobox-outer-edge); | ||
border-radius: | border-radius: 24px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: var(--infobox-inner); | ||
color: var(--infobox-text); | color: var(--infobox-text); | ||
font-family: | font-family: | ||
| 58번째 줄: | 43번째 줄: | ||
font-weight: 300; | font-weight: 300; | ||
line-height: 1.55; | line-height: 1.55; | ||
box-shadow: | box-shadow: 0 8px 22px var(--infobox-shadow); | ||
overflow: visible; | overflow: visible; | ||
} | } | ||
| 67번째 줄: | 49번째 줄: | ||
.infobox::before { | .infobox::before { | ||
position: absolute; | position: absolute; | ||
top: | top: 6px; | ||
right: | right: 6px; | ||
bottom: | bottom: 6px; | ||
left: | left: 6px; | ||
border: | border: 1px solid var(--infobox-inner-edge); | ||
border-radius: | border-radius: 18px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
content: ""; | content: ""; | ||
pointer-events: none; | pointer-events: none; | ||
| 118번째 줄: | 71번째 줄: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: calc(100% | width: calc(100% - 2px); | ||
margin: -1. | margin: -1.72rem auto 0; | ||
padding: | padding: 0.94rem 2.35rem; | ||
border: 0; | border: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: var(--infobox-ribbon); | ||
clip-path: polygon( | clip-path: polygon( | ||
0 0, | 0 0, | ||
100% 0, | 100% 0, | ||
calc(100% - | calc(100% - 16px) 50%, | ||
100% 100%, | 100% 100%, | ||
0 100%, | 0 100%, | ||
16px 50% | |||
); | ); | ||
color: var(--infobox-title-text); | color: var(--infobox-title-text); | ||
| 148번째 줄: | 95번째 줄: | ||
"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; | line-height: 1.14; | ||
| 162번째 줄: | 109번째 줄: | ||
0 2px 0 var(--infobox-text-outline), | 0 2px 0 var(--infobox-text-outline), | ||
2px 2px 0 var(--infobox-text-outline), | 2px 2px 0 var(--infobox-text-outline), | ||
0 | -1px -2px 0 var(--infobox-text-outline), | ||
1px -2px 0 var(--infobox-text-outline), | |||
-2px -1px 0 var(--infobox-text-outline), | |||
2px -1px 0 var(--infobox-text-outline), | |||
-2px 1px 0 var(--infobox-text-outline), | |||
2px 1px 0 var(--infobox-text-outline), | |||
-1px 2px 0 var(--infobox-text-outline), | |||
1px 2px 0 var(--infobox-text-outline); | |||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: keep-all; | word-break: keep-all; | ||
} | } | ||
| 209번째 줄: | 130번째 줄: | ||
/* 내부 영역 */ | /* 내부 영역 */ | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0. | margin-top: 0.58rem; | ||
padding: 0 0. | padding: 0 0.08rem 0.1rem; | ||
background: transparent; | background: transparent; | ||
} | } | ||
| 220번째 줄: | 141번째 줄: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: calc(100% - | width: calc(100% - 14px); | ||
aspect-ratio: 1 / 1; | aspect-ratio: 1 / 1; | ||
margin: 0 auto 0. | margin: 0 auto 0.78rem; | ||
padding: 0. | padding: 0.82rem; | ||
border: 0; | border: 0; | ||
border-radius: 0; | border-radius: 0; | ||
| 264번째 줄: | 185번째 줄: | ||
margin: 0 auto; | margin: 0 auto; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
/* 정보칸 */ | /* 정보칸 */ | ||
.infobox__details { | .infobox__details { | ||
width: calc(100% - | width: calc(100% - 24px); | ||
margin: 0 auto; | margin: 0 auto; | ||
border: | border: 1px solid var(--infobox-row-edge); | ||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0; | border-spacing: 0; | ||
border-radius: | border-radius: 14px; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: | background: var(--infobox-row-bg); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| 295번째 줄: | 207번째 줄: | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0. | padding: 0.52rem 0.72rem; | ||
border: 0; | border: 0; | ||
border-radius: 0; | border-radius: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background-color: | background-color: var(--infobox-row-bg); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
line-height: 1. | line-height: 1.38; | ||
text-align: left; | text-align: left; | ||
} | } | ||
| 312번째 줄: | 224번째 줄: | ||
); | ); | ||
background-position: right bottom; | background-position: right bottom; | ||
background-size: calc(100% - 0. | background-size: calc(100% - 0.72rem) 1px; | ||
} | } | ||
| 322번째 줄: | 234번째 줄: | ||
); | ); | ||
background-position: left bottom; | background-position: left bottom; | ||
background-size: calc(100% - 0. | background-size: calc(100% - 0.72rem) 1px; | ||
} | } | ||
| 337번째 줄: | 249번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 0. | font-size: 0.83rem; | ||
font-weight: 500; | font-weight: 500; | ||
vertical-align: top; | vertical-align: top; | ||
| 370번째 줄: | 282번째 줄: | ||
position: relative; | position: relative; | ||
display: block; | display: block; | ||
width: calc(100% - | width: calc(100% - 14px); | ||
margin: | margin: 0.9rem auto 0.62rem; | ||
padding: 0. | padding: 0.7rem 2.04rem 0.7rem 1.18rem; | ||
border: 0; | border: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: var(--infobox-ribbon); | ||
clip-path: polygon( | clip-path: polygon( | ||
0 0, | 0 0, | ||
100% 0, | 100% 0, | ||
calc(100% - | calc(100% - 12px) 50%, | ||
100% 100%, | 100% 100%, | ||
0 100%, | 0 100%, | ||
12px 50% | |||
); | ); | ||
color: var(--infobox-title-text); | color: var(--infobox-title-text); | ||
| 399번째 줄: | 306번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 1. | font-size: 1.08rem; | ||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.14; | line-height: 1.14; | ||
| 412번째 줄: | 319번째 줄: | ||
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); | ||
} | } | ||
| 421번째 줄: | 327번째 줄: | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
right: 0. | right: 0.84rem; | ||
width: 0; | width: 0; | ||
height: 0; | height: 0; | ||
| 436번째 줄: | 342번째 줄: | ||
.infobox__games, | .infobox__games, | ||
.infobox__appearance-list { | .infobox__appearance-list { | ||
width: calc(100% - | width: calc(100% - 14px); | ||
margin: 0 auto 0. | margin: 0 auto 0.36rem; | ||
padding: 0. | padding: 0.84rem 0.92rem; | ||
border: | border: 1px solid var(--infobox-row-edge); | ||
border-radius: | border-radius: 7px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: var(--infobox-panel); | ||
color: var(--infobox-text); | color: var(--infobox-text); | ||
font-size: 0.92rem; | font-size: 0.92rem; | ||
line-height: 1.48; | line-height: 1.48; | ||
} | } | ||
| 535번째 줄: | 433번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.1rem; | margin: 0 0 1.1rem; | ||
padding: | padding: 1rem 0.42rem 0.66rem; | ||
border-radius: | border-radius: 22px; | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
.infobox::before { | .infobox::before { | ||
top: | top: 5px; | ||
right: | right: 5px; | ||
bottom: | bottom: 5px; | ||
left: | left: 5px; | ||
border-radius: | border-radius: 17px; | ||
} | } | ||
.infobox__title { | .infobox__title { | ||
width: | width: 100%; | ||
margin: -1. | margin-top: -1.6rem; | ||
padding: 0. | padding: 0.9rem 2rem; | ||
font-size: 1. | font-size: 1.46rem; | ||
} | } | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - | width: calc(100% - 12px); | ||
padding: 0. | padding: 0.76rem; | ||
} | } | ||
.infobox__details { | .infobox__details { | ||
width: calc(100% - | width: calc(100% - 20px); | ||
border-radius: | border-radius: 13px; | ||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0. | padding: 0.52rem 0.66rem; | ||
} | } | ||
.infobox__details tr:not(:last-child) th { | .infobox__details tr:not(:last-child) th { | ||
background-size: calc(100% - 0. | background-size: calc(100% - 0.66rem) 1px; | ||
} | } | ||
.infobox__details tr:not(:last-child) td { | .infobox__details tr:not(:last-child) td { | ||
background-size: calc(100% - 0. | background-size: calc(100% - 0.66rem) 1px; | ||
} | } | ||
| 617번째 줄: | 515번째 줄: | ||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.infobox { | .infobox { | ||
padding: | padding: 0.92rem 0.34rem 0.58rem; | ||
border-radius: | border-radius: 19px; | ||
} | } | ||
.infobox::before { | .infobox::before { | ||
top: | top: 4px; | ||
right: | right: 4px; | ||
bottom: | bottom: 4px; | ||
left: | left: 4px; | ||
border-radius: | border-radius: 14px; | ||
} | } | ||
.infobox__title { | .infobox__title { | ||
margin-top: -1.42rem; | |||
margin: -1. | padding: 0.78rem 1.72rem; | ||
padding: 0. | font-size: 1.28rem; | ||
font-size: 1. | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - 8px); | width: calc(100% - 8px); | ||
padding: 0. | padding: 0.66rem; | ||
} | } | ||
.infobox__details { | .infobox__details { | ||
width: calc(100% - | width: calc(100% - 16px); | ||
border-radius: | border-radius: 12px; | ||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0. | padding: 0.48rem 0.58rem; | ||
} | } | ||
.infobox__details tr:not(:last-child) th { | .infobox__details tr:not(:last-child) th { | ||
background-size: calc(100% - 0. | background-size: calc(100% - 0.58rem) 1px; | ||
} | } | ||
.infobox__details tr:not(:last-child) td { | .infobox__details tr:not(:last-child) td { | ||
background-size: calc(100% - 0. | background-size: calc(100% - 0.58rem) 1px; | ||
} | } | ||
| 691번째 줄: | 574번째 줄: | ||
.infobox__games, | .infobox__games, | ||
.infobox__appearance-list { | .infobox__appearance-list { | ||
width: calc(100% - | width: calc(100% - 6px); | ||
} | } | ||
| 698번째 줄: | 581번째 줄: | ||
.infobox__panel > h2, | .infobox__panel > h2, | ||
.infobox__panel > h3 { | .infobox__panel > h3 { | ||
padding: 0. | padding: 0.64rem 1.78rem 0.64rem 1rem; | ||
font-size: 1. | font-size: 1.04rem; | ||
} | } | ||
| 706번째 줄: | 589번째 줄: | ||
.infobox__games, | .infobox__games, | ||
.infobox__appearance-list { | .infobox__appearance-list { | ||
padding: 0. | padding: 0.76rem 0.8rem; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
} | } | ||
| 714번째 줄: | 597번째 줄: | ||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .infobox { | html.skin-theme-clientpref-night .infobox { | ||
--infobox-outer: # | --infobox-outer: #4c3329; | ||
--infobox-outer-edge: # | --infobox-outer-edge: #36231c; | ||
--infobox-inner: #6d5644; | |||
--infobox-inner: # | --infobox-inner-edge: #8c7157; | ||
--infobox-inner-edge: # | --infobox-panel: #3d332d; | ||
--infobox-panel | |||
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | ||
--infobox-ribbon: # | --infobox-ribbon: #805542; | ||
--infobox-row-bg: #433731; | |||
--infobox-row-edge: #896c59; | |||
--infobox-row-bg: # | --infobox-row-divider: #6f5748; | ||
--infobox-row-edge: # | --infobox-label-text: #f3e8df; | ||
--infobox-row-divider: # | --infobox-text: #f3e8df; | ||
--infobox-label-text: # | --infobox-link: #edc1a9; | ||
--infobox-text: # | --infobox-link-hover: #ffe1d0; | ||
--infobox-link: # | --infobox-focus: #d1a58b; | ||
--infobox-link-hover: # | |||
--infobox-focus: # | |||
--infobox-title-text: #fff8f2; | --infobox-title-text: #fff8f2; | ||
--infobox-text-outline: # | --infobox-text-outline: #301d16; | ||
--infobox-shadow: rgba(0, 0, 0, 0. | --infobox-shadow: rgba(0, 0, 0, 0.34); | ||
} | } | ||
} | } | ||
| 746번째 줄: | 621번째 줄: | ||
@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-outer: # | --infobox-outer: #4c3329; | ||
--infobox-outer-edge: # | --infobox-outer-edge: #36231c; | ||
--infobox-inner: #6d5644; | |||
--infobox-inner: # | --infobox-inner-edge: #8c7157; | ||
--infobox-inner-edge: # | --infobox-panel: #3d332d; | ||
--infobox-panel | |||
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | --infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png"); | ||
--infobox-ribbon: # | --infobox-ribbon: #805542; | ||
--infobox-row-bg: #433731; | |||
--infobox-row-edge: #896c59; | |||
--infobox-row-bg: # | --infobox-row-divider: #6f5748; | ||
--infobox-row-edge: # | --infobox-label-text: #f3e8df; | ||
--infobox-row-divider: # | --infobox-text: #f3e8df; | ||
--infobox-label-text: # | --infobox-link: #edc1a9; | ||
--infobox-text: # | --infobox-link-hover: #ffe1d0; | ||
--infobox-link: # | --infobox-focus: #d1a58b; | ||
--infobox-link-hover: # | |||
--infobox-focus: # | |||
--infobox-title-text: #fff8f2; | --infobox-title-text: #fff8f2; | ||
--infobox-text-outline: # | --infobox-text-outline: #301d16; | ||
--infobox-shadow: rgba(0, 0, 0, 0. | --infobox-shadow: rgba(0, 0, 0, 0.34); | ||
} | } | ||
} | } | ||
