欢迎来到奇葩栖息地!欢迎加入Discord服务器:XfrfHCzfbW欢迎加入QQ频道:r01m9y3iz6请先至特殊:参数设置验证邮箱后再进行编辑。特殊:参数设置挑选自己想要使用的小工具!不会编辑?请至这里学习Wikitext语法。

MediaWiki:Mobile.css:修订间差异

来自奇葩栖息地
添加的内容 删除的内容
无编辑摘要
标签移动版编辑 移动版网页编辑 高级移动版编辑
(// Edit via InPageEdit)
第9行: 第9行:
margin-bottom: 2px;
margin-bottom: 2px;
text-align: center;
text-align: center;
font-size: 95%;
margin: 0.5em auto 1.5em;
}

#localNotice {
background: #f8f9fa;
border: solid #eaecf0;
border-width: 1px 1px 0.2em;
padding: 1.25em 1.75em;
box-shadow: 0 1px 2px 1px rgb(0 0 0 / 2%);
padding: 0;
text-align: center;
}

#localNotice p {
margin-left: 1em;
margin-right: 1em;
}
}



2021年10月1日 (五) 03:40的版本

/* 这里放置的CSS将影响使用移动版网站的用户 */
.mw-wiki-logo, .mw-wiki-logo.fallback {
	display: block;
	background-size: 100%;
}

#siteNotice,
#localNotice {
    margin-bottom: 2px;
    text-align: center;
    font-size: 95%;
    margin: 0.5em auto 1.5em;
}

#localNotice {
    background: #f8f9fa;
    border: solid #eaecf0;
    border-width: 1px 1px 0.2em;
    padding: 1.25em 1.75em;
    box-shadow: 0 1px 2px 1px rgb(0 0 0 / 2%);
    padding: 0;
    text-align: center;
}

#localNotice p {
    margin-left: 1em;
    margin-right: 1em;
}

/* Turn a list into a tree view style (See [[.minecraft]]) */
.treeview {
	margin-top: 0.3em;
}

.treeview .treeview-header {
	padding-left: 3px;
	font-weight: bold;
}
.treeview .treeview-header:last-child {
	border-color: #636363 !important;
	border-left-style: dotted;
}
.treeview .treeview-header:not(:last-child)::before {
	content: none;
}
.treeview .treeview-header:last-child::before {
	border-bottom: 0;
}

.treeview ul,
.treeview li {
	margin: 0;
	padding: 0;
	list-style-type: none;
	list-style-image: none;
}

.treeview li li {
	position: relative;
	padding-left: 13px;
	margin-left: 7px;
	border-left: 1px solid #636363;
}
.treeview li li::before {
	content: "";
	position: absolute;
	top: 0;
	left: -1px;
	width: 11px;
	height: 11px;
	border-bottom: 1px solid #636363;
}

.treeview li li:last-child:not(.treeview-continue) {
	border-color: transparent;
}
.treeview li li:last-child:not(.treeview-continue)::before {
	border-left: 1px solid #636363;
	width: 10px;
}

.nbttree-inherited {
	background-color: #E6E6FA;
}

/* [[Template:Hatnote]] */
.dablink {
	padding-left: 0.5em;
}

/* remove useless white bar on the right sides of tables */
.content table.wikitable {
	width: fit-content !important;
	max-width: 100%;
}

/* Fix dumb default styling */
.content code,
.content pre {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	color: black;
}
.content code {
	border-radius: 2px;
}
@media all and (max-width: 768px) {
	.gallerybox .thumb > div {
		margin: 15px !important;
		width: auto !important;
	}
}

.mw-parser-output .infobox .nowrap {
	white-space: normal !important;
}

/* Navbar styling when nested in infobox */
.infobox .navbar {
	font-size: 100%;
}