Template:Spoiler/styles.css: Difference between revisions
Template page
More actions
>MangoFVTT Created page with ".template-spoiler { position: relative; } .template-spoiler-content { filter: blur( 8px ); pointer-events: none; user-select: none; transition-property: filter; transition-duration: var( --transition-duration-medium ); transition-timing-function: var( --transition-timing-function-ease ); } .template-spoiler-details { position: absolute; inset: 0; display: grid; place-content: center; } .template-spoiler-summary { cursor:..." |
>MangoFVTT No edit summary |
||
| Line 31: | Line 31: | ||
font-weight: var( --font-weight-medium ); | font-weight: var( --font-weight-medium ); | ||
z-index: 1; | z-index: 1; | ||
} | |||
.template-spoiler-summary > .mw-collapsible-toggle { | |||
display: none; | |||
} | } | ||
Latest revision as of 12:17, 19 June 2026
.template-spoiler {
position: relative;
}
.template-spoiler-content {
filter: blur( 8px );
pointer-events: none;
user-select: none;
transition-property: filter;
transition-duration: var( --transition-duration-medium );
transition-timing-function: var( --transition-timing-function-ease );
}
.template-spoiler-details {
position: absolute;
inset: 0;
display: grid;
place-content: center;
}
.template-spoiler-summary {
cursor: pointer;
display: flex;
align-items: center;
gap: var( --space-xs );
padding: var( --space-xs ) var( --space-md );
border: 1px solid var( --border-color-interactive );
border-radius: var( --border-radius-medium );
color: var( --color-emphasized );
font-size: var( --font-size-small );
font-weight: var( --font-weight-medium );
z-index: 1;
}
.template-spoiler-summary > .mw-collapsible-toggle {
display: none;
}
.template-spoiler-summary:hover {
background-color: var( --background-color-button-quiet--hover );
}
.template-spoiler-summary:active {
background-color: var( --background-color-button-quiet--active );
}
.template-spoiler-details[ open ] {
display: none;
}
.template-spoiler-details[ open ] + .template-spoiler-content {
filter: none;
pointer-events: initial;
user-select: initial;
}