틀:정보상자/styles.css
식물 vs 좀비 위키
.infobox {
position: relative;
float: right;
clear: right;
width: 340px;
max-width: 100%;
margin: 0 0 1.3rem 1.3rem;
padding: 1rem 0.85rem 0.95rem 1.05rem;
border: 1px solid #bfa990;
border-left: 9px solid #79533b;
border-radius: 30px 10px 26px 12px;
box-sizing: border-box;
background: #ded0bd;
color: #40342c;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 0.95rem;
line-height: 1.6;
box-shadow: 0 10px 24px rgba(69, 48, 34, 0.14);
overflow: visible;
}
.infobox::after {
content: "";
position: absolute;
right: 18px;
bottom: -1px;
width: 54px;
height: 7px;
border-radius: 7px 7px 0 0;
background: #a56c45;
}
.infobox__head {
position: relative;
z-index: 2;
margin: -0.3rem 0.45rem 0 -1.5rem;
}
.infobox__title {
padding: 0.68rem 1.1rem 0.62rem 1.35rem;
border: 1px solid #654531;
border-left: 0;
border-radius: 0 17px 8px 0;
box-sizing: border-box;
background: #79533b;
color: #fff8ef;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Apple SD Gothic Neo",
"Noto Sans KR",
sans-serif;
font-size: 1.42rem;
font-weight: 750;
letter-spacing: -0.025em;
line-height: 1.3;
text-align: left;
overflow-wrap: anywhere;
word-break: keep-all;
}
.infobox__title::after {
content: "";
display: block;
width: 2.8rem;
height: 3px;
margin: 0.42rem 0 0 auto;
border-radius: 3px;
background: #d9b78f;
}
.infobox__title p {
margin: 0;
font: inherit;
color: inherit;
line-height: inherit;
}
.infobox__body {
margin-top: 0.8rem;
}
.infobox__media {
position: relative;
z-index: 1;
margin: 0 0.35rem;
}
.infobox__media::before {
content: "";
position: absolute;
top: 1.1rem;
left: -0.35rem;
width: 0.35rem;
height: 3.4rem;
border-radius: 4px 0 0 4px;
background: #a56c45;
}
.infobox__image {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 195px;
max-height: 265px;
padding: 1.05rem;
border: 1px solid #c5aa8a;
border-bottom: 4px solid #a56c45;
border-radius: 19px 8px 21px 8px;
box-sizing: border-box;
background: #f4eadc;
overflow: hidden;
}
.infobox__image img {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 225px;
margin: 0 auto;
object-fit: contain;
}
.infobox__section {
position: relative;
margin-top: 0.8rem;
padding: 0.9rem 0.65rem 0.35rem 0.95rem;
border-top: 1px solid #bfa990;
border-radius: 8px 17px 15px 6px;
box-sizing: border-box;
background: #eadcca;
}
.infobox__media + .infobox__section {
margin-top: -0.45rem;
padding-top: 1.3rem;
}
.infobox__section-title {
display: inline-block;
margin: 0 0 0.42rem -0.95rem;
padding: 0.3rem 0.85rem 0.28rem 1rem;
border-left: 4px solid #a56c45;
border-radius: 0 9px 9px 0;
background: #d4bea2;
color: #5b4333;
font-size: 0.84rem;
font-weight: 700;
letter-spacing: 0.025em;
line-height: 1.35;
}
.infobox__details {
width: 100%;
margin: 0;
border: 0;
border-collapse: collapse;
border-spacing: 0;
table-layout: fixed;
background: transparent;
}
.infobox__details th,
.infobox__details td {
min-width: 0;
padding: 0.68rem 0;
border: 0;
box-sizing: border-box;
vertical-align: top;
line-height: 1.55;
}
.infobox__details tr + tr th,
.infobox__details tr + tr td {
border-top: 1px solid #d1bda4;
}
.infobox__details th {
position: relative;
width: 35%;
padding-right: 0.7rem;
padding-left: 1.05rem;
color: #4f3b2e;
font-size: 0.88rem;
font-weight: 700;
text-align: left;
white-space: normal;
}
.infobox__details th::before {
content: "";
position: absolute;
top: 1.04rem;
left: 0.15rem;
width: 0.46rem;
height: 0.46rem;
border-radius: 50% 50% 2px 50%;
background: #a56c45;
transform: rotate(45deg);
}
.infobox__details td {
padding-right: 0.2rem;
padding-left: 0.42rem;
color: #40342c;
font-size: 0.94rem;
font-weight: 400;
text-align: left;
overflow-wrap: anywhere;
word-break: break-word;
}
.infobox__details p {
margin: 0.18em 0;
}
.infobox__details ul,
.infobox__details ol {
margin: 0.25em 0 0.25em 1.25em;
padding: 0;
}
.infobox__details li {
margin: 0.15em 0;
}
.infobox__details sup {
line-height: 1;
}
.infobox a {
color: #85502f;
text-decoration: underline;
}
.infobox a:hover {
color: #5d351f;
}
.infobox a:focus {
outline: 2px solid #a56c45;
}
@media screen and (max-width: 720px) {
.infobox {
float: none;
clear: both;
width: 100%;
max-width: 100%;
margin: 0 0 1.15rem;
padding: 0.9rem 0.72rem 0.85rem 0.9rem;
border-left-width: 7px;
border-radius: 24px 8px 20px 10px;
font-size: 1rem;
line-height: 1.6;
box-shadow: 0 8px 20px rgba(69, 48, 34, 0.13);
}
.infobox::after {
right: 15px;
width: 46px;
height: 6px;
}
.infobox__head {
margin: -0.22rem 0.3rem 0 -1.25rem;
}
.infobox__title {
padding: 0.72rem 1rem 0.68rem 1.2rem;
border-radius: 0 15px 7px 0;
font-size: 2rem;
line-height: 1.22;
}
.infobox__title::after {
width: 2.5rem;
margin-top: 0.38rem;
}
.infobox__body {
margin-top: 0.72rem;
}
.infobox__media {
margin-right: 0.25rem;
margin-left: 0.25rem;
}
.infobox__media::before {
left: -0.25rem;
width: 0.25rem;
}
.infobox__image {
min-height: 200px;
max-height: 280px;
padding: 1rem;
border-radius: 17px 7px 19px 7px;
}
.infobox__image img {
max-height: 235px;
}
.infobox__section {
margin-top: 0.72rem;
padding-right: 0.55rem;
padding-left: 0.82rem;
border-radius: 7px 15px 13px 5px;
}
.infobox__media + .infobox__section {
margin-top: -0.4rem;
padding-top: 1.2rem;
}
.infobox__section-title {
margin-left: -0.82rem;
font-size: 0.92rem;
}
.infobox__details th {
width: 34%;
padding-left: 1rem;
font-size: 1rem;
}
.infobox__details td {
font-size: 1rem;
}
}
@media screen and (max-width: 520px) {
.infobox {
padding: 0.78rem 0.58rem 0.75rem 0.75rem;
border-left-width: 6px;
border-radius: 21px 7px 18px 9px;
}
.infobox__head {
margin-left: -1.05rem;
}
.infobox__title {
padding: 0.68rem 0.88rem 0.64rem 1rem;
font-size: 1.9rem;
}
.infobox__image {
min-height: 180px;
max-height: 245px;
padding: 0.85rem;
}
.infobox__image img {
max-height: 205px;
}
.infobox__section {
padding-right: 0.5rem;
padding-bottom: 0.25rem;
padding-left: 0.75rem;
}
.infobox__section-title {
margin-left: -0.75rem;
}
.infobox__details,
.infobox__details tbody,
.infobox__details tr,
.infobox__details th,
.infobox__details td {
display: block;
width: 100%;
}
.infobox__details tr {
padding: 0.68rem 0;
}
.infobox__details tr + tr {
border-top: 1px solid #d1bda4;
}
.infobox__details tr + tr th,
.infobox__details tr + tr td {
border-top: 0;
}
.infobox__details th {
padding: 0.05rem 0.2rem 0.25rem 1rem;
font-size: 0.96rem;
}
.infobox__details th::before {
top: 0.42rem;
}
.infobox__details td {
padding: 0.05rem 0.2rem 0.05rem 1rem;
font-size: 1rem;
line-height: 1.6;
}
}
@media screen {
html.skin-theme-clientpref-night .infobox {
border-color: #5f4d40;
border-left-color: #a87554;
background: #332a24;
color: #ece3d8;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
html.skin-theme-clientpref-night .infobox::after {
background: #bd8055;
}
html.skin-theme-clientpref-night .infobox__title {
border-color: #8b6046;
background: #684733;
color: #f7eee4;
}
html.skin-theme-clientpref-night .infobox__title::after {
background: #d5a274;
}
html.skin-theme-clientpref-night .infobox__media::before {
background: #bd8055;
}
html.skin-theme-clientpref-night .infobox__image {
border-color: #675548;
border-bottom-color: #bd8055;
background: #41362e;
}
html.skin-theme-clientpref-night .infobox__section {
border-top-color: #5f4f43;
background: #3a3029;
}
html.skin-theme-clientpref-night .infobox__section-title {
border-left-color: #bd8055;
background: #4e3e33;
color: #eddccc;
}
html.skin-theme-clientpref-night .infobox__details tr + tr th,
html.skin-theme-clientpref-night .infobox__details tr + tr td,
html.skin-theme-clientpref-night .infobox__details tr + tr {
border-top-color: #594a3f;
}
html.skin-theme-clientpref-night .infobox__details th {
color: #ead8c7;
}
html.skin-theme-clientpref-night .infobox__details th::before {
background: #bd8055;
}
html.skin-theme-clientpref-night .infobox__details td {
color: #ece3d8;
}
html.skin-theme-clientpref-night .infobox a {
color: #e0af82;
}
html.skin-theme-clientpref-night .infobox a:hover {
color: #f1c9a5;
}
html.skin-theme-clientpref-night .infobox a:focus {
outline-color: #d59a69;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox {
border-color: #5f4d40;
border-left-color: #a87554;
background: #332a24;
color: #ece3d8;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
html.skin-theme-clientpref-os .infobox::after {
background: #bd8055;
}
html.skin-theme-clientpref-os .infobox__title {
border-color: #8b6046;
background: #684733;
color: #f7eee4;
}
html.skin-theme-clientpref-os .infobox__title::after {
background: #d5a274;
}
html.skin-theme-clientpref-os .infobox__media::before {
background: #bd8055;
}
html.skin-theme-clientpref-os .infobox__image {
border-color: #675548;
border-bottom-color: #bd8055;
background: #41362e;
}
html.skin-theme-clientpref-os .infobox__section {
border-top-color: #5f4f43;
background: #3a3029;
}
html.skin-theme-clientpref-os .infobox__section-title {
border-left-color: #bd8055;
background: #4e3e33;
color: #eddccc;
}
html.skin-theme-clientpref-os .infobox__details tr + tr th,
html.skin-theme-clientpref-os .infobox__details tr + tr td,
html.skin-theme-clientpref-os .infobox__details tr + tr {
border-top-color: #594a3f;
}
html.skin-theme-clientpref-os .infobox__details th {
color: #ead8c7;
}
html.skin-theme-clientpref-os .infobox__details th::before {
background: #bd8055;
}
html.skin-theme-clientpref-os .infobox__details td {
color: #ece3d8;
}
html.skin-theme-clientpref-os .infobox a {
color: #e0af82;
}
html.skin-theme-clientpref-os .infobox a:hover {
color: #f1c9a5;
}
html.skin-theme-clientpref-os .infobox a:focus {
outline-color: #d59a69;
}
}
