2023-04-03 20:44:15 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2020-04-18 04:13:01 +00:00
|
|
|
@import '../mmv.variables.less';
|
2023-05-10 01:33:44 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2020-04-18 04:13:01 +00:00
|
|
|
@import '../mmv.mixins.less';
|
2014-02-18 15:25:56 +00:00
|
|
|
|
2024-06-12 22:59:08 +00:00
|
|
|
// Common to all buttons
|
|
|
|
// We override the codex background and borders to be their forced darkmode variant
|
|
|
|
// We use transparency on the background and on the icon color
|
|
|
|
.cdx-button.mw-mmv-button {
|
|
|
|
background-color: @buttons-background-color-faded;
|
2014-02-04 23:44:36 +00:00
|
|
|
position: fixed;
|
|
|
|
z-index: 1003;
|
2024-06-12 22:59:08 +00:00
|
|
|
// Cancel out default outline
|
|
|
|
border-width: 0;
|
|
|
|
outline: 0;
|
|
|
|
transition-property: background-color, opacity, border-width, border-color, box-shadow, transform;
|
2014-02-04 23:44:36 +00:00
|
|
|
|
2024-06-12 22:59:08 +00:00
|
|
|
&.mw-mmv-dialog-open, /* A button that has opened a dialog */
|
|
|
|
&:active,
|
2014-02-04 23:44:36 +00:00
|
|
|
&:hover {
|
2024-06-12 22:59:08 +00:00
|
|
|
background-color: @buttons-background-color;
|
2014-02-04 23:44:36 +00:00
|
|
|
}
|
2014-02-18 15:25:56 +00:00
|
|
|
|
2024-06-12 22:59:08 +00:00
|
|
|
&:focus {
|
|
|
|
background-color: @buttons-background-color;
|
|
|
|
border-width: 1px;
|
|
|
|
}
|
2014-02-04 23:44:36 +00:00
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
// Default transparency of the icon
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2014-02-18 08:25:48 +00:00
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
&.mw-mmv-dialog-open,
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
.mw-mmv-icon {
|
|
|
|
transition: opacity 0.1s ease-in;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2024-06-12 22:59:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// when the cursor is hidden, the buttons are hidden as well
|
|
|
|
.user-inactive & {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale( 0 );
|
2014-02-18 08:25:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-12 22:59:08 +00:00
|
|
|
// Positioning of buttons
|
2014-09-16 20:33:05 +00:00
|
|
|
.mw-mmv-download-button,
|
2014-09-12 18:05:13 +00:00
|
|
|
.mw-mmv-reuse-button,
|
2014-07-23 23:00:37 +00:00
|
|
|
.mw-mmv-options-button,
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-close,
|
2014-05-15 20:24:40 +00:00
|
|
|
.mw-mmv-fullscreen {
|
2024-06-12 22:59:08 +00:00
|
|
|
right: @buttons-offset-edge;
|
2014-02-04 23:44:36 +00:00
|
|
|
left: auto;
|
2024-06-12 22:59:08 +00:00
|
|
|
min-width: @buttons-size;
|
|
|
|
min-height: @buttons-size;
|
2014-02-04 23:44:36 +00:00
|
|
|
}
|
|
|
|
|
2024-06-12 22:59:08 +00:00
|
|
|
// Vertical positioning of left/right button
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-next-image,
|
|
|
|
.mw-mmv-prev-image {
|
2014-05-15 20:24:40 +00:00
|
|
|
&.disabled {
|
|
|
|
display: none;
|
|
|
|
cursor: none;
|
|
|
|
}
|
2024-06-12 22:59:08 +00:00
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
mask-size: @buttons-icon-size-large;
|
|
|
|
}
|
2014-02-04 23:44:36 +00:00
|
|
|
}
|
|
|
|
|
2024-06-12 22:59:08 +00:00
|
|
|
// Per button positioning and providing icons
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-close {
|
2024-06-12 22:59:08 +00:00
|
|
|
top: @buttons-offset-edge;
|
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-close, @param-fill-color: @color-inverted-fixed );
|
|
|
|
}
|
2014-02-04 23:44:36 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-fullscreen {
|
2024-06-12 22:59:08 +00:00
|
|
|
top: ( @buttons-offset-edge + ( @buttons-offset-each ) );
|
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-full-screen, @param-fill-color: @color-inverted-fixed );
|
2024-07-11 15:44:51 +00:00
|
|
|
|
|
|
|
.jq-fullscreened & {
|
|
|
|
.cdx-mixin-css-icon( @cdx-icon-exit-fullscreen, @param-fill-color: @color-inverted-fixed );
|
|
|
|
}
|
2024-06-12 22:59:08 +00:00
|
|
|
}
|
2014-02-10 09:04:50 +00:00
|
|
|
}
|
|
|
|
|
2014-07-23 23:00:37 +00:00
|
|
|
.mw-mmv-options-button {
|
2024-06-12 22:59:08 +00:00
|
|
|
top: ( @buttons-offset-edge + ( 2 * @buttons-offset-each ) );
|
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-settings, @param-fill-color: @color-inverted-fixed );
|
|
|
|
}
|
2014-07-23 23:00:37 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-next-image {
|
2024-05-04 15:35:11 +00:00
|
|
|
right: @size-icon-medium;
|
2014-02-04 23:44:36 +00:00
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-next, @param-fill-color: @color-inverted-fixed, @param-size-icon: @size-icon-medium );
|
2014-02-04 23:44:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-prev-image {
|
2024-05-04 15:35:11 +00:00
|
|
|
left: @size-icon-medium;
|
2014-02-04 23:44:36 +00:00
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-previous, @param-fill-color: @color-inverted-fixed, @param-size-icon: @size-icon-medium );
|
2014-02-04 23:44:36 +00:00
|
|
|
}
|
2014-02-19 23:48:32 +00:00
|
|
|
}
|
2014-09-12 18:05:13 +00:00
|
|
|
|
|
|
|
.mw-mmv-reuse-button {
|
2024-06-12 22:59:08 +00:00
|
|
|
bottom: @buttons-offset-edge + @metadatabar-above-fold-height;
|
|
|
|
|
|
|
|
.jq-fullscreened & {
|
|
|
|
bottom: @buttons-offset-edge + @progress-bar-height;
|
|
|
|
}
|
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-share, @param-fill-color: @color-inverted-fixed );
|
|
|
|
}
|
2014-09-12 18:05:13 +00:00
|
|
|
}
|
2014-09-16 20:33:05 +00:00
|
|
|
|
|
|
|
.mw-mmv-download-button {
|
2024-06-12 22:59:08 +00:00
|
|
|
bottom: @buttons-offset-edge + @metadatabar-above-fold-height + @buttons-offset-each;
|
|
|
|
|
|
|
|
.jq-fullscreened & {
|
|
|
|
bottom: @buttons-offset-edge + @progress-bar-height + @buttons-offset-each;
|
|
|
|
}
|
|
|
|
|
2024-07-11 15:44:51 +00:00
|
|
|
.mw-mmv-icon {
|
2024-06-12 22:59:08 +00:00
|
|
|
.cdx-mixin-css-icon( @cdx-icon-download, @param-fill-color: @color-inverted-fixed );
|
|
|
|
}
|
2014-09-16 20:33:05 +00:00
|
|
|
}
|