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

식물 vs 좀비 위키
편집 요약 없음
편집 요약 없음
태그: 되돌려진 기여
1번째 줄: 1번째 줄:
.infobox {
.infobox {
--infobox-frame: #5f7047;
--infobox-frame: #895f54;
--infobox-frame-dark: #435432;
--infobox-frame-dark: #69453d;
--infobox-shell: #d8c5a5;
--infobox-shell: #d8b9a9;
--infobox-shell-light: #e7d7ba;
--infobox-shell-light: #ead0c1;
--infobox-paper: #fffaf0;
--infobox-paper: #fff8f1;
--infobox-paper-alt: #f2e7d3;
--infobox-paper-alt: #f2ded2;
--infobox-rule: #d1bea3;
--infobox-rule: #d2afa0;
--infobox-label: #71805a;
--infobox-label: #9a695c;
--infobox-label-dark: #4e5e3d;
--infobox-label-dark: #744b42;
--infobox-label-light: #8e9a73;
--infobox-label-light: #b17d6e;
--infobox-label-text: #fffdf5;
--infobox-label-text: #fffaf6;
--infobox-title: #704830;
--infobox-title: #78483b;
--infobox-title-dark: #543421;
--infobox-title-dark: #5b342c;
--infobox-ink: #49372d;
--infobox-ink: #50382f;
--infobox-muted: #675143;
--infobox-muted: #71554a;
--infobox-link: #825334;
--infobox-link: #925744;
--infobox-link-hover: #5e3822;
--infobox-link-hover: #683a2d;
--infobox-focus: #879a67;
--infobox-focus: #aa7564;
--infobox-stitch: rgba(77, 92, 57, 0.42);
--infobox-stitch: rgba(111, 70, 61, 0.38);
--infobox-shadow: rgba(70, 48, 32, 0.2);
--infobox-shadow: rgba(83, 46, 38, 0.2);
--infobox-cell-shadow: rgba(79, 55, 37, 0.08);
--infobox-cell-shadow: rgba(99, 57, 46, 0.08);
 
position: relative;
position: relative;
isolation: isolate;
isolation: isolate;
62번째 줄: 61번째 줄:
overflow: hidden;
overflow: hidden;
}
}
.infobox::before {
.infobox::before {
position: absolute;
position: absolute;
79번째 줄: 77번째 줄:
pointer-events: none;
pointer-events: none;
}
}
.infobox::after {
.infobox::after {
position: absolute;
position: absolute;
93번째 줄: 90번째 줄:
pointer-events: none;
pointer-events: none;
}
}
.infobox__title,
.infobox__title,
.infobox__panel {
.infobox__panel {
99번째 줄: 95번째 줄:
z-index: 1;
z-index: 1;
}
}
/* 이름칸 */
/* 이름칸 */
.infobox__title {
.infobox__title {
114번째 줄: 109번째 줄:
linear-gradient(
linear-gradient(
180deg,
180deg,
#7e543a 0%,
#8d5b4c 0%,
var(--infobox-title) 48%,
var(--infobox-title) 48%,
var(--infobox-title-dark) 100%
var(--infobox-title-dark) 100%
126번째 줄: 121번째 줄:
100% 0
100% 0
);
);
color: #fffaf1;
color: #fffaf6;
font-family:
font-family:
"SB Aggro B",
"SB Aggro B",
142번째 줄: 137번째 줄:
text-align: center;
text-align: center;
text-shadow:
text-shadow:
0 1px 0 rgba(60, 35, 21, 0.9),
0 1px 0 rgba(74, 39, 32, 0.9),
0 2px 2px rgba(45, 27, 17, 0.35);
0 2px 2px rgba(55, 29, 24, 0.35);
filter: drop-shadow(0 3px 2px rgba(72, 43, 27, 0.25));
filter: drop-shadow(0 3px 2px rgba(79, 42, 34, 0.25));
box-shadow:
box-shadow:
inset 0 1px rgba(255, 255, 255, 0.18),
inset 0 1px rgba(255, 255, 255, 0.18),
inset 0 -2px rgba(57, 34, 21, 0.22);
inset 0 -2px rgba(67, 34, 28, 0.22);
overflow-wrap: anywhere;
overflow-wrap: anywhere;
word-break: keep-all;
word-break: keep-all;
}
}
.infobox__title p {
.infobox__title p {
margin: 0;
margin: 0;
158번째 줄: 152번째 줄:
line-height: inherit;
line-height: inherit;
}
}
/* 본체 */
/* 본체 */
.infobox__panel {
.infobox__panel {
168번째 줄: 161번째 줄:
overflow: visible;
overflow: visible;
}
}
.infobox__image,
.infobox__image,
.infobox__details {
.infobox__details {
174번째 줄: 166번째 줄:
z-index: 1;
z-index: 1;
}
}
/* 사진칸 */
/* 사진칸 */
.infobox__image {
.infobox__image {
196번째 줄: 187번째 줄:
box-shadow:
box-shadow:
0 3px 8px var(--infobox-cell-shadow),
0 3px 8px var(--infobox-cell-shadow),
inset 0 0 0 3px rgba(216, 198, 170, 0.18);
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;
209번째 줄: 199번째 줄:
linear-gradient(
linear-gradient(
45deg,
45deg,
rgba(113, 128, 90, 0.025) 25%,
rgba(145, 87, 70, 0.025) 25%,
transparent 25%,
transparent 25%,
transparent 75%,
transparent 75%,
rgba(113, 128, 90, 0.025) 75%
rgba(145, 87, 70, 0.025) 75%
),
),
linear-gradient(
linear-gradient(
-45deg,
-45deg,
rgba(113, 128, 90, 0.025) 25%,
rgba(145, 87, 70, 0.025) 25%,
transparent 25%,
transparent 25%,
transparent 75%,
transparent 75%,
rgba(113, 128, 90, 0.025) 75%
rgba(145, 87, 70, 0.025) 75%
);
);
background-position:
background-position:
228번째 줄: 218번째 줄:
pointer-events: none;
pointer-events: none;
}
}
.infobox__image::after {
.infobox__image::after {
position: absolute;
position: absolute;
240번째 줄: 229번째 줄:
opacity: 0.38;
opacity: 0.38;
}
}
.infobox__image a,
.infobox__image a,
.infobox__image img {
.infobox__image img {
246번째 줄: 234번째 줄:
z-index: 1;
z-index: 1;
}
}
.infobox__image img {
.infobox__image img {
display: block;
display: block;
255번째 줄: 242번째 줄:
margin: 0 auto;
margin: 0 auto;
object-fit: contain;
object-fit: contain;
filter: drop-shadow(0 3px 2px rgba(67, 49, 36, 0.14));
filter: drop-shadow(0 3px 2px rgba(82, 48, 39, 0.14));
}
}
/* 정보칸 */
/* 정보칸 */
.infobox__details {
.infobox__details {
264번째 줄: 250번째 줄:
border: 0;
border: 0;
border-collapse: separate;
border-collapse: separate;
border-spacing: 0.32rem 0.34rem;
border-spacing: 0 0.34rem;
table-layout: fixed;
table-layout: fixed;
background: transparent;
background: transparent;
280번째 줄: 266번째 줄:
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 {
300번째 줄: 283번째 줄:
overflow: hidden;
overflow: hidden;
}
}
 
/* 항목명 */
/* 항목명 라벨 */
.infobox__details th {
.infobox__details th {
width: 32%;
width: 32%;
307번째 줄: 289번째 줄:
padding-left: 0.92rem;
padding-left: 0.92rem;
border: 1px solid var(--infobox-label-dark);
border: 1px solid var(--infobox-label-dark);
border-radius: 10px;
border-right: 0;
border-radius: 10px 0 0 10px;
background-color: var(--infobox-label);
background-color: var(--infobox-label);
background-image:
background-image:
325번째 줄: 308번째 줄:
linear-gradient(
linear-gradient(
-45deg,
-45deg,
rgba(67, 84, 50, 0.09) 25%,
rgba(104, 61, 52, 0.1) 25%,
transparent 25%,
transparent 25%,
transparent 75%,
transparent 75%,
rgba(67, 84, 50, 0.09) 75%
rgba(104, 61, 52, 0.1) 75%
);
);
background-position:
background-position:
352번째 줄: 335번째 줄:
text-align: left;
text-align: left;
text-shadow:
text-shadow:
0 1px 0 rgba(54, 68, 40, 0.9),
0 1px 0 rgba(75, 43, 36, 0.9),
0 1px 2px rgba(40, 51, 30, 0.28);
0 1px 2px rgba(58, 33, 28, 0.28);
word-break: keep-all;
word-break: keep-all;
box-shadow:
box-shadow:
inset 0 1px rgba(255, 255, 255, 0.15),
inset 0 1px rgba(255, 255, 255, 0.15),
0 2px 4px rgba(56, 70, 42, 0.13);
0 2px 4px rgba(86, 49, 41, 0.13);
}
}
.infobox__details th::after {
.infobox__details th::after {
position: absolute;
position: absolute;
367번째 줄: 349번째 줄:
height: 5px;
height: 5px;
border-radius: 50%;
border-radius: 50%;
background: rgba(255, 253, 245, 0.66);
background: rgba(255, 250, 246, 0.7);
box-shadow: 0 1px 1px rgba(48, 61, 36, 0.35);
box-shadow: 0 1px 1px rgba(70, 39, 33, 0.35);
content: "";
content: "";
transform: translateY(-50%);
transform: translateY(-50%);
}
}
 
/* 항목값 */
/* 정보값 종이칸 */
.infobox__details td {
.infobox__details td {
width: 68%;
width: 68%;
379번째 줄: 360번째 줄:
padding-left: 0.86rem;
padding-left: 0.86rem;
border: 1px solid var(--infobox-rule);
border: 1px solid var(--infobox-rule);
border-radius: 10px;
border-left: 1px dashed var(--infobox-label-dark);
border-radius: 0 10px 10px 0;
background-color: var(--infobox-paper);
background-color: var(--infobox-paper);
background-image:
background-image:
392번째 줄: 374번째 줄:
transparent 0,
transparent 0,
transparent 19px,
transparent 19px,
rgba(122, 95, 68, 0.035) 20px
rgba(132, 78, 63, 0.035) 20px
);
);
color: var(--infobox-ink);
color: var(--infobox-ink);
413번째 줄: 395번째 줄:
inset 0 1px rgba(255, 255, 255, 0.72);
inset 0 1px rgba(255, 255, 255, 0.72);
}
}
.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 {
425번째 줄: 405번째 줄:
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);
441번째 줄: 418번째 줄:
text-decoration: underline;
text-decoration: underline;
}
}
.infobox a:hover {
.infobox a:hover {
color: var(--infobox-link-hover);
color: var(--infobox-link-hover);
text-decoration-color: currentColor;
text-decoration: underline;
}
}
.infobox a:focus {
.infobox a:focus {
border-radius: 3px;
border-radius: 3px;
452번째 줄: 427번째 줄:
outline-offset: 2px;
outline-offset: 2px;
}
}
/* 태블릿·모바일 */
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
.infobox {
.infobox {
469번째 줄: 442번째 줄:
inset 0 1px rgba(255, 255, 255, 0.38);
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.64rem 2.3rem 0.6rem;
padding: 0.64rem 2.3rem 0.6rem;
491번째 줄: 461번째 줄:
line-height: 1.12;
line-height: 1.12;
}
}
.infobox__panel {
.infobox__panel {
margin-top: 0.62rem;
margin-top: 0.62rem;
}
}
.infobox__image {
.infobox__image {
min-height: 90px;
min-height: 90px;
501번째 줄: 469번째 줄:
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);
margin-right: -0.28rem;
margin-right: -0.28rem;
margin-left: -0.28rem;
margin-left: -0.28rem;
border-spacing: 0.28rem 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 {
523번째 줄: 487번째 줄:
line-height: 1.46;
line-height: 1.46;
}
}
.infobox__details th {
.infobox__details th {
width: 30%;
width: 30%;
530번째 줄: 493번째 줄:
font-size: 0.96rem;
font-size: 0.96rem;
}
}
.infobox__details td {
.infobox__details td {
width: 70%;
width: 70%;
538번째 줄: 500번째 줄:
}
}
}
}
@media screen and (max-width: 480px) {
@media screen and (max-width: 480px) {
.infobox {
.infobox {
544번째 줄: 505번째 줄:
border-radius: 18px;
border-radius: 18px;
}
}
.infobox::before {
.infobox::before {
border-radius: 16px;
border-radius: 16px;
}
}
.infobox::after {
.infobox::after {
top: 4px;
top: 4px;
556번째 줄: 515번째 줄:
border-radius: 14px;
border-radius: 14px;
}
}
.infobox__title {
.infobox__title {
padding: 0.6rem 1.9rem 0.56rem;
padding: 0.6rem 1.9rem 0.56rem;
570번째 줄: 528번째 줄:
line-height: 1.12;
line-height: 1.12;
}
}
.infobox__panel {
.infobox__panel {
margin-top: 0.58rem;
margin-top: 0.58rem;
}
}
.infobox__image {
.infobox__image {
min-height: 72px;
min-height: 72px;
581번째 줄: 537번째 줄:
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;
592번째 줄: 546번째 줄:
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;
grid-template-columns: minmax(88px, 31%) minmax(0, 1fr);
grid-template-columns: minmax(88px, 31%) minmax(0, 1fr);
gap: 0.3rem;
gap: 0;
width: 100%;
width: 100%;
margin: 0 0 0.34rem;
margin: 0 0 0.34rem;
}
}
.infobox__details th,
.infobox__details th,
.infobox__details td {
.infobox__details td {
616번째 줄: 567번째 줄:
line-height: 1.42;
line-height: 1.42;
}
}
.infobox__details th {
.infobox__details th {
padding-right: 0.96rem;
padding-right: 0.96rem;
padding-left: 0.76rem;
padding-left: 0.76rem;
border-radius: 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-right: 0.7rem;
padding-left: 0.76rem;
padding-left: 0.76rem;
border-radius: 9px;
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 {
--infobox-frame: #71805b;
--infobox-frame: #825d54;
--infobox-frame-dark: #445039;
--infobox-frame-dark: #573d37;
--infobox-shell: #37352c;
--infobox-shell: #3d302d;
--infobox-shell-light: #454238;
--infobox-shell-light: #4b3b37;
--infobox-paper: #302f29;
--infobox-paper: #352b28;
--infobox-paper-alt: #3b3a31;
--infobox-paper-alt: #41332f;
--infobox-rule: #5c594c;
--infobox-rule: #67504a;
--infobox-label: #566247;
--infobox-label: #704d45;
--infobox-label-dark: #35402d;
--infobox-label-dark: #4e342f;
--infobox-label-light: #687556;
--infobox-label-light: #865e54;
--infobox-label-text: #f5f1e5;
--infobox-label-text: #f8efeb;
--infobox-title: #674631;
--infobox-title: #70463b;
--infobox-title-dark: #4d3223;
--infobox-title-dark: #503027;
--infobox-ink: #eee8dc;
--infobox-ink: #f0e5df;
--infobox-muted: #c5bbaa;
--infobox-muted: #cdb7ad;
--infobox-link: #dfb183;
--infobox-link: #e1aa91;
--infobox-link-hover: #f1cba4;
--infobox-link-hover: #f4c7b2;
--infobox-focus: #a8bb82;
--infobox-focus: #bd8978;
--infobox-stitch: rgba(157, 172, 126, 0.34);
--infobox-stitch: rgba(187, 133, 116, 0.32);
--infobox-shadow: rgba(0, 0, 0, 0.34);
--infobox-shadow: rgba(0, 0, 0, 0.34);
--infobox-cell-shadow: rgba(0, 0, 0, 0.18);
--infobox-cell-shadow: rgba(0, 0, 0, 0.18);
background:
background:
linear-gradient(
linear-gradient(
669번째 줄: 615번째 줄:
);
);
}
}
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:
background:
linear-gradient(
linear-gradient(
180deg,
180deg,
#76513a 0%,
#805447 0%,
var(--infobox-title) 48%,
var(--infobox-title) 48%,
var(--infobox-title-dark) 100%
var(--infobox-title-dark) 100%
);
);
}
}
html.skin-theme-clientpref-night .infobox__image {
html.skin-theme-clientpref-night .infobox__image {
background:
background:
693번째 줄: 636번째 줄:
var(--infobox-paper);
var(--infobox-paper);
}
}
html.skin-theme-clientpref-night .infobox__details td {
html.skin-theme-clientpref-night .infobox__details td {
background-color: var(--infobox-paper);
background-color: var(--infobox-paper);
711번째 줄: 653번째 줄:
}
}
}
}
/* 운영체제 설정을 따르는 다크 모드 */
@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-frame: #71805b;
--infobox-frame: #825d54;
--infobox-frame-dark: #445039;
--infobox-frame-dark: #573d37;
--infobox-shell: #37352c;
--infobox-shell: #3d302d;
--infobox-shell-light: #454238;
--infobox-shell-light: #4b3b37;
--infobox-paper: #302f29;
--infobox-paper: #352b28;
--infobox-paper-alt: #3b3a31;
--infobox-paper-alt: #41332f;
--infobox-rule: #5c594c;
--infobox-rule: #67504a;
--infobox-label: #566247;
--infobox-label: #704d45;
--infobox-label-dark: #35402d;
--infobox-label-dark: #4e342f;
--infobox-label-light: #687556;
--infobox-label-light: #865e54;
--infobox-label-text: #f5f1e5;
--infobox-label-text: #f8efeb;
--infobox-title: #674631;
--infobox-title: #70463b;
--infobox-title-dark: #4d3223;
--infobox-title-dark: #503027;
--infobox-ink: #eee8dc;
--infobox-ink: #f0e5df;
--infobox-muted: #c5bbaa;
--infobox-muted: #cdb7ad;
--infobox-link: #dfb183;
--infobox-link: #e1aa91;
--infobox-link-hover: #f1cba4;
--infobox-link-hover: #f4c7b2;
--infobox-focus: #a8bb82;
--infobox-focus: #bd8978;
--infobox-stitch: rgba(157, 172, 126, 0.34);
--infobox-stitch: rgba(187, 133, 116, 0.32);
--infobox-shadow: rgba(0, 0, 0, 0.34);
--infobox-shadow: rgba(0, 0, 0, 0.34);
--infobox-cell-shadow: rgba(0, 0, 0, 0.18);
--infobox-cell-shadow: rgba(0, 0, 0, 0.18);
background:
background:
linear-gradient(
linear-gradient(
749번째 줄: 688번째 줄:
);
);
}
}
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:
background:
linear-gradient(
linear-gradient(
180deg,
180deg,
#76513a 0%,
#805447 0%,
var(--infobox-title) 48%,
var(--infobox-title) 48%,
var(--infobox-title-dark) 100%
var(--infobox-title-dark) 100%
);
);
}
}
html.skin-theme-clientpref-os .infobox__image {
html.skin-theme-clientpref-os .infobox__image {
background:
background:
773번째 줄: 709번째 줄:
var(--infobox-paper);
var(--infobox-paper);
}
}
html.skin-theme-clientpref-os .infobox__details td {
html.skin-theme-clientpref-os .infobox__details td {
background-color: var(--infobox-paper);
background-color: var(--infobox-paper);