mediawiki-extensions-Multim.../resources/mmv/mmv.lightboxinterface.less
Gergő Tisza 5e3808a14e Make the metadata panel opening affordance more obvious
- rearrange DOM structure of above-fold part of the metadata panel:
  - rename .mw-mmv-controls to .mw-mmv-above-fold
  - the above-fold part is a single positioned div now, with height
    explitcitly set
  - less LESS gymnastics, above-fold height is a single variable
  - add paddings to the p elements instead of the containers
  - make all title elements align to baseline (except the logo which
    would look horrible)
- discard some CSS which was superfluous
  - overspecified sizes/positions
  - some top/bottoms for staticly positioned elements
- get rid of the .mw-mmv-drag-affordance div, since a full-width bar
  wouldn't really make sense on the bottom of the above-fold section
- flip the chevron and place it to the bottom of the above-fold part;
  add colors etc. per spec
- fix stripe button horizontal spacing

Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/706
Change-Id: Ic37b4150288055c3fae8d22919ed7b1249db1f09
2014-06-19 21:14:56 +00:00

95 lines
1.5 KiB
Plaintext

@import "mmv.globals";
@import "mmv.mixins";
@metadata-background: rgb(251, 251, 251);
.mw-mmv-wrapper {
top: 0px;
left: 0px;
right: 0px;
z-index: 1001;
position: absolute;
bottom: auto;
}
.mw-mmv-main {
width: 100%;
height: auto;
position: relative;
.jq-fullscreened {
background-color: black;
}
}
.mw-mmv-image-wrapper {
position: fixed;
top: 0px;
bottom: @metadatabar-above-fold-height;
left: 0px;
right: 0px;
}
.mw-mmv-image-inner-wrapper {
display: table;
width: 100%;
height: 100%;
}
.mw-mmv-pre-image {
position: absolute;
top: 0px;
height: 32px;
width: 100%;
z-index: 1;
}
.mw-mmv-post-image {
position: absolute;
width: 100%;
bottom: auto;
height: auto;
color: #333333;
background-color: @metadata-background;
min-height: (@metadatabar-above-fold-height + 1);
z-index: 2;
}
// above-the-fold part of the metadata panel
.mw-mmv-above-fold {
width: 100%;
height: @metadatabar-above-fold-height;
position: relative;
border-bottom: 1px solid #cccccc;
}
// Fullscreen styles
.cursor-hidden {
cursor: none;
}
.mw-mmv-main.jq-fullscreened {
background-color: black;
}
.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
bottom: 0px;
}
.mw-mmv-above-fold {
height: @metadatabar-above-fold-fullscreen-height;
}
.mw-mmv-post-image {
min-height: 0;
.opacity(0);
transition: opacity 0.25s;
&:hover {
.opacity(1);
}
}
}