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';
|
|
|
|
@import 'mmv.mixins.less';
|
2014-02-18 15:25:56 +00:00
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-wrapper {
|
2016-07-18 14:24:02 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2013-08-07 08:59:08 +00:00
|
|
|
z-index: 1001;
|
2014-04-04 09:32:30 +00:00
|
|
|
position: absolute;
|
|
|
|
bottom: auto;
|
2014-10-08 21:49:38 +00:00
|
|
|
|
|
|
|
.skin-monobook & {
|
|
|
|
font-size: medium;
|
|
|
|
}
|
2013-08-07 08:59:08 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-main {
|
2013-11-13 00:43:46 +00:00
|
|
|
width: 100%;
|
2014-04-04 09:32:30 +00:00
|
|
|
height: auto;
|
2013-08-07 08:59:08 +00:00
|
|
|
position: relative;
|
2014-04-04 09:32:30 +00:00
|
|
|
|
|
|
|
.jq-fullscreened {
|
2016-07-18 14:24:02 +00:00
|
|
|
background-color: #000;
|
2014-04-04 09:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image-wrapper {
|
2014-04-04 09:32:30 +00:00
|
|
|
position: fixed;
|
2016-07-18 14:24:02 +00:00
|
|
|
top: 0;
|
2014-06-17 22:23:18 +00:00
|
|
|
bottom: @metadatabar-above-fold-height;
|
2016-07-18 14:24:02 +00:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2015-01-20 06:41:31 +00:00
|
|
|
overflow-y: hidden;
|
2013-11-13 00:43:46 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image-inner-wrapper {
|
2013-11-13 00:43:46 +00:00
|
|
|
display: table;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-pre-image {
|
2013-11-13 00:43:46 +00:00
|
|
|
position: absolute;
|
2016-07-18 14:24:02 +00:00
|
|
|
top: 0;
|
2013-11-13 00:43:46 +00:00
|
|
|
height: 32px;
|
|
|
|
width: 100%;
|
2014-04-04 09:32:30 +00:00
|
|
|
z-index: 1;
|
2013-08-07 08:59:08 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-post-image {
|
2013-11-13 00:43:46 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2014-04-04 09:32:30 +00:00
|
|
|
bottom: auto;
|
|
|
|
height: auto;
|
2020-04-18 04:22:52 +00:00
|
|
|
color: @color-base;
|
2014-10-29 19:50:53 +00:00
|
|
|
background-color: @panel-above-fold-background-color;
|
2016-07-18 14:24:02 +00:00
|
|
|
min-height: ( @metadatabar-above-fold-inner-height + 1 );
|
2014-09-16 20:33:05 +00:00
|
|
|
z-index: 1005;
|
2013-11-13 00:43:46 +00:00
|
|
|
}
|
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
// above-the-fold part of the metadata panel
|
|
|
|
.mw-mmv-above-fold {
|
2013-11-13 00:43:46 +00:00
|
|
|
width: 100%;
|
2014-10-27 16:17:49 +00:00
|
|
|
height: @metadatabar-above-fold-inner-height;
|
2014-07-03 19:12:59 +00:00
|
|
|
// min-height is used when the height is changed to auto to display long texts, to make sure the layout
|
|
|
|
// is not messed up wheen the text is short and does not fill the available place. It is also used by
|
2017-03-02 23:45:42 +00:00
|
|
|
// JavaScript to get the "default" height.
|
2014-10-27 16:17:49 +00:00
|
|
|
min-height: @metadatabar-above-fold-inner-height;
|
2014-06-17 22:23:18 +00:00
|
|
|
position: relative;
|
2014-10-27 16:17:49 +00:00
|
|
|
// make sure there is no content in the part which is overlapped by the revealed part of the below-fold content
|
2017-03-02 23:45:42 +00:00
|
|
|
// also used in JavaScript for the height calculations
|
2014-10-27 16:17:49 +00:00
|
|
|
padding-bottom: @metadatabar-below-fold-pushup-height;
|
2014-07-03 19:12:59 +00:00
|
|
|
|
|
|
|
.mw-mmv-untruncated & {
|
|
|
|
height: auto;
|
|
|
|
}
|
2014-04-04 09:32:30 +00:00
|
|
|
}
|
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
// Fullscreen styles
|
2014-04-04 09:32:30 +00:00
|
|
|
|
|
|
|
.cursor-hidden {
|
2022-05-19 22:58:01 +00:00
|
|
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
2014-04-04 09:32:30 +00:00
|
|
|
cursor: none;
|
2013-08-07 08:59:08 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-main.jq-fullscreened {
|
2016-07-18 14:24:02 +00:00
|
|
|
background-color: #000;
|
2014-04-04 09:32:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.jq-fullscreened {
|
2019-07-29 16:56:43 +00:00
|
|
|
// 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 {
|
2016-07-18 14:24:02 +00:00
|
|
|
bottom: 0;
|
2014-04-04 09:32:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-post-image {
|
2014-07-23 07:32:56 +00:00
|
|
|
position: fixed;
|
2014-06-17 22:23:18 +00:00
|
|
|
min-height: 0;
|
2019-07-29 16:56:43 +00:00
|
|
|
opacity: 0;
|
2014-04-04 09:32:30 +00:00
|
|
|
transition: opacity 0.25s;
|
|
|
|
|
|
|
|
&:hover {
|
2019-07-29 16:56:43 +00:00
|
|
|
opacity: 1;
|
2014-04-04 09:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-12 18:05:13 +00:00
|
|
|
}
|