Repository URL to install this package:
|
Version:
8.1.0-rc.5 ▾
|
.ImageUpload-note {
margin-top: 4px;
}
.ImageUpload-input {
display: none;
}
/* Image Cropper */
/* Wrapper */
.ImageCropper-Wrapper {
background: white;
border-radius: 8px;
padding: var(--space-2x);
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.ImageCropper-Wrapper--Avatar {
height: 350px;
width: 350px;
}
.ImageCropper-Wrapper--Logo {
height: 350px;
width: 600px;
}
.ImageCropper-Wrapper--Background {
height: 616px;
width: 700px;
}
/* Cropping Container */
.ImageCropper-CropWrapper {
width: 100%;
position: relative;
height: 100%;
}
.ImageCropper-CropContainer {
height: 100%;
width: 100%;
border-radius: 3px;
}
.ImageCropper-CropContainer--Background {
background-color: rgba(0,0,0,0.5);
}
/* Controls Container */
.ImageCropper-ControlsContainer {
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
}
.ImageCropper-ButtonsRow {
display: flex;
justify-content: space-between;
width: 100%;
}
.ImageCropper-RangeContainer {
width: 40%;
}
/* Media Querys */
@media only screen and (max-width: 767px) {
/* Use viewport as cannot work with percentages
due to Modal component not declaring height/width */
.ImageCropper-Wrapper {
width: 100vw;
}
.ImageCropper-Wrapper--Background {
height: 75vh;
}
.ImageCropper-ButtonsRow {
margin-top: var(--space-2x);
}
}
/* Input Range
Taken from https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/
And for anyone who ever wants to debug the input range the easy way:
https://css-tricks.com/sliding-nightmare-understanding-range-input/ */
.ImageCropper-Range {
-webkit-appearance: none;
width: 100%;
}
.ImageCropper-Range:focus {
outline: none;
}
/* Chrome
Track styles */
.ImageCropper-Range::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
cursor: pointer;
animate: 0.2s;
background: var(--color-brand-600);
border-radius: 3px;
}
/* Thumb */
.ImageCropper-Range::-webkit-slider-thumb {
box-shadow: 0 0 1px 0.5px var(--color-brand-700);
height: 16px;
width: 16px;
border-radius: 16px;
background: var(--color-brand-500);
cursor: pointer;
-webkit-appearance: none;
}
/* Mozilla
Track styles */
.ImageCropper-Range::-moz-range-track {
width: 100%;
height: 4px;
cursor: pointer;
animate: 0.2s;
background: var(--color-brand-600);
border-radius: 3px;
}
/* Thumb styles */
.ImageCropper-Range::-moz-range-thumb {
height: 16px;
width: 16px;
border-radius: 16px;
background: var(--color-brand-500);
cursor: pointer;
}
/* IE
Track styles */
.ImageCropper-Range::-ms-track {
width: 100%;
height: 6px;
cursor: pointer;
animate: 0.2s;
background: transparent;
border-color: transparent;
border-width: 16px 0;
color: transparent;
}
.ImageCropper-Range::-ms-fill-lower {
background: var(--color-brand-600);
border-radius: 3px;
}
.ImageCropper-Range::-ms-fill-upper {
background: var(--color-brand-600);
border-radius: 3px;
}
/* Thumb styles */
.ImageCropper-Range::-ms-thumb {
height: 16px;
width: 16px;
border-radius: 16px;
background: var(--color-brand-500);
cursor: pointer;
}
/* Styles only neccessary for Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
/* Messes up position of thumb in IE11 */
.ImageCropper-RangeContainer {
margin-top: var(--space-2x);
}
/* Needed to position thumb centrally in Chrome
already in center in IE11 */
.ImageCropper-Range::-webkit-slider-thumb {
margin-top: -6px;
}
}