From 1660c867fed90aeefb05e0056fd2950b92a3e8e9 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Thu, 8 Mar 2018 00:47:34 +0100 Subject: [PATCH] more design on forms done, reactive validation stripes added --- templates/default-layout.lucius | 1 + templates/standalone/sortable.lucius | 4 +- templates/widgets/form.julius | 57 ++++++++++++++++++---------- templates/widgets/form.lucius | 27 ++++++------- 4 files changed, 54 insertions(+), 35 deletions(-) diff --git a/templates/default-layout.lucius b/templates/default-layout.lucius index 854b030cd..f81c52cea 100644 --- a/templates/default-layout.lucius +++ b/templates/default-layout.lucius @@ -18,6 +18,7 @@ --whitebase: #FCFFFA; --greybase: #B1B5C0; --fontbase: #34303a; + --fontsec: #5b5861; /* THEME INDEPENDENT COLORS */ diff --git a/templates/standalone/sortable.lucius b/templates/standalone/sortable.lucius index fd2113a48..5f9ea1b64 100644 --- a/templates/standalone/sortable.lucius +++ b/templates/standalone/sortable.lucius @@ -23,9 +23,9 @@ table.js-sortable th.sorted-desc::after { } table.js-sortable th.sorted-asc::after { - border-bottom: 8px solid var(--lightbase); + border-top: 8px solid var(--lightbase); } table.js-sortable th.sorted-desc::after { - border-top: 8px solid var(--lightbase); + border-bottom: 8px solid var(--lightbase); } diff --git a/templates/widgets/form.julius b/templates/widgets/form.julius index 3efa02d9f..f6221e21b 100644 --- a/templates/widgets/form.julius +++ b/templates/widgets/form.julius @@ -1,26 +1,41 @@ -document.addEventListener('DOMContentLoaded', function() { +(function() { + 'use strict'; if (!window.utils) { window.utils = {}; } // makes