diff --git a/core/static/core/style.scss b/core/static/core/style.scss index 21481454..664c1b99 100644 --- a/core/static/core/style.scss +++ b/core/static/core/style.scss @@ -370,6 +370,38 @@ a:not(.button) { } } + .tabs { + .tab-headers { + display: flex; + flex-flow: row wrap; + .tab-header{ + margin: 0; + flex: 1 1; + border-radius: 5px 5px 0 0; + font-size: 100%; + + @media (max-width: 800px) { + flex-wrap: wrap; + } + &.active { + background-color: $white-color; + border: 1px solid $primary-neutral-dark-color; + border-bottom: none; + } + &:not(.active) { + background-color: $primary-neutral-dark-color; + color: darken($white-color, 5%); + &:hover { + background-color: lighten($primary-neutral-dark-color, 15%); + } + } + } + } + section { + padding: 20px; + } + } + .tool_bar { overflow: auto; padding: 4px; diff --git a/core/templates/core/macros.jinja b/core/templates/core/macros.jinja index 43a90d07..021f1918 100644 --- a/core/templates/core/macros.jinja +++ b/core/templates/core/macros.jinja @@ -170,12 +170,12 @@ {% endmacro %} {% macro paginate_htmx(current_page, paginator) %} - {# Add pagination buttons for pages without Alpine but supporting framgents. + {# Add pagination buttons for pages without Alpine but supporting fragments. This must be coupled with a view that handles pagination - with the Django Paginator object and supports framgents. + with the Django Paginator object and supports fragments. - The relpaced fragment will be #content so make sure you are calling this macro inside your content block. + The replaced fragment will be #content so make sure you are calling this macro inside your content block. Parameters: current_page (django.core.paginator.Page): the current page object @@ -247,9 +247,9 @@ {% macro select_all_checkbox(form_id) %}