Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tags section #7

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions ckanext/kepa/assets/css/kepa.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ckanext/kepa/assets/css/kepa.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions ckanext/kepa/assets/scss/kepa.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
.search-container {
@include center-flex;
min-height: 400px;
width: 80%;
}

.hero .container{
@include center-flex;
}

.btn-main-search {
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -249,6 +259,6 @@
width: 60px;
}

.list-unstyled{
.account .list-unstyled {
@include center-flex;
}
}
2 changes: 1 addition & 1 deletion ckanext/kepa/templates/home/snippets/search.html
Original file line number Diff line number Diff line change
@@ -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() %}

Expand Down
Loading