mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 11:40:43 +00:00
f6a44f43fe
Makes for more modular code. Change-Id: Ic71d7421aea548e5b4a9c4841cd4af49a3d385a5
265 lines
4.5 KiB
CSS
265 lines
4.5 KiB
CSS
.mw-revslider-container {
|
|
/* This will flip with CSSJanus in case */
|
|
/* the interface is in RTL */
|
|
direction: ltr;
|
|
position: relative;
|
|
}
|
|
|
|
.mw-revslider-slider-wrapper {
|
|
padding: 10px;
|
|
}
|
|
|
|
.mw-revslider-toggle-button {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.mw-revslider-toggle-button .oo-ui-buttonElement-button {
|
|
width: 100%;
|
|
}
|
|
|
|
.mw-revslider-toggle-button .oo-ui-labelElement-label {
|
|
line-height: 1.875em;
|
|
}
|
|
|
|
.mw-revslider-toggle-button .oo-ui-iconElement-icon {
|
|
float: right;
|
|
}
|
|
|
|
.mw-revslider-revision {
|
|
position: relative;
|
|
margin-top: 70px;
|
|
background-color: #e3e3e3;
|
|
border-color: #e3e3e3;
|
|
}
|
|
|
|
.mw-revslider-revision:hover {
|
|
background-color: #ccc;
|
|
border-color: #ccc;
|
|
transition: all ease 0.2s;
|
|
-webkit-transition: all ease 0.2s;
|
|
-moz-transition: all ease 0.2s;
|
|
-o-transition: all ease 0.2s;
|
|
}
|
|
|
|
.mw-revslider-revision-up {
|
|
border-bottom-width: 2px;
|
|
border-bottom-style: solid;
|
|
}
|
|
|
|
.mw-revslider-revision-down {
|
|
border-top-width: 2px;
|
|
border-top-style: solid;
|
|
}
|
|
|
|
.mw-revslider-revision-old {
|
|
background-color: #fee6a8;
|
|
border-color: #e8bd4f;
|
|
}
|
|
|
|
.mw-revslider-revision-old:hover {
|
|
background-color: #fdc44b;
|
|
border-color: #dda000;
|
|
}
|
|
|
|
.mw-revslider-revision-new {
|
|
background-color: #c3e2ff;
|
|
border-color: #1e6db8;
|
|
}
|
|
|
|
.mw-revslider-revision-new:hover {
|
|
background-color: #45a6ff;
|
|
border-color: #065cad;
|
|
}
|
|
|
|
.mw-revslider-revision-intermediate {
|
|
background-color: #bcbcbc;
|
|
border-color: #989898;
|
|
}
|
|
|
|
.mw-revslider-revision-intermediate:hover {
|
|
background-color: #a6a6a6;
|
|
border-color: #828282;
|
|
}
|
|
|
|
.mw-revslider-revision-wrapper {
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
height: 140px;
|
|
}
|
|
|
|
.mw-revslider-revision-wrapper:hover,
|
|
.mw-revslider-revision-wrapper-hovered {
|
|
background-color: #f2f2f2;
|
|
transition: all ease 0.2s;
|
|
-webkit-transition: all ease 0.2s;
|
|
-moz-transition: all ease 0.2s;
|
|
-o-transition: all ease 0.2s;
|
|
}
|
|
|
|
.mw-revslider-revision-border-box {
|
|
height: 100%;
|
|
width: 100%;
|
|
border-left: solid 1px #fff;
|
|
}
|
|
|
|
.mw-revslider-tooltip {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.mw-revslider-revision-tooltip .mw-revslider-change-positive {
|
|
color: #006400;
|
|
}
|
|
|
|
.mw-revslider-revision-tooltip .mw-revslider-change-negative {
|
|
color: #8b0000;
|
|
}
|
|
|
|
.mw-revslider-revision-tooltip .mw-revslider-change-none {
|
|
color: #aaa;
|
|
}
|
|
|
|
.mw-revslider-arrow-tooltip,
|
|
.mw-revslider-help-tooltip {
|
|
text-align: center;
|
|
}
|
|
|
|
.mw-revslider-revisions {
|
|
height: 140px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mw-revslider-revisions-container {
|
|
width: 90%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mw-revslider-revisions-container,
|
|
.mw-revslider-arrow {
|
|
float: left;
|
|
}
|
|
|
|
.mw-revslider-arrow {
|
|
width: 22px;
|
|
height: 142px;
|
|
}
|
|
|
|
.mw-revslider-arrow .oo-ui-buttonElement-button {
|
|
height: 140px;
|
|
width: 20px;
|
|
padding: 0;
|
|
}
|
|
|
|
.mw-revslider-arrow .oo-ui-iconElement-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
min-width: inherit;
|
|
min-height: inherit;
|
|
}
|
|
|
|
.mw-revslider-arrow.oo-ui-iconElement > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon {
|
|
left: 0;
|
|
top: 61px;
|
|
}
|
|
|
|
.mw-revslider-arrow-backwards {
|
|
margin-right: 30px;
|
|
}
|
|
|
|
.mw-revslider-arrow-forwards {
|
|
margin-left: 30px;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.mw-revslider-revision-slider {
|
|
position: relative;
|
|
margin: auto;
|
|
}
|
|
|
|
.mw-revslider-pointer-container {
|
|
position: absolute;
|
|
clear: both;
|
|
height: 1px;
|
|
top: 57px;
|
|
margin: auto;
|
|
z-index: 10;
|
|
}
|
|
|
|
.mw-revslider-pointer-lower {
|
|
top: 15px;
|
|
}
|
|
|
|
.mw-revslider-pointer {
|
|
position: absolute !important; /* stylelint-disable-line declaration-no-important */
|
|
z-index: 11;
|
|
width: 18px;
|
|
height: 13px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.mw-revslider-pointer-cursor {
|
|
cursor: ew-resize;
|
|
}
|
|
|
|
.mw-revslider-revisions-older {
|
|
float: left;
|
|
}
|
|
|
|
.mw-revslider-revisions-newer {
|
|
float: right;
|
|
}
|
|
|
|
.mw-revslider-darkness {
|
|
background-color: #fff;
|
|
filter: alpha( opacity=50 ); /* IE 5-7 */
|
|
-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)'; /* IE 8 */
|
|
-khtml-opacity: 0.5; /* Safari 1.x */
|
|
-moz-opacity: 0.5; /* Netscape */
|
|
opacity: 0.5; /* Good browsers */
|
|
z-index: 200000;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.mw-revslider-help-dialog-image-landscape {
|
|
height: 160px;
|
|
width: 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
.mw-revslider-help-dialog-image-portrait {
|
|
height: 180px;
|
|
width: 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
.mw-revslider-column-image {
|
|
width: 50%;
|
|
float: left;
|
|
}
|
|
|
|
.mw-revslider-column-text {
|
|
width: 50%;
|
|
float: right;
|
|
}
|
|
|
|
.mw-revslider-help-dialog-text {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.mw-revslider-show-help {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
margin-right: 0;
|
|
}
|