틀:메시지/styles.css: 두 판 사이의 차이

식물 vs 좀비 위키
imported>Ljyee
편집 요약 없음
imported>Ljyee
편집 요약 없음
 
(같은 사용자의 중간 판 28개는 보이지 않습니다)
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: minmax(190px, 34%) minmax(0, 1fr);
   grid-template-columns: 150px minmax(0, 1fr);


   width: min(94%, 980px);
   width: 90%;
   min-height: 210px;
   max-width: 720px;
   margin: 30px auto 24px;
   margin: 18px auto;


  filter: drop-shadow(10px 12px 10px rgba(0, 0, 0, 0.23));
   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;
  display: flex;
  align-items: center;
  justify-content: center;
   min-width: 0;
   min-width: 0;
  min-height: 210px;
   padding: 14px 12px 14px 48px;
   padding: 22px 24px 22px 64px;


   background: var(--message-color);
   background: transparent;
  overflow: visible;
}


  clip-path:
.pvz-message-tag::before {
    polygon(
  content: "";
      23% 0,
  position: absolute;
      100% 0,
  z-index: 0;
      100% 100%,
  inset: 0;
      23% 100%,
      0 50%
    );


   box-sizing: border-box;
   background: var(--message-color);
   overflow: hidden;
  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: 11.5%;
   left: 13%;
   top: 50%;
   top: 50%;


   width: 30px;
   width: 20px;
   height: 30px;
   height: 20px;


   background: #fff;
  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);
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.12);
}
}
/* 메시지 태그 구멍 끝 */


/* 메시지 이미지 시작 */
.pvz-message-image {
.pvz-message-image {
   position: relative;
   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;


  width: 100%;
   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: grid;
   display: inline-block;
  place-items: center;
   max-width: 100%;
   max-width: 100%;
  pointer-events: auto;
}
}


.pvz-message-image img {
.pvz-message-image img {
   display: block;
   display: block;
   max-width: 100% !important;
   width: auto !important;
   height: auto !important;
   height: auto !important;
  margin: 0 auto;


   filter:
  object-fit: contain;
    drop-shadow(2px 4px 2px rgba(0, 0, 0, 0.28));
   filter: drop-shadow(2px 4px 2px rgba(0, 0, 0, 0.28));
}
}
/* 메시지 이미지 끝 */


/* 메시지 본문 카드 시작 */
.pvz-message-card {
.pvz-message-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
   min-width: 0;
   min-width: 0;
  min-height: 210px;
   margin-left: -1px;
   margin-left: -1px;
   padding: 26px 30px 28px 34px;
   padding: 12px;


   background: #fff0da;
   background: var(--message-card-bg);
   border: 3px solid var(--message-color);
   border: 3px solid var(--message-color);
}


   box-sizing: border-box;
.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 8px;
   margin: 0 0 2px;
  padding: 0;


   color: #000;
   color: var(--message-text);
   font-size: 28px;
   font-size: inherit;
   line-height: 1.18;
   line-height: 1.55;
   text-align: left;
   text-align: left;
}


   box-sizing: border-box;
.pvz-message-heading p {
   display: inline;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}
}
/* 메시지 제목 끝 */


/* 메시지 본문 시작 */
.pvz-message-text {
.pvz-message-content {
   min-width: 0;
   min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
}


  color: #111;
.pvz-message-text p:first-child {
   font-size: 20px;
   margin-top: 0 !important;
   line-height: 1.58;
   padding-top: 0 !important;
  text-align: left;
}


   box-sizing: border-box;
.pvz-message-text p:last-child {
   margin-bottom: 0;
}
}


.pvz-message-content p:first-child {
/* 다크모드 대응 시작 */
  margin-top: 0;
@media (prefers-color-scheme: dark) {
  .pvz-message {
    --message-hole-bg: #352d23;
    --message-card-bg: #211e1a;
    --message-text: #f5efe6;
  }
}
}


.pvz-message-content p:last-child {
html.skin-theme-clientpref-night .pvz-message,
   margin-bottom: 0;
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 (max-width: 760px) {
@media (min-width: 750px) and (max-width: 900px) {
   .pvz-message {
   .pvz-message {
     grid-template-columns: minmax(150px, 36%) minmax(0, 1fr);
     grid-template-columns: 165px minmax(0, 1fr);
    min-height: 180px;
   }
   }


   .pvz-message-tag {
   .pvz-message-tag {
    min-height: 180px;
     padding: 12px 8px 12px 30px;
     padding: 18px 16px 18px 50px;
   }
   }


   .pvz-message-hole {
   .pvz-message-hole {
     width: 24px;
     width: 20px;
     height: 24px;
     height: 20px;
   }
   }
}
/* 아이폰 가로 화면 부근 대응 끝 */


   .pvz-message-card {
/* 반응형 대응 시작 */
     min-height: 180px;
@media (max-width: 749px) {
     padding: 22px 22px 24px 26px;
   .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-heading {
   .pvz-message-card {
     font-size: 23px;
     padding: 10px;
   }
   }


   .pvz-message-content {
   .pvz-message-content {
     font-size: 17px;
    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: calc(100% - 12px);
     width: 100%;
     min-height: 150px;
     max-width: none;
     margin: 22px auto 18px;
     margin: 18px 0;


     filter: drop-shadow(5px 7px 6px rgba(0, 0, 0, 0.2));
     filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.17));
   }
   }


   .pvz-message-tag {
   .pvz-message-tag {
    min-height: 150px;
     padding: 14px 8px 14px 34px;
     padding: 14px 8px 14px 34px;
  }


     clip-path:
  .pvz-message-tag::before {
      polygon(
     clip-path: polygon(25% 0, 100% 0, 100% 100%, 25% 100%, 0 50%);
        25% 0,
  }
        100% 0,
 
        100% 100%,
  .pvz-message-image {
        25% 100%,
    left: 25%;
        0 50%
      );
   }
   }


   .pvz-message-hole {
   .pvz-message-hole {
     left: 12.5%;
     left: 14%;
     width: 18px;
     width: 16px;
     height: 18px;
     height: 16px;
   }
   }


   .pvz-message-card {
   .pvz-message-card {
    min-height: 150px;
     padding: 8px;
     padding: 16px 14px 18px 16px;
     border-width: 2px;
     border-width: 2px;
  }
  .pvz-message-content {
    padding: 0;
    font-size: 1em;
    line-height: 1.55;
   }
   }


   .pvz-message-heading {
   .pvz-message-heading {
     margin-bottom: 5px;
    width: 100%;
     font-size: 18px;
     margin-bottom: 1px;
    line-height: 1.22;
     font-size: inherit;
   }
   }


   .pvz-message-content {
   .pvz-message-text {
     font-size: 14px;
     width: 100%;
    line-height: 1.55;
   }
   }
}
}
/* 모바일 대응 끝 */
/* 반응형 대응 끝 */