틀:정보상자/styles.css: 두 판 사이의 차이
둘러보기로 이동
검색으로 이동
편집 요약 없음 태그: 되돌려진 기여 |
편집 요약 없음 태그: 되돌려진 기여 |
||
| 8번째 줄: | 8번째 줄: | ||
--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: #6f4a34; | --infobox-ribbon: #6f4a34; | ||
--infobox-row-bg: # | --infobox-row-bg: #faf7f1; | ||
--infobox-row-edge: #d8cdc0; | --infobox-row-edge: #d8cdc0; | ||
--infobox-label-text: #3f3026; | --infobox-label-text: #3f3026; | ||
| 25번째 줄: | 25번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.25rem 1.25rem; | margin: 0 0 1.25rem 1.25rem; | ||
padding: 0.9rem 0.9rem | padding: 0.9rem 0.9rem 2rem; | ||
border: 4px solid var(--infobox-outer-edge); | border: 4px solid var(--infobox-outer-edge); | ||
border-radius: 9px; | border-radius: 9px; | ||
| 77번째 줄: | 77번째 줄: | ||
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% - 16px) 50%, | |||
100% 100%, | |||
0 100%, | |||
16px 50% | |||
); | |||
color: var(--infobox-title-text); | color: var(--infobox-title-text); | ||
font-family: | font-family: | ||
"SB Aggro | "SB Aggro M", | ||
"SB 어그로 | "SB 어그로 M", | ||
-apple-system, | -apple-system, | ||
BlinkMacSystemFont, | BlinkMacSystemFont, | ||
| 129번째 줄: | 136번째 줄: | ||
aspect-ratio: 1 / 1; | aspect-ratio: 1 / 1; | ||
margin: 0 auto 1rem; | margin: 0 auto 1rem; | ||
padding: | padding: 0; | ||
border: 0; | border: 0; | ||
border-radius: 0; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background-color: transparent; | ||
background-image: var(--infobox-image-bg); | background-image: var(--infobox-image-bg); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: center; | background-position: center; | ||
background-size: | background-size: contain; | ||
box-shadow: none; | |||
clip-path: none; | |||
overflow: visible; | |||
clip-path: | |||
} | } | ||
.infobox__image::before, | |||
.infobox__image::after { | .infobox__image::after { | ||
display: none; | |||
} | } | ||
| 253번째 줄: | 222번째 줄: | ||
sans-serif; | sans-serif; | ||
font-size: 0.82rem; | font-size: 0.82rem; | ||
font-weight: | font-weight: 500; | ||
word-break: keep-all; | word-break: keep-all; | ||
} | } | ||
| 261번째 줄: | 230번째 줄: | ||
color: var(--infobox-text); | color: var(--infobox-text); | ||
font-family: | font-family: | ||
"SB Aggro | "SB Aggro L", | ||
"SB 어그로 | "SB 어그로 L", | ||
-apple-system, | -apple-system, | ||
BlinkMacSystemFont, | BlinkMacSystemFont, | ||
| 270번째 줄: | 239번째 줄: | ||
sans-serif; | sans-serif; | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
font-weight: | font-weight: 300; | ||
word-break: break-word; | word-break: break-word; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
| 416번째 줄: | 385번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.1rem; | margin: 0 0 1.1rem; | ||
padding: 0.82rem 0.82rem | padding: 0.82rem 0.82rem 1.84rem; | ||
border-radius: 8px; | border-radius: 8px; | ||
font-size: 1rem; | font-size: 1rem; | ||
| 438번째 줄: | 407번째 줄: | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - 12px); | width: calc(100% - 12px); | ||
padding: | padding: 0; | ||
margin-bottom: 0.92rem; | margin-bottom: 0.92rem; | ||
} | } | ||
| 487번째 줄: | 452번째 줄: | ||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.infobox { | .infobox { | ||
padding: 0.72rem 0.72rem | padding: 0.72rem 0.72rem 1.64rem; | ||
} | } | ||
| 506번째 줄: | 471번째 줄: | ||
.infobox__image { | .infobox__image { | ||
width: calc(100% - 4px); | width: calc(100% - 4px); | ||
padding: 0 | padding: 0; | ||
} | } | ||
2026년 7월 23일 (목) 19:43 판
.infobox {
--infobox-outer-edge: #896247;
--infobox-inner: #d5c4ae;
--infobox-inner-edge: #c2ad94;
--infobox-panel: #f4efe5;
--infobox-image-paper: #efe1bf;
--infobox-image-frame: #9a5b32;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Light.png");
--infobox-ribbon: #6f4a34;
--infobox-row-bg: #faf7f1;
--infobox-row-edge: #d8cdc0;
--infobox-label-text: #3f3026;
--infobox-text: #5d4434;
--infobox-link: #8b6044;
--infobox-link-hover: #68442d;
--infobox-focus: #ae7d60;
--infobox-title-text: #fffaf3;
--infobox-text-outline: #4e3426;
--infobox-shadow: rgba(58, 39, 28, 0.12);
position: relative;
float: right;
clear: right;
width: 328px;
max-width: 100%;
margin: 0 0 1.25rem 1.25rem;
padding: 0.9rem 0.9rem 2rem;
border: 4px solid var(--infobox-outer-edge);
border-radius: 9px;
box-sizing: border-box;
background: var(--infobox-inner);
color: var(--infobox-text);
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.92rem;
font-weight: 300;
line-height: 1.6;
box-shadow: 0 8px 24px var(--infobox-shadow);
overflow: hidden;
}
.infobox::before {
position: absolute;
top: 12px;
right: 12px;
bottom: 12px;
left: 12px;
border: 1px solid var(--infobox-inner-edge);
border-radius: 5px;
box-sizing: border-box;
content: "";
pointer-events: none;
}
.infobox__title,
.infobox__panel {
position: relative;
z-index: 1;
}
/* 이름칸 */
.infobox__title {
display: flex;
align-items: center;
justify-content: center;
width: calc(100% - 12px);
margin: 0.6rem auto 1rem;
padding: 0.92rem 1.4rem;
border: 0;
box-sizing: border-box;
background: var(--infobox-ribbon);
clip-path: polygon(
0 0,
100% 0,
calc(100% - 16px) 50%,
100% 100%,
0 100%,
16px 50%
);
color: var(--infobox-title-text);
font-family:
"SB Aggro M",
"SB 어그로 M",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 1.34rem;
font-weight: 700;
line-height: 1.16;
letter-spacing: -0.025em;
text-align: center;
text-shadow:
-2px -2px 0 var(--infobox-text-outline),
0 -2px 0 var(--infobox-text-outline),
2px -2px 0 var(--infobox-text-outline),
-2px 0 0 var(--infobox-text-outline),
2px 0 0 var(--infobox-text-outline),
-2px 2px 0 var(--infobox-text-outline),
0 2px 0 var(--infobox-text-outline),
2px 2px 0 var(--infobox-text-outline);
overflow-wrap: anywhere;
word-break: keep-all;
}
.infobox__title p {
margin: 0;
font: inherit;
color: inherit;
line-height: inherit;
}
/* 내부 영역 */
.infobox__panel {
margin-top: 0;
padding: 0;
background: transparent;
}
/* 이미지칸 */
.infobox__image {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: calc(100% - 18px);
aspect-ratio: 1 / 1;
margin: 0 auto 1rem;
padding: 0;
border: 0;
border-radius: 0;
box-sizing: border-box;
background-color: transparent;
background-image: var(--infobox-image-bg);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
box-shadow: none;
clip-path: none;
overflow: visible;
}
.infobox__image::before,
.infobox__image::after {
display: none;
}
.infobox__image a,
.infobox__image img {
position: relative;
z-index: 1;
}
.infobox__image a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.infobox__image img {
display: block;
width: 100%;
max-width: 100%;
height: 100%;
max-height: 100%;
margin: 0 auto;
object-fit: contain;
filter: drop-shadow(0 10px 12px rgba(78, 52, 38, 0.18));
}
/* 정보칸 */
.infobox__details {
width: calc(100% - 12px);
margin: 0 auto;
border: 2px solid var(--infobox-row-edge);
border-collapse: separate;
border-spacing: 0;
border-radius: 6px;
table-layout: fixed;
background: var(--infobox-row-bg);
box-sizing: border-box;
overflow: hidden;
}
.infobox__details tr {
background: transparent;
}
.infobox__details th,
.infobox__details td {
padding: 0.78rem 0.86rem;
border: 0;
box-sizing: border-box;
background: transparent;
line-height: 1.5;
text-align: left;
vertical-align: top;
}
.infobox__details th {
width: 36%;
color: var(--infobox-label-text);
font-family:
"SB Aggro B",
"SB 어그로 B",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.82rem;
font-weight: 500;
word-break: keep-all;
}
.infobox__details td {
width: 64%;
color: var(--infobox-text);
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.9rem;
font-weight: 300;
word-break: break-word;
overflow-wrap: anywhere;
}
/* 섹션 제목 */
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3 {
display: block;
width: calc(100% - 12px);
margin: 1rem auto 0.62rem;
padding: 0.82rem 1.12rem;
border: 0;
box-sizing: border-box;
background: var(--infobox-ribbon);
clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
color: var(--infobox-title-text);
font-family:
"SB Aggro B",
"SB 어그로 B",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 1.06rem;
font-weight: 700;
line-height: 1.14;
text-align: center;
text-shadow:
-1px -1px 0 var(--infobox-text-outline),
0 -1px 0 var(--infobox-text-outline),
1px -1px 0 var(--infobox-text-outline),
-1px 0 0 var(--infobox-text-outline),
1px 0 0 var(--infobox-text-outline),
-1px 1px 0 var(--infobox-text-outline),
0 1px 0 var(--infobox-text-outline),
1px 1px 0 var(--infobox-text-outline);
}
.infobox__section-title::after,
.infobox__subtitle::after,
.infobox__panel > h2::after,
.infobox__panel > h3::after {
display: none;
}
/* 섹션 본문 */
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
width: calc(100% - 12px);
margin: 0 auto;
padding: 0.86rem 0.96rem;
border: 2px solid var(--infobox-row-edge);
border-radius: 6px;
box-sizing: border-box;
background: var(--infobox-row-bg);
color: var(--infobox-text);
font-size: 0.92rem;
line-height: 1.55;
}
/* 공통 텍스트 */
.infobox__details p,
.infobox__section-body p,
.infobox__listbox p,
.infobox__games p,
.infobox__appearance-list p {
margin: 0.12em 0;
font: inherit;
}
.infobox__details ul,
.infobox__details ol,
.infobox__section-body ul,
.infobox__section-body ol,
.infobox__listbox ul,
.infobox__listbox ol,
.infobox__games ul,
.infobox__games ol,
.infobox__appearance-list ul,
.infobox__appearance-list ol {
margin: 0.14em 0 0.14em 1.12em;
padding: 0;
font: inherit;
}
.infobox__details li,
.infobox__section-body li,
.infobox__listbox li,
.infobox__games li,
.infobox__appearance-list li {
margin: 0.1em 0;
font: inherit;
}
.infobox small,
.infobox sup,
.infobox__details small,
.infobox__details sup,
.infobox__section-body small,
.infobox__section-body sup,
.infobox__listbox small,
.infobox__listbox sup,
.infobox__games small,
.infobox__games sup,
.infobox__appearance-list small,
.infobox__appearance-list sup {
position: static;
top: auto;
bottom: auto;
vertical-align: baseline;
line-height: inherit;
font-size: 0.85em;
}
.infobox a {
color: var(--infobox-link);
font-family: inherit;
font-weight: inherit;
text-decoration: none;
}
.infobox a:hover {
color: var(--infobox-link-hover);
text-decoration: underline;
}
.infobox a:focus {
outline: 2px solid var(--infobox-focus);
outline-offset: 2px;
}
/* 720px 이하 */
@media screen and (max-width: 720px) {
.infobox {
float: none;
clear: both;
width: 100%;
max-width: 100%;
margin: 0 0 1.1rem;
padding: 0.82rem 0.82rem 1.84rem;
border-radius: 8px;
font-size: 1rem;
}
.infobox::before {
top: 10px;
right: 10px;
bottom: 10px;
left: 10px;
border-radius: 4px;
}
.infobox__title {
width: calc(100% - 8px);
margin: 0.52rem auto 0.9rem;
padding: 0.92rem 1.1rem;
font-size: 1.42rem;
}
.infobox__image {
width: calc(100% - 12px);
padding: 0;
margin-bottom: 0.92rem;
}
.infobox__details {
width: calc(100% - 8px);
}
.infobox__details th,
.infobox__details td {
padding: 0.74rem 0.82rem;
}
.infobox__details th {
width: 36%;
font-size: 0.96rem;
}
.infobox__details td {
width: 64%;
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% - 8px);
}
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3 {
font-size: 1.16rem;
}
}
/* 480px 이하 */
@media screen and (max-width: 480px) {
.infobox {
padding: 0.72rem 0.72rem 1.64rem;
}
.infobox::before {
top: 8px;
right: 8px;
bottom: 8px;
left: 8px;
}
.infobox__title {
width: calc(100% - 4px);
margin: 0.44rem auto 0.78rem;
padding: 0.82rem 0.92rem;
font-size: 1.22rem;
}
.infobox__image {
width: calc(100% - 4px);
padding: 0;
}
.infobox__details {
width: calc(100% - 4px);
}
.infobox__details th,
.infobox__details td {
padding: 0.68rem 0.72rem;
}
.infobox__details th {
width: 38%;
font-size: 0.89rem;
}
.infobox__details td {
width: 62%;
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% - 4px);
}
.infobox__section-title,
.infobox__subtitle,
.infobox__panel > h2,
.infobox__panel > h3 {
font-size: 1.02rem;
}
.infobox__section-body,
.infobox__listbox,
.infobox__games,
.infobox__appearance-list {
padding: 0.74rem 0.8rem;
font-size: 0.95rem;
}
}
/* 수동 다크 모드 */
@media screen {
html.skin-theme-clientpref-night .infobox {
--infobox-outer-edge: #5d4336;
--infobox-inner: #4a3c34;
--infobox-inner-edge: #6c594b;
--infobox-panel: #3d332d;
--infobox-image-paper: #51443a;
--infobox-image-frame: #8f6546;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
--infobox-ribbon: #6a4a3a;
--infobox-row-bg: #efe7db;
--infobox-row-edge: #d2c0ac;
--infobox-label-text: #3a2c24;
--infobox-text: #5b4334;
--infobox-link: #925f45;
--infobox-link-hover: #6b432e;
--infobox-focus: #d6a788;
--infobox-title-text: #fff8f2;
--infobox-text-outline: #2f1e17;
--infobox-shadow: rgba(0, 0, 0, 0.28);
}
}
/* OS 다크 모드 */
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox {
--infobox-outer-edge: #5d4336;
--infobox-inner: #4a3c34;
--infobox-inner-edge: #6c594b;
--infobox-panel: #3d332d;
--infobox-image-paper: #51443a;
--infobox-image-frame: #8f6546;
--infobox-image-bg: url("/wiki/Special:Redirect/file/Template_Bg_Dark.png");
--infobox-ribbon: #6a4a3a;
--infobox-row-bg: #efe7db;
--infobox-row-edge: #d2c0ac;
--infobox-label-text: #3a2c24;
--infobox-text: #5b4334;
--infobox-link: #925f45;
--infobox-link-hover: #6b432e;
--infobox-focus: #d6a788;
--infobox-title-text: #fff8f2;
--infobox-text-outline: #2f1e17;
--infobox-shadow: rgba(0, 0, 0, 0.28);
}
}