From fafaa807aa2ba4f5145de1f5f64624866cd9103e Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Tue, 4 May 2021 22:27:46 +0200 Subject: [PATCH] fixed custom color chooser on new category page --- src/main/resources/static/css/spectrum.css | 10 ++++++++++ .../resources/templates/categories/newCategory.ftl | 1 + 2 files changed, 11 insertions(+) create mode 100644 src/main/resources/static/css/spectrum.css diff --git a/src/main/resources/static/css/spectrum.css b/src/main/resources/static/css/spectrum.css new file mode 100644 index 000000000..6a079541a --- /dev/null +++ b/src/main/resources/static/css/spectrum.css @@ -0,0 +1,10 @@ +#customColorPickerContainer .sp-replacer { + border: none; + padding: 0; +} + +#customColorPickerContainer .sp-preview { + border: none; + height: 100%; + width: 100%; +} \ No newline at end of file diff --git a/src/main/resources/templates/categories/newCategory.ftl b/src/main/resources/templates/categories/newCategory.ftl index 5dd6a7971..ef9856ba0 100644 --- a/src/main/resources/templates/categories/newCategory.ftl +++ b/src/main/resources/templates/categories/newCategory.ftl @@ -13,6 +13,7 @@ <@header.header "BudgetMaster - ${title}"/> <link type="text/css" rel="stylesheet" href="<@s.url '${"/css/libs/spectrum.css"}'/>"/> + <@header.style "spectrum"/> </head> <@header.body> <#import "../helpers/navbar.ftl" as navbar> -- GitLab