틀:정보상자/styles.css: 두 판 사이의 차이
식물 vs 좀비 위키
편집 요약 없음 |
편집 요약 없음 태그: 모바일 편집 모바일 웹 편집 |
||
| (같은 사용자의 중간 판 50개는 보이지 않습니다) | |||
| 5번째 줄: | 5번째 줄: | ||
--infobox-inner-edge: #c8aa7e; | --infobox-inner-edge: #c8aa7e; | ||
--infobox-panel: #f3e8d7; | --infobox-panel: #f3e8d7; | ||
--infobox-image-box: # | --infobox-image-box: #f7f1e7; | ||
--infobox-image-pattern: rgba( | --infobox-image-pattern: rgba(145, 87, 70, 0.025); | ||
--infobox-image-line: #875340; | --infobox-image-line: #875340; | ||
--infobox-ribbon: #875340; | --infobox-ribbon: #875340; | ||
| 12번째 줄: | 12번째 줄: | ||
--infobox-row-edge: #bca184; | --infobox-row-edge: #bca184; | ||
--infobox-row-divider: #d5c0aa; | --infobox-row-divider: #d5c0aa; | ||
--infobox-details-bg: #f1e4d2; | |||
--infobox-detail-label-bg: #ead9c2; | |||
--infobox-detail-value-bg: #f6ecde; | |||
--infobox-caption-bg: #efe2d2; | |||
--infobox-label-text: #231915; | --infobox-label-text: #231915; | ||
--infobox-text: #493329; | --infobox-text: #493329; | ||
| 48번째 줄: | 52번째 줄: | ||
line-height: 1.55; | line-height: 1.55; | ||
box-shadow: 0 0 22px 3px var(--infobox-shadow); | box-shadow: 0 0 22px 3px var(--infobox-shadow); | ||
filter: drop-shadow(0 0 5px rgba(69, 41, 31, 0.34)); | |||
overflow: visible; | overflow: visible; | ||
} | } | ||
| 75번째 줄: | 80번째 줄: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: calc(100% - | width: calc(100% - 24px); | ||
margin: 0.46rem auto 0; | margin: 0.46rem auto 0; | ||
padding: 0. | padding: 0.76rem 2.35rem 0.7rem; | ||
border: 0; | border: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: transparent; | ||
color: var(--infobox-title-text); | color: var(--infobox-title-text); | ||
isolation: isolate; | |||
font-family: | font-family: | ||
"SB Aggro B", | "SB Aggro B", | ||
| 99번째 줄: | 97번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 1. | font-size: 1.36rem; | ||
font-weight: 700; | font-weight: 700; | ||
line-height: 1.14; | line-height: 1.14; | ||
letter-spacing: -0.03em; | letter-spacing: -0.03em; | ||
text-align: center; | text-align: center; | ||
filter: | |||
drop-shadow(0 3px 2px rgba(69, 41, 31, 0.38)) | |||
drop-shadow(0 1px 1px rgba(69, 41, 31, 0.24)); | |||
text-shadow: | text-shadow: | ||
-2px -2px 0 var(--infobox-text-outline), | -2px -2px 0 var(--infobox-text-outline), | ||
| 130번째 줄: | 131번째 줄: | ||
color: inherit; | color: inherit; | ||
line-height: inherit; | line-height: inherit; | ||
} | |||
.infobox__title::before { | |||
position: absolute; | |||
z-index: -1; | |||
inset: 0; | |||
background: var(--infobox-ribbon); | |||
clip-path: polygon( | |||
0 0, | |||
100% 0, | |||
calc(100% - 16px) 50%, | |||
100% 100%, | |||
0 100%, | |||
16px 50% | |||
); | |||
content: ""; | |||
pointer-events: none; | |||
} | } | ||
| 143번째 줄: | 161번째 줄: | ||
position: relative; | position: relative; | ||
display: block; | display: block; | ||
width: calc(100% - | width: calc(100% - 24px); | ||
margin: | margin: 1.55rem auto 1.75rem; | ||
padding: 0. | padding: 0.5rem; | ||
border: 1px solid var(--infobox-row-edge); | border: 1px solid var(--infobox-row-edge); | ||
border-radius: 11px; | border-radius: 11px; | ||
| 151번째 줄: | 169번째 줄: | ||
background-color: var(--infobox-image-box); | background-color: var(--infobox-image-box); | ||
background-image: | background-image: | ||
linear-gradient( | |||
45deg, | |||
var(--infobox-image-pattern) | var(--infobox-image-pattern) 25%, | ||
transparent | transparent 25%, | ||
transparent 75%, | |||
var(--infobox-image-pattern) 75% | |||
), | |||
linear-gradient( | |||
-45deg, | |||
var(--infobox-image-pattern) 25%, | |||
transparent 25%, | |||
transparent 75%, | |||
var(--infobox-image-pattern) 75% | |||
); | ); | ||
background-repeat: repeat; | background-repeat: repeat; | ||
background-position: 0 0; | background-position: | ||
background-size: | 0 0, | ||
8px 8px; | |||
background-size: 16px 16px; | |||
box-shadow: | box-shadow: | ||
0 4px 11px rgba(68, 42, 31, 0.1), | 0 4px 11px rgba(68, 42, 31, 0.1), | ||
inset 0 0 0 3px rgba(255, 250, 242, 0.16); | inset 0 0 0 3px rgba(255, 250, 242, 0.16); | ||
overflow: | overflow: visible; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| 183번째 줄: | 212번째 줄: | ||
.infobox__image::after { | .infobox__image::after { | ||
position: absolute; | position: absolute; | ||
z-index: | z-index: 1; | ||
right: 0.78rem; | right: 0.78rem; | ||
bottom: 0.54rem; | bottom: 0.54rem; | ||
| 195번째 줄: | 224번째 줄: | ||
} | } | ||
/* | /* 이미지 */ | ||
.infobox__image | .infobox__image-media { | ||
position: relative; | position: relative; | ||
z-index: | z-index: 2; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 100%; | width: 100%; | ||
min-height: 0; | |||
max-height: 320px; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.infobox__image | .infobox__image-media > a { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 100%; | width: 100%; | ||
} | } | ||
.infobox__image . | .infobox__image-media img, | ||
.infobox__image-media .mw-file-element { | |||
display: block; | display: block; | ||
width: | width: auto; | ||
max-width: 100% | max-width: 100%; | ||
height: | height: auto; | ||
max-height: | max-height: 320px; | ||
margin: 0 auto; | margin: 0 auto; | ||
object-fit: contain; | object-fit: contain; | ||
filter: drop-shadow(0 | filter: | ||
drop-shadow(0 3px 2px rgba(69, 41, 31, 0.68)) | |||
drop-shadow(0 1px 1px rgba(69, 41, 31, 0.48)) !important; | |||
} | } | ||
/* | /* 별도 설명문 */ | ||
.infobox__image | .infobox__image-caption { | ||
position: relative; | position: relative; | ||
z-index: | z-index: 5; | ||
width: calc(100% - 0.8rem); | width: calc(100% - 0.8rem); | ||
margin: | margin: -1.8rem auto -0.9rem; | ||
padding: 0. | padding: 0.56rem 0.66rem; | ||
border: 1px solid var(--infobox-row-edge); | border: 1px solid var(--infobox-row-edge); | ||
border-radius: 9px; | border-radius: 9px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: var(--infobox- | background: var(--infobox-caption-bg); | ||
box-shadow: 0 3px 8px rgba(68, 42, 31, 0.1); | box-shadow: 0 3px 8px rgba(68, 42, 31, 0.1); | ||
color: | color: #5a463d; | ||
font-family: | font-family: | ||
"SB Aggro L", | "SB Aggro L", | ||
| 314번째 줄: | 282번째 줄: | ||
font-size: 0.78rem; | font-size: 0.78rem; | ||
font-weight: 300; | font-weight: 300; | ||
font-style: italic; | |||
line-height: 1.42; | line-height: 1.42; | ||
text-align: center; | text-align: center; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: keep-all; | word-break: keep-all; | ||
transform: translateY(1.18rem); | |||
} | } | ||
.infobox__image | .infobox__image-caption p { | ||
margin: 0; | margin: 0; | ||
font: inherit; | font: inherit; | ||
| 329번째 줄: | 299번째 줄: | ||
width: calc(100% - 24px); | width: calc(100% - 24px); | ||
margin: 0 auto; | margin: 0 auto; | ||
border: | padding: 0; | ||
border: 1px solid var(--infobox-row-edge); | |||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0; | border-spacing: 0; | ||
border-radius: | border-radius: 12px; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: var(--infobox- | background: var(--infobox-detail-value-bg); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
box-shadow: none; | |||
overflow: hidden; | overflow: hidden; | ||
} | |||
.infobox__details tbody { | |||
display: block; | |||
width: 100%; | |||
} | } | ||
.infobox__details tr { | .infobox__details tr { | ||
position: relative; | |||
display: grid; | |||
grid-template-columns: minmax(0, 31%) minmax(0, 69%); | |||
width: 100%; | |||
background: transparent; | background: transparent; | ||
} | |||
.infobox__details tr::before { | |||
position: absolute; | |||
z-index: 0; | |||
top: 0; | |||
bottom: 0; | |||
left: 0; | |||
width: 31%; | |||
background: var(--infobox-detail-label-bg); | |||
content: ""; | |||
pointer-events: none; | |||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding: 0. | position: relative; | ||
z-index: 1; | |||
display: block; | |||
width: auto; | |||
min-width: 0; | |||
max-width: 100%; | |||
padding: 0.62rem 0.72rem; | |||
border: 0; | border: 0; | ||
border-radius: 0; | border-radius: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background | background: transparent; | ||
line-height: 1.4; | |||
line-height: 1. | |||
text-align: left; | text-align: left; | ||
max-height: 11.2em; | |||
overflow-x: hidden; | |||
overflow-y: auto; | |||
white-space: normal; | |||
word-break: break-word; | |||
overflow-wrap: anywhere; | |||
} | } | ||
.infobox__details tr:not(:last-child) { | |||
border-bottom: 1px solid var(--infobox-row-divider); | |||
} | |||
.infobox__details th { | .infobox__details th { | ||
width: | width: auto; | ||
background: transparent; | |||
color: var(--infobox-label-text); | color: var(--infobox-label-text); | ||
font-family: | font-family: | ||
| 376번째 줄: | 385번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: auto; | ||
color: var(--infobox-text); | color: var(--infobox-text); | ||
font-family: | font-family: | ||
| 392번째 줄: | 401번째 줄: | ||
word-break: break-word; | word-break: break-word; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
} | |||
.infobox b, | |||
.infobox strong { | |||
font-family: | |||
"SB Aggro M", | |||
"SB 어그로 M", | |||
-apple-system, | |||
BlinkMacSystemFont, | |||
"Segoe UI", | |||
"Apple SD Gothic Neo", | |||
"Noto Sans KR", | |||
sans-serif; | |||
font-weight: 500; | |||
} | |||
.infobox b a, | |||
.infobox strong a, | |||
.infobox a b, | |||
.infobox a strong { | |||
font-family: inherit; | |||
font-weight: inherit; | |||
} | } | ||
| 566번째 줄: | 598번째 줄: | ||
.infobox__title { | .infobox__title { | ||
width: calc(100% - | width: calc(100% - 20px); | ||
margin: 0.42rem auto 0; | margin: 0.42rem auto 0; | ||
padding: 0. | padding: 0.72rem 2rem 0.66rem; | ||
font-size: 1. | font-size: 1.54rem; | ||
} | } | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - | width: calc(100% - 20px); | ||
padding: 0. | margin-top: 1.45rem; | ||
margin-bottom: 1.65rem; | |||
padding: 0.48rem; | |||
} | |||
.infobox__image-caption { | |||
transform: translateY(1rem); | |||
} | } | ||
.infobox__details { | .infobox__details { | ||
width: calc(100% - 20px); | width: calc(100% - 20px); | ||
border-radius: | border-radius: 12px; | ||
overflow: hidden; | |||
} | } | ||
| 589번째 줄: | 628번째 줄: | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: auto; | ||
font-size: 0.96rem; | font-size: 0.96rem; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: auto; | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
| 640번째 줄: | 679번째 줄: | ||
.infobox__title { | .infobox__title { | ||
width: calc(100% - | width: calc(100% - 16px); | ||
margin: 0.36rem auto 0; | margin: 0.36rem auto 0; | ||
padding: 0. | padding: 0.66rem 1.72rem 0.6rem; | ||
font-size: 1. | font-size: 1.36rem; | ||
} | } | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - | width: calc(100% - 16px); | ||
padding: 0. | margin-top: 1.35rem; | ||
margin-bottom: 1.55rem; | |||
padding: 0.44rem; | |||
} | } | ||
.infobox__image | .infobox__image-caption { | ||
width: calc(100% - 0.7rem); | width: calc(100% - 0.7rem); | ||
padding: 0.52rem 0.58rem; | |||
font-size: 0.84rem; | font-size: 0.84rem; | ||
transform: translateY(0.9rem); | |||
} | } | ||
| 665번째 줄: | 702번째 줄: | ||
width: calc(100% - 16px); | width: calc(100% - 16px); | ||
border-radius: 12px; | border-radius: 12px; | ||
overflow: hidden; | |||
} | } | ||
| 672번째 줄: | 710번째 줄: | ||
} | } | ||
.infobox__details tr { | |||
grid-template-columns: minmax(0, 33%) minmax(0, 67%); | |||
} | |||
.infobox__details tr::before { | |||
width: 33%; | |||
} | |||
.infobox__details th { | .infobox__details th { | ||
width: | width: auto; | ||
font-size: 0.89rem; | font-size: 0.89rem; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: auto; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
} | } | ||
| 714번째 줄: | 760번째 줄: | ||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .infobox { | html.skin-theme-clientpref-night .infobox { | ||
--infobox-outer: # | --infobox-outer: #574036; | ||
--infobox-outer-edge: # | --infobox-outer-edge: #3f2c25; | ||
--infobox-inner: # | --infobox-inner: #cfb894; | ||
--infobox-inner-edge: # | --infobox-inner-edge: #aa8e69; | ||
--infobox-panel: # | --infobox-panel: #ddd0bf; | ||
--infobox-image-box: # | --infobox-image-box: #ded4c7; | ||
--infobox-image-pattern: rgba( | --infobox-image-pattern: rgba(119, 76, 59, 0.035); | ||
--infobox-image-line: # | --infobox-image-line: #93634e; | ||
--infobox-ribbon: # | --infobox-ribbon: #7d5543; | ||
--infobox-row-bg: # | --infobox-row-bg: #e4d7c8; | ||
--infobox-row-edge: # | --infobox-row-edge: #a98e72; | ||
--infobox-row-divider: # | --infobox-row-divider: #c4ad96; | ||
--infobox-label-text: # | --infobox-details-bg: #e1d5c7; | ||
--infobox-text: # | --infobox-detail-label-bg: #d5c4b0; | ||
--infobox-link: # | --infobox-detail-value-bg: #e1d5c7; | ||
--infobox-link-hover: # | --infobox-caption-bg: #ddd0c0; | ||
--infobox-focus: # | --infobox-label-text: #2b211d; | ||
--infobox-title-text: # | --infobox-text: #43332c; | ||
--infobox-text-outline: # | --infobox-link: #7d4e3b; | ||
--infobox-shadow: rgba( | --infobox-link-hover: #5d372a; | ||
--infobox-shape-shadow: rgba( | --infobox-focus: #9e6d58; | ||
--infobox-background-shadow: rgba( | --infobox-title-text: #fff8f3; | ||
--infobox-text-outline: #3d261e; | |||
--infobox-shadow: rgba(55, 38, 30, 0.2); | |||
--infobox-shape-shadow: rgba(55, 38, 30, 0.23); | |||
--infobox-background-shadow: rgba(55, 38, 30, 0.2); | |||
} | } | ||
} | } | ||
| 742번째 줄: | 792번째 줄: | ||
@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: #574036; | ||
--infobox-outer-edge: # | --infobox-outer-edge: #3f2c25; | ||
--infobox-inner: # | --infobox-inner: #cfb894; | ||
--infobox-inner-edge: # | --infobox-inner-edge: #aa8e69; | ||
--infobox-panel: # | --infobox-panel: #ddd0bf; | ||
--infobox-image-box: # | --infobox-image-box: #ded4c7; | ||
--infobox-image-pattern: rgba( | --infobox-image-pattern: rgba(119, 76, 59, 0.035); | ||
--infobox-image-line: # | --infobox-image-line: #93634e; | ||
--infobox-ribbon: # | --infobox-ribbon: #7d5543; | ||
--infobox-row-bg: # | --infobox-row-bg: #e4d7c8; | ||
--infobox-row-edge: # | --infobox-row-edge: #a98e72; | ||
--infobox-row-divider: # | --infobox-row-divider: #c4ad96; | ||
--infobox-label-text: # | --infobox-details-bg: #e1d5c7; | ||
--infobox-text: # | --infobox-detail-label-bg: #d5c4b0; | ||
--infobox-link: # | --infobox-detail-value-bg: #e1d5c7; | ||
--infobox-link-hover: # | --infobox-caption-bg: #ddd0c0; | ||
--infobox-focus: # | --infobox-label-text: #2b211d; | ||
--infobox-title-text: # | --infobox-text: #43332c; | ||
--infobox-text-outline: # | --infobox-link: #7d4e3b; | ||
--infobox-shadow: rgba( | --infobox-link-hover: #5d372a; | ||
--infobox-shape-shadow: rgba(0, 0, 0, 0.32); | --infobox-focus: #9e6d58; | ||
--infobox- | --infobox-title-text: #fff8f3; | ||
--infobox-text-outline: #3d261e; | |||
--infobox-shadow: rgba(55, 38, 30, 0.2); | |||
--infobox-shape-shadow: rgba(55, 38, 30, 0.23); | |||
--infobox-background-shadow: rgba(55, 38, 30, 0.2); | |||
} | |||
} | |||
html.skin-theme-clientpref-night .infobox__image-caption { | |||
color: rgba(82, 65, 57, 0.64); | |||
} | |||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .infobox__image-caption { | |||
color: rgba(82, 65, 57, 0.64); | |||
} | |||
} | |||
html.skin-theme-clientpref-night .infobox__image-media img, | |||
html.skin-theme-clientpref-night .infobox__image-media .mw-file-element { | |||
filter: | |||
drop-shadow(0 3px 2px rgba(32, 24, 20, 0.72)) | |||
drop-shadow(0 1px 1px rgba(32, 24, 20, 0.5)) !important; | |||
} | |||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .infobox__image-media img, | |||
html.skin-theme-clientpref-os .infobox__image-media .mw-file-element { | |||
filter: | |||
drop-shadow(0 3px 2px rgba(32, 24, 20, 0.72)) | |||
drop-shadow(0 1px 1px rgba(32, 24, 20, 0.5)) !important; | |||
} | |||
} | |||
html.skin-theme-clientpref-night .infobox { | |||
filter: drop-shadow(0 0 5px rgba(42, 28, 22, 0.4)); | |||
} | |||
html.skin-theme-clientpref-night .infobox__title { | |||
filter: drop-shadow(0 3px 2px rgba(42, 28, 22, 0.36)); | |||
} | |||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .infobox { | |||
filter: drop-shadow(0 0 5px rgba(42, 28, 22, 0.4)); | |||
} | |||
html.skin-theme-clientpref-os .infobox__title { | |||
filter: drop-shadow(0 3px 2px rgba(42, 28, 22, 0.36)); | |||
} | |||
} | |||
@media screen and (max-width: 720px) { | |||
.infobox__image-media, | |||
.infobox__image-media img, | |||
.infobox__image-media .mw-file-element { | |||
max-height: 380px; | |||
} | |||
} | |||
@media screen and (max-width: 480px) { | |||
.infobox__image-media, | |||
.infobox__image-media img, | |||
.infobox__image-media .mw-file-element { | |||
max-height: 340px; | |||
} | } | ||
} | } | ||
