틀:정보상자/styles.css: 두 판 사이의 차이
식물 vs 좀비 위키
편집 요약 없음 |
편집 요약 없음 |
||
| 3번째 줄: | 3번째 줄: | ||
--infobox-outer-edge: #45291f; | --infobox-outer-edge: #45291f; | ||
--infobox-inner: #ead5af; | --infobox-inner: #ead5af; | ||
--infobox-inner-edge: # | --infobox-inner-edge: #c8aa7e; | ||
--infobox-panel: #f3e8d7; | --infobox-panel: #f3e8d7; | ||
--infobox-image-frame: #925f46; | --infobox-image-frame: #925f46; | ||
--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: #875340; | --infobox-ribbon: #875340; | ||
--infobox-row-bg: #f7efe4; | |||
--infobox-row- | --infobox-row-edge: #bca184; | ||
--infobox-row | --infobox-row-divider: #d5c0aa; | ||
--infobox-row- | |||
--infobox-text: #493329; | --infobox-text: #493329; | ||
--infobox-link: #8f573f; | --infobox-link: #8f573f; | ||
| 21번째 줄: | 17번째 줄: | ||
--infobox-title-text: #fffaf4; | --infobox-title-text: #fffaf4; | ||
--infobox-text-outline: #472b20; | --infobox-text-outline: #472b20; | ||
--infobox-shadow: rgba(68, 42, 31, 0. | --infobox-shadow: rgba(68, 42, 31, 0.22); | ||
position: relative; | position: relative; | ||
| 29번째 줄: | 25번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.25rem 1.25rem; | margin: 0 0 1.25rem 1.25rem; | ||
padding: 0. | padding: 1.05rem 0.48rem 0.62rem; | ||
border: | border: 1px solid var(--infobox-outer-edge); | ||
border-radius: | border-radius: 24px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: var(--infobox- | background: var(--infobox-inner); | ||
color: var(--infobox-text); | color: var(--infobox-text); | ||
font-family: | font-family: | ||
| 47번째 줄: | 43번째 줄: | ||
font-weight: 300; | font-weight: 300; | ||
line-height: 1.55; | line-height: 1.55; | ||
box-shadow: 0 | box-shadow: 0 8px 22px var(--infobox-shadow); | ||
overflow: visible; | overflow: visible; | ||
} | } | ||
| 53번째 줄: | 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: 19px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
content: ""; | content: ""; | ||
pointer-events: none; | |||
} | } | ||
| 87번째 줄: | 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: 0. | padding: 0.94rem 2.35rem; | ||
border: 0; | border: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| 96번째 줄: | 80번째 줄: | ||
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); | ||
| 117번째 줄: | 101번째 줄: | ||
text-align: center; | text-align: center; | ||
text-shadow: | text-shadow: | ||
- | -2px -2px 0 var(--infobox-text-outline), | ||
0 - | 0 -2px 0 var(--infobox-text-outline), | ||
2px -2px 0 var(--infobox-text-outline), | |||
- | -2px 0 0 var(--infobox-text-outline), | ||
1px 0 0 var(--infobox-text-outline), | 2px 0 0 var(--infobox-text-outline), | ||
-1px 1px 0 var(--infobox-text-outline), | -2px 2px 0 var(--infobox-text-outline), | ||
0 1px 0 var(--infobox-text-outline), | 0 2px 0 var(--infobox-text-outline), | ||
1px 1px 0 var(--infobox-text-outline); | 2px 2px 0 var(--infobox-text-outline), | ||
-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; | ||
| 139번째 줄: | 131번째 줄: | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0.58rem; | margin-top: 0.58rem; | ||
padding: 0 0. | padding: 0 0.08rem 0.1rem; | ||
background: transparent; | background: transparent; | ||
} | } | ||
| 149번째 줄: | 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.7rem; | ||
padding: 0. | padding: 0.82rem; | ||
border: | border: 2px solid var(--infobox-image-frame); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background-color: transparent; | background-color: transparent; | ||
| 173번째 줄: | 165번째 줄: | ||
0 12% | 0 12% | ||
); | ); | ||
overflow: hidden; | overflow: hidden; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| 213번째 줄: | 193번째 줄: | ||
} | } | ||
/* | /* 정보칸 */ | ||
.infobox__details { | .infobox__details { | ||
width: calc(100% - | width: calc(100% - 2px); | ||
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: 7px; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: var(--infobox-row- | background: var(--infobox-row-bg); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; | overflow: hidden; | ||
| 229번째 줄: | 209번째 줄: | ||
.infobox__details tr { | .infobox__details tr { | ||
background: transparent; | background: transparent; | ||
} | |||
.infobox__details tr:not(:last-child) th, | |||
.infobox__details tr:not(:last-child) td { | |||
border-bottom: 1px solid var(--infobox-row-divider); | |||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0.5rem 0.68rem; | |||
border: 0; | border: 0; | ||
border-radius: 0; | border-radius: 0; | ||
box-sizing: border-box; | |||
background: var(--infobox-row-bg); | |||
line-height: 1.38; | |||
text-align: left; | text-align: left; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: 31%; | width: 31%; | ||
border-right: 1px solid var(--infobox-row-divider); | |||
border-right: 1px solid var(--infobox-row- | |||
color: var(--infobox-title-text); | color: var(--infobox-title-text); | ||
font-family: | font-family: | ||
| 277번째 줄: | 242번째 줄: | ||
font-size: 0.83rem; | font-size: 0.83rem; | ||
font-weight: 500; | font-weight: 500; | ||
vertical-align: top; | vertical-align: top; | ||
text-shadow: | text-shadow: | ||
| 293번째 줄: | 257번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
width: 69%; | width: 69%; | ||
color: var(--infobox-text); | color: var(--infobox-text); | ||
font-family: | font-family: | ||
| 309번째 줄: | 269번째 줄: | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
font-weight: 300; | font-weight: 300; | ||
vertical-align: middle; | |||
word-break: break-word; | word-break: break-word; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
| 321번째 줄: | 281번째 줄: | ||
position: relative; | position: relative; | ||
display: block; | display: block; | ||
width: calc(100% - | width: calc(100% - 14px); | ||
margin: 0. | margin: 0.9rem auto 0.62rem; | ||
padding: 0. | padding: 0.7rem 2.04rem 0.7rem 1.18rem; | ||
border: | border: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: var(--infobox-ribbon); | background: var(--infobox-ribbon); | ||
clip-path: polygon( | clip-path: polygon( | ||
0 0, | |||
100% 0, | |||
calc(100% - 12px) 50%, | |||
100% 100%, | |||
0 100%, | |||
12px 50% | |||
); | |||
color: var(--infobox-title-text); | color: var(--infobox-title-text); | ||
font-family: | font-family: | ||
| 359번째 줄: | 326번째 줄: | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
right: 0. | right: 0.84rem; | ||
width: 0; | width: 0; | ||
height: 0; | height: 0; | ||
border-top: | border-top: 8px solid var(--infobox-outer-edge); | ||
border-right: | border-right: 8px solid transparent; | ||
border-left: | border-left: 8px solid transparent; | ||
content: ""; | content: ""; | ||
transform: translateY(-34%); | transform: translateY(-34%); | ||
| 374번째 줄: | 341번째 줄: | ||
.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: var(--infobox-panel); | background: var(--infobox-panel); | ||
| 392번째 줄: | 359번째 줄: | ||
.infobox__games p, | .infobox__games p, | ||
.infobox__appearance-list p { | .infobox__appearance-list p { | ||
margin: 0. | margin: 0.1em 0; | ||
font: inherit; | font: inherit; | ||
} | } | ||
| 406번째 줄: | 373번째 줄: | ||
.infobox__appearance-list ul, | .infobox__appearance-list ul, | ||
.infobox__appearance-list ol { | .infobox__appearance-list ol { | ||
margin: 0. | margin: 0.14em 0 0.14em 1.12em; | ||
padding: 0; | padding: 0; | ||
font: inherit; | font: inherit; | ||
| 416번째 줄: | 383번째 줄: | ||
.infobox__games li, | .infobox__games li, | ||
.infobox__appearance-list li { | .infobox__appearance-list li { | ||
margin: 0. | margin: 0.1em 0; | ||
font: inherit; | font: inherit; | ||
} | } | ||
| 465번째 줄: | 432번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.1rem; | margin: 0 0 1.1rem; | ||
padding: 0. | padding: 1rem 0.42rem 0.56rem; | ||
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: 18px; | border-radius: 18px; | ||
} | } | ||
.infobox__title { | .infobox__title { | ||
width: 100%; | |||
margin-top: -1.6rem; | |||
padding: 0.9rem 2rem; | padding: 0.9rem 2rem; | ||
font-size: 1. | font-size: 1.46rem; | ||
} | } | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - 10px); | |||
padding: 0.76rem; | |||
padding: 0. | |||
} | } | ||
. | .infobox__details { | ||
width: 100%; | |||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0. | padding: 0.52rem 0.66rem; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 31%; | ||
font-size: 0.96rem; | font-size: 0.96rem; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 69%; | ||
font-size: 1rem; | font-size: 1rem; | ||
} | |||
.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); | |||
} | } | ||
| 534번째 줄: | 491번째 줄: | ||
.infobox__panel > h2, | .infobox__panel > h2, | ||
.infobox__panel > h3 { | .infobox__panel > h3 { | ||
font-size: 1.2rem; | font-size: 1.2rem; | ||
} | } | ||
| 549번째 줄: | 505번째 줄: | ||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.infobox { | .infobox { | ||
padding: 0. | padding: 0.92rem 0.34rem 0.48rem; | ||
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: 15px; | ||
} | } | ||
.infobox__title { | .infobox__title { | ||
margin-top: -1. | margin-top: -1.42rem; | ||
padding: 0. | padding: 0.78rem 1.72rem; | ||
font-size: 1. | font-size: 1.28rem; | ||
} | } | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - 6px); | |||
padding: 0.66rem; | |||
width: calc(100% - | |||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0.48rem 0. | padding: 0.48rem 0.58rem; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 33%; | ||
font-size: 0.89rem; | font-size: 0.89rem; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 67%; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
} | |||
.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); | |||
} | } | ||
| 618번째 줄: | 558번째 줄: | ||
.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; | ||
} | } | ||
| 626번째 줄: | 566번째 줄: | ||
.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; | ||
} | } | ||
| 639번째 줄: | 579번째 줄: | ||
--infobox-inner-edge: #8c7157; | --infobox-inner-edge: #8c7157; | ||
--infobox-panel: #3d332d; | --infobox-panel: #3d332d; | ||
--infobox-image-frame: #a07a60; | --infobox-image-frame: #a07a60; | ||
--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: #805542; | --infobox-ribbon: #805542; | ||
--infobox-row-bg: #433731; | |||
--infobox-row- | --infobox-row-edge: #896c59; | ||
--infobox-row | --infobox-row-divider: #6f5748; | ||
--infobox-row- | |||
--infobox-text: #f3e8df; | --infobox-text: #f3e8df; | ||
--infobox-link: #edc1a9; | --infobox-link: #edc1a9; | ||
| 655번째 줄: | 591번째 줄: | ||
--infobox-title-text: #fff8f2; | --infobox-title-text: #fff8f2; | ||
--infobox-text-outline: #301d16; | --infobox-text-outline: #301d16; | ||
--infobox-shadow: rgba(0, 0, 0, 0. | --infobox-shadow: rgba(0, 0, 0, 0.34); | ||
} | } | ||
} | } | ||
| 667번째 줄: | 603번째 줄: | ||
--infobox-inner-edge: #8c7157; | --infobox-inner-edge: #8c7157; | ||
--infobox-panel: #3d332d; | --infobox-panel: #3d332d; | ||
--infobox-image-frame: #a07a60; | --infobox-image-frame: #a07a60; | ||
--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: #805542; | --infobox-ribbon: #805542; | ||
--infobox-row-bg: #433731; | |||
--infobox-row- | --infobox-row-edge: #896c59; | ||
--infobox-row | --infobox-row-divider: #6f5748; | ||
--infobox-row- | |||
--infobox-text: #f3e8df; | --infobox-text: #f3e8df; | ||
--infobox-link: #edc1a9; | --infobox-link: #edc1a9; | ||
| 683번째 줄: | 615번째 줄: | ||
--infobox-title-text: #fff8f2; | --infobox-title-text: #fff8f2; | ||
--infobox-text-outline: #301d16; | --infobox-text-outline: #301d16; | ||
--infobox-shadow: rgba(0, 0, 0, 0. | --infobox-shadow: rgba(0, 0, 0, 0.34); | ||
} | } | ||
} | } | ||
