跳转到内容

Template:Ambox/style.css

维基百科,自由的百科全书

这是Template:Ambox/style.css当前版本,由Jon (WMF)留言 | 贡献编辑于2024年8月8日 (四) 17:09 (Fixes phab:T369874. Please see talk page and do not revert without discussion. See also meta:User:Jon_(WMF)/Edit_for_dark_mode_support。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
/* {{pp|small=y}} */
.ambox {
	border: 1px solid #a2a9b1;
	/* @noflip */
	border-left: 10px solid #36c;  /* Default "notice" blue */
	background-color: #fbfbfb;
	box-sizing: border-box;
}

/* Single border between stacked boxes. Take into account base templatestyles,
 * user styles, and Template:Dated maintenance category.
 * remove link selector when T200206 is fixed
 */
.ambox + link + .ambox,
.ambox + link + style + .ambox,
.ambox + link + link + .ambox,
/* TODO: raise these as "is this really that necessary???". the change was Dec 2021 */
.ambox + .mw-empty-elt + link + .ambox,
.ambox + .mw-empty-elt + link + style + .ambox,
.ambox + .mw-empty-elt + link + link + .ambox {
	margin-top: -1px;
}

/* For the "small=left" option. */
/* must override .ambox + .ambox styles above */
html body.mediawiki .ambox.mbox-small-left {
	/* @noflip */
	margin: 4px 1em 4px 0;
	overflow: hidden;
	width: 238px;
	border-collapse: collapse;
	font-size: 88%;
	line-height: 1.25em;
}

.ambox-speedy {
	/* @noflip */
	border-left: 10px solid #b32424;    /* Red */
	background-color: #fee7e6;          /* Pink */
}

.ambox-delete {
	/* @noflip */
	border-left: 10px solid #b32424;    /* Red */
}

.ambox-content {
	/* @noflip */
	border-left: 10px solid #f28500;    /* Orange */
}

.ambox-style {
	/* @noflip */
	border-left: 10px solid #fc3;       /* Yellow */
}

.ambox-move {
	/* @noflip */
	border-left: 10px solid #9932cc;    /* Purple */
}

.ambox-protection {
	/* @noflip */
	border-left: 10px solid #a2a9b1;    /* Gray-gold */
}

.ambox .mbox-text {
	border: none;
	/* @noflip */
	padding: 0.25em 0.5em;
	width: 100%;
}

.ambox .mbox-image {
	border: none;
	/* @noflip */
	padding: 2px 0 2px 0.5em;
	text-align: center;
}

.ambox .mbox-imageright {
	border: none;
	/* @noflip */
	padding: 2px 0.5em 2px 0;
	text-align: center;
}

/* An empty narrow cell */
.ambox .mbox-empty-cell {
	border: none;
	padding: 0;
	width: 1px;
}

.ambox .mbox-image-div {
	width: 52px;
}

/* Hack around MobileFrontend being opinionated */
html.client-js body.skin-minerva .mbox-text-span {
	margin-left: 23px !important;
}

@media (min-width: 720px) {
	.ambox {
		margin: 0 10%;                  /* 10% = Will not overlap with other elements */
	}
}

/* flipped lightness in hsl space except the main ambox is the main page blue */

@media screen {
    html.skin-theme-clientpref-night .ambox {
		border-left-color: #36c !important;  /* Default "notice" blue */
	}
	
	html.skin-theme-clientpref-night .ambox-speedy,
	html.skin-theme-clientpref-night .ambox-delete {
		border-left-color: #b32424 !important;    /* Red */
	}
	
	html.skin-theme-clientpref-night .ambox-speedy {
		background-color: #300 !important;    /* Pink */
	}
	
	html.skin-theme-clientpref-night .ambox-content {
		border-left-color: #f28500 !important;    /* Orange */
	}
	
	html.skin-theme-clientpref-night .ambox-style {
		border-left-color: #fc3 !important;       /* Yellow */
	}
	
	html.skin-theme-clientpref-night .ambox-move {
		border-left-color: #9932cc !important;    /* Purple */
	}
	
	html.skin-theme-clientpref-night .ambox-protection {
		border-left-color: #a2a9b1 !important;    /* Gray-gold */
	}
}


@media screen and ( prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .ambox {
		border-left-color: #36c !important;  /* Default "notice" blue */
	}
	
	html.skin-theme-clientpref-os .ambox-speedy,
	html.skin-theme-clientpref-os .ambox-delete {
		border-left-color: #b32424 !important;    /* Red */
	}
	
	html.skin-theme-clientpref-os .ambox-speedy {
		background-color: #300 !important;    /* Pink */
	}
	
	html.skin-theme-clientpref-os .ambox-content {
		border-left-color: #f28500 !important;    /* Orange */
	}
	
	html.skin-theme-clientpref-os .ambox-style {
		border-left-color: #fc3 !important;       /* Yellow */
	}
	
	html.skin-theme-clientpref-os .ambox-move {
		border-left-color: #9932cc !important;    /* Purple */
	}
	
	html.skin-theme-clientpref-os .ambox-protection {
		border-left-color: #a2a9b1 !important;    /* Gray-gold */
	}
}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy