미디어위키:Mobile.css: 두 판 사이의 차이

    CABAL WIKI
    편집 요약 없음
    편집 요약 없음
    1번째 줄: 1번째 줄:
    @media screen and (max-width: 768px) {
    @media screen and (max-width: 768px) {


       /* 📌 목차 영역 스타일 */
       /* 📌 목차 스타일 정리 */
       #toc, .toc {
       #toc, .toc {
         float: none !important;
         float: none !important;
         clear: both !important;
         clear: both !important;
        display: block !important;
         position: relative !important;
         position: relative !important;
         width: 100% !important;
         width: 100% !important;
    15번째 줄: 16번째 줄:
       }
       }


       /* 📌 목차 다음 요소 강제 띄우기 */
       /* 📌 목차 다음 요소 강제 clear 처리 */
       .mw-parser-output > #toc + *,
       .mw-parser-output > #toc + *,
       .mw-parser-output > .toc + *,
       .mw-parser-output > .toc + * {
      .mw-parser-output > #toc ~ *,
        margin-top: 1em !important;
      .mw-parser-output > .toc ~ * {
        clear: both !important;
         display: block !important;
         display: block !important;
        clear: both !important;
        margin-top: 1.5em !important;
         position: relative !important;
         position: relative !important;
         z-index: 1 !important;
         z-index: 1 !important;
       }
       }


       /* 📌 콘텐츠 float 요소 초기화 */
       /* 📌 infobox 등 콘텐츠 float 제거 */
       .thumb, .infobox, .navbox, .wikitable, table {
       .infobox, table.infobox,
      .thumb, .navbox, .wikitable, table {
         float: none !important;
         float: none !important;
         clear: both !important;
         clear: both !important;
         display: block !important;
         display: block !important;
         width: 100% !important;
         width: 100% !important;
         margin: 1.2em 0 !important;
         margin: 1.5em 0 !important;
      }
        box-sizing: border-box !important;
     
      /* 📌 사이드바, 패널 등 제거 */
      #mw-panel, #site-navigation, .sidebar {
        display: none !important;
       }
       }


    46번째 줄: 42번째 줄:
       }
       }


      /* 📌 사이드바, 패널 제거 */
      #mw-panel, #site-navigation, .sidebar {
        display: none !important;
      }
      /* 📌 기본 폰트 */
       body {
       body {
         font-size: 14px !important;
         font-size: 14px !important;
    53번째 줄: 55번째 줄:
         padding-left: 1.2em !important;
         padding-left: 1.2em !important;
       }
       }
       li {
       li {
         line-height: 1.6em !important;
         line-height: 1.6em !important;

    2025년 7월 25일 (금) 15:43 판

    @media screen and (max-width: 768px) {
    
      /* 📌 목차 스타일 정리 */
      #toc, .toc {
        float: none !important;
        clear: both !important;
        display: block !important;
        position: relative !important;
        width: 100% !important;
        margin: 1.5em 0 !important;
        padding: 12px !important;
        background: #f9f9f9 !important;
        border: 1px solid #ccc !important;
        box-sizing: border-box !important;
        z-index: 2 !important;
      }
    
      /* 📌 목차 다음 요소 강제 clear 처리 */
      .mw-parser-output > #toc + *,
      .mw-parser-output > .toc + * {
        margin-top: 1em !important;
        clear: both !important;
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
      }
    
      /* 📌 infobox 등 콘텐츠 float 제거 */
      .infobox, table.infobox,
      .thumb, .navbox, .wikitable, table {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        margin: 1.5em 0 !important;
        box-sizing: border-box !important;
      }
    
      /* 📌 전체 본문 padding */
      .mw-parser-output {
        padding: 0 10px !important;
      }
    
      /* 📌 사이드바, 패널 제거 */
      #mw-panel, #site-navigation, .sidebar {
        display: none !important;
      }
    
      /* 📌 기본 폰트 */
      body {
        font-size: 14px !important;
      }
    
      ul, ol {
        padding-left: 1.2em !important;
      }
    
      li {
        line-height: 1.6em !important;
        word-break: break-word;
      }
    }