틀:정보상자/styles.css: 두 판 사이의 차이
둘러보기로 이동
검색으로 이동
편집 요약 없음 태그: 모바일 편집 모바일 웹 편집 |
편집 요약 없음 |
||
| 50번째 줄: | 50번째 줄: | ||
} | } | ||
/* 이름칸 | /* 이름칸 디자인 유지 */ | ||
.infobox__title { | .infobox__title { | ||
display: flex; | display: flex; | ||
| 96번째 줄: | 96번째 줄: | ||
} | } | ||
/* 아래부터 깔끔하게 재정리 */ | |||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0.66rem; | margin-top: 0.66rem; | ||
padding: 0 | padding: 0; | ||
border: | border: 0; | ||
border-radius: | border-radius: 0; | ||
background: transparent; | |||
background: | overflow: visible; | ||
overflow: | |||
} | } | ||
| 128번째 줄: | 112번째 줄: | ||
} | } | ||
/* 사진칸 */ | /* 사진칸 디자인 유지 */ | ||
.infobox__image { | .infobox__image { | ||
display: flex; | display: flex; | ||
| 172번째 줄: | 156번째 줄: | ||
} | } | ||
/* 정보칸 */ | /* 정보칸 새 디자인 */ | ||
.infobox__details { | .infobox__details { | ||
width: 100%; | width: 100%; | ||
margin: 0. | margin: 0.44rem 0 0; | ||
border: 1px solid # | border: 1px solid #d4c1ae; | ||
border-radius: | border-radius: 12px; | ||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0; | border-spacing: 0; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: | background: rgba(255, 251, 245, 0.97); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; | overflow: hidden; | ||
| 193번째 줄: | 177번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
box-shadow: 0 2px 8px rgba(92, 63, 44, 0.04); | |||
} | } | ||
.infobox__image + .infobox__details { | .infobox__image + .infobox__details { | ||
margin-top: 0. | margin-top: 0.44rem; | ||
} | |||
.infobox__details tr { | |||
background: transparent; | |||
} | } | ||
| 202번째 줄: | 191번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
min-width: 0; | min-width: 0; | ||
padding-top: 0. | padding-top: 0.78rem; | ||
padding-bottom: 0. | padding-bottom: 0.78rem; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
vertical-align: | vertical-align: top; | ||
line-height: 1. | line-height: 1.5; | ||
border: 0; | |||
background: transparent; | |||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 29%; | ||
padding-right: 0. | padding-right: 0.8rem; | ||
padding-left: 0. | padding-left: 0.88rem; | ||
color: #5d4638; | |||
color: # | |||
font-family: | font-family: | ||
"SB Aggro M", | "SB Aggro M", | ||
| 234번째 줄: | 221번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 71%; | ||
padding-right: 0. | padding-right: 0.9rem; | ||
padding-left: 0. | padding-left: 0.1rem; | ||
color: #49362c; | color: #49362c; | ||
font-family: | font-family: | ||
| 257번째 줄: | 241번째 줄: | ||
} | } | ||
.infobox__details tr:last-child th, | .infobox__details tr:not(:last-child) th, | ||
.infobox__details tr:last-child td { | .infobox__details tr:not(:last-child) td { | ||
border-bottom: | border-bottom: 1px solid #e6d8c9; | ||
} | } | ||
| 334번째 줄: | 318번째 줄: | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0.6rem; | margin-top: 0.6rem; | ||
} | } | ||
| 350번째 줄: | 332번째 줄: | ||
.infobox__details { | .infobox__details { | ||
margin-top: 0. | margin-top: 0.4rem; | ||
border-radius: | border-radius: 11px; | ||
} | } | ||
.infobox__image + .infobox__details { | .infobox__image + .infobox__details { | ||
margin-top: 0. | margin-top: 0.4rem; | ||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding-top: 0. | padding-top: 0.8rem; | ||
padding-bottom: 0. | padding-bottom: 0.8rem; | ||
line-height: 1. | line-height: 1.46; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 28%; | ||
padding-right: 0. | padding-right: 0.72rem; | ||
padding-left: 0. | padding-left: 0.8rem; | ||
font-size: 0.98rem; | font-size: 0.98rem; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 72%; | ||
padding-right: 0. | padding-right: 0.82rem; | ||
padding-left: 0. | padding-left: 0.08rem; | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
| 402번째 줄: | 384번째 줄: | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0.58rem; | |||
} | } | ||
| 418번째 줄: | 399번째 줄: | ||
.infobox__details { | .infobox__details { | ||
margin-top: 0. | margin-top: 0.34rem; | ||
border-radius: | border-radius: 10px; | ||
} | } | ||
.infobox__image + .infobox__details { | .infobox__image + .infobox__details { | ||
margin-top: 0. | margin-top: 0.34rem; | ||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding-top: 0. | padding-top: 0.68rem; | ||
padding-bottom: 0. | padding-bottom: 0.68rem; | ||
line-height: 1. | line-height: 1.42; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 31%; | ||
padding-right: 0.58rem; | padding-right: 0.58rem; | ||
padding-left: 0. | padding-left: 0.68rem; | ||
font-size: 0.92rem; | font-size: 0.92rem; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 69%; | ||
padding-right: 0. | padding-right: 0.68rem; | ||
padding-left: 0. | padding-left: 0.06rem; | ||
font-size: 0.96rem; | font-size: 0.96rem; | ||
} | } | ||
| 466번째 줄: | 447번째 줄: | ||
html.skin-theme-clientpref-night .infobox__panel { | html.skin-theme-clientpref-night .infobox__panel { | ||
background: transparent; | |||
background: | |||
} | } | ||
| 485번째 줄: | 461번째 줄: | ||
html.skin-theme-clientpref-night .infobox__details { | html.skin-theme-clientpref-night .infobox__details { | ||
border-color: #665244; | border-color: #665244; | ||
background: # | background: #372d26; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__details th { | html.skin-theme-clientpref-night .infobox__details th { | ||
color: #cbb3a1; | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__details td { | html.skin-theme-clientpref-night .infobox__details td { | ||
color: #eee4d9; | color: #eee4d9; | ||
} | |||
html.skin-theme-clientpref-night .infobox__details tr:not(:last-child) th, | |||
html.skin-theme-clientpref-night .infobox__details tr:not(:last-child) td { | |||
border-bottom-color: #514238; | |||
} | } | ||
| 532번째 줄: | 509번째 줄: | ||
html.skin-theme-clientpref-os .infobox__panel { | html.skin-theme-clientpref-os .infobox__panel { | ||
background: transparent; | |||
background: | |||
} | } | ||
| 551번째 줄: | 523번째 줄: | ||
html.skin-theme-clientpref-os .infobox__details { | html.skin-theme-clientpref-os .infobox__details { | ||
border-color: #665244; | border-color: #665244; | ||
background: # | background: #372d26; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__details th { | html.skin-theme-clientpref-os .infobox__details th { | ||
color: #cbb3a1; | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__details td { | html.skin-theme-clientpref-os .infobox__details td { | ||
color: #eee4d9; | color: #eee4d9; | ||
} | |||
html.skin-theme-clientpref-os .infobox__details tr:not(:last-child) th, | |||
html.skin-theme-clientpref-os .infobox__details tr:not(:last-child) td { | |||
border-bottom-color: #514238; | |||
} | } | ||
2026년 7월 23일 (목) 13:24 판
.infobox {
position: relative;
float: right;
clear: right;
width: 328px;
max-width: 100%;
margin: 0 0 1.25rem 1.25rem;
padding: 0.78rem;
border: 2px solid #805e47;
border-radius: 20px;
box-sizing: border-box;
background: #d9c1a4;
color: #453329;
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.55;
box-shadow: 0 9px 24px rgba(79, 51, 35, 0.17);
overflow: hidden;
}
.infobox::before {
position: absolute;
z-index: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 18px;
background-image: url("/wiki/Special:Redirect/file/paper_texture.png");
background-repeat: repeat;
background-position: left top;
background-size: 520px auto;
content: "";
opacity: 0.015;
}
.infobox__title,
.infobox__panel {
position: relative;
z-index: 1;
}
/* 이름칸 디자인 유지 */
.infobox__title {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 0;
padding: 0.56rem 2.1rem 0.52rem;
border: 0;
border-radius: 0;
box-sizing: border-box;
background: #704830;
clip-path: polygon(
0 0,
21px 50%,
0 100%,
100% 100%,
calc(100% - 21px) 50%,
100% 0
);
color: #fffaf1;
font-family:
"SB Aggro B",
"SB 어그로 B",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 1.3rem;
font-weight: 700;
letter-spacing: -0.025em;
line-height: 1.12;
text-align: center;
overflow-wrap: anywhere;
word-break: keep-all;
}
.infobox__title p {
margin: 0;
font: inherit;
color: inherit;
line-height: inherit;
}
/* 아래부터 깔끔하게 재정리 */
.infobox__panel {
margin-top: 0.66rem;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
overflow: visible;
}
.infobox__image,
.infobox__details {
position: relative;
z-index: 1;
}
/* 사진칸 디자인 유지 */
.infobox__image {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 82px;
max-height: 225px;
padding: 0.58rem;
border: 1px solid #cfb99e;
border-radius: 10px;
box-sizing: border-box;
background: rgba(255, 250, 241, 0.96);
overflow: hidden;
}
.infobox__image::after {
position: absolute;
right: 0.7rem;
bottom: 0.52rem;
width: 30px;
height: 3px;
border-radius: 3px;
background: #9b6745;
content: "";
opacity: 0.32;
}
.infobox__image a,
.infobox__image img {
position: relative;
z-index: 1;
}
.infobox__image img {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 198px;
margin: 0 auto;
object-fit: contain;
}
/* 정보칸 새 디자인 */
.infobox__details {
width: 100%;
margin: 0.44rem 0 0;
border: 1px solid #d4c1ae;
border-radius: 12px;
border-collapse: separate;
border-spacing: 0;
table-layout: fixed;
background: rgba(255, 251, 245, 0.97);
box-sizing: border-box;
overflow: hidden;
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
box-shadow: 0 2px 8px rgba(92, 63, 44, 0.04);
}
.infobox__image + .infobox__details {
margin-top: 0.44rem;
}
.infobox__details tr {
background: transparent;
}
.infobox__details th,
.infobox__details td {
min-width: 0;
padding-top: 0.78rem;
padding-bottom: 0.78rem;
box-sizing: border-box;
vertical-align: top;
line-height: 1.5;
border: 0;
background: transparent;
}
.infobox__details th {
width: 29%;
padding-right: 0.8rem;
padding-left: 0.88rem;
color: #5d4638;
font-family:
"SB Aggro M",
"SB 어그로 M",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.84rem;
font-weight: 500;
text-align: left;
white-space: normal;
}
.infobox__details td {
width: 71%;
padding-right: 0.9rem;
padding-left: 0.1rem;
color: #49362c;
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.91rem;
font-weight: 300;
text-align: left;
overflow-wrap: anywhere;
word-break: break-word;
}
.infobox__details tr:not(:last-child) th,
.infobox__details tr:not(:last-child) td {
border-bottom: 1px solid #e6d8c9;
}
.infobox__details p {
margin: 0.14em 0;
font: inherit;
}
.infobox__details ul,
.infobox__details ol {
margin: 0.18em 0 0.18em 1.1em;
padding: 0;
font: inherit;
}
.infobox__details li {
margin: 0.1em 0;
font: inherit;
}
.infobox__details sup {
line-height: 1;
}
.infobox a {
color: #8a5837;
font-family: inherit;
font-weight: inherit;
text-decoration: none;
}
.infobox a:hover {
color: #633c25;
text-decoration: underline;
}
.infobox a:focus {
outline: 2px solid #a87959;
}
@media screen and (max-width: 720px) {
.infobox {
float: none;
clear: both;
width: 100%;
max-width: 100%;
margin: 0 0 1.1rem;
padding: 0.68rem;
border-radius: 18px;
font-size: 1rem;
line-height: 1.55;
box-shadow: 0 7px 18px rgba(79, 51, 35, 0.15);
}
.infobox::before {
border-radius: 16px;
}
.infobox__title {
min-height: 0;
padding: 0.62rem 2.3rem 0.58rem;
clip-path: polygon(
0 0,
23px 50%,
0 100%,
100% 100%,
calc(100% - 23px) 50%,
100% 0
);
font-size: 1.9rem;
line-height: 1.12;
}
.infobox__panel {
margin-top: 0.6rem;
}
.infobox__image {
min-height: 90px;
max-height: 235px;
padding: 0.58rem;
border-radius: 9px;
}
.infobox__image img {
max-height: 208px;
}
.infobox__details {
margin-top: 0.4rem;
border-radius: 11px;
}
.infobox__image + .infobox__details {
margin-top: 0.4rem;
}
.infobox__details th,
.infobox__details td {
padding-top: 0.8rem;
padding-bottom: 0.8rem;
line-height: 1.46;
}
.infobox__details th {
width: 28%;
padding-right: 0.72rem;
padding-left: 0.8rem;
font-size: 0.98rem;
}
.infobox__details td {
width: 72%;
padding-right: 0.82rem;
padding-left: 0.08rem;
font-size: 1rem;
}
}
@media screen and (max-width: 480px) {
.infobox {
padding: 0.56rem;
border-radius: 16px;
}
.infobox__title {
min-height: 0;
padding: 0.58rem 1.9rem 0.54rem;
clip-path: polygon(
0 0,
18px 50%,
0 100%,
100% 100%,
calc(100% - 18px) 50%,
100% 0
);
font-size: 1.7rem;
line-height: 1.12;
}
.infobox__panel {
margin-top: 0.58rem;
}
.infobox__image {
min-height: 72px;
max-height: 205px;
padding: 0.46rem;
border-radius: 8px;
}
.infobox__image img {
max-height: 180px;
}
.infobox__details {
margin-top: 0.34rem;
border-radius: 10px;
}
.infobox__image + .infobox__details {
margin-top: 0.34rem;
}
.infobox__details th,
.infobox__details td {
padding-top: 0.68rem;
padding-bottom: 0.68rem;
line-height: 1.42;
}
.infobox__details th {
width: 31%;
padding-right: 0.58rem;
padding-left: 0.68rem;
font-size: 0.92rem;
}
.infobox__details td {
width: 69%;
padding-right: 0.68rem;
padding-left: 0.06rem;
font-size: 0.96rem;
}
}
@media screen {
html.skin-theme-clientpref-night .infobox {
border-color: #715442;
background: #3d3027;
color: #eee4d9;
box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
}
html.skin-theme-clientpref-night .infobox::before {
opacity: 0.007;
}
html.skin-theme-clientpref-night .infobox__title {
background: #603d29;
color: #fff7ed;
}
html.skin-theme-clientpref-night .infobox__panel {
background: transparent;
}
html.skin-theme-clientpref-night .infobox__image {
border-color: #665244;
background: #40342b;
}
html.skin-theme-clientpref-night .infobox__image::after {
background: #aa7650;
}
html.skin-theme-clientpref-night .infobox__details {
border-color: #665244;
background: #372d26;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
html.skin-theme-clientpref-night .infobox__details th {
color: #cbb3a1;
}
html.skin-theme-clientpref-night .infobox__details td {
color: #eee4d9;
}
html.skin-theme-clientpref-night .infobox__details tr:not(:last-child) th,
html.skin-theme-clientpref-night .infobox__details tr:not(:last-child) td {
border-bottom-color: #514238;
}
html.skin-theme-clientpref-night .infobox a {
color: #ddb089;
}
html.skin-theme-clientpref-night .infobox a:hover {
color: #f2cbaa;
}
html.skin-theme-clientpref-night .infobox a:focus {
outline-color: #bd906d;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox {
border-color: #715442;
background: #3d3027;
color: #eee4d9;
box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
}
html.skin-theme-clientpref-os .infobox::before {
opacity: 0.007;
}
html.skin-theme-clientpref-os .infobox__title {
background: #603d29;
color: #fff7ed;
}
html.skin-theme-clientpref-os .infobox__panel {
background: transparent;
}
html.skin-theme-clientpref-os .infobox__image {
border-color: #665244;
background: #40342b;
}
html.skin-theme-clientpref-os .infobox__image::after {
background: #aa7650;
}
html.skin-theme-clientpref-os .infobox__details {
border-color: #665244;
background: #372d26;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
html.skin-theme-clientpref-os .infobox__details th {
color: #cbb3a1;
}
html.skin-theme-clientpref-os .infobox__details td {
color: #eee4d9;
}
html.skin-theme-clientpref-os .infobox__details tr:not(:last-child) th,
html.skin-theme-clientpref-os .infobox__details tr:not(:last-child) td {
border-bottom-color: #514238;
}
html.skin-theme-clientpref-os .infobox a {
color: #ddb089;
}
html.skin-theme-clientpref-os .infobox a:hover {
color: #f2cbaa;
}
html.skin-theme-clientpref-os .infobox a:focus {
outline-color: #bd906d;
}
}