Files
stash/ui/v2.5/src/components/Images/styles.scss
WithoutPants ec6acab2f4 Details operation toolbar (#4714)
* Add scene detail header
* Make common count button and add view count
* Add titles to play count and o count buttons
* Move rating from edit panel
* Include frame rate in header
* Remove redundant title/studio
* Improve numeric rating presentation
* Add star where there is no rating header
* Set rating on blur when click to edit
* Add star to numeric rating on gallery wall card
* Apply click to rate on movie page
* Apply click to rate to performer page
* Apply click to rate to studio page
* Fix rating number presentation on list tables
* Add data-value attributes
2024-04-17 10:29:36 +10:00

196 lines
2.8 KiB
SCSS

@include media-breakpoint-only(lg) {
.image-header-container {
align-items: center;
display: flex;
justify-content: space-between;
.image-header {
flex: 0 0 75%;
order: 1;
}
.image-studio-image {
flex: 0 0 25%;
order: 2;
}
}
}
.image-header {
flex-basis: auto;
font-size: 1.5rem;
margin-top: 30px;
@include media-breakpoint-down(xl) {
font-size: 1.75rem;
}
}
.image-subheader {
display: flex;
justify-content: space-between;
margin-top: 0.5rem;
.date {
color: $text-muted;
}
.resolution {
font-weight: bold;
}
}
.image-toolbar {
align-items: center;
display: flex;
justify-content: space-between;
margin-bottom: 0.25rem;
margin-top: 0.5rem;
padding-bottom: 0.25rem;
width: 100%;
.image-toolbar-group {
align-items: center;
column-gap: 0.25rem;
display: flex;
width: 100%;
&:last-child {
justify-content: flex-end;
}
}
}
#image-details-container {
.tab-content {
min-height: 15rem;
}
.image-description {
width: 100%;
}
}
.image-card {
&.card {
overflow: hidden;
padding: 0;
@media (max-width: 576px) {
width: 100%;
}
}
.rating-banner {
transition: opacity 0.5s;
}
&-preview {
display: flex;
justify-content: center;
margin-bottom: 5px;
position: relative;
&-image {
height: 100%;
object-fit: contain;
object-position: top;
width: 100%;
}
&.portrait {
.image-card-preview-image {
object-fit: contain;
}
}
}
&:hover {
.rating-banner {
opacity: 0;
transition: opacity 0.5s;
}
}
}
.image-tabs {
max-height: calc(100vh - 4rem);
overflow-wrap: break-word;
word-wrap: break-word;
}
$imageTabWidth: 450px;
@media (min-width: 1200px) {
.image-tabs {
flex: 0 0 $imageTabWidth;
max-width: $imageTabWidth;
overflow: auto;
}
.image-container {
flex: 0 0 calc(100% - #{$imageTabWidth});
max-width: calc(100% - #{$imageTabWidth});
}
}
.image-tabs,
.image-container {
padding-left: 15px;
padding-right: 15px;
position: relative;
width: 100%;
}
.image-container {
display: flex;
img {
max-height: calc(100vh - 4rem);
max-width: 100%;
object-fit: contain;
}
}
@media (min-width: 1200px) {
.image-container {
height: calc(100vh - 4rem);
}
}
@media (min-width: 1200px), (max-width: 575px) {
.image-performers {
.performer-card {
width: 15rem;
&-image {
height: 22.5rem;
}
}
}
}
#image-edit-details {
.rating-stars {
font-size: 1.3em;
height: calc(1.5em + 0.75rem + 2px);
}
}
.image-file-card.card {
margin: 0;
padding: 0;
.card-header {
cursor: pointer;
}
dl {
margin-bottom: 0;
}
}
.col-form-label {
padding-right: 2px;
}