跳转到内容

MediaWiki:Common.css

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* 这里放置的CSS将应用于所有皮肤 */
.mw-wiki-logo, .mw-wiki-logo.fallback {
	display: block;
	background-size: 100%;
}

#p-logo a {
    background-size: 100%;
}

/* Element animator */
#siteNotice .animated > *:not(.animated-active),
#bodyContent .animated > *:not(.animated-active),
#bodyContent .animated > .animated-subframe > *:not(.animated-active) {
	display: none;
}
#bodyContent span.animated,
#bodyContent span.animated.animated-visible > *,
#bodyContent span.animated.animated-visible > .animated-subframe > * {
	display: inline-block;
}
#bodyContent div.animated.animated-visible > *,
#bodyContent div.animated.animated-visible > .animated-subframe > * {
	display: block;
}

/* From wjghj.cn under CC BY-NC-SA 4.0 */

.siteNoticeScroll {
  width: 100%;
  height: 25px;
  line-height: 25px;
  overflow: hidden
}

.siteNoticeScroll li {
  height: 25px;
  list-style: none;
  text-align: center
}

/** Template stylings **/
/* [[Template:SimpleNavbox]] */
.navbox {
	background: #FFF;
	border: 1px solid #CCC;
	margin: 1em auto 0;
	width: 100%;
}

.navbox table {
	background: #FFF;
	margin-left: -4px;
	margin-right: -2px;
}
.navbox table:first-child {
	margin-top: -2px;
}
.navbox table:last-child {
	margin-bottom: -2px;
}

.navbox .navbox-top {
	white-space: nowrap;
	background-color: #CCC;
	padding: 0 3px;
	text-align: center;
}

.navbox .navbox-middle {
	white-space: nowrap;
	background-color: #DDD;
	padding: 0 3px;
	text-align: center;
}

.navbox .navbox-thru {
	white-space: nowrap;
	background-color: #EEE;
	padding: 0 3px;
	text-align: center;
}

.navbox-navbar,
.navbox-navbar-mini {
	float: left;
	font-size: 80%;
}

.navbox-title {
	padding: 0 10px;
	font-size: 110%;
}

.navbox th {
	background-color: #EEE;
	padding: 0 10px;
	white-space: nowrap;
	text-align: right;
}

.navbox td {
	width: 100%;
	padding: 0 0 0 2px;
}

/* [[Template:LoadBox]] with navbox */
.loadbox-navbox {
	padding: 2px !important;
	margin: 1em 0 0 !important;
	clear: both;
}
#content .loadbox-navbox > p {
	background-color: #CCC;
	text-align: center;
	margin: 0;
	padding: 0 3px;
}
.loadbox-navbox > p > b {
	font-size: 110%;
}

.loadbox-navbox .navbox {
	margin: 0 -2px -2px;
	border: 0;
}
.loadbox-navbox > .load-page-content > .mw-parser-output > .navbox > tbody > tr:first-child {
	display: none;
}

/* [[Template:Dablink]] */
.dablink {
    padding-left: 2em;
}

/* 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;
}

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

/* Fix for hieroglyphs specificity issue in infoboxes ([[phab:T43869]]) */
table.mw-hiero-table td {
	vertical-align: middle;
}

#siteSub {
    display: block; font-weight: normal; font-size: normal;
}

body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-submit #siteSub {
    display: none;
}

/* Simulate link styling for JS only links */
.jslink {
	color: #0645AD;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
}
.jslink:hover {
	text-decoration: underline;
	cursor: pointer;
}
.jslink:active {
	color: #FAA700;
}
.mw-userlink[title="User:Lakejason0"]::before {
    content: '';
    display: inline-block;
    background: url(https://lakeus.xyz/images/0/0f/Badge_staff.svg) no-repeat;
    height: 12px;
    width: 12px;
    background-size: 100%;
}
/* ConfirmEdit QuestyCaptcha -- on Create Account */
.htmlform-tip + .mw-htmlform-field-HTMLInfoField {
    background-color: rgba(255,255,0,0.25);
}

/* Make the first heading row of a table stick to the top of the screen */
/* Won't work properly with rowspan headers, or colspan rows in the table */
.stikitable > * > tr:first-child > th {
	position: -webkit-sticky;
    position: sticky;
    top: var(--sticky-table-header-top-offset, 0);
	/* This fixes the borders for some reason */
    background-clip: padding-box;
}

/* Add back the bottom border when stuck */
.stikitable > * > tr:first-child > th::after {
    content: "";
    position: absolute;
    bottom: -1px;
	left: 0;
    width: 100%;
    border-bottom: 1px solid;
    border-color: inherit;
}

/* Disable foes */
.profile-actions a[href$="/foe"] {
    display:none;
}
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。