행위

미디어위키

Mobile.css: 두 판 사이의 차이

CABAL WIKI

편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
/* ===================== */
/* 📱 Timeless 모바일 최적화 패키지 */
/* 위치: MediaWiki:Mobile.css */
/* ===================== */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {


   /* 모바일 목차 스타일 */
   /* 📌 본문 여백 최소화 */
  .mw-body, .mw-body-content, .mw-parser-output {
    padding: 10px !important;
    margin: 0 !important;
  }
 
  /* 📌 목차 상단 고정 해제 + 줄바꿈 */
   #toc, .toc {
   #toc, .toc {
     float: none !important;
     float: none !important;
     position: static !important;
     position: static !important;
    display: block !important;
     width: 100% !important;
     width: 100% !important;
     max-width: 100% !important;
     max-width: 100% !important;
    margin: 1em 0 !important;
    padding: 10px !important;
     background: #f9f9f9 !important;
     background: #f9f9f9 !important;
     padding: 10px !important;
     border: 1px solid #ccc !important;
     font-size: 14px !important;
     font-size: 14px !important;
     border: 1px solid #ccc !important;
     box-sizing: border-box;
     margin: 1em auto !important;
     z-index: 1 !important;
   }
   }


   /* 목차 리스트 */
   /* 📌 목차 리스트 줄바꿈 */
   #toc li, .toc li {
   #toc li, .toc li {
     line-height: 1.6em;
     line-height: 1.6em;
20번째 줄: 34번째 줄:
   }
   }


   /* 전체 폰트 크기 축소 */
   /* 📌 infobox 폭 자동 줄이기 */
   body {
   .infobox, table.infobox {
     font-size: 14px !important;
     width: 100% !important;
  }
}
 
@media screen and (max-width: 768px) {
  /* 목차가 겹치지 않도록 block 처리 및 줄바꿈 */
  #toc, .toc {
     float: none !important;
     float: none !important;
    position: static !important;
     display: block !important;
     display: block !important;
     clear: both !important;
     clear: both !important;
    margin: 1em 0 !important;
    box-sizing: border-box;
  }
  /* 📌 이미지/표 줄바꿈 */
  .thumb, .navbox, .wikitable, table {
     width: 100% !important;
     width: 100% !important;
     max-width: 100% !important;
     display: block !important;
    background: #f9f9f9 !important;
     overflow-x: auto !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    margin: 1em 0 !important;
     z-index: 1 !important;
     box-sizing: border-box;
     box-sizing: border-box;
   }
   }


   /* 목차 안 항목도 줄바꿈 및 가독성 확보 */
   /* 📌 리스트 들여쓰기 */
   #toc li, .toc li {
   ul, ol {
    padding-left: 1.2em;
  }
  li {
     line-height: 1.6em;
     line-height: 1.6em;
     word-break: break-word;
     word-break: break-word;
   }
   }


   /* 인포박스도 100% 폭으로 */
   /* 📌 전체 폰트 크기 축소 */
   .infobox, table.infobox {
   body {
     width: 100% !important;
     font-size: 14px !important;
    float: none !important;
  }
    margin: 1em 0 !important;
 
     display: block !important;
  /* 📌 사이드바 감추기 */
    clear: both !important;
  #mw-panel, #site-navigation, .sidebar {
    box-sizing: border-box;
     display: none !important;
   }
   }


   /* 목차 뒤 요소가 겹치지 않도록 */
   /* 📌 목차 아래 첫 번째 요소 겹침 방지 */
   .mw-parser-output > :not(#toc):not(.toc):first-child {
   .mw-parser-output > :not(#toc):not(.toc):first-child {
     clear: both !important;
     clear: both !important;
   }
   }
}
}

2025년 7월 25일 (금) 06:32 판

/* ===================== */
/* 📱 Timeless 모바일 최적화 패키지 */
/* 위치: MediaWiki:Mobile.css */
/* ===================== */

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

  /* 📌 본문 여백 최소화 */
  .mw-body, .mw-body-content, .mw-parser-output {
    padding: 10px !important;
    margin: 0 !important;
  }

  /* 📌 목차 상단 고정 해제 + 줄바꿈 */
  #toc, .toc {
    float: none !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1em 0 !important;
    padding: 10px !important;
    background: #f9f9f9 !important;
    border: 1px solid #ccc !important;
    font-size: 14px !important;
    box-sizing: border-box;
    z-index: 1 !important;
  }

  /* 📌 목차 리스트 줄바꿈 */
  #toc li, .toc li {
    line-height: 1.6em;
    word-break: break-word;
  }

  /* 📌 infobox 폭 자동 줄이기 */
  .infobox, table.infobox {
    width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    margin: 1em 0 !important;
    box-sizing: border-box;
  }

  /* 📌 이미지/표 줄바꿈 */
  .thumb, .navbox, .wikitable, table {
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    box-sizing: border-box;
  }

  /* 📌 리스트 들여쓰기 */
  ul, ol {
    padding-left: 1.2em;
  }
  li {
    line-height: 1.6em;
    word-break: break-word;
  }

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

  /* 📌 사이드바 감추기 */
  #mw-panel, #site-navigation, .sidebar {
    display: none !important;
  }

  /* 📌 목차 아래 첫 번째 요소 겹침 방지 */
  .mw-parser-output > :not(#toc):not(.toc):first-child {
    clear: both !important;
  }
}