Add Question.valid_file_portrait as well as crop editor for images

This commit is contained in:
Raphael Michel
2021-04-19 15:39:38 +02:00
parent 638b856f42
commit 24bccf8b9c
24 changed files with 4239 additions and 21 deletions

View File

@@ -142,3 +142,11 @@
.btn-invisible {
opacity: 0 !important;
}
.answer-thumb img {
width: auto;
height: auto;
max-height: 100px;
max-width: 100%;
margin-top: 5px;
}

View File

@@ -102,6 +102,22 @@ a.btn, button.btn {
}
}
.photo-initial {
margin-bottom: 5px;
}
.photo-preview {
max-width: 550px;
width: 100%;
height: auto;
margin-top: 10px;
img {
display: block;
max-width: 100%;
}
}
@media(max-width: $screen-xs-max) {
.nameparts-form-group {
display: block;

View File

@@ -2,6 +2,7 @@
@import "../../bootstrap/scss/_bootstrap_reduced.scss";
@import "../../pretixbase/scss/_theme.scss";
@import "../../lightbox/css/lightbox.scss";
@import "../../cropper/cropper.scss";
@import "../../datetimepicker/_bootstrap-datetimepicker.scss";
@import "../../slider/_bootstrap-slider.scss";
@import "../../fontawesome/scss/font-awesome.scss";