mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
7280d255c0
* Remove ambiguity in imports - say the file extension 'less' for all instances of variables and mixins. * Separate toast styles from drawer styles so they can be imported separately * associate header-action selector with its parent (.overlay-header) not parent's parent (.overlay) so it can be imported and rendered without the Overlay. Change-Id: Ib7e19a440ba095d6424d35305fb41d643ca9764c
43 lines
844 B
Plaintext
43 lines
844 B
Plaintext
@import '../../minerva.less/minerva.variables.less';
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
.backtotop {
|
|
/* initially hide the element */
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
|
|
/* basic styling */
|
|
position: fixed;
|
|
width: 2.5em;
|
|
height: 2.5em;
|
|
border-radius: 100%;
|
|
box-shadow: 0.1em 0.2em 0.3em @colorGray12;
|
|
bottom: 20px;
|
|
right: 0;
|
|
cursor: pointer;
|
|
z-index: @z-indexOverlay;
|
|
background-color: @colorProgressive;
|
|
|
|
/* define what happens, if the visible class is added/removed, add a nice fade out/in */
|
|
.transition( opacity 0.5s 0s );
|
|
|
|
&.visible {
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
opacity: 0.8;
|
|
}
|
|
|
|
> .arrow-up {
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 7px solid transparent;
|
|
border-right: 7px solid transparent;
|
|
border-bottom: 7px solid #fff;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate( -50%, -50% );
|
|
}
|
|
}
|