MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.collapsible {
display: block;
margin-bottom: 1rem;
}
.collapser {
cursor: pointer;
border: 1px transparent dotted;
}
.arrow {
margin-left: 0.5em;
display: inline-block;
transform: rotate(90deg);
transition: transform .25s ease-out;
}
input:checked ~ .arrow,
input:checked ~ .collapser .arrow {
transform: rotate(270deg);
}
.collapsed {
font-size: 0;
margin: 0;
opacity: 0;
padding: 0;
/* fade out, then shrink */
transition:
opacity .25s,
margin .5s 0.25s,
font-size .5s 0.25s,
padding .5s .25s;
}
input:checked ~ .collapsed {
font-size: 16px;
opacity: 1;
height: auto;
padding: 5px 0;
/* grow, then fade in */
transition:
margin .25s,
padding .25s,
font-size .25s,
opacity .5s .25s;
}