Files
stash/ui/v2.5/src/components/Scenes/styles.scss
WithoutPants 298f3d4e19 Lazy load images (#4228)
* Add lazy loading for many images
* Load sprites on first hover of scrubber
2023-10-23 16:52:56 +11:00

719 lines
11 KiB
SCSS

.card-popovers {
display: flex;
justify-content: center;
margin-bottom: 10px;
.btn {
padding-bottom: 3px;
padding-top: 3px;
}
.fa-icon {
margin-right: 7px;
}
}
.video-section {
position: relative;
}
.card-section {
margin-bottom: 0;
padding: 0.5rem 1rem 0 1rem;
}
.performer-tag-container,
.movie-tag-container {
display: inline-block;
margin: 5px;
}
.performer-tag.image,
.movie-tag.image {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 150px;
margin: 0 auto;
width: 100%;
}
.operation-container {
.operation-item {
min-width: 240px;
}
.rating-operation {
min-width: 20px;
}
.apply-operation {
margin-top: 2rem;
}
}
.studio-logo {
margin-top: 1rem;
max-height: 8rem;
max-width: 100%;
}
.scene-header {
flex-basis: auto;
margin-top: 30px;
}
#scene-details-container {
.tab-content {
min-height: 15rem;
}
.scene-description {
width: 100%;
}
}
textarea.scene-description {
min-height: 150px;
}
.primary-card {
margin: 1rem 0;
&-body {
max-height: 15rem;
overflow-y: auto;
}
}
.studio-card {
padding: 0.5rem;
@media (max-width: 576px) {
width: 100%;
}
&-header {
height: 150px;
line-height: 150px;
text-align: center;
}
&-image {
max-height: 150px;
object-fit: contain;
vertical-align: middle;
width: 320px;
@media (max-width: 576px) {
width: 100%;
}
}
}
.scene-specs-overlay,
.scene-interactive-speed-overlay {
bottom: 1rem;
color: $text-color;
display: block;
font-weight: 400;
letter-spacing: -0.03rem;
position: absolute;
right: 0.7rem;
text-shadow: 0 0 3px #000;
}
.scene-specs-overlay {
right: 0.7rem;
}
.scene-interactive-speed-overlay {
left: 0.7rem;
}
.scene-studio-overlay {
display: block;
font-weight: 900;
height: 10%;
max-width: 40%;
opacity: 0.75;
position: absolute;
right: 0.7rem;
top: 0.7rem;
z-index: 8;
.image-thumbnail {
height: auto;
max-height: 50px;
max-width: 100%;
}
a {
color: $text-color;
display: inline-block;
letter-spacing: -0.03rem;
text-align: right;
text-decoration: none;
text-shadow: 0 0 3px #000;
}
}
.extra-scene-info {
display: none;
}
.overlay-resolution {
font-weight: 900;
margin-right: 0.3rem;
text-transform: uppercase;
}
.scene-card,
.gallery-card {
a {
color: $text-color;
text-decoration: none;
}
.scene-specs-overlay,
.rating-banner,
.scene-studio-overlay {
transition: opacity 0.5s;
}
&-preview {
display: flex;
justify-content: center;
margin-bottom: 5px;
position: relative;
&-image,
&-video {
height: 100%;
object-fit: cover;
object-position: top;
width: 100%;
}
&-video {
position: absolute;
top: -9999px;
transition: top 0s;
transition-delay: 0s;
}
&.portrait {
.scene-card-preview-image,
.scene-card-preview-video {
object-fit: contain;
}
}
}
&__details {
margin-bottom: 1rem;
}
&:hover,
&:active {
.scene-specs-overlay,
.rating-banner,
.scene-studio-overlay {
opacity: 0;
transition: opacity 0.5s;
}
.scene-studio-overlay:hover,
.scene-studio-overlay:active {
opacity: 0.75;
transition: opacity 0.5s;
}
.scene-card-check {
opacity: 0.75;
transition: opacity 0.5s;
}
.scene-card-preview-video {
top: 0;
transition-delay: 0.2s;
}
}
}
.scene-card.card {
overflow: hidden;
padding: 0;
@media (max-width: 576px) {
width: 100%;
}
&.fileless {
background-color: darken($card-bg, 5%);
}
}
.scene-cover {
display: block;
margin-bottom: 10px;
margin-top: 10px;
max-width: 100%;
}
.movie-image {
max-width: 100%;
}
.movie-table {
width: 100%;
td {
vertical-align: middle;
}
}
.scene-tabs {
display: flex;
flex-direction: column;
max-height: calc(100vh - 4rem);
overflow-wrap: break-word;
word-wrap: break-word;
> div {
flex: 0 1 auto;
}
}
input[type="range"].filter-slider {
height: 100%;
margin: 0;
padding-left: 0;
padding-right: 0;
}
@mixin contrast-slider() {
background: rgb(255, 255, 255);
background: linear-gradient(
-1deg,
rgba(255, 255, 255, 1) 0%,
rgba(255, 255, 255, 1) 40%,
rgba(0, 0, 0, 1) 60%,
rgba(0, 0, 0, 1) 100%
),
linear-gradient(90deg, rgba(61, 61, 61, 1) 0%, rgba(255, 255, 255, 0) 100%);
background-blend-mode: color;
}
input[type="range"].contrast-slider {
&::-webkit-slider-runnable-track {
@include contrast-slider;
}
&::-moz-range-track {
@include contrast-slider;
}
&::-ms-track {
@include contrast-slider;
}
}
@mixin brightness-slider() {
background: rgb(41, 41, 41);
background: linear-gradient(
90deg,
rgba(41, 41, 41, 1) 0%,
rgba(255, 255, 255, 1) 100%
);
}
input[type="range"].brightness-slider {
&::-webkit-slider-runnable-track {
@include brightness-slider;
}
&::-moz-range-track {
@include brightness-slider;
}
&::-ms-track {
@include brightness-slider;
}
}
@mixin saturation-slider() {
background: rgb(198, 198, 199);
background: linear-gradient(
90deg,
rgba(198, 198, 199, 1) 0%,
rgba(255, 71, 71, 1) 100%
);
}
input[type="range"].saturation-slider {
&::-webkit-slider-runnable-track {
@include saturation-slider;
}
&::-moz-range-track {
@include saturation-slider;
}
&::-ms-track {
@include saturation-slider;
}
}
@mixin hue-rotate-slider() {
background: rgb(198, 198, 199);
background: linear-gradient(
to right,
orange,
yellow,
green,
cyan,
blue,
violet
);
}
input[type="range"].hue-rotate-slider {
&::-webkit-slider-runnable-track {
@include hue-rotate-slider;
}
&::-moz-range-track {
@include hue-rotate-slider;
}
&::-ms-track {
@include hue-rotate-slider;
}
}
@mixin white-balance-slider() {
background: rgb(90, 138, 210);
background: linear-gradient(
90deg,
rgba(90, 138, 210, 1) 0%,
rgba(83, 72, 72, 1) 50%,
rgba(252, 186, 8, 1) 100%
);
}
input[type="range"].white-balance-slider {
&::-webkit-slider-runnable-track {
@include white-balance-slider;
}
&::-moz-range-track {
@include white-balance-slider;
}
&::-ms-track {
@include white-balance-slider;
}
}
@mixin red-slider() {
background: rgb(255, 0, 0);
}
input[type="range"].red-slider {
&::-webkit-slider-runnable-track {
@include red-slider;
}
&::-moz-range-track {
@include red-slider;
}
&::-ms-track {
@include red-slider;
}
}
@mixin green-slider() {
background: rgb(0, 255, 0);
}
input[type="range"].green-slider {
&::-webkit-slider-runnable-track {
@include green-slider;
}
&::-moz-range-track {
@include green-slider;
}
&::-ms-track {
@include green-slider;
}
}
@mixin blue-slider() {
background: rgb(0, 0, 255);
}
input[type="range"].blue-slider {
&::-webkit-slider-runnable-track {
@include blue-slider;
}
&::-moz-range-track {
@include blue-slider;
}
&::-ms-track {
@include blue-slider;
}
}
@media (min-width: 1200px), (max-width: 575px) {
.performer-card .fi {
height: 1.33rem;
width: 2rem;
}
.scene-performers {
.performer-card {
width: 15rem;
&-image {
height: 22.5rem;
}
}
}
}
#scene-edit-details {
.rating-stars {
font-size: 1.3em;
height: calc(1.5em + 0.75rem + 2px);
}
.edit-buttons-container {
background-color: #202b33;
position: sticky;
top: 0;
z-index: 3;
@media (min-width: 575px) and (max-width: 1199px) {
top: 3rem;
}
}
}
.scene-markers-panel {
.wall-item {
height: inherit;
min-height: 14rem;
width: calc(100% - 2rem);
&-missing {
font-size: 1.5rem;
}
&::before {
display: none;
}
&:hover {
.wall-item-container {
transform: scale(1);
}
}
}
}
.organized-button {
&.not-organized {
color: rgba(191, 204, 214, 0.5);
}
&.organized {
color: #664c3f;
}
}
.o-counter .dropdown-toggle {
background-color: rgba(0, 0, 0, 0);
border: none;
padding-left: 0;
padding-right: 0.25rem;
}
#queue-viewer {
.queue-controls {
align-items: center;
display: flex;
flex: 0 1 auto;
justify-content: space-between;
}
.thumbnail-container {
height: 50px;
margin-bottom: 5px;
margin-right: 0.75rem;
margin-top: 5px;
min-width: 100px;
width: 100px;
}
img {
height: 100%;
object-fit: contain;
object-position: center;
width: 100%;
}
a {
color: $text-color;
font-weight: 500;
text-decoration: none;
}
.current {
background-color: $secondary;
}
}
.scrape-query-dialog {
max-height: calc(100vh - 10rem);
}
.scraper-group {
& > .dropdown:not(:last-child) .btn {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
& > .dropdown:not(:first-child) .btn {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
}
.SceneScrapeModal-list {
list-style: none;
max-height: 50vh;
overflow-x: hidden;
overflow-y: auto;
padding-inline-start: 0;
li {
cursor: pointer;
}
}
.scene-file-card.card {
margin: 0;
padding: 0;
.card-header {
cursor: pointer;
}
dl {
margin-bottom: 0;
}
}
.scene-table {
table,
tr,
td,
label,
input {
height: 100%;
}
td:first-child {
padding: 0;
}
label {
display: block;
margin: 0;
padding: 0.5rem;
}
}
.scrape-dialog .rating-number.disabled {
padding-left: 0.5em;
}
.preview-scrubber {
height: 100%;
position: absolute;
width: 100%;
.scene-card-preview-image {
align-items: center;
display: flex;
justify-content: center;
overflow: hidden;
}
.scrubber-image {
height: 100%;
width: 100%;
}
.scrubber-timestamp {
bottom: calc(20px + 0.25rem);
font-weight: 400;
opacity: 0.75;
position: absolute;
right: 0.7rem;
text-shadow: 0 0 3px #000;
}
}
.hover-scrubber {
bottom: 0;
height: 20px;
overflow: hidden;
position: absolute;
width: 100%;
.hover-scrubber-area {
cursor: col-resize;
height: 100%;
position: absolute;
width: 100%;
z-index: 1;
}
&.hover-scrubber-inactive {
.hover-scrubber-area {
cursor: inherit;
}
.hover-scrubber-indicator {
background-color: inherit;
}
}
.hover-scrubber-indicator {
background-color: rgba(255, 255, 255, 0.1);
bottom: -100%;
height: 100%;
position: absolute;
transition: bottom 0.2s ease-in-out;
width: 100%;
.hover-scrubber-indicator-marker {
background-color: rgba(255, 0, 0, 0.5);
bottom: 0;
height: 5px;
position: absolute;
}
}
&:hover .hover-scrubber-indicator {
bottom: 0;
}
}