틀:메시지/styles.css: 두 판 사이의 차이
< 틀:메시지
imported>Ljyee 편집 요약 없음 |
imported>Ljyee 편집 요약 없음 |
||
| (같은 사용자의 중간 판 23개는 보이지 않습니다) | |||
| 6번째 줄: | 6번째 줄: | ||
.pvz-message { | .pvz-message { | ||
--message-color: #479745; | --message-color: #479745; | ||
--message-hole-bg: #fff2dc; | |||
--message-card-bg: #fffaf3; | |||
--message-text: #111; | |||
position: relative; | position: relative; | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 150px minmax(0, 1fr); | ||
width: | width: 90%; | ||
margin: | max-width: 720px; | ||
margin: 18px auto; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
filter: drop-shadow(4px 4px 2.5px rgba(0, 0, 0, 0.2)); | |||
} | } | ||
/* 메시지 전체 끝 */ | /* 메시지 전체 끝 */ | ||
.pvz-message-tag { | .pvz-message-tag { | ||
position: relative; | position: relative; | ||
min-width: 0; | min-width: 0; | ||
padding: | padding: 14px 12px 14px 48px; | ||
background: | background: transparent; | ||
overflow: visible; | |||
} | |||
.pvz-message-tag::before { | |||
content: ""; | |||
position: absolute; | |||
z-index: 0; | |||
inset: 0; | |||
background: var(--message-color); | |||
clip-path: polygon(23% 0, 100% 0, 100% 100%, 23% 100%, 0 50%); | |||
pointer-events: none; | |||
} | } | ||
.pvz-message-hole { | .pvz-message-hole { | ||
position: absolute; | position: absolute; | ||
left: | left: 13%; | ||
top: 50%; | top: 50%; | ||
width: | width: 20px; | ||
height: | height: 20px; | ||
background: | z-index: 0; | ||
background: var(--message-hole-bg); | |||
border-radius: 50%; | border-radius: 50%; | ||
transform: translate(-50%, -50%); | transform: translate(-50%, -50%); | ||
box-shadow: | box-shadow: inset 0 4px 5px -4px rgba(0, 0, 0, 0.38); | ||
} | } | ||
.pvz-message-image { | .pvz-message-image { | ||
position: | position: absolute; | ||
z-index: 1; | z-index: 1; | ||
top: 0; | |||
right: 0; | |||
bottom: 0; | |||
left: 23%; | |||
display: grid; | display: grid; | ||
place-items: center; | place-items: center; | ||
min-width: 0; | min-width: 0; | ||
text-align: center; | |||
pointer-events: none; | |||
} | } | ||
.pvz-message-image a, | .pvz-message-image a, | ||
.pvz-message-image .mw-file-description { | .pvz-message-image .mw-file-description { | ||
display: | display: inline-block; | ||
max-width: 100%; | max-width: 100%; | ||
pointer-events: auto; | |||
} | } | ||
.pvz-message-image img { | .pvz-message-image img { | ||
display: block; | display: block; | ||
width: auto !important; | |||
height: auto !important; | height: auto !important; | ||
margin: 0 auto; | |||
filter: | object-fit: contain; | ||
filter: drop-shadow(2px 4px 2px rgba(0, 0, 0, 0.28)); | |||
} | } | ||
.pvz-message-card { | .pvz-message-card { | ||
min-width: 0; | min-width: 0; | ||
margin-left: -1px; | margin-left: -1px; | ||
padding: | padding: 12px; | ||
background: | background: var(--message-card-bg); | ||
border: 3px solid var(--message-color); | border: 3px solid var(--message-color); | ||
} | |||
.pvz-message-content { | |||
min-width: 0; | |||
padding: 0; | |||
color: var(--message-text); | |||
font-size: 1em; | |||
line-height: 1.58; | |||
text-align: left; | |||
} | } | ||
.pvz-message-heading { | .pvz-message-heading { | ||
margin: 0 0 2px; | |||
margin: 0 0 | padding: 0; | ||
padding: | |||
color: | color: var(--message-text); | ||
font-size: | font-size: inherit; | ||
line-height: 1 | line-height: 1.55; | ||
text-align: left; | text-align: left; | ||
} | |||
.pvz-message-heading p { | |||
display: inline; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
line-height: inherit !important; | |||
} | } | ||
.pvz-message-text { | |||
.pvz-message- | |||
min-width: 0; | min-width: 0; | ||
margin | margin: 0; | ||
padding: 0; | |||
color: | color: inherit; | ||
font-size: | font-size: inherit; | ||
line-height: | line-height: inherit; | ||
text-align: | text-align: inherit; | ||
} | } | ||
.pvz-message- | .pvz-message-text p:first-child { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
padding-top: 0 !important; | padding-top: 0 !important; | ||
} | } | ||
.pvz-message- | .pvz-message-text p:last-child { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
/* | /* 다크모드 대응 시작 */ | ||
@media (max-width: | @media (prefers-color-scheme: dark) { | ||
.pvz-message { | |||
--message-hole-bg: #352d23; | |||
--message-card-bg: #211e1a; | |||
--message-text: #f5efe6; | |||
} | |||
} | |||
html.skin-theme-clientpref-night .pvz-message, | |||
html.client-dark-mode .pvz-message, | |||
html.mw-theme-night .pvz-message, | |||
html.theme-dark .pvz-message, | |||
html.dark .pvz-message, | |||
body.skin-theme-clientpref-night .pvz-message, | |||
body.client-dark-mode .pvz-message, | |||
body.mw-theme-night .pvz-message, | |||
body.theme-dark .pvz-message, | |||
body.dark .pvz-message { | |||
--message-hole-bg: #352d23; | |||
--message-card-bg: #211e1a; | |||
--message-text: #f5efe6; | |||
} | |||
/* 다크모드 대응 끝 */ | |||
/* 아이폰 가로 화면 부근 대응 시작 */ | |||
@media (min-width: 750px) and (max-width: 900px) { | |||
.pvz-message { | .pvz-message { | ||
grid-template-columns: | grid-template-columns: 165px minmax(0, 1fr); | ||
} | } | ||
.pvz-message-tag { | .pvz-message-tag { | ||
padding: | padding: 12px 8px 12px 30px; | ||
} | } | ||
.pvz-message-hole { | .pvz-message-hole { | ||
width: | width: 20px; | ||
height: | height: 20px; | ||
} | } | ||
} | |||
/* 아이폰 가로 화면 부근 대응 끝 */ | |||
.pvz-message- | /* 반응형 대응 시작 */ | ||
padding: | @media (max-width: 749px) { | ||
.pvz-message { | |||
grid-template-columns: 112px minmax(0, 1fr); | |||
width: 100%; | |||
max-width: none; | |||
margin-left: 0; | |||
margin-right: 0; | |||
} | |||
.pvz-message-tag { | |||
padding: 16px 10px 16px 38px; | |||
} | } | ||
.pvz-message- | .pvz-message-card { | ||
padding | padding: 10px; | ||
} | } | ||
.pvz-message-content { | .pvz-message-content { | ||
font-size: | padding: 0; | ||
font-size: 1em; | |||
line-height: 1.55; | line-height: 1.55; | ||
} | } | ||
} | } | ||
@media (max-width: 520px) { | @media (max-width: 520px) { | ||
.pvz-message { | .pvz-message { | ||
grid-template-columns: 112px minmax(0, 1fr); | grid-template-columns: 112px minmax(0, 1fr); | ||
width: | width: 100%; | ||
margin: | max-width: none; | ||
margin: 18px 0; | |||
filter: drop-shadow( | filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.17)); | ||
} | } | ||
.pvz-message-tag { | .pvz-message-tag { | ||
padding: 14px 8px 14px 34px; | padding: 14px 8px 14px 34px; | ||
} | |||
clip-path: | .pvz-message-tag::before { | ||
clip-path: polygon(25% 0, 100% 0, 100% 100%, 25% 100%, 0 50%); | |||
} | |||
.pvz-message-image { | |||
left: 25%; | |||
} | } | ||
.pvz-message-hole { | .pvz-message-hole { | ||
left: | left: 14%; | ||
width: | width: 16px; | ||
height: | height: 16px; | ||
} | } | ||
.pvz-message-card { | .pvz-message-card { | ||
padding: | padding: 8px; | ||
border-width: 2px; | border-width: 2px; | ||
} | |||
.pvz-message-content { | |||
padding: 0; | |||
font-size: 1em; | |||
line-height: 1.55; | |||
} | } | ||
.pvz-message-heading { | .pvz-message-heading { | ||
width: 100%; | |||
margin-bottom: 1px; | |||
font-size: | font-size: inherit; | ||
} | } | ||
.pvz-message- | .pvz-message-text { | ||
width: 100%; | |||
} | } | ||
} | } | ||
/* | /* 반응형 대응 끝 */ | ||
2026년 7월 12일 (일) 11:59 기준 최신판
/* =========================
Template:메시지/styles.css
========================= */
/* 메시지 전체 시작 */
.pvz-message {
--message-color: #479745;
--message-hole-bg: #fff2dc;
--message-card-bg: #fffaf3;
--message-text: #111;
position: relative;
display: grid;
grid-template-columns: 150px minmax(0, 1fr);
width: 90%;
max-width: 720px;
margin: 18px auto;
box-sizing: border-box;
filter: drop-shadow(4px 4px 2.5px rgba(0, 0, 0, 0.2));
}
/* 메시지 전체 끝 */
.pvz-message-tag {
position: relative;
min-width: 0;
padding: 14px 12px 14px 48px;
background: transparent;
overflow: visible;
}
.pvz-message-tag::before {
content: "";
position: absolute;
z-index: 0;
inset: 0;
background: var(--message-color);
clip-path: polygon(23% 0, 100% 0, 100% 100%, 23% 100%, 0 50%);
pointer-events: none;
}
.pvz-message-hole {
position: absolute;
left: 13%;
top: 50%;
width: 20px;
height: 20px;
z-index: 0;
background: var(--message-hole-bg);
border-radius: 50%;
transform: translate(-50%, -50%);
box-shadow: inset 0 4px 5px -4px rgba(0, 0, 0, 0.38);
}
.pvz-message-image {
position: absolute;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
left: 23%;
display: grid;
place-items: center;
min-width: 0;
text-align: center;
pointer-events: none;
}
.pvz-message-image a,
.pvz-message-image .mw-file-description {
display: inline-block;
max-width: 100%;
pointer-events: auto;
}
.pvz-message-image img {
display: block;
width: auto !important;
height: auto !important;
margin: 0 auto;
object-fit: contain;
filter: drop-shadow(2px 4px 2px rgba(0, 0, 0, 0.28));
}
.pvz-message-card {
min-width: 0;
margin-left: -1px;
padding: 12px;
background: var(--message-card-bg);
border: 3px solid var(--message-color);
}
.pvz-message-content {
min-width: 0;
padding: 0;
color: var(--message-text);
font-size: 1em;
line-height: 1.58;
text-align: left;
}
.pvz-message-heading {
margin: 0 0 2px;
padding: 0;
color: var(--message-text);
font-size: inherit;
line-height: 1.55;
text-align: left;
}
.pvz-message-heading p {
display: inline;
margin: 0 !important;
padding: 0 !important;
line-height: inherit !important;
}
.pvz-message-text {
min-width: 0;
margin: 0;
padding: 0;
color: inherit;
font-size: inherit;
line-height: inherit;
text-align: inherit;
}
.pvz-message-text p:first-child {
margin-top: 0 !important;
padding-top: 0 !important;
}
.pvz-message-text p:last-child {
margin-bottom: 0;
}
/* 다크모드 대응 시작 */
@media (prefers-color-scheme: dark) {
.pvz-message {
--message-hole-bg: #352d23;
--message-card-bg: #211e1a;
--message-text: #f5efe6;
}
}
html.skin-theme-clientpref-night .pvz-message,
html.client-dark-mode .pvz-message,
html.mw-theme-night .pvz-message,
html.theme-dark .pvz-message,
html.dark .pvz-message,
body.skin-theme-clientpref-night .pvz-message,
body.client-dark-mode .pvz-message,
body.mw-theme-night .pvz-message,
body.theme-dark .pvz-message,
body.dark .pvz-message {
--message-hole-bg: #352d23;
--message-card-bg: #211e1a;
--message-text: #f5efe6;
}
/* 다크모드 대응 끝 */
/* 아이폰 가로 화면 부근 대응 시작 */
@media (min-width: 750px) and (max-width: 900px) {
.pvz-message {
grid-template-columns: 165px minmax(0, 1fr);
}
.pvz-message-tag {
padding: 12px 8px 12px 30px;
}
.pvz-message-hole {
width: 20px;
height: 20px;
}
}
/* 아이폰 가로 화면 부근 대응 끝 */
/* 반응형 대응 시작 */
@media (max-width: 749px) {
.pvz-message {
grid-template-columns: 112px minmax(0, 1fr);
width: 100%;
max-width: none;
margin-left: 0;
margin-right: 0;
}
.pvz-message-tag {
padding: 16px 10px 16px 38px;
}
.pvz-message-card {
padding: 10px;
}
.pvz-message-content {
padding: 0;
font-size: 1em;
line-height: 1.55;
}
}
@media (max-width: 520px) {
.pvz-message {
grid-template-columns: 112px minmax(0, 1fr);
width: 100%;
max-width: none;
margin: 18px 0;
filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.17));
}
.pvz-message-tag {
padding: 14px 8px 14px 34px;
}
.pvz-message-tag::before {
clip-path: polygon(25% 0, 100% 0, 100% 100%, 25% 100%, 0 50%);
}
.pvz-message-image {
left: 25%;
}
.pvz-message-hole {
left: 14%;
width: 16px;
height: 16px;
}
.pvz-message-card {
padding: 8px;
border-width: 2px;
}
.pvz-message-content {
padding: 0;
font-size: 1em;
line-height: 1.55;
}
.pvz-message-heading {
width: 100%;
margin-bottom: 1px;
font-size: inherit;
}
.pvz-message-text {
width: 100%;
}
}
/* 반응형 대응 끝 */