2014-05-05 21:44:27 +00:00
|
|
|
@import "../mmv.globals";
|
|
|
|
@import "../mmv.mixins";
|
|
|
|
@import "mediawiki.mixins.animation";
|
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
@drag-icon-width: 64px;
|
2014-09-26 17:52:13 +00:00
|
|
|
@drag-icon-height: 18px;
|
2014-06-17 22:23:18 +00:00
|
|
|
@drag-icon-color: #e6e6e6;
|
|
|
|
@drag-icon-invite-color: #347bff;
|
|
|
|
|
2014-05-05 21:44:27 +00:00
|
|
|
.mw-mmv-post-image {
|
|
|
|
.animation( mw-mmv-appear-animation 0.5s ease 0s 1 normal forwards );
|
2014-09-23 15:37:41 +00:00
|
|
|
transition: box-shadow 0.25s;
|
|
|
|
|
2014-05-05 21:44:27 +00:00
|
|
|
&.invite {
|
2014-06-30 12:35:33 +00:00
|
|
|
.animation( mw-mmv-invite-animation 0.9s ease 0.2s 1 normal forwards );
|
2014-05-05 21:44:27 +00:00
|
|
|
}
|
2014-06-17 21:57:44 +00:00
|
|
|
|
|
|
|
.jq-fullscreened & {
|
|
|
|
.animation(none);
|
|
|
|
}
|
2014-09-23 15:37:41 +00:00
|
|
|
|
|
|
|
&.panel-open {
|
|
|
|
box-shadow: 0 -4px 0px rgba(0,0,0,0.2);
|
|
|
|
}
|
2014-05-05 21:44:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-appear-animation() {
|
|
|
|
0% {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes mw-mmv-appear-animation {
|
|
|
|
.mw-mmv-appear-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes mw-mmv-appear-animation {
|
|
|
|
.mw-mmv-appear-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-o-keyframes mw-mmv-appear-animation {
|
|
|
|
.mw-mmv-appear-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mw-mmv-appear-animation {
|
|
|
|
.mw-mmv-appear-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-invite-animation() {
|
|
|
|
0% {
|
|
|
|
margin-top: 0px;
|
|
|
|
}
|
2014-06-30 12:35:33 +00:00
|
|
|
30% {
|
|
|
|
margin-top: -15px;
|
2014-05-05 21:44:27 +00:00
|
|
|
}
|
2014-06-30 12:35:33 +00:00
|
|
|
85% {
|
2014-05-05 21:44:27 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes mw-mmv-invite-animation {
|
|
|
|
.mw-mmv-invite-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes mw-mmv-invite-animation {
|
|
|
|
.mw-mmv-invite-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-o-keyframes mw-mmv-invite-animation {
|
|
|
|
.mw-mmv-invite-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mw-mmv-invite-animation {
|
|
|
|
.mw-mmv-invite-animation;
|
|
|
|
}
|
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
.mw-mmv-drag-icon {
|
|
|
|
width: @drag-icon-width;
|
|
|
|
height: @drag-icon-height;
|
2014-06-17 21:57:44 +00:00
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
bottom: 0;
|
|
|
|
margin: 0 0 0 -(@drag-icon-width / 2);
|
2014-05-05 21:44:27 +00:00
|
|
|
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(img/drag.svg);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center bottom;
|
2014-06-17 22:23:18 +00:00
|
|
|
background-color: @drag-icon-color;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
z-index: 1; // make sure it is above the text - the icon is visually at the bottom but in the DOM at the top
|
2014-09-26 17:52:13 +00:00
|
|
|
.opacity(0.7);
|
2014-05-05 21:44:27 +00:00
|
|
|
transition: opacity 0.25s;
|
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
&-pointing-down { // use single-class selector - chevron direction is important enough to make it IE6-compatible
|
2014-05-05 21:44:27 +00:00
|
|
|
background-position: center top;
|
|
|
|
.rotate(180deg);
|
2014-06-17 22:23:18 +00:00
|
|
|
|
|
|
|
-webkit-border-bottom-left-radius: 3px;
|
|
|
|
-webkit-border-bottom-right-radius: 3px;
|
|
|
|
-moz-border-radius-bottomleft: 3px;
|
|
|
|
-moz-border-radius-bottomright: 3px;
|
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
|
|
|
|
.mw-mmv-post-image:hover & {
|
|
|
|
.opacity(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-pointing-up {
|
|
|
|
-webkit-border-top-left-radius: 3px;
|
|
|
|
-webkit-border-top-right-radius: 3px;
|
|
|
|
-moz-border-radius-topleft: 3px;
|
|
|
|
-moz-border-radius-topright: 3px;
|
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-top-right-radius: 3px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.opacity(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.panel-open {
|
|
|
|
display: none;
|
2014-05-05 21:44:27 +00:00
|
|
|
}
|
2014-05-17 13:24:36 +00:00
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
&.panel-never-opened {
|
2014-05-17 13:24:36 +00:00
|
|
|
/* @embed */
|
2014-05-15 15:55:40 +00:00
|
|
|
background-image: url(img/drag-active.svg);
|
2014-06-17 22:23:18 +00:00
|
|
|
background-color: @drag-icon-invite-color;
|
|
|
|
.opacity(1);
|
2014-06-30 12:35:33 +00:00
|
|
|
.animation( mw-mmv-appear-chevron-animation 1.4s ease 0s 1 normal forwards );
|
2014-05-15 15:55:40 +00:00
|
|
|
}
|
2014-05-05 21:44:27 +00:00
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
.jq-fullscreened & {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-05-05 21:44:27 +00:00
|
|
|
}
|
2014-06-30 12:35:33 +00:00
|
|
|
|
|
|
|
.mw-mmv-appear-chevron-animation() {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
85% {
|
|
|
|
opacity: 0;
|
|
|
|
bottom: -5px;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes mw-mmv-appear-chevron-animation {
|
|
|
|
.mw-mmv-appear-chevron-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes mw-mmv-appear-chevron-animation {
|
|
|
|
.mw-mmv-appear-chevron-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-o-keyframes mw-mmv-appear-chevron-animation {
|
|
|
|
.mw-mmv-appear-chevron-animation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mw-mmv-appear-chevron-animation {
|
|
|
|
.mw-mmv-appear-chevron-animation;
|
|
|
|
}
|