2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../minerva.less/minerva.mixins.less';
|
2022-05-16 16:55:54 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2018-04-13 17:17:36 +00:00
|
|
|
|
2018-07-05 22:46:53 +00:00
|
|
|
@animationDuration: 0.3s;
|
|
|
|
|
2019-10-04 15:05:37 +00:00
|
|
|
.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;
|
2022-05-16 16:55:54 +00:00
|
|
|
transition: opacity @transition-duration-base ease-in-out;
|
2019-10-04 15:05:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.navigation-enabled {
|
|
|
|
.mw-mf-page-center__mask {
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-03 22:00:27 +00:00
|
|
|
// Flip the arrow in table of contents when toggled
|
2019-08-30 00:02:35 +00:00
|
|
|
.toctogglecheckbox:checked ~ .toctitle .mw-ui-icon:last-child {
|
2023-03-31 19:50:36 +00:00
|
|
|
&::before {
|
2022-05-16 16:55:54 +00:00
|
|
|
transform: rotate( -180deg );
|
2019-08-30 00:02:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-05 22:46:53 +00:00
|
|
|
// Last modified bar styles
|
2018-04-13 17:17:36 +00:00
|
|
|
.last-modified-bar {
|
|
|
|
&.active {
|
2018-07-05 22:40:51 +00:00
|
|
|
background-color: @lastModifiedBarActiveBackgroundColor;
|
2018-04-13 17:17:36 +00:00
|
|
|
color: #fff;
|
2018-07-05 22:46:53 +00:00
|
|
|
|
2021-11-11 13:20:13 +00:00
|
|
|
.last-modified-text-accent,
|
2018-04-13 17:17:36 +00:00
|
|
|
a {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-07-05 22:46:53 +00:00
|
|
|
|
2021-11-03 17:09:33 +00:00
|
|
|
// Used by last modified bar and in MobileFrontend (i.e. MobileSpecialPageFeed.php, ImageCarousel.js)
|
2018-07-05 22:51:27 +00:00
|
|
|
.truncated-text {
|
2020-04-17 22:30:06 +00:00
|
|
|
.text-overflow( @visible: false );
|
2018-07-05 22:51:27 +00:00
|
|
|
}
|
|
|
|
|
2018-07-05 22:46:53 +00:00
|
|
|
@keyframes fadeInImage {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2018-07-05 22:46:53 +00:00
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// When the image has loaded transition background color and image opacity
|
|
|
|
// for a fade-in effect
|
|
|
|
img.image-lazy-loaded {
|
2022-05-16 16:55:54 +00:00
|
|
|
animation: fadeInImage @animationDuration ease-in;
|
2018-07-05 22:46:53 +00:00
|
|
|
}
|