From b8cfc8634e4821d948b8ac866dd94027a0116975 Mon Sep 17 00:00:00 2001 From: jovana Date: Fri, 22 Dec 2023 10:17:23 +0100 Subject: [PATCH] Fix tags section --- ckanext/kepa/assets/css/kepa.css | 18 +++++++++++++++--- ckanext/kepa/assets/css/kepa.css.map | 2 +- ckanext/kepa/assets/scss/kepa.scss | 18 ++++++++++++++---- .../kepa/templates/home/snippets/search.html | 2 +- 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/ckanext/kepa/assets/css/kepa.css b/ckanext/kepa/assets/css/kepa.css index bf8c201..1d0ba30 100644 --- a/ckanext/kepa/assets/css/kepa.css +++ b/ckanext/kepa/assets/css/kepa.css @@ -79,6 +79,13 @@ justify-content: center; align-items: center; min-height: 400px; + width: 80%; +} + +.hero .container { + display: flex; + justify-content: center; + align-items: center; } .btn-main-search { @@ -123,19 +130,24 @@ } .tags { background-color: white; - height: 55px; + min-height: 55px; padding: 0; display: flex; align-items: center; + flex-wrap: wrap; + padding: 15px; + max-height: 110px; + overflow: auto; } .tags h4 { margin: 0 !important; padding-left: 10px; + padding-bottom: 10px; } .tags a { - margin-bottom: 0 !important; + margin-bottom: 5px !important; margin-left: 10px; } @@ -252,7 +264,7 @@ width: 60px; } -.list-unstyled { +.account .list-unstyled { display: flex; justify-content: center; align-items: center; diff --git a/ckanext/kepa/assets/css/kepa.css.map b/ckanext/kepa/assets/css/kepa.css.map index 195c481..db66abd 100644 --- a/ckanext/kepa/assets/css/kepa.css.map +++ b/ckanext/kepa/assets/css/kepa.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../scss/kepa.scss","../scss/_mixins.scss","../scss/_variables.scss"],"names":[],"mappings":"AAGA;ECFI;EACA;EACA;;;ADIJ;ECKI;EACA;;;ADFJ;EACI;EACA,kBEbY;;;AFgBhB;EACI,OEZI;EFaJ,aEXG;EFYH,WEXQ;;;AFcZ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;;;AAEJ;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;ECxCA;EACA;EDyCA;EC/CA;EACA;;;ADkDJ;EACI;;;AAGJ;EACI;IACI;;;AAIR;EACI,OEhEI;EFiEJ,WE7DO;EF8DP;;;AAGJ;ECzEI;EACA;EACA;EDyEA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI,OE5FI;;;AF+FR;EACI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;IACI;;;AAIR;EACI,kBEpHI;EFqHJ;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;ECpIA;EACA;EDqIA,kBE5Ic;;;AF+IlB;EACI,OE5II;EF6IJ;ECtIA;EACA;EDuIA;EACA;;;AAGJ;EACI,WE/IQ;EFgJR;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;IACI;IACA;;;EAGJ;IACI;;;AAIR;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EACI,OEnLI;EFoLJ;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA,OEjMI;EFkMJ,aEhMG;EFiMH;;;AAGJ;EACI;IACI;;;AAIR;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EACI,kBE1Nc;EF2Nd;EACA;;;AAGJ;EACI,OEhOc;;;AFmOlB;EACI;EACA,kBEtOY;;;AFyOhB;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EC1PI;EACA;EACA","file":"kepa.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../scss/kepa.scss","../scss/_mixins.scss","../scss/_variables.scss"],"names":[],"mappings":"AAGA;ECFI;EACA;EACA;;;ADIJ;ECKI;EACA;;;ADFJ;EACI;EACA,kBEbY;;;AFgBhB;EACI,OEZI;EFaJ,aEXG;EFYH,WEXQ;;;AFcZ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;;;AAEJ;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;ECxCA;EACA;EDyCA;EC/CA;EACA;;;ADkDJ;EACI;;;AAGJ;EACI;IACI;;;AAIR;EACI,OEhEI;EFiEJ,WE7DO;EF8DP;;;AAGJ;ECzEI;EACA;EACA;EDyEA;EACA;;;AAGJ;EC/EI;EACA;EACA;;;ADiFJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI,OEjGI;;;AFoGR;EACI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;IACI;;;AAIR;EACI,kBEzHI;EF0HJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EC9IA;EACA;ED+IA,kBEtJc;;;AFyJlB;EACI,OEtJI;EFuJJ;EChJA;EACA;EDiJA;EACA;;;AAGJ;EACI,WEzJQ;EF0JR;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;IACI;IACA;;;EAGJ;IACI;;;AAIR;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EACI,OE7LI;EF8LJ;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA,OE3MI;EF4MJ,aE1MG;EF2MH;;;AAGJ;EACI;IACI;;;AAIR;EACI;EACA;;;AAGJ;EACI;;;AAGJ;EACI,kBEpOc;EFqOd;EACA;;;AAGJ;EACI,OE1Oc;;;AF6OlB;EACI;EACA,kBEhPY;;;AFmPhB;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;;;AAGJ;ECpQI;EACA;EACA","file":"kepa.css"} \ No newline at end of file diff --git a/ckanext/kepa/assets/scss/kepa.scss b/ckanext/kepa/assets/scss/kepa.scss index 97fad92..d1327f8 100644 --- a/ckanext/kepa/assets/scss/kepa.scss +++ b/ckanext/kepa/assets/scss/kepa.scss @@ -75,6 +75,11 @@ .search-container { @include center-flex; min-height: 400px; + width: 80%; +} + +.hero .container{ + @include center-flex; } .btn-main-search { @@ -120,19 +125,24 @@ .tags { background-color: $white; - height: 55px; + min-height: 55px; padding: 0; display: flex; align-items: center; + flex-wrap: wrap; + padding: 15px; + max-height: 110px; + overflow: auto; } .tags h4 { margin: 0 !important; padding-left: 10px; + padding-bottom: 10px; } .tags a { - margin-bottom: 0 !important; + margin-bottom: 5px !important; margin-left: 10px; } @@ -249,6 +259,6 @@ width: 60px; } -.list-unstyled{ +.account .list-unstyled { @include center-flex; -} \ No newline at end of file +} diff --git a/ckanext/kepa/templates/home/snippets/search.html b/ckanext/kepa/templates/home/snippets/search.html index 626bbcf..aeff0d5 100644 --- a/ckanext/kepa/templates/home/snippets/search.html +++ b/ckanext/kepa/templates/home/snippets/search.html @@ -1,4 +1,4 @@ -{% set tags = h.get_facet_items_dict('tags', search_facets, limit=3) %} +{% set tags = h.get_facet_items_dict('tags', search_facets) %} {% set placeholder = _('Search...') %} {% set dataset_type = h.default_package_type() %}