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

식물 vs 좀비 위키
편집 요약 없음
태그: 되돌려진 기여
편집 요약 없음
태그: 되돌려진 기여 모바일 편집 모바일 웹 편집
5번째 줄: 5번째 줄:
--infobox-shell-light: #ead0c1;
--infobox-shell-light: #ead0c1;
--infobox-paper: #fff8f1;
--infobox-paper: #fff8f1;
--infobox-paper-alt: #f2ded2;
--infobox-rule: #d2afa0;
--infobox-rule: #d2afa0;
--infobox-label: #9a695c;
--infobox-label: #9a695c;
--infobox-label-dark: #744b42;
--infobox-label-dark: #744b42;
--infobox-label-divider: #c99e8e;
--infobox-label-divider: #c99e8e;
--infobox-label-pattern: rgba(112, 66, 55, 0.12);
--infobox-label-pattern-light: rgba(255, 255, 255, 0.06);
--infobox-label-text: #fffaf6;
--infobox-label-text: #fffaf6;
--infobox-title: #78483b;
--infobox-title: #78483b;
--infobox-title-border: #5b342c;
--infobox-title-border: #5b342c;
--infobox-ink: #50382f;
--infobox-ink: #50382f;
--infobox-muted: #71554a;
--infobox-link: #925744;
--infobox-link: #925744;
--infobox-link-hover: #683a2d;
--infobox-link-hover: #683a2d;
23번째 줄: 23번째 줄:
--infobox-nail: #aaa29d;
--infobox-nail: #aaa29d;
--infobox-nail-border: #746d69;
--infobox-nail-border: #746d69;
position: relative;
position: relative;
isolation: isolate;
isolation: isolate;
34번째 줄: 35번째 줄:
border-radius: 22px;
border-radius: 22px;
box-sizing: border-box;
box-sizing: border-box;
background:
background: var(--infobox-shell);
linear-gradient(
135deg,
rgba(255, 255, 255, 0.2),
transparent 34%
),
linear-gradient(
180deg,
var(--infobox-shell-light),
var(--infobox-shell)
);
color: var(--infobox-ink);
color: var(--infobox-ink);
font-family:
font-family:
58번째 줄: 49번째 줄:
font-weight: 300;
font-weight: 300;
line-height: 1.55;
line-height: 1.55;
box-shadow:
box-shadow: 0 10px 25px var(--infobox-shadow);
0 10px 25px var(--infobox-shadow),
inset 0 1px rgba(255, 255, 255, 0.45);
overflow: hidden;
overflow: hidden;
}
}
.infobox::before {
.infobox::before {
position: absolute;
position: absolute;
79번째 줄: 69번째 줄:
pointer-events: none;
pointer-events: none;
}
}
.infobox::after {
.infobox::after {
position: absolute;
position: absolute;
92번째 줄: 83번째 줄:
pointer-events: none;
pointer-events: none;
}
}
.infobox__title,
.infobox__title,
.infobox__panel {
.infobox__panel {
97번째 줄: 89번째 줄:
z-index: 1;
z-index: 1;
}
}
/* 이름칸 */
/* 이름칸 */
.infobox__title {
.infobox__title {
104번째 줄: 97번째 줄:
width: 100%;
width: 100%;
min-height: 0;
min-height: 0;
padding: 0.82rem 2.6rem 0.76rem;
padding: 0.9rem 2.7rem;
border: 2px solid var(--infobox-title-border);
border: 2px solid var(--infobox-title-border);
border-radius: 0;
border-radius: 0;
box-sizing: border-box;
box-sizing: border-box;
background: var(--infobox-title);
background-color: var(--infobox-title);
background-image: url("/wiki/Special:Redirect/file/wood_texture.png");
background-repeat: repeat;
background-position: center;
background-size: 360px auto;
background-blend-mode: soft-light;
color: #fffaf6;
color: #fffaf6;
font-family:
font-family:
131번째 줄: 129번째 줄:
word-break: keep-all;
word-break: keep-all;
}
}
/* 이름칸 왼쪽 못 */
 
.infobox__title::before {
.infobox__title::before {
position: absolute;
position: absolute;
148번째 줄: 146번째 줄:
transform: translateY(-50%);
transform: translateY(-50%);
}
}
/* 이름칸 오른쪽 못 */
 
.infobox__title::after {
.infobox__title::after {
position: absolute;
position: absolute;
165번째 줄: 163번째 줄:
transform: translateY(-50%);
transform: translateY(-50%);
}
}
.infobox__title p {
.infobox__title p {
position: relative;
position: relative;
173번째 줄: 172번째 줄:
line-height: inherit;
line-height: inherit;
}
}
/* 본체 */
 
.infobox__panel {
.infobox__panel {
margin-top: 0.68rem;
margin-top: 0.68rem;
182번째 줄: 181번째 줄:
overflow: visible;
overflow: visible;
}
}
.infobox__image,
.infobox__image,
.infobox__details {
.infobox__details {
187번째 줄: 187번째 줄:
z-index: 1;
z-index: 1;
}
}
/* 사진칸 */
/* 사진칸 */
.infobox__image {
.infobox__image {
199번째 줄: 200번째 줄:
border-radius: 11px;
border-radius: 11px;
box-sizing: border-box;
box-sizing: border-box;
background:
background: var(--infobox-paper);
linear-gradient(
box-shadow: 0 3px 8px var(--infobox-cell-shadow);
135deg,
rgba(255, 255, 255, 0.64),
transparent 44%
),
var(--infobox-paper);
box-shadow:
0 3px 8px var(--infobox-cell-shadow),
inset 0 0 0 3px rgba(218, 182, 165, 0.18);
overflow: hidden;
overflow: hidden;
}
}
.infobox__image::before {
.infobox__image::before {
position: absolute;
position: absolute;
239번째 줄: 233번째 줄:
pointer-events: none;
pointer-events: none;
}
}
.infobox__image::after {
.infobox__image::after {
position: absolute;
position: absolute;
250번째 줄: 245번째 줄:
opacity: 0.38;
opacity: 0.38;
}
}
.infobox__image a,
.infobox__image a,
.infobox__image img {
.infobox__image img {
255번째 줄: 251번째 줄:
z-index: 1;
z-index: 1;
}
}
.infobox__image img {
.infobox__image img {
display: block;
display: block;
265번째 줄: 262번째 줄:
filter: drop-shadow(0 3px 2px rgba(82, 48, 39, 0.14));
filter: drop-shadow(0 3px 2px rgba(82, 48, 39, 0.14));
}
}
/* 정보칸 */
/* 정보칸 */
.infobox__details {
.infobox__details {
287번째 줄: 285번째 줄:
overflow: visible;
overflow: visible;
}
}
.infobox__image + .infobox__details {
.infobox__image + .infobox__details {
margin-top: 0.3rem;
margin-top: 0.3rem;
}
}
.infobox__details tr {
.infobox__details tr {
background: transparent;
background: transparent;
}
}
.infobox__details th,
.infobox__details th,
.infobox__details td {
.infobox__details td {
position: relative;
position: relative;
min-width: 0;
min-width: 0;
padding-top: 0.62rem;
padding: 0.7rem;
padding-bottom: 0.62rem;
box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
vertical-align: middle;
304번째 줄: 304번째 줄:
overflow: hidden;
overflow: hidden;
}
}
/* 항목명 */
/* 항목명 */
.infobox__details th {
.infobox__details th {
width: 32%;
width: 32%;
padding-right: 1.08rem;
padding-left: 0.92rem;
border: 1px solid var(--infobox-label-dark);
border: 1px solid var(--infobox-label-dark);
border-right-color: var(--infobox-label-divider);
border-right-color: var(--infobox-label-divider);
border-radius: 10px 0 0 10px;
border-radius: 10px 0 0 10px;
background: var(--infobox-label);
background-color: var(--infobox-label);
background-image:
linear-gradient(
45deg,
var(--infobox-label-pattern-light) 25%,
transparent 25%,
transparent 75%,
var(--infobox-label-pattern-light) 75%
),
linear-gradient(
-45deg,
var(--infobox-label-pattern) 25%,
transparent 25%,
transparent 75%,
var(--infobox-label-pattern) 75%
);
background-position:
0 0,
9px 9px;
background-size:
18px 18px,
18px 18px;
color: var(--infobox-label-text);
color: var(--infobox-label-text);
font-family:
font-family:
325번째 줄: 345번째 줄:
font-size: 0.82rem;
font-size: 0.82rem;
font-weight: 500;
font-weight: 500;
text-align: left;
text-align: center;
text-shadow:
text-shadow:
0 1px 0 rgba(75, 43, 36, 0.9),
0 1px 0 rgba(75, 43, 36, 0.9),
332번째 줄: 352번째 줄:
box-shadow: 0 2px 4px rgba(86, 49, 41, 0.13);
box-shadow: 0 2px 4px rgba(86, 49, 41, 0.13);
}
}
.infobox__details th::after {
.infobox__details th::after {
position: absolute;
display: none;
top: 50%;
right: 0.42rem;
width: 5px;
height: 5px;
border-radius: 50%;
background: rgba(255, 250, 246, 0.7);
box-shadow: 0 1px 1px rgba(70, 39, 33, 0.35);
content: "";
transform: translateY(-50%);
}
}
/* 항목값 */
/* 항목값 */
.infobox__details td {
.infobox__details td {
width: 68%;
width: 68%;
padding-right: 0.82rem;
padding-left: 0.86rem;
border: 1px solid var(--infobox-rule);
border: 1px solid var(--infobox-rule);
border-left: 0;
border-left: 0;
370번째 줄: 381번째 줄:
box-shadow: 0 2px 5px var(--infobox-cell-shadow);
box-shadow: 0 2px 5px var(--infobox-cell-shadow);
}
}
.infobox__details p {
.infobox__details p {
margin: 0.14em 0;
margin: 0.14em 0;
font: inherit;
font: inherit;
}
}
.infobox__details ul,
.infobox__details ul,
.infobox__details ol {
.infobox__details ol {
380번째 줄: 393번째 줄:
font: inherit;
font: inherit;
}
}
.infobox__details li {
.infobox__details li {
margin: 0.1em 0;
margin: 0.1em 0;
font: inherit;
font: inherit;
}
}
.infobox__details sup {
.infobox__details sup {
line-height: 1;
line-height: 1;
}
}
.infobox a {
.infobox a {
color: var(--infobox-link);
color: var(--infobox-link);
393번째 줄: 409번째 줄:
text-decoration: underline;
text-decoration: underline;
}
}
.infobox a:hover {
.infobox a:hover {
color: var(--infobox-link-hover);
color: var(--infobox-link-hover);
text-decoration: underline;
text-decoration: underline;
}
}
.infobox a:focus {
.infobox a:focus {
border-radius: 3px;
border-radius: 3px;
402번째 줄: 420번째 줄:
outline-offset: 2px;
outline-offset: 2px;
}
}
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
.infobox {
.infobox {
413번째 줄: 432번째 줄:
font-size: 1rem;
font-size: 1rem;
line-height: 1.55;
line-height: 1.55;
box-shadow:
box-shadow: 0 8px 20px var(--infobox-shadow);
0 8px 20px var(--infobox-shadow),
inset 0 1px rgba(255, 255, 255, 0.38);
}
}
.infobox::before {
.infobox::before {
border-radius: 18px;
border-radius: 18px;
}
}
.infobox::after {
.infobox::after {
border-radius: 15px;
border-radius: 15px;
}
}
.infobox__title {
.infobox__title {
padding: 0.94rem 2.8rem 0.88rem;
padding: 1rem 2.9rem;
font-size: 1.65rem;
font-size: 1.65rem;
line-height: 1.12;
line-height: 1.12;
}
}
.infobox__title::before {
.infobox__title::before {
left: 0.84rem;
left: 0.84rem;
433번째 줄: 454번째 줄:
height: 12px;
height: 12px;
}
}
.infobox__title::after {
.infobox__title::after {
right: 0.84rem;
right: 0.84rem;
438번째 줄: 460번째 줄:
height: 12px;
height: 12px;
}
}
.infobox__panel {
.infobox__panel {
margin-top: 0.62rem;
margin-top: 0.62rem;
}
}
.infobox__image {
.infobox__image {
min-height: 90px;
min-height: 90px;
446번째 줄: 470번째 줄:
padding: 0.58rem;
padding: 0.58rem;
}
}
.infobox__image img {
.infobox__image img {
max-height: 208px;
max-height: 208px;
}
}
.infobox__details {
.infobox__details {
width: calc(100% + 0.56rem);
width: calc(100% + 0.56rem);
455번째 줄: 481번째 줄:
border-spacing: 0 0.32rem;
border-spacing: 0 0.32rem;
}
}
.infobox__image + .infobox__details {
.infobox__image + .infobox__details {
margin-top: 0.28rem;
margin-top: 0.28rem;
}
}
.infobox__details th,
.infobox__details th,
.infobox__details td {
.infobox__details td {
padding-top: 0.72rem;
padding: 0.76rem;
padding-bottom: 0.72rem;
line-height: 1.46;
line-height: 1.46;
}
}
.infobox__details th {
.infobox__details th {
width: 30%;
width: 30%;
padding-right: 1.02rem;
padding-left: 0.88rem;
font-size: 0.96rem;
font-size: 0.96rem;
}
}
.infobox__details td {
.infobox__details td {
width: 70%;
width: 70%;
padding-right: 0.84rem;
padding-left: 0.9rem;
font-size: 1rem;
font-size: 1rem;
}
}
}
}
@media screen and (max-width: 480px) {
@media screen and (max-width: 480px) {
.infobox {
.infobox {
482번째 줄: 508번째 줄:
border-radius: 18px;
border-radius: 18px;
}
}
.infobox::before {
.infobox::before {
border-radius: 16px;
border-radius: 16px;
}
}
.infobox::after {
.infobox::after {
top: 4px;
top: 4px;
492번째 줄: 520번째 줄:
border-radius: 14px;
border-radius: 14px;
}
}
.infobox__title {
.infobox__title {
padding: 0.82rem 2.3rem 0.76rem;
padding: 0.9rem 2.4rem;
font-size: 1.48rem;
font-size: 1.48rem;
line-height: 1.12;
line-height: 1.12;
}
}
.infobox__title::before {
.infobox__title::before {
left: 0.68rem;
left: 0.68rem;
502번째 줄: 532번째 줄:
height: 10px;
height: 10px;
}
}
.infobox__title::after {
.infobox__title::after {
right: 0.68rem;
right: 0.68rem;
507번째 줄: 538번째 줄:
height: 10px;
height: 10px;
}
}
.infobox__panel {
.infobox__panel {
margin-top: 0.58rem;
margin-top: 0.58rem;
}
}
.infobox__image {
.infobox__image {
min-height: 72px;
min-height: 72px;
516번째 줄: 549번째 줄:
border-radius: 9px;
border-radius: 9px;
}
}
.infobox__image img {
.infobox__image img {
max-height: 180px;
max-height: 180px;
}
}
.infobox__details {
.infobox__details {
display: block;
display: block;
525번째 줄: 560번째 줄:
border-spacing: 0;
border-spacing: 0;
}
}
.infobox__details tbody {
.infobox__details tbody {
display: block;
display: block;
width: 100%;
width: 100%;
}
}
.infobox__details tr {
.infobox__details tr {
display: grid;
display: grid;
536번째 줄: 573번째 줄:
margin: 0 0 0.34rem;
margin: 0 0 0.34rem;
}
}
.infobox__details th,
.infobox__details th,
.infobox__details td {
.infobox__details td {
542번째 줄: 580번째 줄:
width: auto;
width: auto;
min-height: 44px;
min-height: 44px;
padding-top: 0.62rem;
padding: 0.66rem;
padding-bottom: 0.62rem;
line-height: 1.42;
line-height: 1.42;
}
}
.infobox__details th {
.infobox__details th {
padding-right: 0.96rem;
justify-content: center;
padding-left: 0.76rem;
border-radius: 9px 0 0 9px;
border-radius: 9px 0 0 9px;
font-size: 0.87rem;
font-size: 0.87rem;
}
}
.infobox__details td {
.infobox__details td {
padding-right: 0.7rem;
padding-left: 0.76rem;
border-radius: 0 9px 9px 0;
border-radius: 0 9px 9px 0;
font-size: 0.94rem;
font-size: 0.94rem;
}
}
}
}
@media screen {
@media screen {
html.skin-theme-clientpref-night .infobox {
html.skin-theme-clientpref-night .infobox {
566번째 줄: 603번째 줄:
--infobox-shell-light: #4b3b37;
--infobox-shell-light: #4b3b37;
--infobox-paper: #352b28;
--infobox-paper: #352b28;
--infobox-paper-alt: #41332f;
--infobox-rule: #67504a;
--infobox-rule: #67504a;
--infobox-label: #704d45;
--infobox-label: #704d45;
--infobox-label-dark: #4e342f;
--infobox-label-dark: #4e342f;
--infobox-label-divider: #8b675d;
--infobox-label-divider: #8b675d;
--infobox-label-pattern: rgba(38, 21, 18, 0.16);
--infobox-label-pattern-light: rgba(255, 255, 255, 0.035);
--infobox-label-text: #f8efeb;
--infobox-label-text: #f8efeb;
--infobox-title: #70463b;
--infobox-title: #70463b;
--infobox-title-border: #503027;
--infobox-title-border: #503027;
--infobox-ink: #f0e5df;
--infobox-ink: #f0e5df;
--infobox-muted: #cdb7ad;
--infobox-link: #e1aa91;
--infobox-link: #e1aa91;
--infobox-link-hover: #f4c7b2;
--infobox-link-hover: #f4c7b2;
584번째 줄: 621번째 줄:
--infobox-nail: #918a86;
--infobox-nail: #918a86;
--infobox-nail-border: #5d5753;
--infobox-nail-border: #5d5753;
background:
 
linear-gradient(
background: var(--infobox-shell);
135deg,
rgba(255, 255, 255, 0.045),
transparent 34%
),
linear-gradient(
180deg,
var(--infobox-shell-light),
var(--infobox-shell)
);
}
}
html.skin-theme-clientpref-night .infobox::before {
html.skin-theme-clientpref-night .infobox::before {
opacity: 0.009;
opacity: 0.009;
}
}
html.skin-theme-clientpref-night .infobox__title {
html.skin-theme-clientpref-night .infobox__title {
background: var(--infobox-title);
background-color: var(--infobox-title);
background-image: url("/wiki/Special:Redirect/file/wood_texture.png");
background-repeat: repeat;
background-position: center;
background-size: 360px auto;
background-blend-mode: soft-light;
}
}
html.skin-theme-clientpref-night .infobox__image {
html.skin-theme-clientpref-night .infobox__image {
background:
background: var(--infobox-paper);
linear-gradient(
135deg,
rgba(255, 255, 255, 0.045),
transparent 44%
),
var(--infobox-paper);
}
html.skin-theme-clientpref-night .infobox__details th {
background: var(--infobox-label);
}
}
html.skin-theme-clientpref-night .infobox__details td {
html.skin-theme-clientpref-night .infobox__details td {
background: var(--infobox-paper);
background: var(--infobox-paper);
}
}
}
}
@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 {
625번째 줄: 654번째 줄:
--infobox-shell-light: #4b3b37;
--infobox-shell-light: #4b3b37;
--infobox-paper: #352b28;
--infobox-paper: #352b28;
--infobox-paper-alt: #41332f;
--infobox-rule: #67504a;
--infobox-rule: #67504a;
--infobox-label: #704d45;
--infobox-label: #704d45;
--infobox-label-dark: #4e342f;
--infobox-label-dark: #4e342f;
--infobox-label-divider: #8b675d;
--infobox-label-divider: #8b675d;
--infobox-label-pattern: rgba(38, 21, 18, 0.16);
--infobox-label-pattern-light: rgba(255, 255, 255, 0.035);
--infobox-label-text: #f8efeb;
--infobox-label-text: #f8efeb;
--infobox-title: #70463b;
--infobox-title: #70463b;
--infobox-title-border: #503027;
--infobox-title-border: #503027;
--infobox-ink: #f0e5df;
--infobox-ink: #f0e5df;
--infobox-muted: #cdb7ad;
--infobox-link: #e1aa91;
--infobox-link: #e1aa91;
--infobox-link-hover: #f4c7b2;
--infobox-link-hover: #f4c7b2;
643번째 줄: 672번째 줄:
--infobox-nail: #918a86;
--infobox-nail: #918a86;
--infobox-nail-border: #5d5753;
--infobox-nail-border: #5d5753;
background:
 
linear-gradient(
background: var(--infobox-shell);
135deg,
rgba(255, 255, 255, 0.045),
transparent 34%
),
linear-gradient(
180deg,
var(--infobox-shell-light),
var(--infobox-shell)
);
}
}
html.skin-theme-clientpref-os .infobox::before {
html.skin-theme-clientpref-os .infobox::before {
opacity: 0.009;
opacity: 0.009;
}
}
html.skin-theme-clientpref-os .infobox__title {
html.skin-theme-clientpref-os .infobox__title {
background: var(--infobox-title);
background-color: var(--infobox-title);
background-image: url("/wiki/Special:Redirect/file/wood_texture.png");
background-repeat: repeat;
background-position: center;
background-size: 360px auto;
background-blend-mode: soft-light;
}
}
html.skin-theme-clientpref-os .infobox__image {
html.skin-theme-clientpref-os .infobox__image {
background:
background: var(--infobox-paper);
linear-gradient(
135deg,
rgba(255, 255, 255, 0.045),
transparent 44%
),
var(--infobox-paper);
}
html.skin-theme-clientpref-os .infobox__details th {
background: var(--infobox-label);
}
}
html.skin-theme-clientpref-os .infobox__details td {
html.skin-theme-clientpref-os .infobox__details td {
background: var(--infobox-paper);
background: var(--infobox-paper);
}
}
}
}