행위

미디어위키

Foreground.css: 두 판 사이의 차이

CABAL WIKI

편집 요약 없음
태그: 되돌려진 기여
편집 요약 없음
 
(같은 사용자의 중간 판 10개는 보이지 않습니다)
1번째 줄: 1번째 줄:
html { scroll-behavior: smooth; }
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 {
@media (min-width: 1025px) {
  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;
  }
}
html { scroll-behavior: smooth; }
 
@media screen and (min-width: 1025px) {
   .skin-foreground #toc,
   .skin-foreground #toc,
   .skin-foreground .toc {
   .skin-foreground .toc {
     position: fixed !important;
     position: fixed !important;
     top: 84px;               
     top: 84px !important;
    right: max(calc((100vw - 1180px)/2), 16px);
    width: 320px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    z-index: 20;
    float: none !important;
  }
  .skin-foreground .mw-parser-output .mw-headline {
    scroll-margin-top: 90px;
  }
}
 
 
@media screen and (max-width: 1024px) {
  .skin-foreground #toc,
  .skin-foreground .toc {
    position: static !important;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: .5em 0 !important;
  }
}
 
 
.skin-foreground #toc a[href="#"],
.skin-foreground #toc a[href="#top"],
.skin-foreground #toc a[href="#toc"] { pointer-events: none; opacity: .5; }


    left: 16px;     


html { scroll-behavior: smooth; }
    width: 300px !important;
 
     height: calc(100vh - 100px) !important;
@media screen and (min-width: 1025px) {
     overflow: auto !important;
  .skin-foreground #toc,
  .skin-foreground .toc {
    position: fixed !important;
     top: 84px;
    right: max(calc((100vw - 1180px)/2), 16px);
    width: 300px;
    max-height: calc(100vh - 100px);
     overflow: auto;
     -webkit-overflow-scrolling: touch;
     -webkit-overflow-scrolling: touch;
     margin: 0 !important;
     margin: 0 !important;
97번째 줄: 18번째 줄:
     border: 1px solid #eee !important;
     border: 1px solid #eee !important;
     background: #fff !important;
     background: #fff !important;
     z-index: 20;
     z-index: 20 !important;
     float: none !important;
     float: none !important;
     font-size: 0.9rem !important;
     font-size: 0.9rem !important;
103번째 줄: 24번째 줄:
   }
   }


   .skin-foreground #toc ul,
   .skin-foreground .mw-body,
  .skin-foreground .toc ul { margin: 0 !important; padding-left: 0 !important; }
   .skin-foreground .mw-body-content,
  .skin-foreground #toc li,
   .skin-foreground .mw-parser-output {
   .skin-foreground .toc li { margin: 0 !important; line-height: 1.25 !important; }
   
  .skin-foreground #toc a,
   }
   .skin-foreground .toc a { display: block !important; padding: 2px 0 !important; text-decoration: none; }
  .skin-foreground #toc ul ul,
  .skin-foreground .toc ul ul { margin-left: 0.6em !important; }
  .skin-foreground #toc ul ul ul,
   .skin-foreground .toc ul ul ul { margin-left: 0.5em !important; }


   .skin-foreground .mw-parser-output .mw-headline { scroll-margin-top: 92px; }
 
  .skin-foreground #toc ul, .skin-foreground .toc ul { margin: 0 !important; padding-left: 0 !important; }
  .skin-foreground #toc li, .skin-foreground .toc li { margin: 0 !important; line-height: 1.25 !important; }
  .skin-foreground #toc a,  .skin-foreground .toc a  { display: block !important; padding: 2px 0 !important; text-decoration: none; }
  .skin-foreground #toc ul ul,    .skin-foreground .toc ul ul    { margin-left: 0.6em !important; }
  .skin-foreground #toc ul ul ul,  .skin-foreground .toc ul ul ul  { margin-left: 0.5em !important; }
 
 
   .skin-foreground .mw-parser-output .mw-headline { scroll-margin-top: 92px !important; }
}
}




@media screen and (max-width: 1024px) {
@media (max-width: 1024px) {
   .skin-foreground #toc,
   .skin-foreground #toc, .skin-foreground .toc {
  .skin-foreground .toc {
     position: static !important;
     position: static !important;
     width: auto !important;
     width: auto !important;
     max-height: none !important;
     height: auto !important;
     overflow: visible !important;
     overflow: visible !important;
     margin: .5em 0 !important;
     margin: .5em 0 !important;
     padding: 6px 8px !important;
     padding: 6px 8px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
  }
  .skin-foreground .mw-body,
  .skin-foreground .mw-body-content,
  .skin-foreground .mw-parser-output {
    margin-right: 0 !important;
   }
   }
}
}
134번째 줄: 64번째 줄:
.skin-foreground #toc a[href="#top"],
.skin-foreground #toc a[href="#top"],
.skin-foreground #toc a[href="#toc"] { pointer-events: none; opacity: .5; }
.skin-foreground #toc a[href="#toc"] { pointer-events: none; opacity: .5; }
.skin-foreground #toc a,
.skin-foreground .toc a { padding: 3px 0 !important; } 
.skin-foreground #toc li,
.skin-foreground .toc li { line-height: 1.32 !important; }
.skin-foreground #toc ul ul,
.skin-foreground .toc ul ul { margin-left: 1em !important; }
.skin-foreground #toc ul ul ul,
.skin-foreground .toc ul ul ul { margin-left: 1.6em !important; }
.skin-foreground #toc ul ul ul ul,
.skin-foreground .toc ul ul ul ul { margin-left: 2.1em !important; }
}

2025년 10월 1일 (수) 05:20 기준 최신판

html { scroll-behavior: smooth; }


@media (min-width: 1025px) {
  .skin-foreground #toc,
  .skin-foreground .toc {
    position: fixed !important;
    top: 84px !important;

    left: 16px;       

    width: 300px !important;
    height: calc(100vh - 100px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    z-index: 20 !important;
    float: none !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  .skin-foreground .mw-body,
  .skin-foreground .mw-body-content,
  .skin-foreground .mw-parser-output {
    
  }


  .skin-foreground #toc ul, .skin-foreground .toc ul { margin: 0 !important; padding-left: 0 !important; }
  .skin-foreground #toc li, .skin-foreground .toc li { margin: 0 !important; line-height: 1.25 !important; }
  .skin-foreground #toc a,  .skin-foreground .toc a  { display: block !important; padding: 2px 0 !important; text-decoration: none; }
  .skin-foreground #toc ul ul,     .skin-foreground .toc ul ul     { margin-left: 0.6em !important; }
  .skin-foreground #toc ul ul ul,  .skin-foreground .toc ul ul ul  { margin-left: 0.5em !important; }


  .skin-foreground .mw-parser-output .mw-headline { scroll-margin-top: 92px !important; }
}


@media (max-width: 1024px) {
  .skin-foreground #toc, .skin-foreground .toc {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    margin: .5em 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
  }
  .skin-foreground .mw-body,
  .skin-foreground .mw-body-content,
  .skin-foreground .mw-parser-output {
    margin-right: 0 !important;
  }
}


.skin-foreground #toc a[href="#"],
.skin-foreground #toc a[href="#top"],
.skin-foreground #toc a[href="#toc"] { pointer-events: none; opacity: .5; }
.skin-foreground #toc a,
.skin-foreground .toc a { padding: 3px 0 !important; }   

.skin-foreground #toc li,
.skin-foreground .toc li { line-height: 1.32 !important; }


.skin-foreground #toc ul ul,
.skin-foreground .toc ul ul { margin-left: 1em !important; }

.skin-foreground #toc ul ul ul,
.skin-foreground .toc ul ul ul { margin-left: 1.6em !important; }

.skin-foreground #toc ul ul ul ul,
.skin-foreground .toc ul ul ul ul { margin-left: 2.1em !important; }

}