2019-08-13 07:35:13 +02:00
|
|
|
.content__viewer {
|
|
|
|
@extend .card;
|
|
|
|
position: absolute;
|
|
|
|
top: var(--spacing-large);
|
|
|
|
}
|
|
|
|
|
2019-11-14 18:23:42 +01:00
|
|
|
.content__viewer--inline {
|
|
|
|
max-height: var(--inline-player-max-height);
|
2020-01-06 21:57:49 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2019-11-14 18:23:42 +01:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
left: calc(var(--spacing-large) + var(--spacing-small));
|
|
|
|
z-index: 9999;
|
|
|
|
|
|
|
|
&:hover {
|
2020-01-08 21:00:50 +01:00
|
|
|
.content__actions,
|
|
|
|
.content__floating-header {
|
2019-08-13 07:35:13 +02:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content__wrapper {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content__wrapper--floating {
|
|
|
|
height: var(--floating-viewer-height);
|
|
|
|
width: var(--floating-viewer-width);
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
margin-left: var(--spacing-small);
|
2020-01-08 21:00:50 +01:00
|
|
|
|
|
|
|
svg {
|
|
|
|
color: var(--color-white);
|
|
|
|
}
|
2019-08-13 07:35:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-08 21:00:50 +01:00
|
|
|
.content__floating-header {
|
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 2rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
padding: 0.25rem;
|
|
|
|
background-color: var(--color-background);
|
|
|
|
}
|
|
|
|
|
|
|
|
.content__actions,
|
|
|
|
.content__floating-header {
|
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;
|
|
|
|
height: var(--floating-viewer-info-height);
|
|
|
|
padding: var(--spacing-medium);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
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;
|
2020-04-01 20:43:50 +02:00
|
|
|
border-radius: var(--card-radius);
|
|
|
|
border: 1px solid var(--color-border);
|
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
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
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: '';
|
|
|
|
background: rgba(255, 255, 255, 0.5);
|
|
|
|
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;
|
2019-06-11 20:10:58 +02:00
|
|
|
padding: 0 var(--spacing-large);
|
2019-01-14 19:40:06 +01:00
|
|
|
background-color: #000;
|
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
|
|
|
}
|