From 23cba9cda99237d63eb8e97712b01542d0024a67 Mon Sep 17 00:00:00 2001 From: roberto Date: Thu, 5 Dec 2024 18:16:04 +0100 Subject: [PATCH] CSS rework --- assets/static/css/main.css | 81 +++++++++++++++++------ assets/templates/base.tmpl | 18 ++--- assets/templates/items/all_list.tmpl | 8 +-- assets/templates/items/all_list_rows.tmpl | 52 ++------------- assets/templates/items/list.tmpl | 22 ++---- assets/templates/items/list_rows.tmpl | 53 ++------------- 6 files changed, 89 insertions(+), 145 deletions(-) diff --git a/assets/static/css/main.css b/assets/static/css/main.css index c1497ca..baecd8f 100644 --- a/assets/static/css/main.css +++ b/assets/static/css/main.css @@ -263,14 +263,10 @@ button:hover, .button:hover { box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); } -button { +button, .button { padding: 8px 16px; } -.button { - padding: 10px 18px; -} - button.main, .button.main { background-color: var(--primary-color); color: #ffffff; @@ -373,6 +369,10 @@ input[type='text']{ padding-left: 16px } +th.operations, td.operations { + float:right; +} + .card { box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) } @@ -509,8 +509,8 @@ input[type='text']{ } #page-title { - padding: 4px 4px; font-size: 1.4rem; + float: left; } #page-title-title { @@ -522,11 +522,6 @@ input[type='text']{ float: right; } -#top-toolbar .button, #top-toolbar button { - padding-top: 0px; - padding-bottom: 0px; -} - #search-bar { float: right; } @@ -660,7 +655,7 @@ input[type='text']{ } .bar .bar-item { - padding: 6px 16px; + padding: 6px 8px; float: left; width: auto; border: none; @@ -787,13 +782,19 @@ input[type='text']{ #quickbox-title { float: left; - margin-left: 8px; - margin-top: 10px; + font-weight: bold; + width:100%; +} + +#quickbox-title-title { + float: left; + font-size: 1.4rem; } #quickbox-close { float: right; - margin-top: 4px; + padding-top:0; + padding-bottom:0; } #quickbox-top-bar { @@ -801,15 +802,24 @@ input[type='text']{ background-color: var(--primary-color); height: var(--quickbox-topbar-height); font-size: 18px; + display: flex; + align-items: center; +} + +#quickbox-top-bar .logo { + float: left; + margin-left: 8px; } #quickbox-footer { height: var(--quickbox-footer-height); - position:fixed; bottom:0; + position:fixed; + bottom:0; + background-color: #999999; } #quickbox-content { - height: calc(100vh - var(--quickbox-footer-height)); + height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-topbar-height)); overflow: auto; display: flex; flex-direction: column-reverse; @@ -861,18 +871,31 @@ input[type='text']{ padding: 2px; } -#quickbox-footer .button { - width: 50px; - margin-left: 4px; +#quickbox-footer:after, #quickbox-footer:before { + content: ""; + display: table; + clear: both; } -#quickbox-send { +#notesend { + width: 50px; + float: right; +} + +#notesend button { cursor: pointer; padding: 14px 16px; } -#quickbox-footer .textarea { +#notetext { padding-right: 4px; + overflow: hidden; + display: block; +} + +#notetext textarea { + resize: none; + padding: 0px; } .quickbox-row { @@ -900,6 +923,15 @@ input[type='text']{ /* Small */ @media (max-width: 568px) { + #page-title-container { + display: flex; + align-items: center; + } + + #page-title { + width: 100%; + } + .table-all.responsive table, .table-all.responsive thead, .table-all.responsive tbody, @@ -975,6 +1007,7 @@ input[type='text']{ #quickbox-top-bar { position: relative; } + #quickbox-footer { position: relative; } @@ -1124,4 +1157,8 @@ input[type='text']{ #page-top-bar { padding-right: 300px; } + + #quickbox-title-title { + padding-left: 16px; + } } diff --git a/assets/templates/base.tmpl b/assets/templates/base.tmpl index 36d30a2..a49882c 100644 --- a/assets/templates/base.tmpl +++ b/assets/templates/base.tmpl @@ -51,7 +51,7 @@