틀:정보상자/styles.css: 두 판 사이의 차이
식물 vs 좀비 위키
편집 요약 없음 |
편집 요약 없음 태그: 되돌려진 기여 |
||
| 1번째 줄: | 1번째 줄: | ||
.infobox { | .infobox { | ||
position: relative; | |||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
| 5번째 줄: | 6번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.25rem 1.25rem; | margin: 0 0 1.25rem 1.25rem; | ||
padding: 0. | padding: 0.78rem; | ||
border: 3px solid # | border: 3px solid #53634d; | ||
border-radius: | border-radius: 12px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: # | background: #d9dfd2; | ||
color: # | color: #30382d; | ||
font-family: | font-family: | ||
-apple-system, | -apple-system, | ||
| 20번째 줄: | 21번째 줄: | ||
font-size: 0.92rem; | font-size: 0.92rem; | ||
line-height: 1.5; | line-height: 1.5; | ||
box-shadow: 0 0 | box-shadow: | ||
0 0 23px rgba(54, 67, 50, 0.28), | |||
inset 0 0 0 2px #aeb8a7; | |||
} | |||
.infobox::before { | |||
position: absolute; | |||
z-index: 0; | |||
top: 6px; | |||
right: 6px; | |||
bottom: 6px; | |||
left: 6px; | |||
border: 1px solid #7d8a76; | |||
border-radius: 7px; | |||
content: ""; | |||
} | |||
.infobox__title, | |||
.infobox__panel { | |||
position: relative; | |||
z-index: 1; | |||
} | } | ||
.infobox__title { | .infobox__title { | ||
padding: 0. | margin: 0 0.35rem; | ||
border: | padding: 0.2rem 0.85rem; | ||
border: 2px solid #4f6049; | |||
border-radius: 4px; | border-radius: 4px; | ||
background: # | background: #6f8168; | ||
color: # | color: #fbfff8; | ||
font-family: | font-family: | ||
"SB Aggro B", | "SB Aggro B", | ||
| 43번째 줄: | 65번째 줄: | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: keep-all; | word-break: keep-all; | ||
box-shadow: | |||
0 3px 0 #4f6049, | |||
0 5px 9px rgba(50, 61, 46, 0.2); | |||
} | |||
.infobox__title::before, | |||
.infobox__title::after { | |||
position: absolute; | |||
top: 50%; | |||
width: 0; | |||
height: 0; | |||
transform: translateY(-50%); | |||
content: ""; | |||
} | |||
.infobox__title::before { | |||
left: -0.55rem; | |||
border-top: 0.56rem solid transparent; | |||
border-right: 0.55rem solid #4f6049; | |||
border-bottom: 0.56rem solid transparent; | |||
} | |||
.infobox__title::after { | |||
right: -0.55rem; | |||
border-top: 0.56rem solid transparent; | |||
border-bottom: 0.56rem solid transparent; | |||
border-left: 0.55rem solid #4f6049; | |||
} | } | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0. | margin-top: 0.82rem; | ||
border: | padding: 0.72rem; | ||
border-radius: | border: 2px solid #84917c; | ||
border-radius: 8px; | |||
overflow: hidden; | overflow: hidden; | ||
background: # | background: #f3f2e8; | ||
box-shadow: | |||
inset 0 0 0 3px #e3e5d9, | |||
0 2px 0 rgba(73, 84, 68, 0.18); | |||
} | } | ||
| 58번째 줄: | 111번째 줄: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 1. | min-width: 0; | ||
padding: 1.35rem 1rem; | |||
border: 2px solid #c3c9b9; | |||
border-radius: 9px; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
background: # | background: #f3f2e8; | ||
box-shadow: | |||
inset 0 0 0 4px #e6e6d9, | |||
0 3px 7px rgba(67, 77, 63, 0.14); | |||
} | } | ||
.infobox__image::before, | |||
.infobox__image::after { | .infobox__image::after { | ||
position: absolute; | position: absolute; | ||
top: 50%; | |||
width: 12px; | |||
height: 12px; | |||
border: 2px solid #c3c9b9; | |||
background: # | background: #f3f2e8; | ||
transform: translateY(-50%) rotate(45deg); | |||
content: ""; | content: ""; | ||
} | |||
.infobox__image::before { | |||
left: -8px; | |||
border-top: 0; | |||
border-right: 0; | |||
} | |||
.infobox__image::after { | |||
right: -8px; | |||
border-bottom: 0; | |||
border-left: 0; | |||
} | } | ||
| 78번째 줄: | 151번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
max-height: | max-height: 220px; | ||
margin: 0 auto; | margin: 0 auto; | ||
object-fit: contain; | object-fit: contain; | ||
filter: drop-shadow(0 | filter: drop-shadow(0 9px 7px rgba(55, 67, 51, 0.24)); | ||
} | } | ||
.infobox__details { | .infobox__details { | ||
width: | width: 100%; | ||
margin: 0 | margin: 0.72rem 0 0; | ||
padding-top: 0. | padding-top: 0.38rem; | ||
border: | border-top: 2px solid #bcc4b4; | ||
border-collapse: | border-collapse: separate; | ||
border-spacing: 0; | border-spacing: 0 0.36rem; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: transparent; | background: transparent; | ||
| 107번째 줄: | 180번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
min-width: 0; | min-width: 0; | ||
padding: 0. | padding: 0.42rem 0.58rem; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
vertical-align: | vertical-align: middle; | ||
font-family: | font-family: | ||
"SB Aggro L", | "SB Aggro L", | ||
| 121번째 줄: | 193번째 줄: | ||
sans-serif; | sans-serif; | ||
font-weight: 300; | font-weight: 300; | ||
line-height: 1. | line-height: 1.45; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 37%; | ||
border: 1px solid #7f8d76; | |||
color: # | border-right: 0; | ||
font-size: 0. | border-radius: 7px 0 0 7px; | ||
background: #98a58e; | |||
color: #f9fcf6; | |||
font-size: 0.84rem; | |||
text-align: left; | text-align: left; | ||
white-space: normal; | white-space: normal; | ||
box-shadow: | |||
inset 0 0 0 1px rgba(255, 255, 255, 0.22), | |||
0 2px 3px rgba(64, 75, 60, 0.1); | |||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
color: # | border: 1px solid #c5cabc; | ||
font-size: 0. | border-left: 0; | ||
border-radius: 0 7px 7px 0; | |||
background: #ebeade; | |||
color: #333a31; | |||
font-size: 0.89rem; | |||
text-align: left; | text-align: left; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: break-word; | word-break: break-word; | ||
box-shadow: | |||
inset 0 0 0 1px rgba(255, 255, 255, 0.38), | |||
0 2px 3px rgba(64, 75, 60, 0.08); | |||
} | } | ||
| 160번째 줄: | 245번째 줄: | ||
.infobox a { | .infobox a { | ||
color: # | color: #536f4d; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.infobox a:hover { | .infobox a:hover { | ||
color: # | color: #354d31; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| 176번째 줄: | 261번째 줄: | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 1.1rem; | margin: 0 0 1.1rem; | ||
padding: 0. | padding: 0.68rem; | ||
border-radius: | border-radius: 10px; | ||
box-shadow: 0 0 | box-shadow: | ||
0 0 20px rgba(54, 67, 50, 0.26), | |||
inset 0 0 0 2px #aeb8a7; | |||
} | |||
.infobox::before { | |||
top: 5px; | |||
right: 5px; | |||
bottom: 5px; | |||
left: 5px; | |||
border-radius: 6px; | |||
} | } | ||
.infobox__title { | .infobox__title { | ||
margin-right: 0.3rem; | |||
margin-left: 0.3rem; | |||
padding: 0.17rem 0.72rem; | |||
font-size: 1.16rem; | font-size: 1.16rem; | ||
} | |||
.infobox__title::before { | |||
left: -0.48rem; | |||
border-right-width: 0.48rem; | |||
} | |||
.infobox__title::after { | |||
right: -0.48rem; | |||
border-left-width: 0.48rem; | |||
} | } | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0.62rem; | margin-top: 0.72rem; | ||
border-radius: | padding: 0.62rem; | ||
border-radius: 7px; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
padding: 1. | padding: 1.18rem 0.82rem; | ||
border-radius: 8px; | |||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: | max-height: 200px; | ||
} | } | ||
.infobox__details { | .infobox__details { | ||
margin-top: 0.62rem; | |||
margin- | border-spacing: 0 0.32rem; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 35%; | ||
padding-right: 0. | padding-right: 0.48rem; | ||
padding-left: 0.48rem; | |||
} | } | ||
} | } | ||
| 219번째 줄: | 322번째 줄: | ||
@media screen and (max-width: 420px) { | @media screen and (max-width: 420px) { | ||
.infobox { | .infobox { | ||
padding: 0.58rem; | |||
} | |||
.infobox__title { | |||
padding-top: 0.14rem; | |||
padding-bottom: 0.14rem; | |||
font-size: 1.12rem; | |||
} | |||
.infobox__panel { | |||
padding: 0.52rem; | padding: 0.52rem; | ||
} | } | ||
.infobox__image | .infobox__image { | ||
padding: 1rem 0.7rem; | |||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: | max-height: 185px; | ||
} | } | ||
.infobox__details | .infobox__details th, | ||
.infobox__details td { | |||
padding-top: 0.38rem; | |||
padding-bottom: 0.38rem; | |||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 37%; | ||
padding-right: 0. | padding-right: 0.42rem; | ||
font-size: 0. | padding-left: 0.42rem; | ||
font-size: 0.79rem; | |||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
font-size: 0. | padding-right: 0.48rem; | ||
padding-left: 0.48rem; | |||
font-size: 0.85rem; | |||
} | } | ||
} | } | ||
| 250번째 줄: | 365번째 줄: | ||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .infobox { | html.skin-theme-clientpref-night .infobox { | ||
border-color: # | border-color: #43503f; | ||
background: # | background: #31382f; | ||
color: # | color: #e5eae2; | ||
box-shadow: 0 0 | box-shadow: | ||
0 0 25px rgba(0, 0, 0, 0.43), | |||
inset 0 0 0 2px #596456; | |||
} | |||
html.skin-theme-clientpref-night .infobox::before { | |||
border-color: #657060; | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__title { | html.skin-theme-clientpref-night .infobox__title { | ||
background: # | border-color: #394735; | ||
color: # | background: #596a54; | ||
color: #f6faf3; | |||
box-shadow: | |||
0 3px 0 #394735, | |||
0 5px 9px rgba(0, 0, 0, 0.26); | |||
} | |||
html.skin-theme-clientpref-night .infobox__title::before { | |||
border-right-color: #394735; | |||
} | |||
html.skin-theme-clientpref-night .infobox__title::after { | |||
border-left-color: #394735; | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__panel { | html.skin-theme-clientpref-night .infobox__panel { | ||
background: # | border-color: #596456; | ||
background: #292f28; | |||
box-shadow: | |||
inset 0 0 0 3px #353d33, | |||
0 2px 0 rgba(0, 0, 0, 0.25); | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__image { | html.skin-theme-clientpref-night .infobox__image { | ||
background: # | border-color: #525d4f; | ||
background: #292f28; | |||
box-shadow: | |||
inset 0 0 0 4px #333a31, | |||
0 3px 7px rgba(0, 0, 0, 0.22); | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__image::before, | |||
html.skin-theme-clientpref-night .infobox__image::after { | html.skin-theme-clientpref-night .infobox__image::after { | ||
background: # | border-color: #525d4f; | ||
background: #292f28; | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__image img { | html.skin-theme-clientpref-night .infobox__image img { | ||
filter: drop-shadow(0 | filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.38)); | ||
} | |||
html.skin-theme-clientpref-night .infobox__details { | |||
border-top-color: #505a4d; | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__details th { | html.skin-theme-clientpref-night .infobox__details th { | ||
color: # | border-color: #55634f; | ||
background: #657260; | |||
color: #f2f6ef; | |||
box-shadow: | |||
inset 0 0 0 1px rgba(255, 255, 255, 0.08), | |||
0 2px 3px rgba(0, 0, 0, 0.18); | |||
} | } | ||
html.skin-theme-clientpref-night .infobox__details td { | html.skin-theme-clientpref-night .infobox__details td { | ||
color: # | border-color: #50594d; | ||
background: #373e35; | |||
color: #e4e9e1; | |||
box-shadow: | |||
inset 0 0 0 1px rgba(255, 255, 255, 0.04), | |||
0 2px 3px rgba(0, 0, 0, 0.15); | |||
} | } | ||
html.skin-theme-clientpref-night .infobox a { | html.skin-theme-clientpref-night .infobox a { | ||
color: # | color: #a8c4a1; | ||
} | } | ||
html.skin-theme-clientpref-night .infobox a:hover { | html.skin-theme-clientpref-night .infobox a:hover { | ||
color: # | color: #c9ddc4; | ||
} | } | ||
} | } | ||
| 296번째 줄: | 453번째 줄: | ||
@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 { | ||
border-color: # | border-color: #43503f; | ||
background: # | background: #31382f; | ||
color: # | color: #e5eae2; | ||
box-shadow: 0 0 | box-shadow: | ||
0 0 25px rgba(0, 0, 0, 0.43), | |||
inset 0 0 0 2px #596456; | |||
} | |||
html.skin-theme-clientpref-os .infobox::before { | |||
border-color: #657060; | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__title { | html.skin-theme-clientpref-os .infobox__title { | ||
background: # | border-color: #394735; | ||
color: # | background: #596a54; | ||
color: #f6faf3; | |||
box-shadow: | |||
0 3px 0 #394735, | |||
0 5px 9px rgba(0, 0, 0, 0.26); | |||
} | |||
html.skin-theme-clientpref-os .infobox__title::before { | |||
border-right-color: #394735; | |||
} | |||
html.skin-theme-clientpref-os .infobox__title::after { | |||
border-left-color: #394735; | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__panel { | html.skin-theme-clientpref-os .infobox__panel { | ||
background: # | border-color: #596456; | ||
background: #292f28; | |||
box-shadow: | |||
inset 0 0 0 3px #353d33, | |||
0 2px 0 rgba(0, 0, 0, 0.25); | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__image { | html.skin-theme-clientpref-os .infobox__image { | ||
background: # | border-color: #525d4f; | ||
background: #292f28; | |||
box-shadow: | |||
inset 0 0 0 4px #333a31, | |||
0 3px 7px rgba(0, 0, 0, 0.22); | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__image::before, | |||
html.skin-theme-clientpref-os .infobox__image::after { | html.skin-theme-clientpref-os .infobox__image::after { | ||
background: # | border-color: #525d4f; | ||
background: #292f28; | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__image img { | html.skin-theme-clientpref-os .infobox__image img { | ||
filter: drop-shadow(0 | filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.38)); | ||
} | |||
html.skin-theme-clientpref-os .infobox__details { | |||
border-top-color: #505a4d; | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__details th { | html.skin-theme-clientpref-os .infobox__details th { | ||
color: # | border-color: #55634f; | ||
background: #657260; | |||
color: #f2f6ef; | |||
box-shadow: | |||
inset 0 0 0 1px rgba(255, 255, 255, 0.08), | |||
0 2px 3px rgba(0, 0, 0, 0.18); | |||
} | } | ||
html.skin-theme-clientpref-os .infobox__details td { | html.skin-theme-clientpref-os .infobox__details td { | ||
color: # | border-color: #50594d; | ||
background: #373e35; | |||
color: #e4e9e1; | |||
box-shadow: | |||
inset 0 0 0 1px rgba(255, 255, 255, 0.04), | |||
0 2px 3px rgba(0, 0, 0, 0.15); | |||
} | } | ||
html.skin-theme-clientpref-os .infobox a { | html.skin-theme-clientpref-os .infobox a { | ||
color: # | color: #a8c4a1; | ||
} | } | ||
html.skin-theme-clientpref-os .infobox a:hover { | html.skin-theme-clientpref-os .infobox a:hover { | ||
color: # | color: #c9ddc4; | ||
} | } | ||
} | } | ||
