2014-04-04 09:32:30 +00:00
|
|
|
@import "mmv.globals";
|
2014-04-01 01:41:57 +00:00
|
|
|
@import "mmv.mixins";
|
2014-02-18 15:25:56 +00:00
|
|
|
|
2014-04-04 09:32:30 +00:00
|
|
|
@metadata-background: rgb(251, 251, 251);
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-wrapper {
|
2013-08-07 08:59:08 +00:00
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
right: 0px;
|
|
|
|
z-index: 1001;
|
2014-04-04 09:32:30 +00:00
|
|
|
position: absolute;
|
|
|
|
bottom: auto;
|
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 {
|
|
|
|
background-color: black;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image-wrapper {
|
2014-04-04 09:32:30 +00:00
|
|
|
position: fixed;
|
2014-06-17 22:23:18 +00:00
|
|
|
top: 0px;
|
|
|
|
bottom: @metadatabar-above-fold-height;
|
2013-11-13 00:43:46 +00:00
|
|
|
left: 0px;
|
|
|
|
right: 0px;
|
2014-09-19 18:34:18 +00:00
|
|
|
overflow-y: auto;
|
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;
|
|
|
|
top: 0px;
|
|
|
|
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;
|
|
|
|
color: #333333;
|
|
|
|
background-color: @metadata-background;
|
2014-06-17 22:23:18 +00:00
|
|
|
min-height: (@metadatabar-above-fold-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-06-17 22:23:18 +00:00
|
|
|
height: @metadatabar-above-fold-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
|
|
|
|
// Javascript to get the "default" height.
|
|
|
|
min-height: @metadatabar-above-fold-height;
|
2014-06-17 22:23:18 +00:00
|
|
|
position: relative;
|
2014-04-04 09:32:30 +00:00
|
|
|
border-bottom: 1px solid #cccccc;
|
2014-07-03 19:12:59 +00:00
|
|
|
|
|
|
|
.jq-fullscreened & {
|
|
|
|
height: @metadatabar-above-fold-fullscreen-height;
|
|
|
|
min-height: @metadatabar-above-fold-fullscreen-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
cursor: none;
|
2013-08-07 08:59:08 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-main.jq-fullscreened {
|
2013-11-13 00:43:46 +00:00
|
|
|
background-color: black;
|
2014-04-04 09:32:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.jq-fullscreened {
|
2014-06-17 22:23:18 +00:00
|
|
|
.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
|
2014-04-04 09:32:30 +00:00
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2014-06-17 21:11:33 +00:00
|
|
|
.opacity(0);
|
2014-04-04 09:32:30 +00:00
|
|
|
transition: opacity 0.25s;
|
|
|
|
|
|
|
|
&:hover {
|
2014-06-17 21:11:33 +00:00
|
|
|
.opacity(1);
|
2014-04-04 09:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-12 18:05:13 +00:00
|
|
|
}
|