2020-04-01 20:43:50 +02:00
|
|
|
.file-page {
|
2022-02-11 19:50:55 +01:00
|
|
|
.card-stack {
|
|
|
|
.claim-preview {
|
|
|
|
&:hover {
|
|
|
|
.claim-preview__title {
|
|
|
|
color: var(--color-text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.claim-preview__title {
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-link);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-page__recommended {
|
|
|
|
.claim-preview__wrapper {
|
|
|
|
&:hover {
|
|
|
|
.claim-preview__title {
|
|
|
|
color: var(--color-link);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-09 14:21:18 +01:00
|
|
|
.placeholder.claim-preview__wrapper {
|
|
|
|
background-color: unset;
|
|
|
|
.media__thumb {
|
|
|
|
width: var(--file-list-thumbnail-width);
|
|
|
|
}
|
|
|
|
.placeholder__wrapper {
|
|
|
|
.claim-preview__title {
|
|
|
|
width: 95%;
|
|
|
|
}
|
|
|
|
.claim-preview__title_b {
|
|
|
|
display: block;
|
|
|
|
width: 91%;
|
|
|
|
margin-bottom: unset;
|
|
|
|
}
|
|
|
|
.channel-thumbnail {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.media__subtitle {
|
|
|
|
width: 94%;
|
|
|
|
margin-top: unset;
|
|
|
|
}
|
|
|
|
.media__subtitle_b {
|
|
|
|
width: 46%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-02-11 19:50:55 +01:00
|
|
|
}
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.file-page__video-container + .card,
|
2020-04-01 20:43:50 +02:00
|
|
|
.file-render + .card,
|
|
|
|
.content__cover + .card,
|
|
|
|
.card + .file-render,
|
2020-04-14 01:48:11 +02:00
|
|
|
.card + .file-page__video-container,
|
2020-04-01 20:43:50 +02:00
|
|
|
.card + .content__cover {
|
2021-04-23 21:59:48 +02:00
|
|
|
margin-top: var(--spacing-m);
|
2020-04-01 20:43:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.card + .file-render {
|
2021-04-23 21:59:48 +02:00
|
|
|
margin-top: var(--spacing-m);
|
2020-04-01 20:43:50 +02:00
|
|
|
}
|
|
|
|
|
2021-03-12 17:18:09 +01:00
|
|
|
.file-page__md {
|
|
|
|
.file-viewer--document {
|
|
|
|
margin-top: var(--spacing-l);
|
2020-10-05 20:54:51 +02:00
|
|
|
|
2021-06-03 12:14:41 +02:00
|
|
|
.button {
|
|
|
|
display: inline;
|
|
|
|
|
|
|
|
.button__content {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
2021-06-21 20:22:54 +02:00
|
|
|
|
|
|
|
.claim-link {
|
|
|
|
.button {
|
|
|
|
display: block;
|
2021-06-11 08:06:29 +02:00
|
|
|
|
2021-06-21 20:22:54 +02:00
|
|
|
.button__content {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-01 20:43:50 +02:00
|
|
|
}
|
|
|
|
|
2021-03-11 18:08:11 +01:00
|
|
|
.media__actions {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2020-04-01 20:43:50 +02:00
|
|
|
|
2021-03-11 18:08:11 +01:00
|
|
|
.file-page__secondary-content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 0 var(--spacing-m);
|
2020-04-01 20:43:50 +02:00
|
|
|
}
|
|
|
|
}
|
2020-08-10 22:47:39 +02:00
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
// Temporary fix
|
|
|
|
.card__main-actions {
|
|
|
|
.claim-tile__info {
|
|
|
|
display: unset;
|
|
|
|
margin-top: -2px;
|
|
|
|
padding-bottom: 0;
|
|
|
|
.media__subtitle {
|
|
|
|
padding-bottom: 3px;
|
|
|
|
.claim-preview__channel-sub-count {
|
|
|
|
font-size: var(--font-xsmall) !important;
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: var(--font-xxsmall) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-02 22:08:37 +02:00
|
|
|
> * {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2020-08-10 22:47:39 +02:00
|
|
|
@media (max-width: $breakpoint-medium) {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2022-02-01 21:28:18 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
.claim-preview--inline {
|
|
|
|
align-items: flex-start;
|
|
|
|
line-height: 1.3;
|
|
|
|
|
|
|
|
.button--no-style {
|
|
|
|
align-self: center;
|
|
|
|
|
|
|
|
.channel-thumbnail {
|
|
|
|
margin: var(--spacing-xxs);
|
|
|
|
margin-top: 0px;
|
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
|
|
|
|
|
|
|
.ff-container {
|
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
|
|
|
overflow: hidden;
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.claim-preview-info {
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
.claim-preview__title {
|
|
|
|
margin: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__subtitle {
|
|
|
|
height: unset;
|
|
|
|
display: flex;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.claim-preview__channel-sub-count {
|
|
|
|
font-size: var(--font-xxsmall);
|
|
|
|
}
|
|
|
|
|
|
|
|
.claim-preview-metadata {
|
|
|
|
flex: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: var(--font-xxsmall);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.claim-preview__actions {
|
|
|
|
margin: 0;
|
2022-02-11 19:50:55 +01:00
|
|
|
align-self: flex-start;
|
2022-02-01 21:28:18 +01:00
|
|
|
|
|
|
|
.button-group {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--alt {
|
|
|
|
padding: var(--spacing-xs);
|
|
|
|
height: unset;
|
|
|
|
|
|
|
|
.button__content {
|
|
|
|
height: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-01 20:43:50 +02:00
|
|
|
}
|
|
|
|
|
2022-04-04 14:13:15 +02:00
|
|
|
.file-page__video-container {
|
|
|
|
max-height: var(--desktop-portrait-player-max-height);
|
|
|
|
}
|
|
|
|
|
2018-06-15 02:19:21 +02:00
|
|
|
.file-render {
|
2019-08-13 07:35:13 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-04-27 23:32:47 +02:00
|
|
|
z-index: 1;
|
2018-06-15 02:19:21 +02:00
|
|
|
overflow: hidden;
|
2022-04-04 14:13:15 +02:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
max-height: var(--mobile-player-max-height);
|
|
|
|
}
|
2020-10-20 19:10:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-render--video {
|
2021-01-04 16:12:46 +01:00
|
|
|
background-color: black;
|
2022-02-11 19:50:55 +01:00
|
|
|
border-radius: var(--border-radius);
|
2021-01-04 16:12:46 +01:00
|
|
|
|
2020-10-20 19:10:02 +02:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
background-color: black;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 2;
|
|
|
|
animation: fadeInFromBlack 2s ease;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
border-radius: unset;
|
|
|
|
.autoplay-countdown {
|
|
|
|
.file-viewer__overlay-secondary {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
.autoplay-countdown__counter {
|
|
|
|
margin-top: var(--spacing-xxs) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-20 19:10:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeInFromBlack {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2020-04-14 01:48:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-render--embed {
|
|
|
|
border-radius: 0;
|
|
|
|
position: fixed;
|
|
|
|
max-height: none;
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
|
2022-02-23 22:13:22 +01:00
|
|
|
.file-render__img-container {
|
2021-07-19 08:26:00 +02:00
|
|
|
width: 100%;
|
2022-04-21 09:31:58 +02:00
|
|
|
aspect-ratio: 16 / 9;
|
|
|
|
background-color: var(--color-placeholder-background);
|
|
|
|
// background-color: rgba(25,25,25,0.4);
|
2022-04-20 10:20:15 +02:00
|
|
|
border-radius: var(--border-radius);
|
2021-07-19 08:26:00 +02:00
|
|
|
}
|
|
|
|
|
2021-07-21 15:34:46 +02:00
|
|
|
.file-render--post-container {
|
|
|
|
min-height: 30vh;
|
|
|
|
}
|
|
|
|
|
2020-04-01 21:36:59 +02:00
|
|
|
.file-render__header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.file-viewer {
|
2018-07-27 02:24:00 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-10-17 19:14:24 +02:00
|
|
|
|
2018-07-27 02:24:00 +02:00
|
|
|
iframe,
|
2019-02-22 06:01:59 +01:00
|
|
|
webview,
|
2019-08-06 05:25:33 +02:00
|
|
|
img {
|
2018-06-15 02:19:21 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-08-06 05:25:33 +02:00
|
|
|
object-fit: contain;
|
2020-04-14 11:46:55 +02:00
|
|
|
max-height: var(--inline-player-max-height);
|
2019-02-28 23:51:33 +01:00
|
|
|
}
|
2019-11-22 22:13:00 +01:00
|
|
|
video {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2020-11-16 18:19:52 +01:00
|
|
|
.video-js.vjs-user-inactive.vjs-playing {
|
2020-01-09 05:19:04 +01:00
|
|
|
video {
|
|
|
|
cursor: none;
|
|
|
|
}
|
|
|
|
}
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
|
2020-04-26 03:55:23 +02:00
|
|
|
.file-render__viewer--comic {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
.comic-viewer {
|
|
|
|
width: 100%;
|
2020-06-01 19:03:19 +02:00
|
|
|
height: calc(100vh - var(--header-height) - var(--spacing-m) * 2);
|
2020-04-26 03:55:23 +02:00
|
|
|
max-height: var(--inline-player-max-height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.file-viewer--iframe {
|
2020-04-01 20:43:50 +02:00
|
|
|
display: flex; /*this eliminates extra height from whitespace, if someone edits this with a better technique, tell Jeremy*/
|
|
|
|
/*
|
|
|
|
ideally iframes would dynamiclly grow, see <IframeReact> for a start at this
|
|
|
|
for now, since we don't know size, let's make as large as we can without being larger than available area
|
|
|
|
*/
|
|
|
|
iframe {
|
2020-06-01 19:03:19 +02:00
|
|
|
height: calc(100vh - var(--header-height) - var(--spacing-m) * 2);
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
|
2020-04-25 10:24:42 +02:00
|
|
|
.file-render__viewer--three {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.three-viewer {
|
2020-06-01 19:03:19 +02:00
|
|
|
height: calc(100vh - var(--header-height) - var(--spacing-m) * 2);
|
2020-04-26 07:17:13 +02:00
|
|
|
max-height: var(--inline-player-max-height);
|
2020-04-25 10:24:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.file-viewer__overlay {
|
|
|
|
position: absolute;
|
|
|
|
left: auto;
|
|
|
|
right: auto;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 2;
|
|
|
|
color: var(--color-white);
|
|
|
|
font-size: var(--font-body); /* put back font size from videojs change*/
|
|
|
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.9);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-l);
|
2020-04-14 01:48:11 +02:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--uri-indicator,
|
|
|
|
.button--link {
|
|
|
|
color: var(--color-white);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-15 17:28:45 +02:00
|
|
|
.file-viewer_embed-ended-title {
|
2021-09-21 17:48:05 +02:00
|
|
|
max-width: 100%;
|
|
|
|
p {
|
|
|
|
font-size: 6vh;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2021-09-15 17:28:45 +02:00
|
|
|
}
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.content__viewer--floating {
|
|
|
|
.file-viewer__overlay-title,
|
|
|
|
.file-viewer__overlay-secondary {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
.file-viewer__overlay-title,
|
|
|
|
.file-viewer__overlay-secondary {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-viewer__overlay-title {
|
|
|
|
text-align: center;
|
|
|
|
font-size: var(--font-large);
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
2020-04-14 01:48:11 +02:00
|
|
|
}
|
|
|
|
.file-viewer__overlay-secondary {
|
|
|
|
color: var(--color-text-subtitle);
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
2020-04-14 01:48:11 +02:00
|
|
|
}
|
|
|
|
.file-viewer__overlay-actions {
|
|
|
|
.button + .button {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-left: var(--spacing-m);
|
2020-04-14 01:48:11 +02:00
|
|
|
}
|
2021-09-21 17:48:05 +02:00
|
|
|
|
|
|
|
.button--link {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2020-04-14 01:48:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-viewer__overlay-logo {
|
|
|
|
color: var(--color-white);
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
height: 30px;
|
|
|
|
stroke-width: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-22 22:47:10 +02:00
|
|
|
.file-viewer--is-playing:not(:hover) .file-viewer__embedded-header {
|
2020-04-14 01:48:11 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-05-22 22:47:10 +02:00
|
|
|
.file-viewer__embedded-header {
|
2020-04-14 01:48:11 +02:00
|
|
|
position: absolute;
|
2022-03-15 18:42:39 +01:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: minmax(5rem, calc(100% - 7rem)) 1fr;
|
2020-04-14 01:48:11 +02:00
|
|
|
width: 100%;
|
|
|
|
top: 0;
|
2020-10-20 19:10:02 +02:00
|
|
|
opacity: 1;
|
2020-04-14 01:48:11 +02:00
|
|
|
z-index: 2;
|
|
|
|
font-size: var(--font-large);
|
|
|
|
overflow-x: hidden;
|
2020-10-20 19:10:02 +02:00
|
|
|
overflow-y: hidden;
|
2020-04-14 01:48:11 +02:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2020-10-20 19:10:02 +02:00
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-top-right-radius: var(--border-radius);
|
2020-04-29 20:35:55 +02:00
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.button {
|
2022-03-15 18:42:39 +01:00
|
|
|
padding: var(--spacing-xxs);
|
2020-04-14 01:48:11 +02:00
|
|
|
color: var(--color-white);
|
2020-10-20 19:10:02 +02:00
|
|
|
z-index: 2;
|
2020-04-29 20:35:55 +02:00
|
|
|
|
2020-04-30 17:01:11 +02:00
|
|
|
.button__label {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2020-04-29 22:50:06 +02:00
|
|
|
&:hover {
|
|
|
|
color: var(--color-white);
|
|
|
|
}
|
2020-05-22 22:47:10 +02:00
|
|
|
}
|
2020-04-29 22:50:06 +02:00
|
|
|
|
2020-05-22 22:47:10 +02:00
|
|
|
.credit-amount,
|
|
|
|
.icon--Key {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-right: var(--spacing-m);
|
2020-05-22 22:47:10 +02:00
|
|
|
}
|
2020-10-05 20:54:51 +02:00
|
|
|
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
|
|
padding: 0 var(--spacing-l);
|
|
|
|
}
|
2020-05-22 22:47:10 +02:00
|
|
|
}
|
2020-04-30 17:01:11 +02:00
|
|
|
|
2020-10-20 19:10:02 +02:00
|
|
|
.file-viewer__embedded-gradient {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 2;
|
|
|
|
background: linear-gradient(#000000, #00000000 70%);
|
|
|
|
height: 75px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2020-05-22 22:47:10 +02:00
|
|
|
.file-viewer__embedded-title {
|
2020-10-20 19:10:02 +02:00
|
|
|
z-index: 2;
|
2021-09-18 16:23:30 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding-left: var(--spacing-s);
|
|
|
|
color: white;
|
2020-05-22 22:47:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-viewer__embedded-info {
|
2022-03-15 18:42:39 +01:00
|
|
|
justify-self: flex-end;
|
2020-05-22 22:47:10 +02:00
|
|
|
|
|
|
|
& > *:not(:last-child) {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-right: var(--spacing-s);
|
2020-04-14 01:48:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-13 07:35:13 +02:00
|
|
|
.file-render__content {
|
2018-07-28 03:42:35 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-10-17 19:14:24 +02:00
|
|
|
overflow: auto;
|
2020-02-28 04:44:24 +01:00
|
|
|
max-width: 100vw;
|
2018-07-28 03:42:35 +02:00
|
|
|
}
|
|
|
|
|
2019-08-13 07:35:13 +02:00
|
|
|
//
|
|
|
|
// Custom viewers live below here
|
2019-10-13 19:41:51 +02:00
|
|
|
// These either have custom class names that can't be changed or have styles that need to be overridden
|
2019-08-13 07:35:13 +02:00
|
|
|
//
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
// Code-viewer
|
2019-08-13 07:35:13 +02:00
|
|
|
.CodeMirror {
|
|
|
|
@extend .file-render__content;
|
2018-07-27 02:24:00 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.cm-invalidchar {
|
|
|
|
display: none;
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
|
2018-07-28 03:42:35 +02:00
|
|
|
.CodeMirror .CodeMirror-lines {
|
2018-10-17 19:14:24 +02:00
|
|
|
// is there really a .CodeMirror inside a .CodeMirror?
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-s) 0;
|
2018-07-28 03:42:35 +02:00
|
|
|
}
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.CodeMirror-code {
|
2021-05-20 21:31:14 +02:00
|
|
|
@include font-sans;
|
2018-12-19 06:44:53 +01:00
|
|
|
letter-spacing: 0.1rem;
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-gutters {
|
2019-12-09 18:25:13 +01:00
|
|
|
background-color: var(--color-gray-1);
|
|
|
|
border-right: 1px solid var(--color-gray-4);
|
2020-06-01 19:03:19 +02:00
|
|
|
padding-right: var(--spacing-m);
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.CodeMirror-line {
|
2020-06-01 19:03:19 +02:00
|
|
|
padding-left: var(--spacing-m);
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linenumber {
|
2019-12-09 18:25:13 +01:00
|
|
|
color: var(--color-gray-5);
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
}
|
2019-08-06 05:25:33 +02:00
|
|
|
|
2020-12-14 17:40:59 +01:00
|
|
|
// ****************************************************************************
|
|
|
|
// Video
|
|
|
|
// ****************************************************************************
|
|
|
|
|
2021-12-08 05:09:54 +01:00
|
|
|
// DRY: we'll soon move vjs items to videojs.scss, so just duplicate these for now.
|
2022-06-05 13:32:21 +02:00
|
|
|
// $control-bar-height: 48px;
|
|
|
|
$control-bar-height: 48px;
|
|
|
|
$control-bar-height-mobile: 44px;
|
2022-06-01 19:23:16 +02:00
|
|
|
$control-bar-font-size: 0.9rem;
|
2021-12-08 05:09:54 +01:00
|
|
|
$control-bar-popup-font-size: 0.8rem;
|
2022-06-05 13:32:21 +02:00
|
|
|
// $control-bar-icon-size: 1.9rem;
|
2022-06-05 15:06:11 +02:00
|
|
|
$control-bar-icon-size: 30px;
|
2021-12-08 05:09:54 +01:00
|
|
|
|
2020-04-16 23:43:09 +02:00
|
|
|
.video-js-parent {
|
2019-08-06 05:25:33 +02:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2020-04-16 23:43:09 +02:00
|
|
|
}
|
2019-08-06 05:25:33 +02:00
|
|
|
|
2020-04-16 23:43:09 +02:00
|
|
|
// By default no video js play button
|
|
|
|
.vjs-big-play-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-js {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2019-08-14 20:09:45 +02:00
|
|
|
|
|
|
|
.vjs-modal-dialog .vjs-modal-dialog-content {
|
|
|
|
position: relative;
|
|
|
|
padding-top: 5rem;
|
|
|
|
// Make sure no videojs message interferes with overlaying buttons
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-04-23 06:21:07 +02:00
|
|
|
|
2021-12-09 09:12:33 +01:00
|
|
|
// control-bar: time
|
2020-04-23 06:21:07 +02:00
|
|
|
.vjs-control-bar {
|
2022-06-01 18:25:37 +02:00
|
|
|
.vjs-volume-panel {
|
|
|
|
.vjs-volume-horizontal {
|
2022-06-05 13:32:21 +02:00
|
|
|
margin-top: 5.5px !important;
|
2022-06-01 18:25:37 +02:00
|
|
|
height: $control-bar-height !important;
|
2022-06-05 13:32:21 +02:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
height: $control-bar-height-mobile !important;
|
|
|
|
}
|
2022-06-01 18:25:37 +02:00
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
.vjs-volume-horizontal {
|
2022-06-05 13:32:21 +02:00
|
|
|
margin-top: 5.5px !important;
|
2022-06-01 18:25:37 +02:00
|
|
|
height: $control-bar-height !important;
|
2022-06-05 13:32:21 +02:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
height: $control-bar-height-mobile !important;
|
|
|
|
}
|
2022-06-01 18:25:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-08 04:32:13 +01:00
|
|
|
.vjs-time-control {
|
2022-06-01 18:25:37 +02:00
|
|
|
margin-left: var(--spacing-xs);
|
2022-06-05 13:32:21 +02:00
|
|
|
line-height: $control-bar-height;
|
2021-12-08 04:32:13 +01:00
|
|
|
font-size: $control-bar-font-size;
|
2021-12-09 09:12:33 +01:00
|
|
|
display: flex;
|
2022-06-05 13:32:21 +02:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
line-height: $control-bar-height-mobile !important;
|
|
|
|
}
|
2021-12-08 04:32:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-current-time {
|
2021-12-09 09:12:33 +01:00
|
|
|
padding-right: 0;
|
2022-06-01 18:35:40 +02:00
|
|
|
// margin-right: 0.4rem;
|
2021-12-09 09:12:33 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin-right: 0.2rem;
|
|
|
|
}
|
2021-12-08 04:32:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-time-divider {
|
|
|
|
min-width: unset;
|
|
|
|
padding: 0;
|
|
|
|
z-index: 0; // solves the grayed-out divider
|
|
|
|
}
|
|
|
|
|
2020-04-23 06:21:07 +02:00
|
|
|
.vjs-duration {
|
2021-12-09 09:12:33 +01:00
|
|
|
padding-left: 0;
|
2022-06-01 18:35:40 +02:00
|
|
|
margin-left: var(--spacing-xs);
|
2021-12-09 09:12:33 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
2022-06-01 18:35:40 +02:00
|
|
|
// margin-left: 0.2rem;
|
|
|
|
margin-left: var(--spacing-xs) !important;
|
2021-12-09 09:12:33 +01:00
|
|
|
}
|
2020-04-23 06:21:07 +02:00
|
|
|
}
|
2021-12-09 09:12:33 +01:00
|
|
|
}
|
2021-12-08 05:09:54 +01:00
|
|
|
|
2021-12-09 09:12:33 +01:00
|
|
|
// control-bar: menu, button and icon
|
|
|
|
.vjs-control-bar {
|
2022-06-05 13:32:21 +02:00
|
|
|
// margin-bottom:-4px;
|
2021-12-08 05:09:54 +01:00
|
|
|
.vjs-menu-button {
|
|
|
|
font-size: $control-bar-font-size;
|
|
|
|
line-height: $control-bar-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-icon-placeholder {
|
|
|
|
line-height: $control-bar-height;
|
|
|
|
}
|
|
|
|
|
2021-12-08 17:25:27 +01:00
|
|
|
.vjs-icon-placeholder::before {
|
2022-06-01 18:25:37 +02:00
|
|
|
font-size: $control-bar-icon-size;
|
2022-06-05 13:32:21 +02:00
|
|
|
line-height: $control-bar-height;
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
line-height: $control-bar-height-mobile !important;
|
|
|
|
}
|
2021-12-08 17:25:27 +01:00
|
|
|
}
|
|
|
|
|
2021-12-08 05:09:54 +01:00
|
|
|
.vjs-quality-selector {
|
2022-06-05 15:06:11 +02:00
|
|
|
margin-left: var(--spacing-xs);
|
2021-12-08 05:09:54 +01:00
|
|
|
.vjs-icon-placeholder {
|
2021-12-09 09:12:33 +01:00
|
|
|
font-size: $control-bar-font-size;
|
2022-05-31 11:14:59 +02:00
|
|
|
span {
|
|
|
|
display: block;
|
2022-06-05 13:32:21 +02:00
|
|
|
margin-top: -3px;
|
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
margin-left: 24%;
|
|
|
|
margin-right: 24%;
|
|
|
|
font-size: 0.6rem;
|
|
|
|
background: var(--color-primary);
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
border-radius: 4px;
|
|
|
|
margin-top: -1px;
|
|
|
|
//padding-top: 1px;
|
|
|
|
padding-top: 0;
|
|
|
|
line-height: 13px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
2022-06-07 15:09:26 +02:00
|
|
|
width: 3.3rem;
|
2022-06-05 13:32:21 +02:00
|
|
|
.vjs-icon-placeholder {
|
|
|
|
span {
|
|
|
|
span {
|
|
|
|
margin-left: 20%;
|
|
|
|
margin-right: 20%;
|
|
|
|
// font-size: 0.5rem;
|
|
|
|
}
|
|
|
|
}
|
2022-05-31 11:14:59 +02:00
|
|
|
}
|
2021-12-08 05:09:54 +01:00
|
|
|
}
|
|
|
|
}
|
2021-12-08 17:25:27 +01:00
|
|
|
|
2021-12-09 09:12:33 +01:00
|
|
|
.vjs-play-control,
|
|
|
|
.vjs-fullscreen-control {
|
2021-12-08 17:25:27 +01:00
|
|
|
.vjs-icon-placeholder {
|
2021-12-09 09:12:33 +01:00
|
|
|
// Compensate: these icons in Font VideoJs are smaller than their peers.
|
2022-06-01 18:25:37 +02:00
|
|
|
&:before {
|
2022-06-01 19:38:58 +02:00
|
|
|
font-size: calc(#{$control-bar-icon-size} * 1.1);
|
2022-06-01 18:25:37 +02:00
|
|
|
}
|
2021-12-08 17:25:27 +01:00
|
|
|
}
|
|
|
|
}
|
2021-12-09 09:12:33 +01:00
|
|
|
|
2022-06-05 13:32:21 +02:00
|
|
|
div.vjs-playback-rate {
|
2022-06-05 15:06:11 +02:00
|
|
|
margin-left: var(--spacing-xs);
|
|
|
|
margin-right: calc(var(--spacing-xs) * -1);
|
2021-12-09 09:12:33 +01:00
|
|
|
.vjs-playback-rate-value {
|
|
|
|
font-size: $control-bar-font-size;
|
2022-06-05 13:32:21 +02:00
|
|
|
line-height: $control-bar-height;
|
2021-12-09 09:12:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-menu {
|
|
|
|
width: 10em; // Extend the width to prevent a potential scrollbar from blocking the text.
|
|
|
|
left: -3em; // Center the popup on top of the button that invoked it.
|
|
|
|
}
|
2022-06-01 18:25:37 +02:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
2022-06-05 13:32:21 +02:00
|
|
|
margin-right: calc(var(--spacing-xs) * -1) !important;
|
|
|
|
width: 3rem;
|
|
|
|
.vjs-playback-rate-value {
|
|
|
|
line-height: $control-bar-height-mobile;
|
|
|
|
}
|
2022-06-01 18:25:37 +02:00
|
|
|
}
|
2021-12-09 09:12:33 +01:00
|
|
|
}
|
2021-12-07 12:14:58 +01:00
|
|
|
|
2022-06-05 13:32:21 +02:00
|
|
|
div.vjs-chapters-button {
|
2022-05-05 12:01:21 +02:00
|
|
|
.vjs-menu {
|
|
|
|
width: 20em;
|
|
|
|
left: -3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
text-align: left;
|
|
|
|
padding: var(--spacing-xxxs) var(--spacing-s);
|
|
|
|
}
|
2022-06-10 14:09:52 +02:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
width: 3em;
|
2022-06-05 13:32:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
button.vjs-chapters-button {
|
|
|
|
display: block;
|
|
|
|
margin-top: -0px;
|
2022-05-05 12:01:21 +02:00
|
|
|
}
|
|
|
|
|
2022-04-25 13:34:02 +02:00
|
|
|
.vjs-chromecast-button,
|
|
|
|
.vjs-airplay-button {
|
2022-06-01 18:25:37 +02:00
|
|
|
margin-left: var(--spacing-xs);
|
2022-06-05 13:32:21 +02:00
|
|
|
margin-right: 2px;
|
2021-12-07 12:14:58 +01:00
|
|
|
.vjs-icon-placeholder {
|
2022-06-05 15:06:11 +02:00
|
|
|
$chromecast-icon-size: 25px;
|
|
|
|
margin-top: 3px;
|
2021-12-07 12:14:58 +01:00
|
|
|
width: $chromecast-icon-size;
|
|
|
|
height: $chromecast-icon-size;
|
|
|
|
}
|
2022-06-05 13:32:21 +02:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
.vjs-icon-placeholder {
|
|
|
|
margin-top: 2px;
|
2022-06-05 15:06:11 +02:00
|
|
|
width: 26px;
|
|
|
|
height: 26px;
|
2022-06-05 13:32:21 +02:00
|
|
|
}
|
|
|
|
}
|
2021-12-07 12:14:58 +01:00
|
|
|
}
|
2021-12-09 09:12:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// control-bar: general padding
|
|
|
|
.vjs-control-bar {
|
|
|
|
.vjs-button--play-previous:first-child,
|
|
|
|
.vjs-play-control:first-child {
|
2022-06-01 18:25:37 +02:00
|
|
|
margin-left: var(--spacing-s);
|
|
|
|
margin-right: var(--spacing-xs);
|
2021-12-09 09:12:33 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-fullscreen-control {
|
2022-06-01 18:25:37 +02:00
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
margin-left: var(--spacing-xs);
|
2021-12-09 09:12:33 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
2022-06-05 13:32:21 +02:00
|
|
|
width: 2.5rem;
|
2021-12-09 09:12:33 +01:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-button--play-previous,
|
|
|
|
.vjs-button--play-next,
|
|
|
|
.vjs-mute-control {
|
2022-06-01 19:38:58 +02:00
|
|
|
.vjs-icon-placeholder::before {
|
2022-06-05 15:06:11 +02:00
|
|
|
font-size: 26px !important;
|
2022-06-05 13:32:21 +02:00
|
|
|
font-size: $control-bar-icon-size;
|
2022-06-01 19:38:58 +02:00
|
|
|
}
|
2021-12-09 09:12:33 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
width: 2.25rem;
|
|
|
|
}
|
|
|
|
}
|
2022-06-01 19:23:16 +02:00
|
|
|
|
|
|
|
.vjs-button--play-next {
|
|
|
|
margin-left: var(--spacing-xs);
|
2022-06-05 13:32:21 +02:00
|
|
|
margin-right: var(--spacing-xs);
|
2022-06-01 19:23:16 +02:00
|
|
|
}
|
2020-04-23 06:21:07 +02:00
|
|
|
}
|
2020-10-20 19:10:02 +02:00
|
|
|
|
|
|
|
.vjs-picture-in-picture-control {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-08-06 05:25:33 +02:00
|
|
|
}
|
2019-12-12 22:25:31 +01:00
|
|
|
|
2020-12-14 17:40:59 +01:00
|
|
|
// ****************************************************************************
|
|
|
|
// Video::Overlays
|
|
|
|
// ****************************************************************************
|
|
|
|
|
|
|
|
.video-js {
|
|
|
|
.vjs-overlay-playrate,
|
|
|
|
.vjs-overlay-seeked {
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
font-size: var(--font-large);
|
|
|
|
width: auto;
|
|
|
|
padding: 10px 30px;
|
|
|
|
margin: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
-ms-transform: translate(-50%, -50%);
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
|
|
|
animation: fadeOutAnimation ease-in 0.6s;
|
|
|
|
animation-iteration-count: 1;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeOutAnimation {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ****************************************************************************
|
|
|
|
// Video - Mobile UI
|
|
|
|
// ****************************************************************************
|
|
|
|
|
|
|
|
.video-js.vjs-mobile-ui {
|
|
|
|
.vjs-control-bar {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-touch-overlay:not(.show-play-toggle) {
|
|
|
|
.vjs-control-bar {
|
|
|
|
// Sync the controlBar's visibility with the overlay's
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-touch-overlay {
|
|
|
|
&.show-play-toggle,
|
|
|
|
&.skip {
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
}
|
2022-04-04 14:13:15 +02:00
|
|
|
|
|
|
|
max-height: var(--mobile-player-max-height);
|
2020-12-14 17:40:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ****************************************************************************
|
|
|
|
// Layout and control visibility
|
|
|
|
// ****************************************************************************
|
|
|
|
|
2020-11-20 08:53:22 +01:00
|
|
|
.video-js.vjs-fullscreen,
|
|
|
|
.video-js:not(.vjs-fullscreen) {
|
|
|
|
// --- Unhide desired components per layout ---
|
|
|
|
&.vjs-layout-x-small {
|
|
|
|
.vjs-playback-rate {
|
2021-07-12 16:45:21 +02:00
|
|
|
display: flex !important;
|
2020-11-20 08:53:22 +01:00
|
|
|
}
|
2020-06-30 20:14:12 +02:00
|
|
|
}
|
|
|
|
|
2021-12-08 05:08:46 +01:00
|
|
|
// Note: the '!important' above and below this line was added a quick hack
|
|
|
|
// to negate a change in vjs without having to increase specificity here.
|
|
|
|
// It won't be needed in an upcoming version of vjs, as they have updated
|
|
|
|
// their side https://github.com/videojs/video.js/pull/7098#issuecomment-908438543
|
|
|
|
|
2020-11-20 08:53:22 +01:00
|
|
|
&.vjs-layout-small {
|
|
|
|
.vjs-current-time,
|
|
|
|
.vjs-time-divider,
|
|
|
|
.vjs-duration,
|
|
|
|
.vjs-playback-rate {
|
2021-07-12 16:45:21 +02:00
|
|
|
display: flex !important;
|
2020-11-20 08:53:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-09 09:12:33 +01:00
|
|
|
// --- Hide unwanted ---
|
|
|
|
.vjs-remaining-time {
|
|
|
|
display: none;
|
2020-11-20 08:53:22 +01:00
|
|
|
}
|
2020-06-30 20:14:12 +02:00
|
|
|
}
|
|
|
|
|
2021-02-17 03:05:23 +01:00
|
|
|
.video-js.vjs-fullscreen {
|
2022-04-04 14:13:15 +02:00
|
|
|
video {
|
|
|
|
max-height: none !important;
|
|
|
|
}
|
|
|
|
|
2021-02-17 03:05:23 +01:00
|
|
|
.vjs-button--theater-mode {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-14 17:40:59 +01:00
|
|
|
// ****************************************************************************
|
|
|
|
// Tap-to-unmute
|
|
|
|
// ****************************************************************************
|
2020-04-28 00:44:19 +02:00
|
|
|
|
2020-06-10 15:01:54 +02:00
|
|
|
.video-js--tap-to-unmute {
|
|
|
|
visibility: hidden; // Start off as hidden.
|
|
|
|
z-index: 2;
|
|
|
|
position: absolute;
|
2020-06-16 23:09:32 +02:00
|
|
|
top: var(--spacing-xs);
|
|
|
|
left: var(--spacing-xs);
|
2020-06-10 15:01:54 +02:00
|
|
|
padding: var(--spacing-xs) var(--spacing-m); // Make it comfy for touch.
|
|
|
|
color: var(--color-gray-1);
|
|
|
|
background: black;
|
|
|
|
border: 1px solid var(--color-gray-4);
|
2020-07-09 20:18:56 +02:00
|
|
|
opacity: 0.9;
|
2022-02-11 19:50:55 +01:00
|
|
|
border-radius: var(--border-radius);
|
2020-07-09 20:18:56 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
2022-02-11 19:50:55 +01:00
|
|
|
color: var(--color-primary);
|
|
|
|
border: 1px solid var(--color-primary);
|
2020-07-09 20:18:56 +02:00
|
|
|
}
|
2022-02-13 11:44:22 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
2022-02-13 11:58:22 +01:00
|
|
|
display: none !important;
|
2022-02-13 11:44:22 +01:00
|
|
|
}
|
2020-06-10 15:01:54 +02:00
|
|
|
}
|
|
|
|
|
2020-12-14 17:40:59 +01:00
|
|
|
// ****************************************************************************
|
|
|
|
// ****************************************************************************
|
|
|
|
|
|
|
|
.video-js:hover {
|
|
|
|
.vjs-big-play-button {
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-12 22:25:31 +01:00
|
|
|
.file-render {
|
2020-04-14 01:48:11 +02:00
|
|
|
.vjs-big-play-button {
|
|
|
|
@extend .button--icon;
|
|
|
|
@extend .button--play;
|
|
|
|
border: none;
|
2021-07-09 05:05:58 +02:00
|
|
|
/*position: static;*/
|
2020-04-14 01:48:11 +02:00
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
.vjs-icon-placeholder {
|
|
|
|
display: none;
|
2019-12-12 22:25:31 +01:00
|
|
|
}
|
|
|
|
}
|
2021-01-14 20:43:16 +01:00
|
|
|
|
|
|
|
.vjs-menu-item-text,
|
|
|
|
.vjs-icon-placeholder {
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
2019-12-12 22:25:31 +01:00
|
|
|
}
|
2020-01-27 19:52:25 +01:00
|
|
|
|
2020-12-14 17:40:59 +01:00
|
|
|
// ****************************************************************************
|
|
|
|
// ****************************************************************************
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.file-render--embed {
|
2020-04-30 17:01:11 +02:00
|
|
|
// on embeds, do not inject our colors until interaction
|
|
|
|
.video-js:hover {
|
|
|
|
.vjs-big-play-button {
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-paused {
|
2020-02-20 05:20:14 +01:00
|
|
|
.vjs-big-play-button {
|
2020-04-28 00:44:19 +02:00
|
|
|
display: block;
|
2020-04-29 16:00:48 +02:00
|
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-30 17:01:11 +02:00
|
|
|
.vjs-ended {
|
2020-04-29 16:00:48 +02:00
|
|
|
.vjs-big-play-button {
|
2020-04-30 17:01:11 +02:00
|
|
|
display: none;
|
2020-02-20 05:20:14 +01:00
|
|
|
}
|
|
|
|
}
|
2020-06-12 23:41:26 +02:00
|
|
|
|
2020-10-05 20:54:51 +02:00
|
|
|
.video-js--tap-to-unmute {
|
|
|
|
margin-top: var(--spacing-xl);
|
|
|
|
margin-left: var(--spacing-s);
|
|
|
|
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
|
|
margin-left: calc(var(--spacing-m) + var(--spacing-s));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-12 23:41:26 +02:00
|
|
|
.file-viewer {
|
|
|
|
iframe,
|
|
|
|
webview,
|
|
|
|
img {
|
|
|
|
max-height: none;
|
|
|
|
}
|
|
|
|
}
|
2020-01-28 16:18:33 +01:00
|
|
|
}
|
|
|
|
|
2022-03-31 22:36:48 +02:00
|
|
|
.file-viewer--ended-embed {
|
|
|
|
.vjs-big-play-button {
|
|
|
|
display: none !important; // yes this is dumb, but this was broken and the above CSS was overriding
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-viewer__overlay-actions {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(3, auto);
|
|
|
|
grid-gap: 1rem;
|
|
|
|
}
|
2020-04-30 16:37:39 +02:00
|
|
|
}
|
|
|
|
|
2022-02-16 15:50:41 +01:00
|
|
|
.video-thumbnail-generator {
|
|
|
|
width: 100%;
|
|
|
|
max-height: 30vh;
|
|
|
|
}
|
|
|
|
|
2020-12-14 17:40:59 +01:00
|
|
|
// ****************************************************************************
|
|
|
|
// Autoplay Countdown
|
|
|
|
// ****************************************************************************
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.autoplay-countdown {
|
2020-01-27 19:52:25 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-04-14 01:48:11 +02:00
|
|
|
width: 100%;
|
2020-01-27 19:52:25 +01:00
|
|
|
}
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.autoplay-countdown__timer {
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
font-size: var(--font-small);
|
Playlists v2: Refactors, touch ups + Queue Mode (#1604)
* Playlists v2
* Style pass
* Change playlist items arrange icon
* Playlist card body open by default
* Refactor collectionEdit components
* Paginate & Refactor bid field
* Collection page changes
* Add Thumbnail optional
* Replace extra info for description on collection page
* Playlist card right below video on medium screen
* Allow editing private collections
* Add edit option to menus
* Allow deleting a public playlist but keeping a private version
* Add queue to Save menu, remove edit option from Builtin pages, show queue on playlists page
* Fix scroll to recent persisting on medium screen
* Fix adding to queue from menu
* Fixes for delete
* PublishList: delay mounting Items tab to prevent lock-up (#1783)
For a large list, the playlist publish form is unusable (super-slow typing) due to the entire list being mounted despite the tab is not active.
The full solution is still to paginate it, but for now, don't mount the tab until it is selected. Add a spinner to indicate something is loading. It's not prefect, but it's throwaway code anyway. At least we can fill in the fields properly now.
* Batch-resolve private collections (#1782)
* makeSelectClaimForClaimId --> selectClaimForClaimId
Move away from the problematic `makeSelect*`, especially in large loops.
* Batch-resolve private collections
1758
This alleviates the lock-up that is caused by large number of invidual resolves. There will still be some minor stutter due to the large DOM that React needs to handle -- that is logged in 1758 and will be handled separately.
At least the stutter is short (1-2s) and the app is still usable.
Private list items are being resolve individually, super slow if the list is large (>100). Published lists doesn't have this issue.
doFetchItemsInCollections contains most of the useful logic, but it isn't called for private/built-in lists because it's not an actual claim.
Tweaked doFetchItemsInCollections to handle private (UUID-based) collections.
* Use persisted state for floating player playlist card body
- I find it annoying being open everytime
* Fix removing edits from published playlist
* Fix scroll on mobile
* Allow going editing items from toast
* Fix ClaimShareButton
* Prevent edit/publish of builtin
* Fix async inside forEach
* Fix sync on queue edit
* Fix autoplayCountdown replay
* Fix deleting an item scrolling the playlist
* CreatedAt fixes
* Remove repost for now
* Anon publish fixes
* Fix mature case on floating
Co-authored-by: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com>
2022-07-13 15:59:59 +02:00
|
|
|
|
|
|
|
.button--link {
|
|
|
|
.button__content {
|
|
|
|
align-items: normal;
|
|
|
|
}
|
|
|
|
}
|
2020-04-14 01:48:11 +02:00
|
|
|
}
|
|
|
|
.autoplay-countdown__counter {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-m);
|
2022-02-11 19:50:55 +01:00
|
|
|
color: #fff !important;
|
2020-01-27 19:52:25 +01:00
|
|
|
}
|
|
|
|
|
2020-04-14 01:48:11 +02:00
|
|
|
.autoplay-countdown__button {
|
|
|
|
/* Border size and color */
|
|
|
|
border: 3px solid transparent;
|
|
|
|
/* Creates a circle */
|
|
|
|
border-radius: 50%;
|
|
|
|
/* Circle size */
|
|
|
|
display: inline-block;
|
|
|
|
height: 86px;
|
|
|
|
width: 86px;
|
|
|
|
/* Use transform to rotate to adjust where opening appears */
|
|
|
|
transition: border 1s;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
.button {
|
|
|
|
background-color: transparent;
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
}
|
2020-01-27 21:02:58 +01:00
|
|
|
}
|
2020-01-27 19:52:25 +01:00
|
|
|
}
|
2020-04-14 01:48:11 +02:00
|
|
|
.autoplay-countdown__button--4 {
|
|
|
|
border-top-color: #fff;
|
|
|
|
}
|
|
|
|
.autoplay-countdown__button--3 {
|
|
|
|
border-top-color: #fff;
|
|
|
|
border-right-color: #fff;
|
|
|
|
}
|
|
|
|
.autoplay-countdown__button--2 {
|
|
|
|
border-top-color: #fff;
|
|
|
|
border-right-color: #fff;
|
|
|
|
border-bottom-color: #fff;
|
|
|
|
}
|
|
|
|
.autoplay-countdown__button--1 {
|
|
|
|
border-color: #fff;
|
2020-01-27 19:52:25 +01:00
|
|
|
}
|
2020-09-30 22:46:20 +02:00
|
|
|
|
2020-12-14 17:40:59 +01:00
|
|
|
// ****************************************************************************
|
|
|
|
// ****************************************************************************
|
|
|
|
|
2020-09-30 22:46:20 +02:00
|
|
|
.file__viewdate {
|
|
|
|
display: flex;
|
2022-02-11 19:50:55 +01:00
|
|
|
justify-content: start;
|
|
|
|
flex-direction: row;
|
2020-09-30 22:46:20 +02:00
|
|
|
margin-bottom: var(--spacing-s);
|
|
|
|
|
2021-04-04 04:44:51 +02:00
|
|
|
> :first-child {
|
2022-02-11 19:50:55 +01:00
|
|
|
margin-bottom: 0;
|
|
|
|
margin-right: var(--spacing-s);
|
2020-09-30 22:46:20 +02:00
|
|
|
}
|
|
|
|
}
|
2021-02-17 16:02:57 +01:00
|
|
|
|
|
|
|
.file-page__image {
|
|
|
|
img {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|