FleetCart/Modules/Media/Resources/assets/admin/sass/main.scss
2023-12-03 14:07:47 +00:00

143 lines
2.6 KiB
SCSS

@import "dropzone/dist/dropzone";
.dropzone {
border: 2px dashed #d2d6de;
min-height: 232px;
margin-bottom: 25px;
&.dz-clickable {
border-radius: 3px;
}
.dz-message {
color: #646c7f;
font-size: 20px;
margin-top: 82px;
}
.dz-preview .dz-progress .dz-upload {
background: #0068e1;
}
}
.file-icon {
font-size: 20px;
}
.main-file {
width: 100%;
}
.file-thumbnail {
float: left;
margin-right: 10px;
> .thumbnail-name {
text-align: center;
}
}
.media-picker-divider {
border-bottom: 1px solid #e9e9e9;
margin-bottom: 20px;
}
.single-image-wrapper {
padding-bottom: 20px;
h4 {
font-weight: 500;
margin-bottom: 10px;
}
}
.single-image {
padding: 10px;
background: #f1f1f1;
margin-top: 15px;
display: inline-block;
border-radius: 3px;
vertical-align: bottom;
}
.image-holder {
position: relative;
float: left;
height: 125px;
width: 125px;
overflow: hidden;
background: #fff;
margin: 0;
border: 1px solid #d2d6de;
border-radius: 3px;
z-index: 0;
cursor: pointer;
.placeholder-image {
max-width: 80%;
}
> i {
position: absolute;
font-size: 60px;
color: #d9d9d9;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: -1;
}
> img {
position: absolute;
left: 50%;
top: 50%;
max-height: 100%;
max-width: 100%;
transform: translate(-50%, -50%);
z-index: 1;
}
> .remove-image {
position: absolute;
top: 2px;
right: 6px;
color: #ffffff;
padding: 0;
background: transparent;
transition: 150ms;
visibility: hidden;
opacity: 0;
font-size: 18px;
font-family: "FontAwesome";
-webkit-text-stroke: 1px #737881;
-moz-text-stroke: 1px #737881;
-ms-text-stroke: 1px #737881;
-o-text-stroke: 1px #737881;
z-index: 2;
&:focus {
border-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
&:active {
-webkit-box-shadow: none;
box-shadow: none;
}
&::after {
content: "\f00d";
}
}
&:hover > .remove-image {
visibility: visible;
opacity: 1;
}
}
.image-picker > i {
color: #737881;
}