From fe590e4d9ec5184249f8a9c3bf99eeb07a4aadb0 Mon Sep 17 00:00:00 2001 From: roberto Date: Wed, 1 Jan 2025 17:30:11 +0100 Subject: [PATCH] UI fixes --- assets/static/css/main.css | 398 +++++++++--------- assets/templates/base.tmpl | 2 +- assets/templates/categories/create_title.tmpl | 2 +- assets/templates/categories/list_title.tmpl | 2 +- assets/templates/categories/update_title.tmpl | 2 +- assets/templates/items/all_list_rows.tmpl | 4 +- assets/templates/items/all_list_title.tmpl | 2 +- assets/templates/items/create_title.tmpl | 2 +- assets/templates/items/form.tmpl | 4 +- assets/templates/items/list_rows.tmpl | 2 +- assets/templates/items/list_title.tmpl | 2 +- assets/templates/items/update_title.tmpl | 2 +- assets/templates/notebooks/create_title.tmpl | 2 +- assets/templates/notebooks/list_title.tmpl | 2 +- assets/templates/notebooks/update_title.tmpl | 2 +- assets/templates/pages/home_items.tmpl | 6 +- assets/templates/pages/home_title.tmpl | 2 +- assets/templates/partials/sidebar.tmpl | 7 +- assets/templates/types/create_title.tmpl | 2 +- assets/templates/types/field_new.tmpl | 2 +- assets/templates/types/fields.tmpl | 4 +- assets/templates/types/form.tmpl | 2 +- assets/templates/types/list_title.tmpl | 2 +- assets/templates/types/update_title.tmpl | 2 +- 24 files changed, 230 insertions(+), 229 deletions(-) diff --git a/assets/static/css/main.css b/assets/static/css/main.css index 0815212..200f274 100644 --- a/assets/static/css/main.css +++ b/assets/static/css/main.css @@ -539,7 +539,8 @@ th.operations, td.operations { margin-left: 8px; padding: 0; width: 100%; - display: block; + display: flex; + align-items: center; } #page-title-container h5 { @@ -550,11 +551,13 @@ th.operations, td.operations { #page-title-title { font-size: 22px; color: #ffffff; - float: left; + flex-grow: 1; } -#top-toolbar { - float: right; +#page-title { + flex-grow: 1; + display: flex; + align-items: center; } #search-bar { @@ -599,6 +602,10 @@ th.operations, td.operations { float: right; } +.item { + margin-bottom: 10px; +} + .item-card { position: relative; background-color: #ffffff; @@ -1055,8 +1062,12 @@ dialog .content h5 { min-width: 300px; } -/* Small */ -@media (max-width: 568px) { +.show-large { + display: none; +} + +/* Extra small */ +@media (max-width: 576px) { body.full { background-color: var(--primary-color); } @@ -1119,7 +1130,7 @@ dialog .content h5 { font-weight: bold; } - .hide-small { + .hide-xsmall { display: none !important } @@ -1128,96 +1139,12 @@ dialog .content h5 { } } -/* Min medium */ -@media (min-width:601px) { - .home-card-summary { - height: 250px; - overflow: auto; - } - - #quickbox { - width: 400px; - position: fixed; - top: 54px; - left: calc(100vw - 420px); - background-color: #fff !important; - border: 2px solid var(--primary-color); - border-radius: 8px; - } - #quickbox-top-bar { - position: relative; - } - - #quickbox-footer { - position: relative; - } - - #quickbox-content { - height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-footer-height) - 42px); - } +/* Small */ +@media (min-width:577px) and (max-width: 767px) { } -/* Medium */ -@media (min-width: 768px) { - #form-login{ - width: 600px; - } - - .col.m1 { - width: 8.33333% - } - - .col.m2 { - width: 16.66666% - } - - .col.m3, - .quarter { - width: 24.99999% - } - - .col.m4, - .third { - width: 33.33333% - } - - .col.m5 { - width: 41.66666% - } - - .col.m6, - .half { - width: 49.99999% - } - - .col.m7 { - width: 58.33333% - } - - .col.m8, - .twothird { - width: 66.66666% - } - - .col.m9, - .w3-threequarter { - width: 74.99999% - } - - .col.m10 { - width: 83.33333% - } - - .col.m11 { - width: 91.66666% - } - - .col.m12 { - width: 99.99999% - } -} - -@media (min-width:601px) { +/* Minimum small */ +@media (min-width:576px) { .col.half { width: 49.99999%; } @@ -1226,99 +1153,8 @@ dialog .content h5 { } } -@media (max-width:993px) and (min-width:768px) { - .hide-medium { - display: none !important - } -} - -@media (min-width:993px) { - dialog { - max-width: 600px; - } - .col.l1 { - width: 8.33333% - } - - .col.l2 { - width: 16.66666% - } - - .col.l3 { - width: 24.99999% - } - - .col.l4 { - width: 33.33333% - } - - .col.l5 { - width: 41.66666% - } - - .col.l6 { - width: 49.99999% - } - - .col.l7 { - width: 58.33333% - } - - .col.l8 { - width: 66.66666% - } - - .col.l9 { - width: 74.99999% - } - - .col.l10 { - width: 83.33333% - } - - .col.l11 { - width: 91.66666% - } - - .col.l12 { - width: 99.99999% - } - - .hide-large { - display: none !important - } - - #main-sidebar { - display: block !important; - } - - .row > .half:first { - padding-right: 4px; - } - - .row > .half:nth-child(2) { - padding-left: 4px; - } - - #page-main { - padding-left: 300px; - } - - #page-top-bar { - padding-right: 300px; - } - - #quickbox-title-title { - padding-left: 16px; - } - - #page-title-title { - position: relative; - top: 4px; - } -} - -@media (max-width:992px) { +/* Max small */ +@media (max-width: 767px) { /* The switch - the box around the slider */ .switch { position: relative; @@ -1373,7 +1209,6 @@ dialog .content h5 { transform: translateX(22px); } - /* Rounded sliders */ .slider.round { border-radius: 24px; } @@ -1381,19 +1216,186 @@ dialog .content h5 { .slider.round:before { border-radius: 50%; } +} - #page-title-container { - display: flex; - align-items: center; +/* Medium */ +@media (min-width:768px) and (max-width: 991px) { + .col.m1 { + width: 8.33333% } - #page-title { - flex-grow: 1; - display: flex; - align-items: center; + .col.m2 { + width: 16.66666% } - #page-title-title { - flex-grow: 1; + .col.m3, + .quarter { + width: 24.99999% + } + + .col.m4, + .third { + width: 33.33333% + } + + .col.m5 { + width: 41.66666% + } + + .col.m6, + .half { + width: 49.99999% + } + + .col.m7 { + width: 58.33333% + } + + .col.m8, + .twothird { + width: 66.66666% + } + + .col.m9, + .w3-threequarter { + width: 74.99999% + } + + .col.m10 { + width: 83.33333% + } + + .col.m11 { + width: 91.66666% + } + + .col.m12 { + width: 99.99999% } } + +/* Min medium */ +@media (min-width: 768px) { + #form-login{ + width: 600px; + } + + .hide-medium { + display: none !important + } + + #quickbox { + width: 400px; + position: fixed; + top: 54px; + left: calc(100vw - 420px); + background-color: #fff !important; + border: 2px solid var(--primary-color); + border-radius: 8px; + } + #quickbox-top-bar { + position: relative; + } + + #quickbox-footer { + position: relative; + } + + #quickbox-content { + height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-footer-height) - 42px); + } + + .home-card-summary { + height: 250px; + overflow: auto; + } +} + +/* Large */ +@media (min-width:992px) { + dialog { + max-width: 600px; + } + .col.l1 { + width: 8.33333% + } + + .col.l2 { + width: 16.66666% + } + + .col.l3 { + width: 24.99999% + } + + .col.l4 { + width: 33.33333% + } + + .col.l5 { + width: 41.66666% + } + + .col.l6 { + width: 49.99999% + } + + .col.l7 { + width: 58.33333% + } + + .col.l8 { + width: 66.66666% + } + + .col.l9 { + width: 74.99999% + } + + .col.l10 { + width: 83.33333% + } + + .col.l11 { + width: 91.66666% + } + + .col.l12 { + width: 99.99999% + } + + .hide-large { + display: none !important; + } + + .show-large { + display: block !important; + } + + #main-sidebar { + display: block !important; + } + + .row > .half:first { + padding-right: 4px; + } + + .row > .half:nth-child(2) { + padding-left: 4px; + } + + #page-main { + padding-left: 300px; + } + + #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 27c20f7..8957f5a 100644 --- a/assets/templates/base.tmpl +++ b/assets/templates/base.tmpl @@ -24,7 +24,7 @@
{{template "page:title" .}}
-