2017-06-09 13:45:59 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki Initialization DiffPage styles.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2017-06-09 13:45:59 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2024-03-01 15:38:05 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2017-10-27 10:41:02 +00:00
|
|
|
|
2018-02-20 13:47:41 +00:00
|
|
|
.client-nojs .ve-init-mw-diffPage-diffMode {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-06-09 13:45:59 +00:00
|
|
|
.ve-init-mw-diffPage-loading {
|
|
|
|
clear: both;
|
2018-03-04 15:01:26 +00:00
|
|
|
margin: 2em auto;
|
2017-06-09 13:45:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-init-mw-diffPage-revSlider-visual {
|
2017-10-27 10:41:02 +00:00
|
|
|
|
|
|
|
@new: #39b79c;
|
|
|
|
@old: #d73c34;
|
|
|
|
|
2018-12-03 18:20:02 +00:00
|
|
|
.mw-revslider-pointer-line {
|
2018-05-10 15:38:50 +00:00
|
|
|
.mw-revslider-upper-color {
|
|
|
|
border-color: @new;
|
|
|
|
}
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2018-05-10 15:38:50 +00:00
|
|
|
.mw-revslider-lower-color {
|
|
|
|
border-color: @old;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-revslider-revision-new .mw-revslider-revision-border-box {
|
|
|
|
border-bottom-color: @new;
|
|
|
|
}
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2018-05-10 15:38:50 +00:00
|
|
|
.mw-revslider-revision-old .mw-revslider-revision-border-box {
|
|
|
|
border-bottom-color: @old;
|
|
|
|
}
|
|
|
|
|
2017-10-27 10:41:02 +00:00
|
|
|
.mw-revslider-revision-hovered {
|
2018-12-03 18:20:02 +00:00
|
|
|
&.mw-revslider-revision-wrapper-up .mw-revslider-pointer-ghost {
|
2017-10-27 10:41:02 +00:00
|
|
|
background-color: lighten( @new, 30% );
|
|
|
|
border-color: @new;
|
|
|
|
}
|
|
|
|
|
2018-12-03 18:20:02 +00:00
|
|
|
&.mw-revslider-revision-wrapper-down .mw-revslider-pointer-ghost {
|
2017-10-27 10:41:02 +00:00
|
|
|
background-color: lighten( @old, 30% );
|
|
|
|
border-color: @old;
|
|
|
|
}
|
2017-06-09 13:45:59 +00:00
|
|
|
}
|
|
|
|
|
2017-10-27 10:41:02 +00:00
|
|
|
.mw-revslider-revision-wrapper-hovered .mw-revslider-revision-hovered {
|
|
|
|
&.mw-revslider-revision-wrapper-up {
|
|
|
|
background-color: fade( @new, 30% );
|
|
|
|
}
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2017-10-27 10:41:02 +00:00
|
|
|
&.mw-revslider-revision-wrapper-down {
|
|
|
|
background-color: fade( @old, 30% );
|
|
|
|
}
|
2017-06-09 13:45:59 +00:00
|
|
|
}
|
2017-10-27 10:41:02 +00:00
|
|
|
|
|
|
|
.mw-revslider-pointer {
|
|
|
|
&.mw-revslider-pointer-newer {
|
|
|
|
border-color: @new;
|
|
|
|
.vertical-gradient( lighten( @new, 30% ), @new );
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.vertical-gradient( lighten( @new, 40% ), @new );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-revslider-pointer-older {
|
|
|
|
border-color: @old;
|
|
|
|
.vertical-gradient( lighten( @old, 30% ), @old );
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.vertical-gradient( lighten( @old, 40% ), @old );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-revslider-pointer-container-newer {
|
|
|
|
.mw-revslider-slider-line {
|
|
|
|
border-bottom-color: fade( @new, 50% );
|
|
|
|
}
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2017-10-27 10:41:02 +00:00
|
|
|
&:hover .mw-revslider-slider-line {
|
|
|
|
border-bottom-color: fade( @new, 80% );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-revslider-pointer-container-older {
|
|
|
|
.mw-revslider-slider-line {
|
|
|
|
border-top-color: fade( @old, 50% );
|
|
|
|
}
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2017-10-27 10:41:02 +00:00
|
|
|
&:hover .mw-revslider-slider-line {
|
|
|
|
border-top-color: fade( @old, 80% );
|
|
|
|
}
|
|
|
|
}
|
2017-06-09 13:45:59 +00:00
|
|
|
}
|