틀:정보상자/styles.css: 두 판 사이의 차이
식물 vs 좀비 위키
편집 요약 없음 태그: 모바일 편집 모바일 웹 편집 |
편집 요약 없음 태그: 되돌려진 기여 모바일 편집 모바일 웹 편집 |
||
| 7번째 줄: | 7번째 줄: | ||
margin: 0 0 1.25rem 1.25rem; | margin: 0 0 1.25rem 1.25rem; | ||
padding: 0.78rem; | padding: 0.78rem; | ||
border: | border: 3px solid #7f5f49; | ||
border-radius: | border-radius: 10px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: # | background: #d2c0aa; | ||
color: # | color: #47372d; | ||
font-family: | font-family: | ||
"SB Aggro L", | "SB Aggro L", | ||
| 24번째 줄: | 24번째 줄: | ||
font-weight: 300; | font-weight: 300; | ||
line-height: 1.55; | line-height: 1.55; | ||
box-shadow: 0 | box-shadow: 0 10px 24px rgba(76, 56, 42, 0.16); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
/* 이름칸은 기존 스타일 유지 */ | |||
.infobox__title, | .infobox__title, | ||
.infobox__panel { | .infobox__panel { | ||
| 95번째 줄: | 80번째 줄: | ||
} | } | ||
/* 아래부터 새 디자인 */ | |||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0. | margin-top: 0.72rem; | ||
padding: 0 | padding: 0; | ||
border: | border: 0; | ||
border-radius: | border-radius: 0; | ||
background: transparent; | |||
background: | overflow: visible; | ||
overflow: | |||
} | } | ||
| 127번째 줄: | 96번째 줄: | ||
} | } | ||
/* 이미지칸 */ | |||
.infobox__image { | .infobox__image { | ||
position: relative; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 100%; | width: 100%; | ||
min-height: | min-height: 330px; | ||
padding: 1rem; | |||
margin: 0 0 1rem; | |||
border: | border: 0; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | background: transparent; | ||
overflow: visible; | |||
} | |||
.infobox__image::before { | |||
position: absolute; | |||
inset: 0; | |||
border: 2px solid #934f2c; | |||
background: | |||
url("/wiki/Special:Redirect/file/Template%20Bg.png") center center / cover no-repeat, | |||
#efdfbf; | |||
clip-path: polygon( | |||
0 0, | |||
100% 1.2%, | |||
99% 37%, | |||
100% 37.8%, | |||
100% 58%, | |||
97.9% 60.5%, | |||
100% 100%, | |||
61.5% 100%, | |||
58% 95.6%, | |||
54% 100%, | |||
1.5% 100%, | |||
1% 14%, | |||
0 13.2%, | |||
0 9%, | |||
3.2% 6.2%, | |||
0 3.8% | |||
); | |||
border-radius: 2px; | |||
content: ""; | |||
} | } | ||
.infobox__image::after { | .infobox__image::after { | ||
position: absolute; | position: absolute; | ||
inset: 2.35rem 2.35rem 2.45rem; | |||
background: rgba(243, 226, 194, 0.96); | |||
border-radius: 2px; | |||
border-radius: | |||
content: ""; | content: ""; | ||
} | } | ||
| 163번째 줄: | 158번째 줄: | ||
display: block; | display: block; | ||
width: auto; | width: auto; | ||
max-width: 100%; | max-width: calc(100% - 3.6rem); | ||
height: auto; | height: auto; | ||
max-height: | max-height: 230px; | ||
margin: 0 auto; | margin: 0 auto; | ||
object-fit: contain; | object-fit: contain; | ||
filter: drop-shadow(0 8px 18px rgba(84, 55, 37, 0.2)); | |||
} | } | ||
/* 정보칸 */ | |||
.infobox__details { | .infobox__details { | ||
width: 100%; | width: 100%; | ||
margin: 0. | margin: 0; | ||
border: | padding: 0.45rem 0.55rem; | ||
border: 2px solid #d3c2ab; | |||
border-radius: 6px; | |||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0 | border-spacing: 0; | ||
table-layout: fixed; | table-layout: fixed; | ||
background: | background: #f4eee4; | ||
box-sizing: border-box; | |||
font-family: | font-family: | ||
"SB Aggro L", | "SB Aggro L", | ||
| 187번째 줄: | 187번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
} | } | ||
| 196번째 줄: | 192번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
min-width: 0; | min-width: 0; | ||
padding-top: 0. | padding-top: 0.72rem; | ||
padding-bottom: 0. | padding-bottom: 0.72rem; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
vertical-align: | vertical-align: top; | ||
line-height: 1. | line-height: 1.46; | ||
border: 0; | |||
background: transparent; | |||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 34%; | ||
padding-right: 0. | padding-right: 0.95rem; | ||
padding-left: 0. | padding-left: 0.75rem; | ||
color: #3e3128; | |||
color: # | |||
font-family: | font-family: | ||
"SB Aggro M", | "SB Aggro M", | ||
| 221번째 줄: | 215번째 줄: | ||
"Noto Sans KR", | "Noto Sans KR", | ||
sans-serif; | sans-serif; | ||
font-size: 0. | font-size: 0.85rem; | ||
font-weight: 500; | font-weight: 500; | ||
text-align: left; | text-align: left; | ||
| 228번째 줄: | 222번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 66%; | ||
padding-right: 0. | padding-right: 0.72rem; | ||
padding-left: 0. | padding-left: 0.25rem; | ||
color: #7f5a3e; | |||
color: # | |||
font-family: | font-family: | ||
"SB Aggro L", | "SB Aggro L", | ||
| 250번째 줄: | 240번째 줄: | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: break-word; | word-break: break-word; | ||
} | |||
.infobox__details tr:first-child th, | |||
.infobox__details tr:first-child td { | |||
padding-top: 0.58rem; | |||
} | |||
.infobox__details tr:last-child th, | |||
.infobox__details tr:last-child td { | |||
padding-bottom: 0.58rem; | |||
} | } | ||
| 287번째 줄: | 287번째 줄: | ||
.infobox a:focus { | .infobox a:focus { | ||
outline: 2px solid #a87959; | outline: 2px solid #a87959; | ||
outline-offset: 1px; | |||
} | } | ||
| 297번째 줄: | 298번째 줄: | ||
margin: 0 0 1.1rem; | margin: 0 0 1.1rem; | ||
padding: 0.68rem; | padding: 0.68rem; | ||
border-radius: | border-width: 3px; | ||
border-radius: 9px; | |||
font-size: 1rem; | font-size: 1rem; | ||
line-height: 1.55; | line-height: 1.55; | ||
box-shadow: 0 | box-shadow: 0 8px 18px rgba(76, 56, 42, 0.14); | ||
} | } | ||
.infobox__title { | .infobox__title { | ||
padding: 0.62rem 2.3rem 0.58rem; | padding: 0.62rem 2.3rem 0.58rem; | ||
clip-path: polygon( | clip-path: polygon( | ||
| 323번째 줄: | 320번째 줄: | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0. | margin-top: 0.66rem; | ||
} | } | ||
.infobox__image { | .infobox__image { | ||
min-height: | min-height: 300px; | ||
padding: 0.92rem; | |||
margin-bottom: 0.92rem; | |||
} | |||
.infobox__image::after { | |||
inset: 2.1rem 2.1rem 2.2rem; | |||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: | max-width: calc(100% - 3.1rem); | ||
max-height: 215px; | |||
} | } | ||
.infobox__details { | .infobox__details { | ||
padding: 0.38rem 0.46rem; | |||
} | } | ||
.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.44; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: | width: 32%; | ||
padding-right: 0. | padding-right: 0.82rem; | ||
padding-left: 0. | padding-left: 0.66rem; | ||
font-size: 0.98rem; | font-size: 0.98rem; | ||
} | } | ||
.infobox__details td { | .infobox__details td { | ||
width: | width: 68%; | ||
padding-right: 0. | padding-right: 0.62rem; | ||
padding-left: 0. | padding-left: 0.18rem; | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
| 374번째 줄: | 367번째 줄: | ||
.infobox { | .infobox { | ||
padding: 0.56rem; | padding: 0.56rem; | ||
border-radius: | border-radius: 8px; | ||
} | } | ||
.infobox__title { | .infobox__title { | ||
padding: 0.58rem 1.9rem 0.54rem; | padding: 0.58rem 1.9rem 0.54rem; | ||
clip-path: polygon( | clip-path: polygon( | ||
| 393번째 줄: | 385번째 줄: | ||
.infobox__panel { | .infobox__panel { | ||
margin-top: 0.58rem; | |||
} | } | ||
.infobox__image { | .infobox__image { | ||
min-height: | min-height: 258px; | ||
padding: 0.78rem; | |||
margin-bottom: 0.82rem; | |||
} | |||
.infobox__image::after { | |||
inset: 1.78rem 1.78rem 1.9rem; | |||
} | } | ||
.infobox__image img { | .infobox__image img { | ||
max-height: | max-width: calc(100% - 2.6rem); | ||
max-height: 188px; | |||
} | } | ||
.infobox__details { | .infobox__details { | ||
padding: 0.28rem 0.34rem; | |||
border-radius: 5px; | |||
border- | |||
} | } | ||
.infobox__details th, | .infobox__details th, | ||
.infobox__details td { | .infobox__details td { | ||
padding-top: 0. | padding-top: 0.58rem; | ||
padding-bottom: 0. | padding-bottom: 0.58rem; | ||
line-height: 1. | line-height: 1.42; | ||
} | } | ||
.infobox__details th { | .infobox__details th { | ||
width: 34%; | width: 34%; | ||
padding-right: 0. | padding-right: 0.62rem; | ||
padding-left: 0. | padding-left: 0.5rem; | ||
font-size: 0.92rem; | font-size: 0.92rem; | ||
} | } | ||
| 435번째 줄: | 424번째 줄: | ||
.infobox__details td { | .infobox__details td { | ||
width: 66%; | width: 66%; | ||
padding-right: 0. | padding-right: 0.46rem; | ||
padding-left: 0. | padding-left: 0.12rem; | ||
font-size: 0.96rem; | font-size: 0.96rem; | ||
} | } | ||
| 448번째 줄: | 436번째 줄: | ||
color: #eee4d9; | color: #eee4d9; | ||
box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3); | box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3); | ||
} | } | ||
| 459번째 줄: | 443번째 줄: | ||
} | } | ||
html.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .infobox__image::before { | ||
border-color: # | border-color: #8c5c3d; | ||
background: # | background: | ||
url("/wiki/Special:Redirect/file/Template%20Bg.png") center center / cover no-repeat, | |||
#58473a; | |||
} | } | ||
html.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .infobox__image::after { | ||
background: rgba(80, 62, 47, 0.94); | |||
} | } | ||
html.skin-theme-clientpref-night . | html.skin-theme-clientpref-night .infobox__details { | ||
border-color: # | border-color: #69513f; | ||
background: # | background: #302720; | ||
} | } | ||
html.skin-theme-clientpref-night .infobox__details th { | html.skin-theme-clientpref-night .infobox__details th { | ||
color: #f0e5d9; | color: #f0e5d9; | ||
} | } | ||
html.skin-theme-clientpref-night .infobox__details td { | html.skin-theme-clientpref-night .infobox__details td { | ||
color: #d9b48f; | |||
} | } | ||
| 508번째 줄: | 486번째 줄: | ||
color: #eee4d9; | color: #eee4d9; | ||
box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3); | box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3); | ||
} | } | ||
| 519번째 줄: | 493번째 줄: | ||
} | } | ||
html.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .infobox__image::before { | ||
border-color: # | border-color: #8c5c3d; | ||
background: # | background: | ||
url("/wiki/Special:Redirect/file/Template%20Bg.png") center center / cover no-repeat, | |||
#58473a; | |||
} | } | ||
html.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .infobox__image::after { | ||
background: rgba(80, 62, 47, 0.94); | |||
} | } | ||
html.skin-theme-clientpref-os . | html.skin-theme-clientpref-os .infobox__details { | ||
border-color: # | border-color: #69513f; | ||
background: # | background: #302720; | ||
} | } | ||
html.skin-theme-clientpref-os .infobox__details th { | html.skin-theme-clientpref-os .infobox__details th { | ||
color: #f0e5d9; | color: #f0e5d9; | ||
} | } | ||
html.skin-theme-clientpref-os .infobox__details td { | html.skin-theme-clientpref-os .infobox__details td { | ||
color: #d9b48f; | |||
} | } | ||
