미디어위키:Mobile.css

    CABAL WIKI
    Wikiadmin (토론 | 기여)님의 2025년 7월 25일 (금) 15:31 판

    참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.

    • 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
    • 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
    • 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
    • 오페라: Ctrl-F5를 입력.
    @media screen and (max-width: 768px) {
    
      /* 모바일 목차 스타일 */
      #toc, .toc {
        float: none !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #f9f9f9 !important;
        padding: 10px !important;
        font-size: 14px !important;
        border: 1px solid #ccc !important;
        margin: 1em auto !important;
      }
    
      /* 목차 내 리스트 */
      #toc li, .toc li {
        line-height: 1.6em;
        word-break: break-word;
      }
    
      /* 전체 폰트 크기 축소 */
      body {
        font-size: 14px !important;
      }
    }
    
    @media screen and (max-width: 768px) {
      /* 목차가 겹치지 않도록 block 처리 및 줄바꿈 */
      #toc, .toc {
        float: none !important;
        position: static !important;
        display: block !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #f9f9f9 !important;
        padding: 10px !important;
        border: 1px solid #ccc !important;
        margin: 1em 0 !important;
        z-index: 1 !important;
        box-sizing: border-box;
      }
    
      /* 목차 안 항목도 줄바꿈 및 가독성 확보 */
      #toc li, .toc li {
        line-height: 1.6em;
        word-break: break-word;
      }
    
      /* 인포박스도 100% 폭으로 */
      .infobox, table.infobox {
        width: 100% !important;
        float: none !important;
        margin: 1em 0 !important;
        display: block !important;
        clear: both !important;
        box-sizing: border-box;
      }
    
      /* 목차 뒤 요소가 겹치지 않도록 */
      .mw-parser-output > :not(#toc):not(.toc):first-child {
        clear: both !important;
      }
    }