Added bootstrap-colorpicker

This commit is contained in:
Raphael Michel
2017-05-07 11:54:15 +02:00
parent 3de85975d6
commit c98b0aac90
12 changed files with 1576 additions and 2 deletions

View File

@@ -187,6 +187,12 @@ $(function () {
earlier_field.on("dp.change", update);
});
$(".colorpickerfield").colorpicker({
format: 'hex',
align: 'left',
customClass: 'colorpicker-2x'
});
$("input[data-checkbox-dependency]").each(function () {
var dependent = $(this),
dependency = $($(this).attr("data-checkbox-dependency")),

View File

@@ -11,6 +11,7 @@
@import "_orders.scss";
@import "_dashboard.scss";
@import "../../pretixbase/scss/webfont.scss";
@import "../../colorpicker/bootstrap-colorpicker.scss";
footer {
text-align: center;
@@ -254,5 +255,20 @@ body.loading #wrapper {
border: 0 !important;
padding: 0 !important;
display: block !important;
}
}
.colorpicker-2x .colorpicker-saturation {
width: 200px;
height: 200px;
}
.colorpicker-2x .colorpicker-hue,
.colorpicker-2x .colorpicker-alpha {
width: 30px;
height: 200px;
}
.colorpicker-2x .colorpicker-color,
.colorpicker-2x .colorpicker-color div {
height: 30px;
}