Debian Codegraph @

extensions/MultimediaViewer/resources/mmv/mmv.lightboxinterface.less

raw
1 @import 'mediawiki.skin.variables.less';
2 @import 'mmv.variables.less';
3 @import 'mmv.mixins.less';
4
5 .mw-mmv-wrapper {
6 top: 0;
7 left: 0;
8 right: 0;
9 z-index: 1001;
10 position: absolute;
11 bottom: auto;
12
13 .skin-monobook & {
14 font-size: medium;
15 }
16 }
17
18 .mw-mmv-main {
19 width: 100%;
20 height: auto;
21 position: relative;
22
23 .jq-fullscreened {
24 background-color: #000;
25 }
26 }
27
28 .mw-mmv-image-wrapper {
29 position: fixed;
30 top: 0;
31 bottom: @metadatabar-above-fold-height;
32 left: 0;
33 right: 0;
34 overflow-y: hidden;
35 }
36
37 .mw-mmv-image-inner-wrapper {
38 display: table;
39 width: 100%;
40 height: 100%;
41 }
42
43 .mw-mmv-pre-image {
44 position: absolute;
45 top: 0;
46 height: 32px;
47 width: 100%;
48 z-index: 1;
49 }
50
51 .mw-mmv-post-image {
52 position: absolute;
53 width: 100%;
54 bottom: auto;
55 height: auto;
56 color: @color-base;
57 background-color: @panel-above-fold-background-color;
58 min-height: ( @metadatabar-above-fold-inner-height + 1 );
59 z-index: 1005;
60 }
61
62 // above-the-fold part of the metadata panel
63 .mw-mmv-above-fold {
64 width: 100%;
65 height: @metadatabar-above-fold-inner-height;
66 // min-height is used when the height is changed to auto to display long texts, to make sure the layout
67 // is not messed up wheen the text is short and does not fill the available place. It is also used by
68 // JavaScript to get the "default" height.
69 min-height: @metadatabar-above-fold-inner-height;
70 position: relative;
71 // make sure there is no content in the part which is overlapped by the revealed part of the below-fold content
72 // also used in JavaScript for the height calculations
73 padding-bottom: @metadatabar-below-fold-pushup-height;
74
75 .mw-mmv-untruncated & {
76 height: auto;
77 }
78 }
79
80 // Fullscreen styles
81
82 .user-inactive {
83 /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
84 cursor: none;
85 }
86
87 .mw-mmv-main.jq-fullscreened {
88 background-color: #000;
89 }
90
91 .jq-fullscreened {
92 // make the image occupy the whole screen
93 // make sure the panel fits in the screen and does not cause scrollbars to appear
94 .mw-mmv-image-wrapper,
95 .mw-mmv-post-image {
96 bottom: 0;
97 }
98
99 .mw-mmv-post-image {
100 position: fixed;
101 min-height: 0;
102 opacity: 0;
103 transition: opacity 0.25s;
104
105 &:hover {
106 opacity: 1;
107 }
108 }
109 }