MediaWiki:Common.css:修订间差异

来自DJMAX中文资料库
跳转到导航 跳转到搜索
无编辑摘要
标签已被回退
无编辑摘要
标签已被回退
第2行: 第2行:


/* == 浮动目录 == */
/* == 浮动目录 == */
#toc.mbox-image { display: none; }
#p-toc {
table.toc {
    position: sticky;
position: fixed;
    top: 0.5em;
top: 100px;
right: 0px;
border: 0px;
width: 300px;
border-bottom: 1px SOLID #CCC;
border-left: 1px SOLID #CCC;
}
}
table.toc tbody tr td ul {
 
overflow: auto;
#p-toc .vector-menu-content-list {
max-height: 400px;
    max-height: calc(100vh - 3.75em - 12px - var(--sticky-bottom, 0px));
    overflow-y: auto;
    scrollbar-width: thin;
    overscroll-behavior: none;
}
}
 
table.toc tbody tr td ul ul {
@media (prefers-reduced-motion: no-preference) {
overflow: auto;
#p-toc .vector-menu-content-list {
max-height: 10000px;
scroll-behavior: smooth;
}
}
 
#p-toc .vector-menu-content-list ul {
    margin-left: 10px;
}
 
#p-toc .vector-menu-content-list ul li {
    font-size: inherit;
}
 
#p-toc .tocsection-current > a {
font-weight: bold;
text-decoration: underline;
}
 
#p-toc .tocnumber {
    color: white;
    display: none; /* they take up too much space */
}
 
@media screen and (max-width: 720px) {
#p-toc {
    display: none;
}
}
}
body { overflow-x: hidden;}

2025年7月19日 (六) 08:42的版本

/* 这里放置的CSS将应用于所有皮肤 */

/* == 浮动目录 == */
#p-toc {
    position: sticky;
    top: 0.5em;
}

#p-toc .vector-menu-content-list {
    max-height: calc(100vh - 3.75em - 12px - var(--sticky-bottom, 0px));
    overflow-y: auto;
    scrollbar-width: thin;
    overscroll-behavior: none;
}

@media (prefers-reduced-motion: no-preference) {
	#p-toc .vector-menu-content-list {
		scroll-behavior: smooth;
	}
}

#p-toc .vector-menu-content-list ul {
    margin-left: 10px;
}

#p-toc .vector-menu-content-list ul li {
    font-size: inherit;
}

#p-toc .tocsection-current > a {
	font-weight: bold;
	text-decoration: underline;
}

#p-toc .tocnumber {
    color: white;
    display: none; /* they take up too much space */
}

@media screen and (max-width: 720px) {
	#p-toc {
    	display: none;
	}
}