“模板:Wikipedia template/doc”与“模板:Mbox/styles.css”:页面之间的差异

来自NebulaeWiki
< 模板:Wikipedia template(页面间差异)
(创建页面,内容为“{{Documentation}} This template is used to indicate a template is imported from [https://en.wikipedia.org English Wikipedia]. It should be placed at the top of the template documentation page. <includeonly>{{PAGENAME}}</includeonly><noinclude></noinclude>”)
 
(创建页面,内容为“.mbox { position: relative; display: flex; flex-direction: column; margin-top: 0.4rem; margin-bottom: 0.8rem; background-color: var( --color-surface-2 ); border-radius: var( --border-radius--medium ); color: var( --color-base--subtle ); font-size: 0.875rem; } .mbox.mbox-high { background-color: var( --background-color-destructive ); } .mbox.mbox-med { background-color: var( --background-color-warning ); } .mbox-title { display: flex; align-items…”)
 
第1行: 第1行:
{{Documentation}}
.mbox {
This template is used to indicate a template is imported from [https://en.wikipedia.org English Wikipedia]. It should be placed at the top of the template documentation page.
position: relative;
display: flex;
flex-direction: column;
margin-top: 0.4rem;
margin-bottom: 0.8rem;
background-color: var( --color-surface-2 );
border-radius: var( --border-radius--medium );
color: var( --color-base--subtle );
font-size: 0.875rem;
}


<includeonly>[[Category:Article management templates|{{PAGENAME}}]]</includeonly><noinclude></noinclude>
.mbox.mbox-high {
background-color: var( --background-color-destructive );
}
 
.mbox.mbox-med {
background-color: var( --background-color-warning );
}
 
.mbox-title {
display: flex;
align-items: center;
padding: 10px 15px;
font-weight: 500;
}
 
.mbox-icon img {
width: 14px;
height: auto;
margin-right: 10px;
opacity: 0.5;
}
 
.mbox-text {
position: absolute;
z-index: 10;
padding: 15px 20px;
width: calc(100% - 40px);
background-color: var( --color-surface-2 );
border-radius: var( --border-radius--medium );
box-shadow: var( --box-shadow-dialog );
opacity: 0;
transition: opacity 0.2s ease, box-shadow 0.2s ease;
visibility: hidden;
}
 
.mbox:hover .mbox-text {
opacity: 1;
visibility: visible;
}
 
.mbox-high .mbox-text {
background-color: var( --background-color-destructive );
}
 
.mbox-med .mbox-text {
background-color: var( --background-color-warning );
}
 
.mbox-需要翻译{
    background-color: #ffcc3382;
    color: rgba(0,0,0,0.8);
    border-radius: var(--border-radius--medium);
}
 
/* Dark mode */
html.skin-citizen-dark .mbox-icon img {
filter: invert( 1 );
}
 
/* Readability fixes */
html.skin-citizen-dark .mbox {
color: var( --color-base--emphasized );
}

2023年9月18日 (一) 21:23的版本

.mbox {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-top: 0.4rem;
	margin-bottom: 0.8rem;
	background-color: var( --color-surface-2 );
	border-radius: var( --border-radius--medium );
	color: var( --color-base--subtle );
	font-size: 0.875rem;
}

.mbox.mbox-high {
	background-color: var( --background-color-destructive );
}

.mbox.mbox-med {
	background-color: var( --background-color-warning );
}

.mbox-title {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	font-weight: 500;
}

.mbox-icon img {
	width: 14px;
	height: auto;
	margin-right: 10px;
	opacity: 0.5;
}

.mbox-text {
	position: absolute;
	z-index: 10;
	padding: 15px 20px;
	width: calc(100% - 40px);
	background-color: var( --color-surface-2 );
	border-radius: var( --border-radius--medium );
	box-shadow: var( --box-shadow-dialog );
	opacity: 0;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
	visibility: hidden;
}

.mbox:hover .mbox-text {
	opacity: 1;
	visibility: visible;
}

.mbox-high .mbox-text {
	background-color: var( --background-color-destructive );
}

.mbox-med .mbox-text {
	background-color: var( --background-color-warning );
}

.mbox-需要翻译{
    background-color: #ffcc3382;
    color: rgba(0,0,0,0.8);
    border-radius: var(--border-radius--medium);
}

/* Dark mode */
html.skin-citizen-dark .mbox-icon img {
	filter: invert( 1 );
}

/* Readability fixes */
html.skin-citizen-dark .mbox {
	color: var( --color-base--emphasized );
}