forked from CGM_Public/pretix_original
Added bootstrap-colorpicker
This commit is contained in:
@@ -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")),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user