2020-04-01 14:43:50 -04:00
|
|
|
.file-page {
|
2020-04-13 19:48:11 -04:00
|
|
|
.file-page__video-container + .card,
|
2020-04-01 14:43:50 -04:00
|
|
|
.file-render + .card,
|
|
|
|
.content__cover + .card,
|
|
|
|
.card + .file-render,
|
2020-04-13 19:48:11 -04:00
|
|
|
.card + .file-page__video-container,
|
2020-04-01 14:43:50 -04:00
|
|
|
.card + .content__cover {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-l);
|
2020-04-01 14:43:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.card + .file-render {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-l);
|
2020-04-01 14:43:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-page__md {
|
|
|
|
.card {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card + .file-render {
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
|
|
.card {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-14 18:19:21 -06:00
|
|
|
.file-render {
|
2019-08-13 01:35:13 -04:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-04-27 17:32:47 -04:00
|
|
|
z-index: 1;
|
2018-06-14 18:19:21 -06:00
|
|
|
overflow: hidden;
|
2019-11-14 12:23:42 -05:00
|
|
|
max-height: var(--inline-player-max-height);
|
2020-04-13 19:48:11 -04:00
|
|
|
border-radius: var(--card-radius);
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-render--embed {
|
|
|
|
border-radius: 0;
|
|
|
|
position: fixed;
|
|
|
|
max-height: none;
|
2018-07-26 18:24:00 -06:00
|
|
|
}
|
|
|
|
|
2020-01-06 13:32:35 -05:00
|
|
|
.file-render--document {
|
|
|
|
max-height: none;
|
2020-04-01 14:43:50 -04:00
|
|
|
overflow: auto;
|
2020-01-06 15:57:49 -05:00
|
|
|
|
2020-04-01 14:43:50 -04:00
|
|
|
.markdown-preview {
|
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
width: 40em;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
max-width: unset;
|
|
|
|
min-width: unset;
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
width: 100%;
|
2020-06-01 13:03:19 -04:00
|
|
|
padding: var(--spacing-s);
|
2020-04-01 14:43:50 -04:00
|
|
|
}
|
|
|
|
}
|
2020-01-06 13:32:35 -05:00
|
|
|
}
|
|
|
|
|
2020-04-01 15:36:59 -04:00
|
|
|
.file-render__header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2020-04-13 19:48:11 -04:00
|
|
|
.file-viewer {
|
2018-07-26 18:24:00 -06:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-10-17 12:14:24 -05:00
|
|
|
|
2018-07-26 18:24:00 -06:00
|
|
|
iframe,
|
2019-02-22 00:01:59 -05:00
|
|
|
webview,
|
2019-08-05 23:25:33 -04:00
|
|
|
img {
|
2018-06-14 18:19:21 -06:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-08-05 23:25:33 -04:00
|
|
|
object-fit: contain;
|
2020-04-14 02:46:55 -07:00
|
|
|
max-height: var(--inline-player-max-height);
|
2019-03-01 07:51:33 +09:00
|
|
|
}
|
2019-11-22 16:13:00 -05:00
|
|
|
video {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2020-01-09 17:19:04 +13:00
|
|
|
.video-js.vjs-fullscreen.vjs-user-inactive.vjs-playing {
|
|
|
|
video {
|
|
|
|
cursor: none;
|
|
|
|
}
|
|
|
|
}
|
2018-07-26 18:24:00 -06:00
|
|
|
}
|
|
|
|
|
2020-04-25 20:55:23 -05:00
|
|
|
.file-render__viewer--comic {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
.comic-viewer {
|
|
|
|
width: 100%;
|
2020-06-01 13:03:19 -04:00
|
|
|
height: calc(100vh - var(--header-height) - var(--spacing-m) * 2);
|
2020-04-25 20:55:23 -05:00
|
|
|
max-height: var(--inline-player-max-height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-13 19:48:11 -04:00
|
|
|
.file-viewer--iframe {
|
2020-04-01 14:43:50 -04: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 13:03:19 -04:00
|
|
|
height: calc(100vh - var(--header-height) - var(--spacing-m) * 2);
|
2018-10-17 12:14:24 -05:00
|
|
|
}
|
2018-07-26 18:24:00 -06:00
|
|
|
}
|
|
|
|
|
2020-04-25 03:24:42 -05:00
|
|
|
.file-render__viewer--three {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.three-viewer {
|
2020-06-01 13:03:19 -04:00
|
|
|
height: calc(100vh - var(--header-height) - var(--spacing-m) * 2);
|
2020-04-26 00:17:13 -05:00
|
|
|
max-height: var(--inline-player-max-height);
|
2020-04-25 03:24:42 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-13 19:48:11 -04: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 13:03:19 -04:00
|
|
|
padding: var(--spacing-l);
|
2020-04-13 19:48:11 -04:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--uri-indicator,
|
|
|
|
.button--link {
|
|
|
|
color: var(--color-white);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 13:03:19 -04:00
|
|
|
margin-bottom: var(--spacing-m);
|
2020-04-13 19:48:11 -04:00
|
|
|
}
|
|
|
|
.file-viewer__overlay-secondary {
|
|
|
|
color: var(--color-text-subtitle);
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-bottom: var(--spacing-m);
|
2020-04-13 19:48:11 -04:00
|
|
|
}
|
|
|
|
.file-viewer__overlay-actions {
|
|
|
|
.button + .button {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-left: var(--spacing-m);
|
2020-04-13 19:48:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-viewer__overlay-logo {
|
|
|
|
color: var(--color-white);
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
height: 30px;
|
|
|
|
stroke-width: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-22 16:47:10 -04:00
|
|
|
.file-viewer--is-playing:not(:hover) .file-viewer__embedded-header {
|
2020-04-13 19:48:11 -04:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-05-22 16:47:10 -04:00
|
|
|
.file-viewer__embedded-header {
|
2020-04-13 19:48:11 -04:00
|
|
|
position: absolute;
|
2020-04-29 14:35:55 -04:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2020-04-13 19:48:11 -04:00
|
|
|
width: 100%;
|
|
|
|
top: 0;
|
|
|
|
z-index: 2;
|
|
|
|
font-size: var(--font-large);
|
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2020-04-29 17:45:43 -04:00
|
|
|
background-repeat: repeat-x;
|
|
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==);
|
2020-04-29 14:35:55 -04:00
|
|
|
|
2020-04-13 19:48:11 -04:00
|
|
|
.button {
|
2020-06-01 13:03:19 -04:00
|
|
|
padding: var(--spacing-s);
|
2020-04-13 19:48:11 -04:00
|
|
|
color: var(--color-white);
|
2020-04-29 14:35:55 -04:00
|
|
|
|
2020-04-30 11:01:11 -04:00
|
|
|
.button__label {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2020-04-29 16:50:06 -04:00
|
|
|
&:hover {
|
|
|
|
color: var(--color-white);
|
|
|
|
}
|
2020-05-22 16:47:10 -04:00
|
|
|
}
|
2020-04-29 16:50:06 -04:00
|
|
|
|
2020-05-22 16:47:10 -04:00
|
|
|
.credit-amount,
|
|
|
|
.icon--Key {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-right: var(--spacing-m);
|
2020-05-22 16:47:10 -04:00
|
|
|
}
|
|
|
|
}
|
2020-04-30 11:01:11 -04:00
|
|
|
|
2020-05-22 16:47:10 -04:00
|
|
|
.file-viewer__embedded-title {
|
|
|
|
max-width: 75%;
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-viewer__embedded-info {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: var(--font-small);
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-left: var(--spacing-m);
|
2020-05-22 16:47:10 -04:00
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
& > *:not(:last-child) {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-right: var(--spacing-s);
|
2020-04-13 19:48:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-13 01:35:13 -04:00
|
|
|
.file-render__content {
|
2018-07-27 19:42:35 -06:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2018-10-17 12:14:24 -05:00
|
|
|
overflow: auto;
|
2020-02-28 16:44:24 +13:00
|
|
|
max-width: 100vw;
|
2018-07-27 19:42:35 -06:00
|
|
|
}
|
|
|
|
|
2019-08-13 01:35:13 -04:00
|
|
|
//
|
|
|
|
// Custom viewers live below here
|
2019-10-13 23:11:51 +05:30
|
|
|
// These either have custom class names that can't be changed or have styles that need to be overridden
|
2019-08-13 01:35:13 -04:00
|
|
|
//
|
|
|
|
|
2018-10-17 12:14:24 -05:00
|
|
|
// Code-viewer
|
2019-08-13 01:35:13 -04:00
|
|
|
.CodeMirror {
|
|
|
|
@extend .file-render__content;
|
2018-07-26 18:24:00 -06:00
|
|
|
|
2018-10-17 12:14:24 -05:00
|
|
|
.cm-invalidchar {
|
|
|
|
display: none;
|
2018-07-26 18:24:00 -06:00
|
|
|
}
|
|
|
|
|
2018-07-27 19:42:35 -06:00
|
|
|
.CodeMirror .CodeMirror-lines {
|
2018-10-17 12:14:24 -05:00
|
|
|
// is there really a .CodeMirror inside a .CodeMirror?
|
2020-06-01 13:03:19 -04:00
|
|
|
padding: var(--spacing-s) 0;
|
2018-07-27 19:42:35 -06:00
|
|
|
}
|
|
|
|
|
2018-10-17 12:14:24 -05:00
|
|
|
.CodeMirror-code {
|
2018-12-19 00:44:53 -05:00
|
|
|
@include font-mono;
|
|
|
|
letter-spacing: 0.1rem;
|
2018-07-26 18:24:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-gutters {
|
2019-12-09 12:25:13 -05:00
|
|
|
background-color: var(--color-gray-1);
|
|
|
|
border-right: 1px solid var(--color-gray-4);
|
2020-06-01 13:03:19 -04:00
|
|
|
padding-right: var(--spacing-m);
|
2018-07-26 18:24:00 -06:00
|
|
|
}
|
|
|
|
|
2018-10-17 12:14:24 -05:00
|
|
|
.CodeMirror-line {
|
2020-06-01 13:03:19 -04:00
|
|
|
padding-left: var(--spacing-m);
|
2018-10-17 12:14:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linenumber {
|
2019-12-09 12:25:13 -05:00
|
|
|
color: var(--color-gray-5);
|
2018-07-26 18:24:00 -06:00
|
|
|
}
|
|
|
|
}
|
2019-08-05 23:25:33 -04:00
|
|
|
|
2020-04-16 17:43:09 -04:00
|
|
|
.video-js-parent {
|
2019-08-05 23:25:33 -04:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2020-04-16 17:43:09 -04:00
|
|
|
}
|
2019-08-05 23:25:33 -04:00
|
|
|
|
2020-04-28 15:33:30 -04:00
|
|
|
.video-js-parent--ios {
|
|
|
|
.vjs-control-bar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-16 17:43:09 -04:00
|
|
|
// By default no video js play button
|
|
|
|
.vjs-big-play-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-js {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2019-08-14 14:09:45 -04: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-22 21:21:07 -07:00
|
|
|
|
|
|
|
.vjs-control-bar {
|
|
|
|
.vjs-remaining-time {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-current-time,
|
|
|
|
.vjs-time-divider,
|
|
|
|
.vjs-duration {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
2019-08-05 23:25:33 -04:00
|
|
|
}
|
2019-12-12 16:25:31 -05:00
|
|
|
|
2020-04-27 18:44:19 -04:00
|
|
|
.video-js:hover {
|
|
|
|
.vjs-big-play-button {
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-12 16:25:31 -05:00
|
|
|
.file-render {
|
|
|
|
.video-js {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-04-13 19:48:11 -04:00
|
|
|
}
|
2019-12-12 16:25:31 -05:00
|
|
|
|
2020-04-13 19:48:11 -04:00
|
|
|
.vjs-big-play-button {
|
|
|
|
@extend .button--icon;
|
|
|
|
@extend .button--play;
|
|
|
|
border: none;
|
|
|
|
position: static;
|
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
.vjs-icon-placeholder {
|
|
|
|
display: none;
|
2019-12-12 16:25:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-27 13:52:25 -05:00
|
|
|
|
2020-04-13 19:48:11 -04:00
|
|
|
.file-render--embed {
|
2020-04-30 11:01:11 -04: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-19 22:20:14 -06:00
|
|
|
.vjs-big-play-button {
|
2020-04-27 18:44:19 -04:00
|
|
|
display: block;
|
2020-04-29 10:00:48 -04:00
|
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-30 11:01:11 -04:00
|
|
|
.vjs-ended {
|
2020-04-29 10:00:48 -04:00
|
|
|
.vjs-big-play-button {
|
2020-04-30 11:01:11 -04:00
|
|
|
display: none;
|
2020-02-19 22:20:14 -06:00
|
|
|
}
|
|
|
|
}
|
2020-01-28 10:18:33 -05:00
|
|
|
}
|
|
|
|
|
2020-04-30 10:37:39 -04: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
|
|
|
|
}
|
|
|
|
|
2020-04-13 19:48:11 -04:00
|
|
|
.autoplay-countdown {
|
2020-01-27 13:52:25 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-04-13 19:48:11 -04:00
|
|
|
width: 100%;
|
2020-01-27 13:52:25 -05:00
|
|
|
}
|
|
|
|
|
2020-04-13 19:48:11 -04:00
|
|
|
.autoplay-countdown__timer {
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
.autoplay-countdown__counter {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-top: var(--spacing-m);
|
2020-01-27 13:52:25 -05:00
|
|
|
}
|
|
|
|
|
2020-04-13 19:48:11 -04: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 15:02:58 -05:00
|
|
|
}
|
2020-01-27 13:52:25 -05:00
|
|
|
}
|
2020-04-13 19:48:11 -04: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 13:52:25 -05:00
|
|
|
}
|