Skip to content

Commit

Permalink
variable fontsize for links, use in filters (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-korn authored Oct 21, 2024
1 parent 43e5018 commit e3fd1c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/partials/base/b_link.twig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% if href %}
<a href='{{ href }}' class='link fs-5'>
<a href='{{ href }}' class='link {{fontsize|default('fs-5')}}'>
{% if icon %}
<i class='bi bi-{{ icon }} text-primary me-2' aria-hidden='true'></i>
{% endif %}
{{ text }}
</a>
{% else %}
<button class='btn btn-link fs-5'>
<button class='btn btn-link {{fontsize|default('fs-5')}}'>
{% if icon %}
<i class='bi bi-{{ icon }} text-primary me-2' aria-hidden='true'></i>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions src/partials/content-layout/cl_filters.twig
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
{% if category.moreFiltersCount > 0 %}
{%
include 'partials::base/b_link.twig' with {
fontsize: 'fs-6',
text: category.moreFiltersCount ~ ' weitere anzeigen'
}
%}
Expand Down
1 change: 0 additions & 1 deletion src/styles/components/_filters.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
}

.btn-link {
font-size: 1rem !important;
padding: 0;
margin: 6px 12px;
}
Expand Down

0 comments on commit e3fd1c2

Please sign in to comment.