style: align with the ep-corporate-design skill
This commit is contained in:
1 parent
50ef662dd3
commit
ebad54e989
162 files changed
+768
-640
No files matched your search
@@ -1,4 +1 @@
|
||||
<div class="{{ html_classes('flex items-start space-x-4 p-4 w-full mb-8 border-l-4', { 'border-brand bg-brand-light text-ink': type != 'error', 'border-red-700 bg-red-50 text-red-950': type == 'error' }) }}">
|
||||
{{ icon(type == 'error' ? 'alert' : 'info', 'w-6 h-6 shrink-0') }}
|
||||
<span>{{ message }}</span>
|
||||
</div>
|
||||
{% include '_partials/_alert.html.twig' with { type: type, message: message } only %}
|
||||
@@ -1,7 +1,7 @@
|
||||
{% set stars %}
|
||||
<div class="inline-flex items-center">
|
||||
{% for grade in range(1, 5) %}
|
||||
{{ icon('star', html_classes('w-4 h-4', { 'text-gray-200': (rating/100)|round < grade, 'text-primary': (rating/100)|round >= grade })) }}
|
||||
{{ icon('star', html_classes('w-4 h-4', { 'text-gray-200': (rating/100)|round < grade, 'text-brand': (rating/100)|round >= grade })) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
Reference in new issue
Block a user