mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts/styles.less
Volker E 19b1ea2297 Unify transition values across board
Using newly introduced variables instead of fixed values.
Also adding `transition` to property blacklist to ensure using
mediawiki.mixin.

Bug: T236224
Change-Id: I3d2d05f4e50e7b6bba0fe84fae1dde5de5b75492
2019-10-24 12:11:52 -07:00

81 lines
1.5 KiB
Plaintext

@import '../../minerva.less/minerva.variables.less';
@import '../../minerva.less/minerva.mixins.less';
@import 'mediawiki.mixins.animation';
@animationDuration: 0.3s;
// transparent-shield class can be removed when removed from MobileFrontend Skin.js
.transparent-shield,
.mw-mf-page-center__mask {
position: absolute;
top: 0;
left: 0;
right: 0;
opacity: 0;
bottom: 0;
background: @semiTransparent;
z-index: @z-indexAboveContent;
// don't use display: none because it's not animatable
visibility: hidden;
.transition( opacity @transition-duration-base ease-in-out; );
}
.navigation-enabled {
// transparent-shield class can be removed when removed from MobileFrontend Skin.js
.transparent-shield,
.mw-mf-page-center__mask {
visibility: visible;
opacity: 0.5;
}
}
// Flip the arrow in table of contents when toggled
.toctogglecheckbox:checked ~ .toctitle .mw-ui-icon:last-child {
&:before {
.transform( rotate( -180deg ) );
}
}
// Last modified bar styles
.last-modified-bar {
&.active {
background-color: @lastModifiedBarActiveBackgroundColor;
color: #fff;
a {
color: #fff;
}
}
}
// Used by last modified and Main Menu items
.truncated-text {
.truncated-text();
}
@-webkit-keyframes fadeInImage {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeInImage {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
// When the image has loaded transition background color and image opacity
// for a fade-in effect
img.image-lazy-loaded {
.animation( fadeInImage @animationDuration ease-in );
}