틀:정보상자/styles.css: 두 판 사이의 차이

식물 vs 좀비 위키
편집 요약 없음
편집 요약 없음
태그: 모바일 편집 모바일 웹 편집
 
(같은 사용자의 중간 판 69개는 보이지 않습니다)
5번째 줄: 5번째 줄:
--infobox-inner-edge: #c8aa7e;
--infobox-inner-edge: #c8aa7e;
--infobox-panel: #f3e8d7;
--infobox-panel: #f3e8d7;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png");
--infobox-image-box: #f7f1e7;
--infobox-image-pattern: rgba(145, 87, 70, 0.025);
--infobox-image-line: #875340;
--infobox-ribbon: #875340;
--infobox-ribbon: #875340;
--infobox-row-bg: #f7efe4;
--infobox-row-bg: #f7efe4;
--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;
17번째 줄: 23번째 줄:
--infobox-title-text: #fffaf4;
--infobox-title-text: #fffaf4;
--infobox-text-outline: #472b20;
--infobox-text-outline: #472b20;
--infobox-shadow: rgba(68, 42, 31, 0.22);
--infobox-shadow: rgba(68, 42, 31, 0.16);
--infobox-shape-shadow: rgba(69, 41, 31, 0.24);
--infobox-background-shadow: rgba(69, 41, 31, 0.2);


position: relative;
position: relative;
25번째 줄: 33번째 줄:
max-width: 100%;
max-width: 100%;
margin: 0 0 1.25rem 1.25rem;
margin: 0 0 1.25rem 1.25rem;
padding: 1.05rem 0.48rem 0.72rem;
padding: 1.05rem 0.48rem 1.18rem;
border: 3px solid var(--infobox-outer-edge);
border: 3px solid var(--infobox-outer-edge);
border-radius: 24px;
border-radius: 24px;
43번째 줄: 51번째 줄:
font-weight: 300;
font-weight: 300;
line-height: 1.55;
line-height: 1.55;
box-shadow: 0 8px 22px 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;
}
}
53번째 줄: 62번째 줄:
bottom: 6px;
bottom: 6px;
left: 6px;
left: 6px;
border: 1px solid var(--infobox-inner-edge);
border: 3px solid var(--infobox-inner-edge);
border-radius: 18px;
border-radius: 18px;
box-sizing: border-box;
box-sizing: border-box;
71번째 줄: 80번째 줄:
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
width: calc(100% - 2px);
width: calc(100% - 24px);
margin: -1.72rem auto 0;
margin: 0.46rem auto 0;
padding: 0.94rem 2.35rem;
padding: 0.76rem 2.35rem 0.7rem;
border: 0;
border: 0;
box-sizing: border-box;
box-sizing: border-box;
background: var(--infobox-ribbon);
background: transparent;
clip-path: polygon(
0 0,
100% 0,
calc(100% - 16px) 50%,
100% 100%,
0 100%,
16px 50%
);
color: var(--infobox-title-text);
color: var(--infobox-title-text);
isolation: isolate;
font-family:
font-family:
"SB Aggro B",
"SB Aggro B",
95번째 줄: 97번째 줄:
"Noto Sans KR",
"Noto Sans KR",
sans-serif;
sans-serif;
font-size: 1.28rem;
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),
126번째 줄: 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;
}
}


138번째 줄: 160번째 줄:
.infobox__image {
.infobox__image {
position: relative;
position: relative;
display: flex;
display: block;
align-items: center;
width: calc(100% - 24px);
justify-content: center;
margin: 1.55rem auto 1.75rem;
width: calc(100% - 14px);
padding: 0.5rem;
aspect-ratio: 1 / 1;
border: 1px solid var(--infobox-row-edge);
margin: 0 auto 0.78rem;
border-radius: 11px;
padding: 0.82rem;
border: 0;
border-radius: 0;
box-sizing: border-box;
box-sizing: border-box;
background-color: transparent;
background-color: var(--infobox-image-box);
background-image: var(--infobox-image-bg);
background-image:
background-repeat: no-repeat;
linear-gradient(
background-position: center;
45deg,
background-size: contain;
var(--infobox-image-pattern) 25%,
box-shadow: none;
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-position:
0 0,
8px 8px;
background-size: 16px 16px;
box-shadow:
0 4px 11px rgba(68, 42, 31, 0.1),
inset 0 0 0 3px rgba(255, 250, 242, 0.16);
overflow: visible;
overflow: visible;
text-align: center;
text-align: center;
}
}


.infobox__image::before,
.infobox__image::before {
position: absolute;
z-index: 0;
top: 6px;
right: 6px;
bottom: 6px;
left: 6px;
border: 1px solid rgba(135, 83, 64, 0.14);
border-radius: 7px;
box-sizing: border-box;
content: "";
pointer-events: none;
}
 
/* 오른쪽 아래 짧은 선 */
.infobox__image::after {
.infobox__image::after {
display: none;
position: absolute;
z-index: 1;
right: 0.78rem;
bottom: 0.54rem;
width: 30px;
height: 3px;
border-radius: 3px;
background: var(--infobox-image-line);
content: "";
opacity: 0.52;
pointer-events: none;
}
}


.infobox__image a,
/* 이미지 */
.infobox__image img {
.infobox__image-media {
position: relative;
position: relative;
z-index: 1;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 0;
max-height: 320px;
box-sizing: border-box;
}
}


.infobox__image a {
.infobox__image-media > a {
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
width: 100%;
width: 100%;
height: 100%;
}
}


.infobox__image img {
.infobox__image-media img,
.infobox__image-media .mw-file-element {
display: block;
display: block;
width: 100%;
width: auto;
max-width: 100%;
max-width: 100%;
height: 100%;
height: auto;
max-height: 100%;
max-height: 320px;
margin: 0 auto;
margin: 0 auto;
object-fit: contain;
object-fit: contain;
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-caption {
position: relative;
z-index: 5;
width: calc(100% - 0.8rem);
margin: -1.8rem auto -0.9rem;
padding: 0.56rem 0.66rem;
border: 1px solid var(--infobox-row-edge);
border-radius: 9px;
box-sizing: border-box;
background: var(--infobox-caption-bg);
box-shadow: 0 3px 8px rgba(68, 42, 31, 0.1);
color: #5a463d;
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.78rem;
font-weight: 300;
font-style: italic;
line-height: 1.42;
text-align: center;
overflow-wrap: anywhere;
word-break: keep-all;
transform: translateY(1.18rem);
}
.infobox__image-caption p {
margin: 0;
font: inherit;
}
}


191번째 줄: 299번째 줄:
width: calc(100% - 24px);
width: calc(100% - 24px);
margin: 0 auto;
margin: 0 auto;
padding: 0;
border: 1px solid var(--infobox-row-edge);
border: 1px solid var(--infobox-row-edge);
border-collapse: separate;
border-collapse: separate;
border-spacing: 0;
border-spacing: 0;
border-radius: 14px;
border-radius: 12px;
table-layout: fixed;
table-layout: fixed;
background: var(--infobox-row-bg);
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.52rem 0.72rem;
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-color: var(--infobox-row-bg);
background: transparent;
background-repeat: no-repeat;
line-height: 1.4;
line-height: 1.38;
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) th {
background-image:
linear-gradient(
var(--infobox-row-divider),
var(--infobox-row-divider)
);
background-position: right bottom;
background-size: calc(100% - 0.72rem) 1px;
}


.infobox__details tr:not(:last-child) td {
.infobox__details tr:not(:last-child) {
background-image:
border-bottom: 1px solid var(--infobox-row-divider);
linear-gradient(
var(--infobox-row-divider),
var(--infobox-row-divider)
);
background-position: left bottom;
background-size: calc(100% - 0.72rem) 1px;
}
}


.infobox__details th {
.infobox__details th {
width: 31%;
width: auto;
background: transparent;
color: var(--infobox-label-text);
color: var(--infobox-label-text);
font-family:
font-family:
257번째 줄: 385번째 줄:


.infobox__details td {
.infobox__details td {
width: 69%;
width: auto;
color: var(--infobox-text);
color: var(--infobox-text);
font-family:
font-family:
273번째 줄: 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;
}
}


433번째 줄: 584번째 줄:
max-width: 100%;
max-width: 100%;
margin: 0 0 1.1rem;
margin: 0 0 1.1rem;
padding: 1rem 0.42rem 0.66rem;
padding: 1rem 0.42rem 1.08rem;
border-radius: 22px;
border-radius: 22px;
font-size: 1rem;
font-size: 1rem;
447번째 줄: 598번째 줄:


.infobox__title {
.infobox__title {
width: 100%;
width: calc(100% - 20px);
margin-top: -1.6rem;
margin: 0.42rem auto 0;
padding: 0.9rem 2rem;
padding: 0.72rem 2rem 0.66rem;
font-size: 1.46rem;
font-size: 1.54rem;
}
}


.infobox__image {
.infobox__image {
width: calc(100% - 12px);
width: calc(100% - 20px);
padding: 0.76rem;
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: 13px;
border-radius: 12px;
overflow: hidden;
}
}


.infobox__details th,
.infobox__details th,
.infobox__details td {
.infobox__details td {
padding: 0.52rem 0.66rem;
padding: 0.52rem 0.72rem;
}
}


.infobox__details tr:not(:last-child) th {
background-size: calc(100% - 0.66rem) 1px;
}
.infobox__details tr:not(:last-child) td {
background-size: calc(100% - 0.66rem) 1px;
}


.infobox__details th {
.infobox__details th {
width: 31%;
width: auto;
font-size: 0.96rem;
font-size: 0.96rem;
}
}


.infobox__details td {
.infobox__details td {
width: 69%;
width: auto;
font-size: 1rem;
font-size: 1rem;
}
}
515번째 줄: 666번째 줄:
@media screen and (max-width: 480px) {
@media screen and (max-width: 480px) {
.infobox {
.infobox {
padding: 0.92rem 0.34rem 0.58rem;
padding: 0.92rem 0.34rem 0.96rem;
border-radius: 19px;
border-radius: 19px;
}
}
528번째 줄: 679번째 줄:


.infobox__title {
.infobox__title {
margin-top: -1.42rem;
width: calc(100% - 16px);
padding: 0.78rem 1.72rem;
margin: 0.36rem auto 0;
font-size: 1.28rem;
padding: 0.66rem 1.72rem 0.6rem;
font-size: 1.36rem;
}
}


.infobox__image {
.infobox__image {
width: calc(100% - 8px);
width: calc(100% - 16px);
padding: 0.66rem;
margin-top: 1.35rem;
margin-bottom: 1.55rem;
padding: 0.44rem;
}
 
.infobox__image-caption {
width: calc(100% - 0.7rem);
padding: 0.52rem 0.58rem;
font-size: 0.84rem;
transform: translateY(0.9rem);
}
}


541번째 줄: 702번째 줄:
width: calc(100% - 16px);
width: calc(100% - 16px);
border-radius: 12px;
border-radius: 12px;
overflow: hidden;
}
}


.infobox__details th,
.infobox__details th,
.infobox__details td {
.infobox__details td {
padding: 0.48rem 0.58rem;
padding: 0.52rem 0.72rem;
}
}


.infobox__details tr:not(:last-child) th {
 
background-size: calc(100% - 0.58rem) 1px;
.infobox__details tr {
grid-template-columns: minmax(0, 33%) minmax(0, 67%);
}
}


.infobox__details tr:not(:last-child) td {
.infobox__details tr::before {
background-size: calc(100% - 0.58rem) 1px;
width: 33%;
}
}


.infobox__details th {
.infobox__details th {
width: 33%;
width: auto;
font-size: 0.89rem;
font-size: 0.89rem;
}
}


.infobox__details td {
.infobox__details td {
width: 67%;
width: auto;
font-size: 0.95rem;
font-size: 0.95rem;
}
}
597번째 줄: 760번째 줄:
@media screen {
@media screen {
html.skin-theme-clientpref-night .infobox {
html.skin-theme-clientpref-night .infobox {
--infobox-outer: #4c3329;
--infobox-outer: #574036;
--infobox-outer-edge: #36231c;
--infobox-outer-edge: #3f2c25;
--infobox-inner: #6d5644;
--infobox-inner: #cfb894;
--infobox-inner-edge: #8c7157;
--infobox-inner-edge: #aa8e69;
--infobox-panel: #3d332d;
--infobox-panel: #ddd0bf;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
--infobox-image-box: #ded4c7;
--infobox-ribbon: #805542;
--infobox-image-pattern: rgba(119, 76, 59, 0.035);
--infobox-row-bg: #433731;
--infobox-image-line: #93634e;
--infobox-row-edge: #896c59;
--infobox-ribbon: #7d5543;
--infobox-row-divider: #6f5748;
--infobox-row-bg: #e4d7c8;
--infobox-label-text: #f3e8df;
--infobox-row-edge: #a98e72;
--infobox-text: #f3e8df;
--infobox-row-divider: #c4ad96;
--infobox-link: #edc1a9;
--infobox-details-bg: #e1d5c7;
--infobox-link-hover: #ffe1d0;
--infobox-detail-label-bg: #d5c4b0;
--infobox-focus: #d1a58b;
--infobox-detail-value-bg: #e1d5c7;
--infobox-title-text: #fff8f2;
--infobox-caption-bg: #ddd0c0;
--infobox-text-outline: #301d16;
--infobox-label-text: #2b211d;
--infobox-shadow: rgba(0, 0, 0, 0.34);
--infobox-text: #43332c;
--infobox-link: #7d4e3b;
--infobox-link-hover: #5d372a;
--infobox-focus: #9e6d58;
--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);
}
}
}
}
621번째 줄: 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: #4c3329;
--infobox-outer: #574036;
--infobox-outer-edge: #36231c;
--infobox-outer-edge: #3f2c25;
--infobox-inner: #6d5644;
--infobox-inner: #cfb894;
--infobox-inner-edge: #8c7157;
--infobox-inner-edge: #aa8e69;
--infobox-panel: #3d332d;
--infobox-panel: #ddd0bf;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
--infobox-image-box: #ded4c7;
--infobox-ribbon: #805542;
--infobox-image-pattern: rgba(119, 76, 59, 0.035);
--infobox-row-bg: #433731;
--infobox-image-line: #93634e;
--infobox-row-edge: #896c59;
--infobox-ribbon: #7d5543;
--infobox-row-divider: #6f5748;
--infobox-row-bg: #e4d7c8;
--infobox-label-text: #f3e8df;
--infobox-row-edge: #a98e72;
--infobox-text: #f3e8df;
--infobox-row-divider: #c4ad96;
--infobox-link: #edc1a9;
--infobox-details-bg: #e1d5c7;
--infobox-link-hover: #ffe1d0;
--infobox-detail-label-bg: #d5c4b0;
--infobox-focus: #d1a58b;
--infobox-detail-value-bg: #e1d5c7;
--infobox-title-text: #fff8f2;
--infobox-caption-bg: #ddd0c0;
--infobox-text-outline: #301d16;
--infobox-label-text: #2b211d;
--infobox-shadow: rgba(0, 0, 0, 0.34);
--infobox-text: #43332c;
--infobox-link: #7d4e3b;
--infobox-link-hover: #5d372a;
--infobox-focus: #9e6d58;
--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;
}
}
}
}