From 7eac6b45c153d04cd9812f7aa678be5bf7591439 Mon Sep 17 00:00:00 2001 From: roberto Date: Tue, 3 Dec 2024 17:55:25 +0100 Subject: [PATCH] CSS rework --- assets/static/css/main.css | 51 +++++++++++++++++++++++++---- assets/templates/base.tmpl | 21 +++++------- assets/templates/quickbox/list.tmpl | 12 +++---- 3 files changed, 58 insertions(+), 26 deletions(-) diff --git a/assets/static/css/main.css b/assets/static/css/main.css index 241c9fe..c1497ca 100644 --- a/assets/static/css/main.css +++ b/assets/static/css/main.css @@ -697,6 +697,10 @@ input[type='text']{ width: 100% } +.col.rest { + overflow: hidden; +} + .col.s1 { width: 8.33333% } @@ -781,8 +785,22 @@ input[type='text']{ z-index: 5; } +#quickbox-title { + float: left; + margin-left: 8px; + margin-top: 10px; +} + +#quickbox-close { + float: right; + margin-top: 4px; +} + #quickbox-top-bar { + color: #fff; + background-color: var(--primary-color); height: var(--quickbox-topbar-height); + font-size: 18px; } #quickbox-footer { @@ -797,14 +815,38 @@ input[type='text']{ flex-direction: column-reverse; } -#quickbox-content .w3-button { +.quickbox-row { + border: 1px solid #cccccc; + display: block; + width: 100%; + padding: 8px 16px; + border-radius: 8px; +} + +.quickbox-row:before { + content: ""; + display: table; +} + +.quickbox-row:after { + content: ""; + display: table; + clear: both; +} + +#quickbox-content .button { padding: 6px 10px; } -#quickbox-content .buttons { +.quickbox-row .buttons { + float: right; width: 32px; } +.quickbox-row .note { + overflow: hidden; +} + #quickbox-content .buttons :first-child { margin-bottom: 4px; } @@ -836,13 +878,10 @@ input[type='text']{ .quickbox-row { margin-top: 4px; margin-bottom: 4px; -} - -#quickbox-content .w3-row { background-color: #fff; } -#quickbox-content div:nth-child(2n+1) { +#quickbox-notes div:nth-child(2n+1) { background-color: #fafafa; } diff --git a/assets/templates/base.tmpl b/assets/templates/base.tmpl index 168e852..36d30a2 100644 --- a/assets/templates/base.tmpl +++ b/assets/templates/base.tmpl @@ -67,20 +67,15 @@ -
-
-
- -
-
Quickbox
-
- +
+
+ +
Quickbox
+
+
-
-
diff --git a/assets/templates/quickbox/list.tmpl b/assets/templates/quickbox/list.tmpl index f6328a9..385a5ad 100644 --- a/assets/templates/quickbox/list.tmpl +++ b/assets/templates/quickbox/list.tmpl @@ -1,7 +1,7 @@ {{define "quickbox:list"}} {{ $rowCount := 0 }} {{ range .quicknotes}} -
-
- - +
+ +
-
{{.Note_rendered | safeHTML}}
+
{{.Note_rendered | safeHTML}}
{{ end }} {{ end }} \ No newline at end of file