-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% block setono_sylius_meilisearch_facet_checkbox_row %} | ||
<div class="facet facet-checkbox"> | ||
{{ form_label(form) }} | ||
<ul> | ||
<li>{{- form_widget(form) -}}{{ form_label(form) }}</li> | ||
</ul> | ||
|
||
</div> | ||
{% endblock %} | ||
|
||
{% block setono_sylius_meilisearch_facet_choice_row %} | ||
<div class="facet facet-choice"> | ||
{{ form_label(form) }} | ||
<ul> | ||
{%- for child in form %} | ||
<li> | ||
{{- form_widget(child) -}} | ||
{{- form_label(child, null, {translation_domain: choice_translation_domain}) -}} | ||
</li> | ||
{% endfor -%} | ||
</ul> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
tests/Application/templates/bundles/SetonoSyliusMeilisearchPlugin/search/index.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% extends '@!SetonoSyliusMeilisearchPlugin/search/index.html.twig' %} | ||
|
||
{% block stylesheets %} | ||
{{ parent() }} | ||
|
||
<style> | ||
[data-route="setono_sylius_meilisearch_shop_search"] h1 { | ||
font-size: 3em; | ||
max-width: 800px; | ||
margin: 50px auto 120px auto; | ||
text-align: center; | ||
} | ||
.facets { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 30px; | ||
} | ||
.facet > label { | ||
font-size: 14px !important; | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
border-bottom: 1px solid #cacaca; | ||
display: block !important; | ||
padding: 0 0 7px 0 !important; | ||
margin: 0 0 7px 0 !important; | ||
} | ||
.facet ul { | ||
list-style-type: none; | ||
padding: 0; | ||
margin: 0; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 7px; | ||
} | ||
.facet li { | ||
display: flex; | ||
gap: 10px; | ||
align-items: center; | ||
} | ||
.facet li label { | ||
margin: 0 !important; | ||
padding: 0 !important; | ||
font-size: 14px !important; | ||
cursor: pointer; | ||
} | ||
</style> | ||
{% endblock %} |