틀:정보상자/styles.css: 두 판 사이의 차이
둘러보기로 이동
검색으로 이동
편집 요약 없음 태그: 모바일 편집 모바일 웹 편집 |
편집 요약 없음 |
||
| 57번째 줄: | 57번째 줄: | ||
color: inherit; | color: inherit; | ||
line-height: inherit; | line-height: inherit; | ||
} | |||
.infobox__panel { | |||
margin: 0.7rem 0.45rem 0.55rem; | |||
border: 1px solid #d4b99c; | |||
border-radius: 3px; | |||
box-sizing: border-box; | |||
background: #fff7eb; | |||
overflow: hidden; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 100%; | width: 100%; | ||
height: | min-height: 190px; | ||
max-height: 240px; | |||
padding: | padding: 1rem; | ||
border: 0; | border: 0; | ||
border- | border-bottom: 1px solid #d4b99c; | ||
box-sizing: | box-sizing: border-box; | ||
background | background: transparent; | ||
overflow: hidden; | |||
overflow: | |||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
display: block; | display: block; | ||
width: auto; | width: auto; | ||
max-width: | max-width: 100%; | ||
height: auto; | height: auto; | ||
max-height: | max-height: 210px; | ||
margin: 0; | margin: 0 auto; | ||
object-fit: contain; | object-fit: contain; | ||
filter: drop-shadow(0 11px 9px rgba(74, 49, 32, 0.3)); | filter: drop-shadow(0 11px 9px rgba(74, 49, 32, 0.3)); | ||
} | } | ||
.infobox__details { | .infobox__details { | ||
width: 100%; | width: calc(100% - 2rem); | ||
margin: 0; | margin: 0.45rem 1rem 0.8rem; | ||
border: 0; | border: 0; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
| 227번째 줄: | 220번째 줄: | ||
color: inherit; | color: inherit; | ||
line-height: inherit; | line-height: inherit; | ||
} | |||
.infobox__panel { | |||
margin: 0.62rem 0.35rem 0.45rem; | |||
border-radius: 2px; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
min-height: 180px; | |||
max-height: 230px; | |||
padding: 0.85rem; | |||
padding: | |||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: 205px; | |||
max-height: | |||
} | } | ||
. | .infobox__details { | ||
width: calc(100% - 1.6rem); | |||
margin: 0.45rem 0.8rem 0.75rem; | |||
} | } | ||
| 279번째 줄: | 272번째 줄: | ||
color: inherit; | color: inherit; | ||
line-height: inherit; | line-height: inherit; | ||
} | |||
.infobox__panel { | |||
margin-right: 0.3rem; | |||
margin-bottom: 0.4rem; | |||
margin-left: 0.3rem; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
min-height: 170px; | |||
height: | max-height: 220px; | ||
padding: | padding: 0.75rem; | ||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: 195px; | |||
max-height: | |||
} | } | ||
. | .infobox__details { | ||
width: calc(100% - 1.3rem); | |||
margin- | margin-right: 0.65rem; | ||
margin- | margin-bottom: 0.7rem; | ||
margin-left: 0.65rem; | |||
} | } | ||
| 324번째 줄: | 320번째 줄: | ||
color: #fff8ef; | color: #fff8ef; | ||
box-shadow: 0 4px 9px rgba(0, 0, 0, 0.28); | box-shadow: 0 4px 9px rgba(0, 0, 0, 0.28); | ||
} | |||
html.skin-theme-clientpref-night .infobox__panel { | |||
border-color: #66503e; | |||
background: #30241e; | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__image { | html.skin-theme-clientpref-night .infobox__image { | ||
border-bottom-color: #66503e; | |||
background: transparent; | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__image img { | html.skin-theme-clientpref-night .infobox__image img { | ||
filter: drop-shadow(0 11px 9px rgba(0, 0, 0, 0.4)); | filter: drop-shadow(0 11px 9px rgba(0, 0, 0, 0.4)); | ||
} | } | ||
| 369번째 줄: | 366번째 줄: | ||
color: #fff8ef; | color: #fff8ef; | ||
box-shadow: 0 4px 9px rgba(0, 0, 0, 0.28); | box-shadow: 0 4px 9px rgba(0, 0, 0, 0.28); | ||
} | |||
html.skin-theme-clientpref-os .infobox__panel { | |||
border-color: #66503e; | |||
background: #30241e; | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__image { | html.skin-theme-clientpref-os .infobox__image { | ||
border-bottom-color: #66503e; | |||
background: transparent; | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__image img { | html.skin-theme-clientpref-os .infobox__image img { | ||
filter: drop-shadow(0 11px 9px rgba(0, 0, 0, 0.4)); | filter: drop-shadow(0 11px 9px rgba(0, 0, 0, 0.4)); | ||
} | } | ||
2026년 7월 22일 (수) 18:07 판
.infobox {
float: right;
clear: right;
width: 320px;
max-width: 100%;
margin: 0 0 1.25rem 1.25rem;
padding: 0.72rem;
border: 3px solid #815e45;
border-radius: 4px;
box-sizing: border-box;
background: #d8c0a6;
color: #3e3027;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.92rem;
line-height: 1.5;
box-shadow: 0 0 24px rgba(77, 52, 35, 0.3);
}
.infobox__title {
padding: 0.28rem 1.35rem;
border: 0;
border-radius: 0;
background: #67412d;
color: #fffaf3;
font-family:
"SB Aggro B",
"SB 어그로 B",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
font-size: 1.22rem;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.3;
text-align: center;
overflow-wrap: anywhere;
word-break: keep-all;
clip-path: polygon(
4% 0,
100% 0,
96% 100%,
0 100%
);
box-shadow: 0 4px 9px rgba(67, 43, 29, 0.22);
}
.infobox__title p {
margin: 0;
font: inherit;
color: inherit;
line-height: inherit;
}
.infobox__panel {
margin: 0.7rem 0.45rem 0.55rem;
border: 1px solid #d4b99c;
border-radius: 3px;
box-sizing: border-box;
background: #fff7eb;
overflow: hidden;
}
.infobox__image {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 190px;
max-height: 240px;
padding: 1rem;
border: 0;
border-bottom: 1px solid #d4b99c;
box-sizing: border-box;
background: transparent;
overflow: hidden;
}
.infobox__image img {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 210px;
margin: 0 auto;
object-fit: contain;
filter: drop-shadow(0 11px 9px rgba(74, 49, 32, 0.3));
}
.infobox__details {
width: calc(100% - 2rem);
margin: 0.45rem 1rem 0.8rem;
border: 0;
border-collapse: collapse;
border-spacing: 0;
table-layout: fixed;
background: transparent;
font-family:
"SB Aggro L",
"SB 어그로 L",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
}
.infobox__details th,
.infobox__details td {
min-width: 0;
padding: 0.48rem 0;
border: 0;
box-sizing: border-box;
vertical-align: top;
line-height: 1.5;
}
.infobox__details th {
width: 35%;
padding-right: 0.75rem;
color: #47372d;
font-family:
"SB Aggro M",
"SB 어그로 M",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.86rem;
font-weight: 500;
text-align: left;
white-space: normal;
}
.infobox__details td {
color: #47372d;
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;
text-align: left;
overflow-wrap: anywhere;
word-break: break-word;
}
.infobox__details p {
margin: 0.2em 0;
}
.infobox__details ul,
.infobox__details ol {
margin: 0.2em 0 0.2em 1.2em;
padding: 0;
}
.infobox__details li {
margin: 0.1em 0;
}
.infobox__details sup {
line-height: 1;
}
.infobox a {
color: #8a562f;
text-decoration: none;
}
.infobox a:hover {
color: #5d351f;
text-decoration: underline;
}
@media screen and (max-width: 720px) {
.infobox {
float: none;
clear: both;
width: 100%;
max-width: 100%;
margin: 0 0 1.1rem;
padding: 0.62rem;
border-width: 3px;
border-radius: 3px;
font-size: inherit;
line-height: inherit;
box-shadow: 0 0 21px rgba(77, 52, 35, 0.28);
}
.infobox .infobox__title {
padding: 0.45rem 1.2rem;
font-size: 2.8rem;
line-height: 1.2;
clip-path: polygon(
3% 0,
100% 0,
97% 100%,
0 100%
);
}
.infobox .infobox__title p {
margin: 0;
font: inherit;
color: inherit;
line-height: inherit;
}
.infobox__panel {
margin: 0.62rem 0.35rem 0.45rem;
border-radius: 2px;
}
.infobox__image {
min-height: 180px;
max-height: 230px;
padding: 0.85rem;
}
.infobox__image img {
max-height: 205px;
}
.infobox__details {
width: calc(100% - 1.6rem);
margin: 0.45rem 0.8rem 0.75rem;
}
.infobox__details,
.infobox__details th,
.infobox__details td {
font-size: 1em;
line-height: inherit;
}
.infobox__details th {
width: 34%;
padding-right: 0.6rem;
}
}
@media screen and (max-width: 420px) {
.infobox {
padding: 0.52rem;
border-radius: 2px;
}
.infobox .infobox__title {
padding: 0.4rem 1rem;
font-size: 2.5rem;
line-height: 1.2;
}
.infobox .infobox__title p {
margin: 0;
font: inherit;
color: inherit;
line-height: inherit;
}
.infobox__panel {
margin-right: 0.3rem;
margin-bottom: 0.4rem;
margin-left: 0.3rem;
}
.infobox__image {
min-height: 170px;
max-height: 220px;
padding: 0.75rem;
}
.infobox__image img {
max-height: 195px;
}
.infobox__details {
width: calc(100% - 1.3rem);
margin-right: 0.65rem;
margin-bottom: 0.7rem;
margin-left: 0.65rem;
}
.infobox__details th {
width: 36%;
padding-right: 0.5rem;
}
.infobox__details th,
.infobox__details td {
font-size: 1em;
}
}
@media screen {
html.skin-theme-clientpref-night .infobox {
border-color: #76533b;
background: #3c2e25;
color: #eee2d5;
box-shadow: 0 0 26px rgba(0, 0, 0, 0.46);
}
html.skin-theme-clientpref-night .infobox__title {
background: #4d2f20;
color: #fff8ef;
box-shadow: 0 4px 9px rgba(0, 0, 0, 0.28);
}
html.skin-theme-clientpref-night .infobox__panel {
border-color: #66503e;
background: #30241e;
}
html.skin-theme-clientpref-night .infobox__image {
border-bottom-color: #66503e;
background: transparent;
}
html.skin-theme-clientpref-night .infobox__image img {
filter: drop-shadow(0 11px 9px rgba(0, 0, 0, 0.4));
}
html.skin-theme-clientpref-night .infobox__details th,
html.skin-theme-clientpref-night .infobox__details td {
color: #eee2d5;
}
html.skin-theme-clientpref-night .infobox__details th {
font-weight: 500;
}
html.skin-theme-clientpref-night .infobox a {
color: #dda977;
}
html.skin-theme-clientpref-night .infobox a:hover {
color: #f0c99f;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox {
border-color: #76533b;
background: #3c2e25;
color: #eee2d5;
box-shadow: 0 0 26px rgba(0, 0, 0, 0.46);
}
html.skin-theme-clientpref-os .infobox__title {
background: #4d2f20;
color: #fff8ef;
box-shadow: 0 4px 9px rgba(0, 0, 0, 0.28);
}
html.skin-theme-clientpref-os .infobox__panel {
border-color: #66503e;
background: #30241e;
}
html.skin-theme-clientpref-os .infobox__image {
border-bottom-color: #66503e;
background: transparent;
}
html.skin-theme-clientpref-os .infobox__image img {
filter: drop-shadow(0 11px 9px rgba(0, 0, 0, 0.4));
}
html.skin-theme-clientpref-os .infobox__details th,
html.skin-theme-clientpref-os .infobox__details td {
color: #eee2d5;
}
html.skin-theme-clientpref-os .infobox__details th {
font-weight: 500;
}
html.skin-theme-clientpref-os .infobox a {
color: #dda977;
}
html.skin-theme-clientpref-os .infobox a:hover {
color: #f0c99f;
}
}