Template:Spoiler box/styles.css

Template page
Revision as of 20:58, 19 February 2024 by Mausterio (talk | contribs) (Created page with ".spoilerbox { margin-top: 0.6rem; border-radius: 8px; color: var( --color-base--subtle ); background: var( --color-surface-2 ); font-size: 0.875rem; line-height: 1.4; overflow: hidden; } .spoilerbox-header { padding: 10px 15px; background-color: var( --border-color-base ); letter-spacing: .75px; transition: background 0.2s ease; } .spoilerbox.mw-collapsed .spoilerbox-header { background: transparent; } .spoilerbox-content { padding: 10px 15px; } .spoi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.spoilerbox {
	margin-top: 0.6rem;
	border-radius: 8px;
	color: var( --color-base--subtle );
	background: var( --color-surface-2 );
	font-size: 0.875rem;
	line-height: 1.4;
	overflow: hidden;
}

.spoilerbox-header {
	padding: 10px 15px;
	background-color: var( --border-color-base );
	letter-spacing: .75px;
	transition: background 0.2s ease;
}

.spoilerbox.mw-collapsed .spoilerbox-header {
	background: transparent;
}

.spoilerbox-content {
    padding: 10px 15px;
}

.spoilerbox .mw-collapsible-toggle:before, 
.spoilerbox .mw-collapsible-toggle:after {
	content: none;
}

.spoilerbox .mw-collapsible-text {
	display: block;
	padding: 10px 15px;
	color: var( --color-base--subtle );
    background: var( --border-color-base );
}

.spoilerbox .mw-collapsible-text:hover {
	background: var( --background-color-quiet--hover );
}

.spoilerbox .mw-collapsible-text:active {
	background: var( --background-color-quiet--active );
}