Remove useless .opacity mixin

Change-Id: Icff7c01aba4a647d23bae1925b725bddc555c762
This commit is contained in:
Ed Sanders 2019-07-29 17:56:43 +01:00
parent 0cda0f8706
commit f4d6c9f37e
4 changed files with 9 additions and 11 deletions

View file

@ -87,19 +87,21 @@
}
.jq-fullscreened {
.mw-mmv-image-wrapper, // make the image occupy the whole screen
.mw-mmv-post-image { // make sure the panel fits in the screen and does not cause scrollbars to appear
// make the image occupy the whole screen
// make sure the panel fits in the screen and does not cause scrollbars to appear
.mw-mmv-image-wrapper,
.mw-mmv-post-image {
bottom: 0;
}
.mw-mmv-post-image {
position: fixed;
min-height: 0;
.opacity( 0 );
opacity: 0;
transition: opacity 0.25s;
&:hover {
.opacity( 1 );
opacity: 1;
}
}
}

View file

@ -8,10 +8,6 @@
user-select: none;
}
.opacity( @value ) {
opacity: @value;
}
// from http://stackoverflow.com/a/12178019/323407
.fade-out-vertical( @backgroundColor: white ) {
@invisible: fadeout( @backgroundColor, 100% );

View file

@ -55,7 +55,7 @@
&.blurred {
filter: blur( 3px );
-webkit-filter: blur( 3px );
.opacity( 0.8 );
opacity: 0.8;
}
/* Whitelist file types that are potentially transparent.

View file

@ -12,14 +12,14 @@
position: fixed;
background-color: transparent;
background-repeat: no-repeat;
.opacity( 0.8 );
opacity: 0.8;
border: 0;
z-index: 1003;
&.mw-mmv-dialog-open,
&:hover {
text-decoration: none;
.opacity( 1 );
opacity: 1;
}
.unselectable;