행위

미디어위키

Foreground.css: 두 판 사이의 차이

CABAL WIKI

(문서를 비움)
태그: 비우기 수동 되돌리기
편집 요약 없음
1번째 줄: 1번째 줄:
html { scroll-behavior: smooth; }


@media (min-width: 1025px) {
  .skin-foreground #toc,
  .skin-foreground .toc {
    position: fixed !important;
    top: 84px !important;                     
    right: max(calc((100vw - 1180px)/2), 16px) !important;
    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 {
    margin-right: 320px !important;               
  }
  .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; }

2025년 9월 22일 (월) 02:03 판

html { scroll-behavior: smooth; }


@media (min-width: 1025px) {

  .skin-foreground #toc,
  .skin-foreground .toc {
    position: fixed !important;
    top: 84px !important;                      
    right: max(calc((100vw - 1180px)/2), 16px) !important;
    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 {
    margin-right: 320px !important;                
  }


  .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; }