행위

미디어위키

Common.css: 두 판 사이의 차이

CABAL WIKI

편집 요약 없음
태그: 되돌려진 기여
편집 요약 없음
태그: 되돌려진 기여
1번째 줄: 1번째 줄:
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
   /* 이 안의 CSS는 '모바일 화면'에서만 적용됨 */
 
   #toc {
  /* === 본문 영역 여백 줄이기 === */
  .mw-body, .mw-body-content, .mw-parser-output {
    padding: 10px !important;
    margin: 0 !important;
  }
 
   /* === 목차(Toc) 겹침 제거 및 줄바꿈 === */
   #toc, .toc {
     float: none !important;
     float: none !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1em 0 !important;
    box-sizing: border-box;
    background: #f9f9f9;
  }
  /* === 이미지 박스/카드/테이블 폭 조정 === */
  .thumb, .navbox, .wikitable, table {
     width: 100% !important;
     width: 100% !important;
     margin: 0 auto;
     overflow-x: auto !important;
    display: block !important;
    box-sizing: border-box;
   }
   }


   .mw-parser-output {
   /* === 리스트 항목 줄바꿈 및 간격 조정 === */
     padding: 10px !important;
  ul, ol {
    padding-left: 1.2em;
  }
  li {
    line-height: 1.6em;
     word-break: break-word;
   }
   }


   .navbox, .wikitable, .thumb {
   /* === 번역 확장 등에서 겹치는 텍스트 박스 강제 정리 === */
  div[style*="position:absolute"], div[style*="left:"], div[style*="top:"] {
    position: static !important;
     width: 100% !important;
     width: 100% !important;
    overflow-x: auto;
    display: block;
   }
   }


   /* 글자 너무 커서 줄이기 */
   /* === 제목 간격, 폰트 크기 조정 === */
  h1, h2, h3, h4, h5 {
    font-size: 1.2em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
  }
 
  /* === 전체 폰트 크기 약간 축소 === */
   body {
   body {
     font-size: 14px !important;
     font-size: 14px !important;
   }
   }


   /* 너무 붙은 제목 여백 늘리기 */
   /* === 사이드 패널 모바일에서 숨기기 (원하면) === */
   h2, h3 {
   #mw-panel, #site-navigation, .sidebar {
    margin-top: 1.5em;
     display: none !important;
     margin-bottom: 0.5em;
   }
   }
}

2025년 7월 25일 (금) 05:08 판

@media screen and (max-width: 768px) {

  /* === 본문 영역 여백 줄이기 === */
  .mw-body, .mw-body-content, .mw-parser-output {
    padding: 10px !important;
    margin: 0 !important;
  }

  /* === 목차(Toc) 겹침 제거 및 줄바꿈 === */
  #toc, .toc {
    float: none !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1em 0 !important;
    box-sizing: border-box;
    background: #f9f9f9;
  }

  /* === 이미지 박스/카드/테이블 폭 조정 === */
  .thumb, .navbox, .wikitable, table {
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    box-sizing: border-box;
  }

  /* === 리스트 항목 줄바꿈 및 간격 조정 === */
  ul, ol {
    padding-left: 1.2em;
  }
  li {
    line-height: 1.6em;
    word-break: break-word;
  }

  /* === 번역 확장 등에서 겹치는 텍스트 박스 강제 정리 === */
  div[style*="position:absolute"], div[style*="left:"], div[style*="top:"] {
    position: static !important;
    width: 100% !important;
  }

  /* === 제목 간격, 폰트 크기 조정 === */
  h1, h2, h3, h4, h5 {
    font-size: 1.2em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
  }

  /* === 전체 폰트 크기 약간 축소 === */
  body {
    font-size: 14px !important;
  }

  /* === 사이드 패널 모바일에서 숨기기 (원하면) === */
  #mw-panel, #site-navigation, .sidebar {
    display: none !important;
  }

}