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

    CABAL WIKI
    편집 요약 없음
    태그: 수동 되돌리기 되돌려진 기여
    편집 요약 없음
    태그: 되돌려진 기여
    1번째 줄: 1번째 줄:
    /
     
    html { scroll-behavior: smooth; }
     
    .skin-foreground #toc,
    .skin-foreground .toc {
      float: right !important;
      width: 22% !important;
      max-width: 340px;
      position: sticky;
      top: 84px;                 
      max-height: calc(100vh - 100px);
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      margin: 0 0 0.5em 1.2em !important;
      z-index: 10;
    }
     
    .skin-foreground .mw-parser-output { overflow: visible; }
     
     
    .skin-foreground .mw-parser-output > :not(#toc):not(.toc) {
      width: auto;
      max-width: 100%;
    }
     
     
    .skin-foreground .mw-parser-output .mw-headline {
      scroll-margin-top: 90px;   
    }
     
     
    @media screen and (max-width: 1024px) {
      .skin-foreground #toc,
      .skin-foreground .toc {
        float: none !important;
        position: static;
        width: auto !important;
        max-width: 100%;
        max-height: none;
        overflow: visible;
        margin: 0.5em 0 !important;
      }
    }

    2025년 9월 22일 (월) 10:40 판

    
    html { scroll-behavior: smooth; }
    
    .skin-foreground #toc,
    .skin-foreground .toc {
      float: right !important;
      width: 22% !important;
      max-width: 340px;
      position: sticky;
      top: 84px;                  
      max-height: calc(100vh - 100px);
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      margin: 0 0 0.5em 1.2em !important;
      z-index: 10;
    }
    
    .skin-foreground .mw-parser-output { overflow: visible; }
    
    
    .skin-foreground .mw-parser-output > :not(#toc):not(.toc) {
      width: auto;
      max-width: 100%;
    }
    
    
    .skin-foreground .mw-parser-output .mw-headline {
      scroll-margin-top: 90px;     
    }
    
    
    @media screen and (max-width: 1024px) {
      .skin-foreground #toc,
      .skin-foreground .toc {
        float: none !important;
        position: static;
        width: auto !important;
        max-width: 100%;
        max-height: none;
        overflow: visible;
        margin: 0.5em 0 !important;
      }
    }