미디어위키:Foreground.css
CABAL WIKI
참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.
- 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
- 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
- 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
- 오페라: Ctrl-F5를 입력.
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;
}
}
html { scroll-behavior: smooth; }
@media screen and (min-width: 1025px) {
.skin-foreground #toc,
.skin-foreground .toc {
position: fixed !important;
top: 84px;
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; }