MediaWiki:Common.css

来自Bejeweled Wiki
跳转到导航 跳转到搜索

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

  • 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
/* ↓ GLOBAL CSS FROM ENGLISH WIKI ↓ */
@import url(/load.php?lang=en&modules=site.styles&only=styles&skin=vector);

code, tt, kbd, pre, div.code {
	padding: 1px 4px;
	font-family: Consolas, 'Eupheima UCAS', Ayuthaya, Menlo, monospace;
	border: 1px solid var(--theme-border-color);
	color: var(--theme-page-text-color);
	background-color: var(--theme-page-background-color--secondary);
}
code, tt, kbd {
	border-radius: 2px;
}
.page-content pre,
.page-content div.code {
	line-height: 1.25 !important;
}
li ol, li ul {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.mw-body-content a {
	text-underline-offset: 4px;
}
.wds-tabs__tab:first-child:last-child {
	display: none;
}
.mw-templatedata-doc-wrap :is(p, dl) {
	margin-bottom: 0;
}
.mw-templatedata-doc-wrap :is(p + p, dl) {
	margin-top: 0;
}
.mw-templatedata-doc-wrap .oo-ui-widget {
	background-color: transparent;
}


/* See [[Template:Navbox]] */
.navbox-row.alt > .navbox-list > .navbox-subgroup {
	border-top: 2px solid var(--navbox-bg-color);
}
.navbox-subgroup .navbox-list {
	background: transparent !important;
}


/* See [[Template:Hatnote]] and other hatnote templates */
.hatnote {
	margin: 0.8em 0;
	padding: 0 2em;
}


/* See [[Template:Quote]] */
.quote-container {
	display: table;
	margin: 0 auto 12px;
}
.quote-block {
	display: table-row;
}
.quote-mark-left, .quote-mark-right {
	display: table-cell;
	font-size: 3em;
	font-family: Times, serif;
	font-weight: bold;
	color: var(--theme-accent-color);
}
.quote-mark-left {
	vertical-align: top;
}
.quote-mark-right {
	vertical-align: bottom;
}
.quote-content {
	display: table-cell;
	padding: 1em;
	vertical-align: middle;
}
.quote-content > p:last-of-type {
	margin-bottom: 0;
}
.quote-source {
	display: table-caption;
	caption-side: bottom;
	font-size: small;
	text-align: right;
}


/* See [[Template:Documentation]] */
.theme-fandomdesktop-light .documentation,
.theme-fandommobile-light .documentation {
	--doc-background-color: #ddd;
	--doc-border-color: black;
}
.theme-fandomdesktop-dark .documentation,
.theme-fandommobile-dark .documentation {
	--doc-background-color: #333;
	--doc-border-color: grey;
}
.documentation {
	border: 1px solid var(--doc-border-color, black);
}
.documentation-header {
	background-color: var(--doc-background-color, #ddd);
	padding: 1em;
}
.documentation-actions {
	float: right;
	position: relative;
	cursor: pointer;
}
.documentation-action-label {
	text-align: right;
	border-radius: 3px;
	padding: 4px;
	transition: background-color 0.2s linear;
}
ul.documentation-action-menu {
	display: none;
	list-style-type: none;
	position: absolute;
	top: 100%;
	right: 0;
	width: max-content;
	text-align: left;
	opacity: 0;
	margin: 0;
	padding: 0.5em;
	border: 1px solid var(--theme-border-color);
	border-radius: 3px;
	background-color: var(--theme-page-background-color--secondary);
	transition: opacity 0.2s linear;
}
ul.documentation-action-menu > li {
	padding: 0.25em 0.5em;
	border-radius: 3px;
	transition: background-color 0.2s linear;
}
ul.documentation-action-menu > li > a {
	display: block;
	color: var(--theme-page-text-color);
	text-decoration: none;
}
ul.documentation-action-menu > li > a.new {
	color: var(--theme-alert-color);
}
.documentation-actions:hover .documentation-action-label {
	background-color: #0000001f;
}
.documentation-actions:hover .documentation-action-menu {
	display: block;
	top: 100%;
	opacity: 1;
	z-index: 1;
}
ul.documentation-action-menu > li:hover {
	background-color: rgba(var(--theme-link-color--rgb), 0.1);
}
ul.documentation-action-menu > li:hover > a:not(.new) {
	color: var(--theme-link-color);
}
.documentation-content {
	padding: 1em;
}
.documentation-content > p:last-child {
	margin-bottom: 0;
}
.documentation-footer {
	background-color: var(--doc-background-color, #ddd);
	padding: 0.5em;
	font-size: 85%;
	text-align: right;
}


/* See [[Template:Heimu]] */
.theme-fandomdesktop-light .heimu,
.theme-fandommobile-light .heimu {
	--heimu-background-color: var(--heimu-background-color--light, #252525);
	--heimu-text-color: var(--heimu-text-color--light, #e6e6e6);
	--heimu-link-color: var(--heimu-link-color--light, #7f7fff);
	--heimu-redlink-color: var(--heimu-redlink-color--light, #ff0000);
}
.theme-fandomdesktop-dark .heimu,
.theme-fandommobile-dark .heimu {
	--heimu-background-color: var(--heimu-background-color--dark, #e6e6e6);
	--heimu-text-color: var(--heimu-text-color--dark, #252525);
	--heimu-link-color: var(--heimu-link-color--dark, #bb00da);
	--heimu-redlink-color: var(--heimu-redlink-color--dark, #ff0000);
}

.heimu, .heimu * {
	background-color: var(--heimu-background-color);
	color: var(--heimu-background-color, black);
	transition: color 0.125s linear;
}
.heimu a {
	color: var(--heimu-background-color, black);
	text-decoration-color: var(--theme-link-color);
	text-decoration-line: underline;
	text-decoration-style: solid;
}
.heimu a.new {
	color: var(--heimu-background-color, black);
	text-decoration-color: var(--theme-alert-color);
	text-decoration-style: dashed;
}
.heimu-img-wrapper {
	display: inline-block;
	vertical-align: middle;
}
.heimu-img-wrapper img {
	opacity: 0;
	transition: opacity 0.125s linear;
}

.heimu:hover,
.heimu:hover *,
.heimu.heimu-toggled,
.heimu.heimu-toggled * {
	color: var(--heimu-text-color);
}
.heimu:hover a,
.heimu.heimu-toggled a,
.heimu a:hover,
a:hover .heimu,
a:hover .heimu * {
	color: var(--heimu-link-color);
}
.heimu:hover a.new,
.heimu.heimu-toggled a.new,
.heimu a.new:hover,
a.new:hover .heimu,
a.new:hover .heimu * {
	color: var(--heimu-redlink-color);
}
.heimu-img-wrapper:hover img,
.heimu-img-wrapper.heimu-toggled img,
.heimu:hover .heimu-img-wrapper img,
a:hover .heimu-img-wrapper img {
	opacity: 1;
}


/* [[Template:消歧义页]] */
.disambig-notice {
	display: table;
	width: 100%;
	border-width: 2px 0;
	border-style: solid;
	border-color: var(--theme-page-text-color);
	padding: 6px 12px;
}
.disambig-notice-row {
	display: table-row;
}
.disambig-notice-icon {
	display: table-cell;
	vertical-align: middle;
	width: 42px;
}
.disambig-notice-content {
	display: table-cell;
}


/* [[Template:Mbox]] */
.mbox {
	width: 80%;
	margin: auto;
	padding: 12px;
	border: 2px solid var(--theme-border-color);
	border-left: 8px solid var(--theme-sticky-nav-background-color);
	background-color: var(--theme-page-background-color--secondary);
}
.mbox.mbox-tiny {
	padding: 4px 12px;
}
.mbox + .mbox {
	border-top: none;
}
.mbox .mbox-header {
	text-align: center;
	font-size: large;
	font-weight: bold;
}
.mbox .mbox-row {
	display: flex;
	align-items: center;
}
.mbox .mbox-image {
	flex: none;
	max-width: 100px;
	overflow: hidden;
}
.mbox.mbox-tiny .mbox-image {
	max-width: 30px;
}
.mbox .mbox-content {
	flex: auto;
	padding: 0 12px;
}
.mbox .mbox-content:first-child {
	padding-left: 0;
}
.mbox .mbox-content:last-child {
	padding-right: 0;
}
.mbox .mbox-content *,
.mbox .mbox-aside * {
	margin-top: 0;
	margin-bottom: 0;
}
.mbox .mbox-aside {
	flex: none;
	font-size: small;
	text-align: center;
	padding-left: 12px;
	border-left: 1px solid var(--theme-page-text-color);
}