2019-08-13 07:35:13 +02:00
|
|
|
.content__viewer {
|
|
|
|
@extend .card;
|
|
|
|
position: absolute;
|
2020-08-11 22:32:03 +02:00
|
|
|
top: var(--spacing-s);
|
2022-02-11 19:50:55 +01:00
|
|
|
border-radius: var(--border-radius);
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
|
|
|
|
2022-02-01 21:30:57 +01:00
|
|
|
.content__viewer--mobile {
|
|
|
|
border-radius: 0;
|
|
|
|
position: fixed;
|
|
|
|
top: var(--header-height-mobile);
|
|
|
|
}
|
|
|
|
|
2021-11-08 12:51:03 +01:00
|
|
|
.content__viewer--disable-click {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2019-11-14 18:23:42 +01:00
|
|
|
.content__viewer--inline {
|
|
|
|
max-height: var(--inline-player-max-height);
|
2020-10-20 19:10:02 +02:00
|
|
|
border: none;
|
2022-02-01 21:30:57 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
max-height: var(--mobile-player-max-height);
|
|
|
|
}
|
2022-04-04 14:13:15 +02:00
|
|
|
|
|
|
|
video {
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
max-height: var(--mobile-player-max-height);
|
|
|
|
}
|
|
|
|
}
|
2019-11-14 18:23:42 +01:00
|
|
|
}
|
|
|
|
|
2021-02-17 03:05:23 +01:00
|
|
|
.content__viewer--secondary {
|
|
|
|
.vjs-button--theater-mode {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-13 07:35:13 +02:00
|
|
|
.content__viewer--floating {
|
|
|
|
position: fixed;
|
|
|
|
margin-bottom: 0;
|
|
|
|
height: calc(var(--floating-viewer-height) + var(--floating-viewer-info-height));
|
|
|
|
overflow: hidden;
|
2022-02-23 22:13:22 +01:00
|
|
|
top: 0;
|
2021-01-31 15:05:05 +01:00
|
|
|
z-index: 9999;
|
2019-08-13 07:35:13 +02:00
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
border: 2px solid black;
|
|
|
|
// file-viewer__overlay-secondary autoplay-countdown__counter
|
|
|
|
|
|
|
|
.file-render--video {
|
|
|
|
border-radius: unset;
|
|
|
|
}
|
|
|
|
|
2019-08-13 07:35:13 +02:00
|
|
|
&:hover {
|
2022-02-11 19:50:55 +01:00
|
|
|
.video-js--tap-to-unmute {
|
|
|
|
max-width: calc(var(--floating-viewer-width) - (var(--spacing-xs) * 3) - 42px);
|
|
|
|
}
|
2022-02-23 22:13:22 +01:00
|
|
|
|
2020-07-22 22:56:58 +02:00
|
|
|
.content__floating-close {
|
2019-08-13 07:35:13 +02:00
|
|
|
visibility: visible;
|
2020-12-22 04:40:44 +01:00
|
|
|
z-index: 9999;
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
|
|
|
}
|
2022-03-15 19:03:47 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
height: 50px;
|
|
|
|
width: 80px;
|
|
|
|
top: 3px;
|
|
|
|
left: calc(50% - 40px);
|
|
|
|
transform: unset !important;
|
|
|
|
border: unset;
|
|
|
|
|
2022-03-16 21:27:46 +01:00
|
|
|
.vjs-current-time {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2022-03-15 19:03:47 +01:00
|
|
|
.content__wrapper--floating {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-03-16 21:27:46 +01:00
|
|
|
|
2022-03-15 19:03:47 +01:00
|
|
|
.content__floating-close {
|
|
|
|
visibility: visible !important;
|
|
|
|
display: inline;
|
|
|
|
position: fixed;
|
|
|
|
top: 12px;
|
|
|
|
left: calc(50% + 80px - 32px);
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
background-color: rgba(var(--color-primary-static), 0.6) !important;
|
|
|
|
border-radius: 50%;
|
|
|
|
.button__content {
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
// width:20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-16 21:27:46 +01:00
|
|
|
|
2022-03-15 19:03:47 +01:00
|
|
|
.autoplay-countdown {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-control-bar {
|
|
|
|
display: inline-block !important;
|
|
|
|
opacity: 1 !important;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background: unset !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-control {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-play-control {
|
|
|
|
transform: unset !important;
|
2022-04-04 13:02:27 +02:00
|
|
|
display: inline-block !important;
|
2022-03-15 19:03:47 +01:00
|
|
|
position: fixed !important;
|
|
|
|
top: 12px !important;
|
|
|
|
left: calc(50% - 80px) !important;
|
|
|
|
height: 32px !important;
|
|
|
|
width: 32px !important;
|
|
|
|
background-color: rgba(var(--color-primary-static), 0.6) !important;
|
|
|
|
border-radius: 50% !important;
|
|
|
|
opacity: 1 !important;
|
|
|
|
pointer-events: unset !important;
|
2022-03-16 21:27:46 +01:00
|
|
|
padding: 15px !important;
|
|
|
|
|
|
|
|
.vjs-icon-placeholder {
|
2022-04-04 13:02:27 +02:00
|
|
|
&::before {
|
2022-06-01 18:25:37 +02:00
|
|
|
font-size: 2.2em !important;
|
2022-04-04 13:02:27 +02:00
|
|
|
line-height: 32px !important;
|
|
|
|
background-size: 60%;
|
|
|
|
}
|
2022-03-16 21:27:46 +01:00
|
|
|
}
|
|
|
|
|
2022-03-15 19:03:47 +01:00
|
|
|
span {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 100;
|
|
|
|
&::before {
|
|
|
|
line-height: 32px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.vjs-control-text {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-play-control.vjs-playing {
|
|
|
|
.vjs-icon-placeholder::before {
|
|
|
|
content: '' !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-play-control.vjs-paused {
|
|
|
|
.vjs-icon-placeholder::before {
|
|
|
|
content: '' !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-play-control.vjs-ended {
|
|
|
|
.vjs-icon-placeholder::before {
|
|
|
|
content: '' !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-31 11:14:59 +02:00
|
|
|
.video-js {
|
|
|
|
.vjs-progress-control.vjs-control {
|
|
|
|
top: 38px;
|
|
|
|
margin: unset !important;
|
|
|
|
max-width: 100%;
|
|
|
|
.vjs-slider {
|
|
|
|
margin: 0 !important;
|
|
|
|
div,
|
|
|
|
span {
|
|
|
|
height: 2px !important;
|
|
|
|
}
|
2022-03-15 19:03:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content__info {
|
|
|
|
margin-top: -50px;
|
|
|
|
opacity: 0;
|
|
|
|
.button--uri-indicator {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2022-04-05 18:36:33 +02:00
|
|
|
|
|
|
|
.vjs-time-control {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2022-03-15 19:03:47 +01:00
|
|
|
}
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
|
|
|
|
2021-01-08 16:21:27 +01:00
|
|
|
.content__viewer--theater-mode {
|
|
|
|
top: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
2022-02-11 19:50:55 +01:00
|
|
|
right: 0;
|
|
|
|
// Next line is fixing the player width
|
|
|
|
width: unset !important;
|
|
|
|
.file-render--video {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2021-01-08 16:21:27 +01:00
|
|
|
}
|
|
|
|
|
2019-08-13 07:35:13 +02:00
|
|
|
.content__wrapper {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-06-11 08:06:29 +02:00
|
|
|
background-color: black;
|
2022-02-11 19:50:55 +01:00
|
|
|
border-radius: var(--border-radius);
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.content__wrapper--floating {
|
|
|
|
height: var(--floating-viewer-height);
|
|
|
|
width: var(--floating-viewer-width);
|
2021-01-08 16:21:27 +01:00
|
|
|
|
|
|
|
.vjs-button--theater-mode {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
.video-js--tap-to-unmute {
|
|
|
|
max-width: calc(var(--floating-viewer-width) - (var(--spacing-xs) * 2));
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
min-width: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content__info {
|
|
|
|
.claim-preview__title {
|
|
|
|
.button {
|
|
|
|
width: 100%;
|
|
|
|
.button__label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.content__actions {
|
|
|
|
visibility: hidden;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.button {
|
2020-01-08 21:00:50 +01:00
|
|
|
@extend .button--close;
|
|
|
|
height: 1.5rem;
|
|
|
|
top: 0;
|
2019-08-13 07:35:13 +02:00
|
|
|
position: relative;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-left: var(--spacing-s);
|
2020-01-08 21:00:50 +01:00
|
|
|
|
|
|
|
svg {
|
|
|
|
color: var(--color-white);
|
|
|
|
}
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-22 22:56:58 +02:00
|
|
|
.content__floating-close {
|
2020-01-08 21:00:50 +01:00
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
2022-02-11 19:50:55 +01:00
|
|
|
top: 8px;
|
|
|
|
right: 8px;
|
|
|
|
width: 42px;
|
|
|
|
height: 42px;
|
|
|
|
padding: 10px;
|
|
|
|
background-color: rgba(var(--color-primary-dynamic), 0.95) !important;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(var(--color-primary-dynamic), 1) !important;
|
|
|
|
}
|
2020-07-22 22:56:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.content__floating-link {
|
|
|
|
color: var(--color-text);
|
2020-01-08 21:00:50 +01:00
|
|
|
}
|
|
|
|
|
2020-07-22 22:56:58 +02:00
|
|
|
.content__floating-close {
|
2020-04-14 01:48:11 +02:00
|
|
|
z-index: 3; /*must be one higher than .file-viewer__overlay */
|
2020-01-08 21:00:50 +01:00
|
|
|
}
|
|
|
|
|
2019-08-13 07:35:13 +02:00
|
|
|
.content__info {
|
|
|
|
cursor: grab;
|
2022-02-11 19:50:55 +01:00
|
|
|
padding: var(--spacing-s);
|
2019-08-13 07:35:13 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
white-space: nowrap;
|
2022-02-11 19:50:55 +01:00
|
|
|
background-color: var(--color-header-background-transparent);
|
|
|
|
-webkit-backdrop-filter: blur(4px);
|
|
|
|
backdrop-filter: blur(4px);
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
2018-10-17 19:14:24 +02:00
|
|
|
|
2019-08-13 07:35:13 +02:00
|
|
|
.content__cover {
|
|
|
|
@include thumbnail;
|
|
|
|
position: relative;
|
2018-10-17 19:14:24 +02:00
|
|
|
display: flex;
|
2019-01-09 03:54:39 +01:00
|
|
|
align-items: center;
|
2022-02-11 19:50:55 +01:00
|
|
|
border-radius: var(--border-radius);
|
2018-10-17 19:14:24 +02:00
|
|
|
justify-content: center;
|
2019-01-08 00:29:40 +01:00
|
|
|
background-position: 50% 50%;
|
|
|
|
background-repeat: no-repeat;
|
2019-01-24 19:09:27 +01:00
|
|
|
background-size: 100%;
|
2019-11-14 18:23:42 +01:00
|
|
|
max-height: var(--inline-player-max-height);
|
2019-01-09 03:54:39 +01:00
|
|
|
margin: auto;
|
2018-10-17 19:14:24 +02:00
|
|
|
|
|
|
|
&:not(.card__media--nsfw) {
|
2019-01-08 00:29:40 +01:00
|
|
|
background-color: #000; // solid black to blend nicely when the video starts (if it doesn't take the full width)
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-05-26 08:18:47 +02:00
|
|
|
|
|
|
|
&:-webkit-full-screen {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-06-08 22:09:51 +02:00
|
|
|
}
|
2022-02-01 21:30:57 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
2021-03-11 18:08:11 +01:00
|
|
|
.content__cover--text {
|
|
|
|
margin: 10rem 0;
|
|
|
|
}
|
|
|
|
|
2021-01-08 16:21:27 +01:00
|
|
|
.content__cover--theater-mode {
|
|
|
|
@extend .content__cover;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2020-04-01 20:43:50 +02:00
|
|
|
.content__cover--none {
|
2019-09-02 15:24:00 +02:00
|
|
|
@include thumbnail;
|
|
|
|
cursor: default;
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100%;
|
|
|
|
margin: auto;
|
|
|
|
|
|
|
|
&:-webkit-full-screen {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-01 20:43:50 +02:00
|
|
|
.content__cover--disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
.nag {
|
|
|
|
/* boo fire Jeremy */
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.content__loading {
|
2019-08-14 05:56:11 +02:00
|
|
|
height: 100%;
|
2018-03-26 23:32:43 +02:00
|
|
|
display: flex;
|
2019-08-02 08:28:14 +02:00
|
|
|
align-items: center;
|
2018-03-26 23:32:43 +02:00
|
|
|
flex-direction: column;
|
2018-04-30 17:27:20 +02:00
|
|
|
justify-content: center;
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: 0 var(--spacing-l);
|
2019-01-14 19:40:06 +01:00
|
|
|
background-color: #000;
|
2020-04-30 20:25:51 +02:00
|
|
|
|
|
|
|
&.content__loading--document {
|
2021-03-11 18:08:11 +01:00
|
|
|
background-color: var(--color-background);
|
|
|
|
padding: calc(var(--spacing-xl) * 5) 0;
|
2020-04-30 20:25:51 +02:00
|
|
|
|
|
|
|
.content__loading-text {
|
|
|
|
color: var(--color-text);
|
|
|
|
}
|
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.content__loading-text {
|
2019-12-11 15:24:21 +01:00
|
|
|
color: var(--color-white);
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
2021-04-08 17:39:33 +02:00
|
|
|
|
|
|
|
.content__non-clickable {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|