72 lines
1.3 KiB
SCSS
72 lines
1.3 KiB
SCSS
@import 'variables';
|
|
|
|
.glitch.glitch__status__content__gallery__player {
|
|
display: block;
|
|
padding: (1.5em * 1.35) 0; // Creates black bars at the bottom/top
|
|
width: 100%;
|
|
height: calc(100% - (1.5em * 1.35 * 2));
|
|
cursor: zoom-in;
|
|
|
|
.player\\box {
|
|
display: block;
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
& > img,
|
|
& > video {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
width: auto;
|
|
max-width: 100%;
|
|
height: auto;
|
|
max-height: 100%;
|
|
|
|
@supports (object-fit: cover) {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
}
|
|
|
|
.player\\button {
|
|
position: absolute;
|
|
margin: .35em;
|
|
border-radius: .35em;
|
|
padding: .1625em;
|
|
height: 1em; // 1 + 2*.35 + 2*.1625 = 1.5*1.35
|
|
color: $primary-text-color;
|
|
background: $base-overlay-background;
|
|
font-size: 1em;
|
|
line-height: 1;
|
|
opacity: .7;
|
|
|
|
&.player\\play-pause {
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
&.player\\mute {
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
&._letterbox {
|
|
.player\\box {
|
|
& > img,
|
|
& > video {
|
|
width: auto;
|
|
height: auto;
|
|
object-fit: fill;
|
|
}
|
|
}
|
|
}
|
|
}
|