MediaWiki:Common.css: Difference between revisions
From The Evection Project
Added CSS to make Template:Spoiler work. |
m Updated comment. |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* This CSS makes | /* This CSS makes redaction for spoilers. Surround spoilers in <span class="spoiler"></span> tags to engage the effect, and click and hold on redacted text to see it. */ | ||
.spoiler { | .spoiler { | ||
background-color: var(--bs-body-color); | background-color: var(--bs-body-color); | ||
Line 7: | Line 7: | ||
transition: 0.125s; | transition: 0.125s; | ||
} | } | ||
.spoiler: | .spoiler:active { | ||
background-color: transparent; | background-color: transparent; | ||
transition: 0.125s; | transition: 0.125s; | ||
} | } |
Latest revision as of 15:49, 19 June 2024
/* CSS placed here will be applied to all skins */ /* This CSS makes redaction for spoilers. Surround spoilers in <span class="spoiler"></span> tags to engage the effect, and click and hold on redacted text to see it. */ .spoiler { background-color: var(--bs-body-color); border-radius: 0.1em; transition: 0.125s; } .spoiler:active { background-color: transparent; transition: 0.125s; }