mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-25 00:25:47 +00:00
f3fd143c8a
Looks drastic at first, but grows on you. I based this on an extreme, the firefox inner scrollbar. Which is huge when hovered. I kind of wish the close button was a bit bigger, though. Change-Id: I2f47280c4e7c4bff299149de24741e3381f0b5e9
113 lines
1.5 KiB
CSS
113 lines
1.5 KiB
CSS
.mlb-staging-area {
|
|
position: absolute;
|
|
top: -999999px;
|
|
left: -999999px;
|
|
}
|
|
|
|
.mlb-overlay {
|
|
position: fixed;
|
|
top: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
z-index: 1000;
|
|
background-color: rgba(0,0,0,0.9);
|
|
}
|
|
|
|
.mlb-wrapper {
|
|
position: fixed;
|
|
top: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
z-index: 1001;
|
|
}
|
|
|
|
.mlb-main {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.mlb-image-wrapper {
|
|
position: absolute;
|
|
top: 50px;
|
|
left: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
}
|
|
|
|
.mlb-image-inner-wrapper {
|
|
display: table;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.mlb-image {
|
|
display: table-cell;
|
|
width: 100%;
|
|
height: 100%;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mlb-image img {
|
|
display: block;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.mlb-pre-image {
|
|
position: absolute;
|
|
top: 0px;
|
|
height: 32px;
|
|
width: 100%;
|
|
}
|
|
|
|
.mlb-post-image {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
height: 32px;
|
|
width: 100%;
|
|
}
|
|
|
|
.mlb-controls {
|
|
height: 32px;
|
|
width: 100%;
|
|
border-bottom: 1px solid #7d7c81;
|
|
}
|
|
|
|
.mlb-close,
|
|
.mlb-fullscreen {
|
|
position: absolute;
|
|
margin-top: 14px;
|
|
margin-right: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mlb-close {
|
|
background-image: url("../img/close.svg");
|
|
border-right: 1px solid #7d7c81;
|
|
height: 23px;
|
|
width: 23px;
|
|
}
|
|
|
|
.mlb-fullscreen {
|
|
background-image: url("../img/fullscreen.svg");
|
|
border-left: 1px solid #7d7c81;
|
|
width: 21px;
|
|
height: 22px;
|
|
}
|
|
|
|
.mlb-fullscreen-div .mlb-fullscreen {
|
|
width: 28px;
|
|
height: 29px;
|
|
}
|
|
|
|
.mlb-main.mlb-fullscreened {
|
|
background-color: black;
|
|
}
|
|
|
|
.mlb-fullscreen-div .mlb-fullscreen {
|
|
background-image: url("../img/defullscreen.svg");
|
|
}
|