168 lines
3.3 KiB
SCSS
168 lines
3.3 KiB
SCSS
/* Show load indicator when image is being loaded */
|
|
.cropit-preview.cropit-image-loading .spinner {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Show move cursor when image has been loaded */
|
|
.cropit-preview.cropit-image-loaded .cropit-preview-image-container {
|
|
cursor: move;
|
|
}
|
|
|
|
/* Gray out zoom slider when the image cannot be zoomed */
|
|
.cropit-image-zoom-input[disabled] {
|
|
opacity: .2;
|
|
}
|
|
|
|
/* Hide default file input button if you want to use a custom button */
|
|
input.cropit-image-input {
|
|
visibility: hidden;
|
|
}
|
|
|
|
/* The following styles are only relevant to when background image is enabled */
|
|
/* Translucent background image */
|
|
.cropit-preview-background {
|
|
opacity: .2;
|
|
}
|
|
|
|
/*
|
|
* If the slider or anything else is covered by the background image,
|
|
* use non-static position on it
|
|
*/
|
|
input.cropit-image-zoom-input {
|
|
position: relative;
|
|
}
|
|
|
|
/* Limit the background image by adding overflow: hidden */
|
|
#image-cropper {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cropit-preview {
|
|
background-color: #f8f8f8;
|
|
background-size: cover;
|
|
border: 5px solid #ccc;
|
|
border-radius: 3px;
|
|
margin-top: 7px;
|
|
width: 250px;
|
|
height: 250px;
|
|
}
|
|
|
|
.cropit-preview-image-container {
|
|
cursor: move;
|
|
}
|
|
|
|
.cropit-preview-background {
|
|
opacity: .2;
|
|
cursor: auto;
|
|
}
|
|
|
|
.image-size-label {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.resize-button-group {
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
height: 50px;
|
|
}
|
|
|
|
.btn-remove-photo {
|
|
position: absolute;
|
|
top: 40px;
|
|
left: 30px;
|
|
}
|
|
|
|
input[type=range] {
|
|
/*removes default webkit styles*/
|
|
-webkit-appearance: none;
|
|
/*fix for FF unable to apply focus style bug */
|
|
border: 0px solid white;
|
|
/*required for proper track sizing in FF*/
|
|
width: 160px;
|
|
vertical-align: middle;
|
|
padding: 0px;
|
|
}
|
|
|
|
input[type=range]::-webkit-slider-runnable-track {
|
|
height: 5px;
|
|
background: #ddd;
|
|
border: none;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
input[type=range]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
border: none;
|
|
height: 16px;
|
|
width: 16px;
|
|
border-radius: 50%;
|
|
background: goldenrod;
|
|
margin-top: -4px;
|
|
}
|
|
|
|
input[type=range]:focus {
|
|
outline: none;
|
|
}
|
|
|
|
input[type=range]:focus::-webkit-slider-runnable-track {
|
|
background: #ccc;
|
|
}
|
|
|
|
input[type=range]::-moz-range-track {
|
|
height: 5px;
|
|
background: #ddd;
|
|
border: none;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
input[type=range]::-moz-range-thumb {
|
|
border: none;
|
|
height: 16px;
|
|
width: 16px;
|
|
border-radius: 50%;
|
|
background: goldenrod;
|
|
}
|
|
|
|
/*hide the outline behind the border*/
|
|
input[type=range]:-moz-focusring {
|
|
outline: 1px solid white;
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
input[type=range]::-ms-track {
|
|
height: 5px;
|
|
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
|
|
background: transparent;
|
|
/*leave room for the larger thumb to overflow with a transparent border */
|
|
border-color: transparent;
|
|
border-width: 6px 0;
|
|
/*remove default tick marks*/
|
|
color: transparent;
|
|
}
|
|
|
|
input[type=range]::-ms-fill-lower {
|
|
background: #777;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
input[type=range]::-ms-fill-upper {
|
|
background: #ddd;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
input[type=range]::-ms-thumb {
|
|
border: none;
|
|
height: 16px;
|
|
width: 16px;
|
|
border-radius: 50%;
|
|
background: goldenrod;
|
|
}
|
|
|
|
input[type=range]:focus::-ms-fill-lower {
|
|
background: #888;
|
|
}
|
|
|
|
input[type=range]:focus::-ms-fill-upper {
|
|
background: #ccc;
|
|
}
|