Module:Hatnote/styles.css: Difference between revisions

From Ato Wiki
(per my talk page)
 
m (1 revision imported)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/* {{pp|small=y}} */
.hatnote-container {
.hatnote {
display: flex;
font-style: italic;
align-items: center;
padding: var( --space-sm ) var( --space-md );
margin-top: var( --space-xs );
margin-bottom: var( --space-md );
background: var( --color-surface-2 );
border-radius: var( --border-radius--medium );
color: var( --color-base--subtle );
font-size: 0.875rem;
line-height: var( --line-height-xs );
}
}


/* Limit structure CSS to divs because of [[Module:Hatnote inline]] */
.hatnote-icon img {
div.hatnote {
width: 14px;
/* @noflip */
height: auto;
padding-left: 1.6em;
margin-right: var( --space-xs );
margin-bottom: 0.5em;
opacity: var( --opacity-icon-base );
}
}


.hatnote i {
/* Dark theme */
font-style: normal;
html.skin-citizen-dark .hatnote-icon img {
}
filter: invert( 1 );
 
/* The templatestyles element inserts a link element before hatnotes.
* TODO: Remove link if/when WMF resolves T200206 */
.hatnote + link + .hatnote {
margin-top: -0.5em;
}
}

Latest revision as of 09:39, 1 May 2024

.hatnote-container {
	display: flex;
	align-items: center;
	padding: var( --space-sm ) var( --space-md );
	margin-top: var( --space-xs );
	margin-bottom: var( --space-md );
	background: var( --color-surface-2 );
	border-radius: var( --border-radius--medium );
	color: var( --color-base--subtle );
	font-size: 0.875rem;
	line-height: var( --line-height-xs );
}

.hatnote-icon img {
	width: 14px;
	height: auto;
	margin-right: var( --space-xs );
	opacity: var( --opacity-icon-base );
}

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