틀:정보상자/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.72rem;
padding: 0.78rem;
border: 3px solid #587d55;
border: 3px solid #53634d;
border-radius: 6px;
border-radius: 12px;
box-sizing: border-box;
box-sizing: border-box;
background: #dfe9dc;
background: #d9dfd2;
color: #293628;
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 24px rgba(63, 91, 60, 0.32);
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.28rem 0.85rem;
margin: 0 0.35rem;
border: 0;
padding: 0.2rem 0.85rem;
border: 2px solid #4f6049;
border-radius: 4px;
border-radius: 4px;
background: #608b5d;
background: #6f8168;
color: #f8fff6;
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.7rem;
margin-top: 0.82rem;
border: 0;
padding: 0.72rem;
border-radius: 5px;
border: 2px solid #84917c;
border-radius: 8px;
overflow: hidden;
overflow: hidden;
background: #f2f5f0;
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.5rem 1rem 1.35rem;
min-width: 0;
padding: 1.35rem 1rem;
border: 2px solid #c3c9b9;
border-radius: 9px;
box-sizing: border-box;
box-sizing: border-box;
background: #f2f5f0;
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;
right: 1rem;
top: 50%;
bottom: 0;
width: 12px;
left: 1rem;
height: 12px;
height: 1px;
border: 2px solid #c3c9b9;
background: #bccbbb;
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: 210px;
max-height: 220px;
margin: 0 auto;
margin: 0 auto;
object-fit: contain;
object-fit: contain;
filter: drop-shadow(0 11px 9px rgba(59, 81, 56, 0.22));
filter: drop-shadow(0 9px 7px rgba(55, 67, 51, 0.24));
}
}


.infobox__details {
.infobox__details {
width: calc(100% - 2rem);
width: 100%;
margin: 0 1rem 0.8rem;
margin: 0.72rem 0 0;
padding-top: 0.45rem;
padding-top: 0.38rem;
border: 0;
border-top: 2px solid #bcc4b4;
border-collapse: 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.48rem 0;
padding: 0.42rem 0.58rem;
border: 0;
box-sizing: border-box;
box-sizing: border-box;
vertical-align: top;
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.5;
line-height: 1.45;
}
}


.infobox__details th {
.infobox__details th {
width: 35%;
width: 37%;
padding-right: 0.75rem;
border: 1px solid #7f8d76;
color: #6d7b6a;
border-right: 0;
font-size: 0.86rem;
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: #303b2f;
border: 1px solid #c5cabc;
font-size: 0.9rem;
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: #52794f;
color: #536f4d;
text-decoration: none;
text-decoration: none;
}
}


.infobox a:hover {
.infobox a:hover {
color: #365b34;
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.62rem;
padding: 0.68rem;
border-radius: 5px;
border-radius: 10px;
box-shadow: 0 0 21px rgba(63, 91, 60, 0.29);
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 {
padding: 0.25rem 0.75rem;
margin-right: 0.3rem;
border-radius: 3px;
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: 4px;
padding: 0.62rem;
border-radius: 7px;
}
}


.infobox__image {
.infobox__image {
padding: 1.25rem 0.85rem;
padding: 1.18rem 0.82rem;
}
border-radius: 8px;
 
.infobox__image::after {
right: 0.8rem;
left: 0.8rem;
}
}


.infobox__image img {
.infobox__image img {
max-height: 195px;
max-height: 200px;
}
}


.infobox__details {
.infobox__details {
width: calc(100% - 1.6rem);
margin-top: 0.62rem;
margin-right: 0.8rem;
border-spacing: 0 0.32rem;
margin-left: 0.8rem;
}
}


.infobox__details th {
.infobox__details th {
width: 34%;
width: 35%;
padding-right: 0.6rem;
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::after {
.infobox__image {
right: 0.65rem;
padding: 1rem 0.7rem;
left: 0.65rem;
}
}


.infobox__image img {
.infobox__image img {
max-height: 180px;
max-height: 185px;
}
}


.infobox__details {
.infobox__details th,
width: calc(100% - 1.3rem);
.infobox__details td {
margin-right: 0.65rem;
padding-top: 0.38rem;
margin-left: 0.65rem;
padding-bottom: 0.38rem;
}
}


.infobox__details th {
.infobox__details th {
width: 36%;
width: 37%;
padding-right: 0.5rem;
padding-right: 0.42rem;
font-size: 0.8rem;
padding-left: 0.42rem;
font-size: 0.79rem;
}
}


.infobox__details td {
.infobox__details td {
font-size: 0.86rem;
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: #597255;
border-color: #43503f;
background: #2e382d;
background: #31382f;
color: #e3ebe1;
color: #e5eae2;
box-shadow: 0 0 26px rgba(0, 0, 0, 0.46);
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: #526f4f;
border-color: #394735;
color: #f4faf2;
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: #293229;
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: #293229;
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: #536250;
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 11px 9px rgba(0, 0, 0, 0.34));
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: #aebbaa;
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: #e3eae1;
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: #a0c49b;
color: #a8c4a1;
}
}


html.skin-theme-clientpref-night .infobox a:hover {
html.skin-theme-clientpref-night .infobox a:hover {
color: #c0dbbc;
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: #597255;
border-color: #43503f;
background: #2e382d;
background: #31382f;
color: #e3ebe1;
color: #e5eae2;
box-shadow: 0 0 26px rgba(0, 0, 0, 0.46);
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: #526f4f;
border-color: #394735;
color: #f4faf2;
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: #293229;
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: #293229;
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: #536250;
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 11px 9px rgba(0, 0, 0, 0.34));
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: #aebbaa;
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: #e3eae1;
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: #a0c49b;
color: #a8c4a1;
}
}


html.skin-theme-clientpref-os .infobox a:hover {
html.skin-theme-clientpref-os .infobox a:hover {
color: #c0dbbc;
color: #c9ddc4;
}
}
}
}