lbry-desktop/src/renderer/scss/component/_content.scss

107 lines
1.7 KiB
SCSS
Raw Normal View History

.content {
flex: 1 0 var(--file-page-min-width);
overflow-x: hidden;
overflow-y: auto;
position: relative;
}
2018-10-17 19:14:24 +02:00
.content__cover {
// Video thumbnail with play/download button
top: 0;
left: 0;
bottom: 0;
right: 0;
align-items: center;
2018-10-18 23:05:32 +02:00
background-position: center;
2018-10-17 19:14:24 +02:00
background-repeat: no-repeat;
2018-10-18 23:05:32 +02:00
background-size: cover;
2018-10-17 19:14:24 +02:00
display: flex;
justify-content: center;
position: absolute;
&:not(.card__media--nsfw) {
background-color: $lbry-black;
html[data-theme='dark'] & {
background-color: rgba($lbry-white, 0.1);
}
2018-10-17 19:14:24 +02:00
}
&:hover {
cursor: pointer;
}
}
2018-03-26 23:32:43 +02:00
.content__embedded {
@include thumbnail;
2018-10-17 19:14:24 +02:00
align-items: center;
background-color: $lbry-black;
2018-03-26 23:32:43 +02:00
display: flex;
justify-content: center;
margin-bottom: var(--spacing-vertical-large);
max-height: 60vh;
2018-10-17 19:14:24 +02:00
position: relative;
width: 100%;
2018-03-26 23:32:43 +02:00
video {
width: 100%;
2018-10-17 19:14:24 +02:00
height: 100%;
2018-03-26 23:32:43 +02:00
top: 0;
left: 0;
2018-10-17 19:14:24 +02:00
position: absolute;
&:hover {
cursor: pointer;
}
}
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
.content__empty {
@include thumbnail;
2018-03-26 23:32:43 +02:00
align-items: center;
2018-10-17 19:14:24 +02:00
background-color: $lbry-black;
color: $lbry-white;
display: flex;
2018-03-26 23:32:43 +02:00
justify-content: center;
2018-10-17 19:14:24 +02:00
width: 100%;
}
2018-03-26 23:32:43 +02:00
.content__empty--nsfw {
background-color: $lbry-grape-3;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
.content__loading {
2018-05-03 20:23:28 +02:00
width: 100%;
height: 100%;
2018-10-17 19:14:24 +02:00
align-items: center;
background-color: rgba($lbry-black, 0.5);
2018-03-26 23:32:43 +02:00
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 var(--spacing-vertical-large);
2018-03-26 23:32:43 +02:00
}
.content__loading-text {
color: $lbry-white;
2018-03-26 23:32:43 +02:00
}
.content__view {
width: 100%;
2018-10-17 19:14:24 +02:00
height: 100%;
top: 0;
left: 0;
align-items: center;
2018-10-17 19:14:24 +02:00
display: flex;
justify-content: center;
2018-10-17 19:14:24 +02:00
position: absolute;
2018-10-17 19:14:24 +02:00
iframe {
width: 100%;
height: 100%;
background-color: $lbry-white;
}
}