SPACEBROWSER_INTERFACE/interface_base/master_styles/COMPONENT SCSS/UppyUpload.scss
2025-08-07 20:28:59 -04:00

136 lines
2.5 KiB
SCSS

@import '../../styles/abstracts/variables';
.video-content {
&__container {
display: inline-block;
width: 100%;
}
&__card {
position: relative;
margin-right: 8px;
margin-bottom: 8px;
text-align: center;
vertical-align: top;
border: 1px dashed $gray4;
cursor: pointer;
-webkit-transition: border-color 0.3s;
transition: border-color 0.3s;
width: 100%;
height: auto;
min-height: 300px;
margin-top: 20px;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
border-radius: $borderRadius;
&--show-preview {
border: none;
}
> div:first-child {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
width: 100%;
height: 100%;
}
.uppy-Root {
width: 100%;
height: 100%;
cursor: pointer;
opacity: 0;
}
.video-preview-wrapper {
width: 100%;
height: 100%;
&__btn-actions {
display: flex;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 6px;
z-index: 99;
width: 100%;
background-color: rgba($color: $default, $alpha: 0.6);
flex-direction: column;
justify-content: center;
align-items: center;
&--mobile {
display: none;
position: absolute;
bottom: 0;
background-color: rgba($color: $default, $alpha: 0.4);
z-index: 99;
width: 100%;
height: 32px;
span {
font-size: 12px;
color: $white;
font-weight: 500;
line-height: 32px;
}
}
button {
width: 90px;
background-color: transparent;
}
&--change {
span {
color: $white;
}
&:hover {
border-color: $white;
}
}
&--delete {
border-color: $red;
span {
color: $red;
}
}
}
&:hover {
.preview-wrapper__btn-actions {
animation: fade-in 0.3s;
display: flex;
}
}
img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: top;
}
.btn-play-video {
position: absolute;
width: 48px;
height: 48px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
cursor: pointer;
}
}
}
}