From aab093200b51217598640eabbe193f29fe07cd9d Mon Sep 17 00:00:00 2001 From: imperosol Date: Sat, 14 Dec 2024 00:36:12 +0100 Subject: [PATCH] slightly improve style --- core/static/core/style.scss | 14 ++++++++ core/templates/core/macros.jinja | 2 +- counter/templates/counter/product_list.jinja | 35 ++++++++++---------- 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/core/static/core/style.scss b/core/static/core/style.scss index 88bb6cd2..e094e215 100644 --- a/core/static/core/style.scss +++ b/core/static/core/style.scss @@ -19,6 +19,13 @@ body { --loading-stroke: 5px; --loading-duration: 1s; position: relative; + + &.aria-busy-grow { + // Make sure the element take enough place to hold the loading wheel + min-height: calc((var(--loading-size)) * 1.5); + min-width: calc((var(--loading-size)) * 1.5); + overflow: hidden; + } } [aria-busy]:after { @@ -255,6 +262,13 @@ body { } } + /** + * A spacer below an element. Somewhat cleaner than putting
everywhere. + */ + .margin-bottom { + margin-bottom: 1.5rem; + } + /*--------------------------------CONTENT------------------------------*/ #quick_notif { width: 100%; diff --git a/core/templates/core/macros.jinja b/core/templates/core/macros.jinja index 6ab52cad..e624e87a 100644 --- a/core/templates/core/macros.jinja +++ b/core/templates/core/macros.jinja @@ -140,7 +140,7 @@ nb_page (str): call to a javascript function or variable returning the maximum number of pages to paginate #} -