2018-01-13 23:18:50 +01:00
|
|
|
.video-error-cover {
|
|
|
|
align-items: center;
|
|
|
|
background: $base-overlay-background;
|
|
|
|
color: $primary-text-color;
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
margin-top: 8px;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-spoiler {
|
|
|
|
background: $base-overlay-background;
|
2018-05-05 17:58:46 +02:00
|
|
|
color: $darker-text-color;
|
2018-01-13 23:18:50 +01:00
|
|
|
border: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2018-05-05 17:58:46 +02:00
|
|
|
color: lighten($darker-text-color, 8%);
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.status__content > & {
|
|
|
|
margin-top: 15px; // Add margin when used bare for NSFW video player
|
|
|
|
}
|
|
|
|
@include fullwidth-gallery;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-spoiler__warning {
|
|
|
|
display: block;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-spoiler__trigger {
|
|
|
|
display: block;
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2023-05-02 14:47:04 +02:00
|
|
|
.media-gallery__item__badges {
|
2018-01-13 23:18:50 +01:00
|
|
|
position: absolute;
|
|
|
|
bottom: 6px;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 6px;
|
2023-05-02 14:47:04 +02:00
|
|
|
display: flex;
|
|
|
|
gap: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-gallery__gifv__label {
|
|
|
|
display: block;
|
|
|
|
color: $white;
|
|
|
|
background: rgba($black, 0.65);
|
2018-01-13 23:18:50 +01:00
|
|
|
padding: 2px 6px;
|
2023-05-02 14:47:04 +02:00
|
|
|
border-radius: 4px;
|
2018-01-13 23:18:50 +01:00
|
|
|
font-size: 11px;
|
2023-05-02 14:47:04 +02:00
|
|
|
font-weight: 700;
|
2018-01-13 23:18:50 +01:00
|
|
|
z-index: 1;
|
|
|
|
pointer-events: none;
|
2019-05-02 08:34:32 +02:00
|
|
|
line-height: 18px;
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.media-gallery {
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-top: 8px;
|
|
|
|
overflow: hidden;
|
2018-09-03 20:46:00 +02:00
|
|
|
border-radius: 4px;
|
2018-01-13 23:18:50 +01:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2020-06-23 17:24:29 +02:00
|
|
|
min-height: 64px;
|
2023-05-02 14:47:04 +02:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 50% 50%;
|
|
|
|
grid-template-rows: 50% 50%;
|
|
|
|
gap: 2px;
|
2018-01-13 23:18:50 +01:00
|
|
|
|
|
|
|
@include fullwidth-gallery;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-gallery__item {
|
2021-03-06 13:12:35 +01:00
|
|
|
border: 0;
|
2018-01-13 23:18:50 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2018-09-03 20:46:00 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
|
2023-05-02 14:47:04 +02:00
|
|
|
&--tall {
|
|
|
|
grid-row: span 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--wide {
|
|
|
|
grid-column: span 2;
|
2018-09-03 20:46:00 +02:00
|
|
|
}
|
2018-01-13 23:18:50 +01:00
|
|
|
|
|
|
|
&.standalone {
|
|
|
|
.media-gallery__item-gifv-thumbnail {
|
|
|
|
transform: none;
|
2018-03-16 19:54:00 +01:00
|
|
|
top: 0;
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
}
|
2018-09-03 20:46:00 +02:00
|
|
|
|
2023-05-02 14:47:04 +02:00
|
|
|
.full-width & {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2018-09-03 20:46:00 +02:00
|
|
|
&.letterbox {
|
|
|
|
background: $base-shadow-color;
|
|
|
|
}
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.media-gallery__item-thumbnail {
|
|
|
|
cursor: zoom-in;
|
|
|
|
display: block;
|
|
|
|
text-decoration: none;
|
2018-09-03 20:46:00 +02:00
|
|
|
color: $secondary-text-color;
|
2019-04-27 03:24:09 +02:00
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2018-01-13 23:18:50 +01:00
|
|
|
|
|
|
|
&,
|
|
|
|
img {
|
2018-01-14 01:25:35 +01:00
|
|
|
height: 100%;
|
2018-01-13 23:18:50 +01:00
|
|
|
width: 100%;
|
|
|
|
object-fit: contain;
|
|
|
|
|
|
|
|
&:not(.letterbox) {
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-27 03:24:09 +02:00
|
|
|
.media-gallery__preview {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
2019-04-27 03:24:09 +02:00
|
|
|
z-index: 0;
|
|
|
|
background: $base-overlay-background;
|
|
|
|
|
|
|
|
&--hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-13 23:18:50 +01:00
|
|
|
.media-gallery__gifv {
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-gallery__item-gifv-thumbnail {
|
|
|
|
cursor: zoom-in;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
object-fit: contain;
|
2019-04-16 18:45:04 +02:00
|
|
|
user-select: none;
|
2018-01-13 23:18:50 +01:00
|
|
|
|
|
|
|
&:not(.letterbox) {
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-gallery__item-thumbnail-label {
|
|
|
|
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
|
|
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2019-10-03 03:34:58 +02:00
|
|
|
.video-modal__container {
|
2018-04-08 23:15:25 +02:00
|
|
|
max-width: 100vw;
|
|
|
|
max-height: 100vh;
|
2019-10-03 03:34:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.audio-modal__container {
|
|
|
|
width: 50vw;
|
2018-04-14 21:47:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.media-modal {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
2018-04-09 00:42:26 +02:00
|
|
|
|
2020-11-27 03:24:11 +01:00
|
|
|
&__close,
|
|
|
|
&__zoom-button {
|
|
|
|
color: rgba($white, 0.7);
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
color: $white;
|
|
|
|
background-color: rgba($white, 0.15);
|
|
|
|
}
|
2018-04-09 00:42:26 +02:00
|
|
|
|
2020-11-27 03:24:11 +01:00
|
|
|
&:focus {
|
|
|
|
background-color: rgba($white, 0.3);
|
2018-04-09 00:42:26 +02:00
|
|
|
}
|
|
|
|
}
|
2018-04-08 23:15:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.media-modal__closer {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
|
|
|
inset-inline-end: 0;
|
2018-04-08 23:15:25 +02:00
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-modal__navigation {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
|
|
|
inset-inline-end: 0;
|
2018-04-08 23:15:25 +02:00
|
|
|
bottom: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
transition: opacity 0.3s linear;
|
|
|
|
will-change: opacity;
|
|
|
|
|
|
|
|
* {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.media-modal__navigation--hidden {
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
* {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.media-modal__nav {
|
2020-11-27 03:24:11 +01:00
|
|
|
background: transparent;
|
2018-04-08 23:15:25 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
border: 0;
|
2020-11-27 03:24:11 +01:00
|
|
|
color: rgba($primary-text-color, 0.7);
|
2018-04-08 23:15:25 +02:00
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 24px;
|
|
|
|
height: 20vmax;
|
|
|
|
margin: auto 0;
|
|
|
|
padding: 30px 15px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2020-11-27 03:24:11 +01:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
color: $primary-text-color;
|
|
|
|
}
|
2018-04-08 23:15:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.media-modal__nav--left {
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
2018-04-08 23:15:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.media-modal__nav--right {
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-end: 0;
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
2020-11-27 03:24:11 +01:00
|
|
|
.media-modal__overlay {
|
|
|
|
max-width: 600px;
|
2019-05-03 16:16:30 +02:00
|
|
|
position: absolute;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
|
|
|
inset-inline-end: 0;
|
2020-11-27 03:24:11 +01:00
|
|
|
bottom: 0;
|
|
|
|
margin: 0 auto;
|
2019-05-03 16:16:30 +02:00
|
|
|
|
2020-11-27 03:24:11 +01:00
|
|
|
.picture-in-picture__footer {
|
|
|
|
border-radius: 0;
|
|
|
|
background: transparent;
|
|
|
|
padding: 20px 0;
|
|
|
|
|
|
|
|
.icon-button {
|
|
|
|
color: $white;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
color: $white;
|
|
|
|
background-color: rgba($white, 0.15);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: rgba($white, 0.3);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: $highlight-text-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background: rgba($highlight-text-color, 0.15);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: rgba($highlight-text-color, 0.3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.star-icon.active {
|
|
|
|
color: $gold-star;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background: rgba($gold-star, 0.15);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: rgba($gold-star, 0.3);
|
|
|
|
}
|
|
|
|
}
|
2021-06-11 17:52:22 +02:00
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
color: $white;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
2019-05-03 16:16:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-27 03:24:11 +01:00
|
|
|
.media-modal__pagination {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin-bottom: 20px;
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
2020-11-27 03:24:11 +01:00
|
|
|
.media-modal__page-dot {
|
|
|
|
flex: 0 0 auto;
|
2018-01-13 23:48:18 +01:00
|
|
|
background-color: $white;
|
2020-11-27 03:24:11 +01:00
|
|
|
opacity: 0.4;
|
|
|
|
height: 6px;
|
|
|
|
width: 6px;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin: 0 4px;
|
2018-01-13 23:48:18 +01:00
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
font-size: 0;
|
2023-02-13 04:57:03 +01:00
|
|
|
transition: opacity 0.2s ease-in-out;
|
2018-01-13 23:18:50 +01:00
|
|
|
|
2020-11-27 03:24:11 +01:00
|
|
|
&.active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-01-13 23:48:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.media-modal__close {
|
|
|
|
position: absolute;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-end: 8px;
|
2018-04-08 23:15:25 +02:00
|
|
|
top: 8px;
|
2018-01-13 23:48:18 +01:00
|
|
|
z-index: 100;
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
2018-11-27 15:21:57 +01:00
|
|
|
.detailed,
|
|
|
|
.fullscreen {
|
|
|
|
.video-player__volume__current,
|
|
|
|
.video-player__volume::before {
|
|
|
|
bottom: 27px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-player__volume__handle {
|
|
|
|
bottom: 23px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-23 22:38:02 +02:00
|
|
|
.audio-player {
|
2020-06-21 02:27:19 +02:00
|
|
|
overflow: hidden;
|
2019-08-23 22:38:02 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
position: relative;
|
|
|
|
background: darken($ui-base-color, 8%);
|
|
|
|
border-radius: 4px;
|
|
|
|
padding-bottom: 44px;
|
2023-04-30 06:42:22 +02:00
|
|
|
width: 100%;
|
2019-08-23 22:38:02 +02:00
|
|
|
|
|
|
|
&.editable {
|
|
|
|
border-radius: 0;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2022-08-13 15:39:05 +02:00
|
|
|
&.inactive {
|
|
|
|
audio,
|
|
|
|
.video-player__controls {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-23 12:20:14 +02:00
|
|
|
.video-player__volume::before,
|
|
|
|
.video-player__seek::before {
|
2020-07-05 18:28:25 +02:00
|
|
|
background: currentColor;
|
|
|
|
opacity: 0.15;
|
2020-06-23 12:20:14 +02:00
|
|
|
}
|
|
|
|
|
2020-07-05 18:28:25 +02:00
|
|
|
.video-player__seek__buffer {
|
|
|
|
background: currentColor;
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
2020-06-21 02:27:19 +02:00
|
|
|
|
2021-08-11 17:48:55 +02:00
|
|
|
.video-player__buttons button,
|
|
|
|
.video-player__buttons a {
|
2020-07-05 18:28:25 +02:00
|
|
|
color: currentColor;
|
|
|
|
opacity: 0.75;
|
2020-06-21 02:27:19 +02:00
|
|
|
|
2020-07-05 18:28:25 +02:00
|
|
|
&:active,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: currentColor;
|
|
|
|
opacity: 1;
|
2020-06-21 02:27:19 +02:00
|
|
|
}
|
2020-07-05 18:28:25 +02:00
|
|
|
}
|
2020-06-21 02:27:19 +02:00
|
|
|
|
2020-07-05 18:28:25 +02:00
|
|
|
.video-player__time-sep,
|
|
|
|
.video-player__time-total,
|
|
|
|
.video-player__time-current {
|
|
|
|
color: currentColor;
|
2019-08-23 22:38:02 +02:00
|
|
|
}
|
|
|
|
|
2020-06-21 02:27:19 +02:00
|
|
|
.video-player__seek::before,
|
|
|
|
.video-player__seek__buffer,
|
|
|
|
.video-player__seek__progress {
|
|
|
|
top: 0;
|
2019-08-23 22:38:02 +02:00
|
|
|
}
|
|
|
|
|
2020-06-21 02:27:19 +02:00
|
|
|
.video-player__seek__handle {
|
|
|
|
top: -4px;
|
2019-08-23 22:38:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.video-player__controls {
|
|
|
|
padding-top: 10px;
|
2020-06-21 02:27:19 +02:00
|
|
|
background: transparent;
|
2019-08-23 22:38:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-13 23:18:50 +01:00
|
|
|
.video-player {
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
background: $base-shadow-color;
|
|
|
|
max-width: 100%;
|
2019-08-14 04:07:32 +02:00
|
|
|
border-radius: 4px;
|
2019-08-23 22:38:02 +02:00
|
|
|
box-sizing: border-box;
|
2020-06-23 12:20:14 +02:00
|
|
|
color: $white;
|
2019-08-14 04:07:32 +02:00
|
|
|
|
|
|
|
&.editable {
|
|
|
|
border-radius: 0;
|
2019-08-23 22:38:02 +02:00
|
|
|
height: 100% !important;
|
2019-08-14 04:07:32 +02:00
|
|
|
}
|
2018-01-13 23:18:50 +01:00
|
|
|
|
2018-05-17 17:10:17 +02:00
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2018-01-13 23:18:50 +01:00
|
|
|
.detailed-status & {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include fullwidth-gallery;
|
|
|
|
|
|
|
|
video {
|
2020-06-20 13:30:27 +02:00
|
|
|
display: block;
|
2018-04-09 00:42:26 +02:00
|
|
|
max-width: 100vw;
|
|
|
|
max-height: 80vh;
|
2018-01-13 23:18:50 +01:00
|
|
|
z-index: 1;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fullscreen {
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
video {
|
|
|
|
max-width: 100% !important;
|
|
|
|
max-height: 100% !important;
|
2018-04-23 20:38:08 +02:00
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
2019-10-24 22:47:37 +02:00
|
|
|
outline: 0;
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.inline {
|
|
|
|
video {
|
2018-04-14 17:14:04 +02:00
|
|
|
object-fit: contain;
|
2018-01-13 23:18:50 +01:00
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__controls {
|
|
|
|
position: absolute;
|
2023-04-28 13:12:35 +02:00
|
|
|
direction: ltr;
|
2018-01-13 23:18:50 +01:00
|
|
|
z-index: 2;
|
|
|
|
bottom: 0;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
|
|
|
inset-inline-end: 0;
|
2018-01-13 23:18:50 +01:00
|
|
|
box-sizing: border-box;
|
2023-02-13 04:57:03 +01:00
|
|
|
background: linear-gradient(
|
|
|
|
0deg,
|
|
|
|
rgba($base-shadow-color, 0.85) 0,
|
|
|
|
rgba($base-shadow-color, 0.45) 60%,
|
|
|
|
transparent
|
|
|
|
);
|
2018-01-13 23:18:50 +01:00
|
|
|
padding: 0 15px;
|
|
|
|
opacity: 0;
|
2023-02-13 04:57:03 +01:00
|
|
|
transition: opacity 0.1s ease;
|
2018-01-13 23:18:50 +01:00
|
|
|
|
|
|
|
&.active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.inactive {
|
|
|
|
video,
|
|
|
|
.video-player__controls {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__spoiler {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
2018-01-13 23:18:50 +01:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 4;
|
|
|
|
border: 0;
|
|
|
|
background: $base-shadow-color;
|
2018-05-05 17:58:46 +02:00
|
|
|
color: $darker-text-color;
|
2018-01-13 23:18:50 +01:00
|
|
|
transition: none;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
display: block;
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2018-05-05 17:58:46 +02:00
|
|
|
color: lighten($darker-text-color, 7%);
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
display: block;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__subtitle {
|
|
|
|
display: block;
|
|
|
|
font-size: 11px;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__buttons-bar {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2020-10-27 02:58:47 +01:00
|
|
|
padding-bottom: 8px;
|
|
|
|
margin: 0 -5px;
|
2019-10-25 11:48:20 +02:00
|
|
|
|
|
|
|
.video-player__download__icon {
|
|
|
|
color: inherit;
|
2019-10-28 11:35:42 +01:00
|
|
|
|
|
|
|
.fa,
|
|
|
|
&:active .fa,
|
|
|
|
&:hover .fa,
|
|
|
|
&:focus .fa {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2019-10-25 11:48:20 +02:00
|
|
|
}
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&__buttons {
|
2020-06-23 12:20:14 +02:00
|
|
|
display: flex;
|
|
|
|
flex: 0 1 auto;
|
|
|
|
min-width: 30px;
|
|
|
|
align-items: center;
|
2018-01-13 23:18:50 +01:00
|
|
|
font-size: 16px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2020-10-27 02:58:47 +01:00
|
|
|
.player-button {
|
|
|
|
display: inline-block;
|
|
|
|
outline: 0;
|
2020-06-23 12:20:14 +02:00
|
|
|
flex: 0 0 auto;
|
2018-01-13 23:18:50 +01:00
|
|
|
background: transparent;
|
2020-10-27 02:58:47 +01:00
|
|
|
padding: 5px;
|
2018-01-13 23:18:50 +01:00
|
|
|
font-size: 16px;
|
|
|
|
border: 0;
|
|
|
|
color: rgba($white, 0.75);
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-23 12:20:14 +02:00
|
|
|
&__time {
|
|
|
|
display: inline;
|
|
|
|
flex: 0 1 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-10-27 02:58:47 +01:00
|
|
|
margin: 0 5px;
|
2020-06-23 12:20:14 +02:00
|
|
|
}
|
|
|
|
|
2018-01-13 23:18:50 +01:00
|
|
|
&__time-sep,
|
|
|
|
&__time-total,
|
|
|
|
&__time-current {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__time-current {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__time-sep {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__time-sep,
|
|
|
|
&__time-total {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
|
2018-11-27 15:21:57 +01:00
|
|
|
&__volume {
|
2020-06-23 12:20:14 +02:00
|
|
|
flex: 0 0 auto;
|
|
|
|
display: inline-flex;
|
2018-11-27 15:21:57 +01:00
|
|
|
cursor: pointer;
|
|
|
|
height: 24px;
|
2020-06-23 12:20:14 +02:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.no-reduce-motion & {
|
|
|
|
transition: all 100ms linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
overflow: visible;
|
|
|
|
width: 50px;
|
2023-04-16 17:45:18 +02:00
|
|
|
margin-inline-end: 16px;
|
2020-06-23 12:20:14 +02:00
|
|
|
}
|
2018-11-27 15:21:57 +01:00
|
|
|
|
|
|
|
&::before {
|
2023-02-13 04:57:03 +01:00
|
|
|
content: '';
|
2018-11-27 15:21:57 +01:00
|
|
|
width: 50px;
|
|
|
|
background: rgba($white, 0.35);
|
|
|
|
border-radius: 4px;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
height: 4px;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
2020-06-23 12:20:14 +02:00
|
|
|
top: 50%;
|
|
|
|
transform: translate(0, -50%);
|
2018-11-27 15:21:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&__current {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
height: 4px;
|
|
|
|
border-radius: 4px;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
2020-06-23 12:20:14 +02:00
|
|
|
top: 50%;
|
|
|
|
transform: translate(0, -50%);
|
2018-11-27 15:21:57 +01:00
|
|
|
background: lighten($ui-highlight-color, 8%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__handle {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 3;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
2020-06-23 12:20:14 +02:00
|
|
|
top: 50%;
|
2023-04-16 17:45:18 +02:00
|
|
|
inset-inline-start: 0;
|
|
|
|
margin-inline-start: -6px;
|
2020-06-23 12:20:14 +02:00
|
|
|
transform: translate(0, -50%);
|
2018-11-27 15:21:57 +01:00
|
|
|
background: lighten($ui-highlight-color, 8%);
|
|
|
|
box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
|
2020-06-24 10:25:32 +02:00
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
.no-reduce-motion & {
|
|
|
|
transition: opacity 100ms linear;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active &__handle {
|
|
|
|
opacity: 1;
|
2018-11-27 15:21:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-03 16:16:30 +02:00
|
|
|
&__link {
|
|
|
|
padding: 2px 10px;
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 500;
|
|
|
|
color: $white;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-13 23:18:50 +01:00
|
|
|
&__seek {
|
|
|
|
cursor: pointer;
|
|
|
|
height: 24px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
2023-02-13 04:57:03 +01:00
|
|
|
content: '';
|
2018-01-13 23:18:50 +01:00
|
|
|
width: 100%;
|
|
|
|
background: rgba($white, 0.35);
|
|
|
|
border-radius: 4px;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
height: 4px;
|
2020-10-27 02:58:47 +01:00
|
|
|
top: 14px;
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&__progress,
|
|
|
|
&__buffer {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
height: 4px;
|
|
|
|
border-radius: 4px;
|
2020-10-27 02:58:47 +01:00
|
|
|
top: 14px;
|
2018-01-13 23:18:50 +01:00
|
|
|
background: lighten($ui-highlight-color, 8%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__buffer {
|
|
|
|
background: rgba($white, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__handle {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 3;
|
|
|
|
opacity: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
2020-10-27 02:58:47 +01:00
|
|
|
top: 10px;
|
2023-04-16 17:45:18 +02:00
|
|
|
margin-inline-start: -6px;
|
2018-01-13 23:18:50 +01:00
|
|
|
background: lighten($ui-highlight-color, 8%);
|
|
|
|
box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
|
2020-06-24 10:25:32 +02:00
|
|
|
|
|
|
|
.no-reduce-motion & {
|
2023-02-13 04:57:03 +01:00
|
|
|
transition: opacity 0.1s ease;
|
2020-06-24 10:25:32 +02:00
|
|
|
}
|
2018-01-13 23:18:50 +01:00
|
|
|
|
|
|
|
&.active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.video-player__seek__handle {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-30 00:14:36 +02:00
|
|
|
&.detailed,
|
|
|
|
&.fullscreen {
|
|
|
|
.video-player__buttons {
|
2020-10-27 02:58:47 +01:00
|
|
|
.player-button {
|
2019-08-30 00:14:36 +02:00
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
2018-01-13 23:18:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-23 15:49:33 +02:00
|
|
|
|
|
|
|
.gifv {
|
|
|
|
video {
|
|
|
|
max-width: 100vw;
|
|
|
|
max-height: 80vh;
|
|
|
|
}
|
|
|
|
}
|