button correction if only icon, not text

This commit is contained in:
Mathieu Jaumotte 2021-07-06 13:34:47 +02:00
parent 49253abfb8
commit 4668f657ab
3 changed files with 11 additions and 6 deletions

View File

@ -52,7 +52,7 @@
</table>
<ul class="record_actions">
<li>
<li class="cancel">
<a href="{{ path('chill_event__event_show', { 'event_id' : participations[0].event.id } ) }}" class="btn btn-cancel">
{{ 'Back to the event'|trans }}
</a>

View File

@ -64,6 +64,11 @@
font: normal normal normal 14px/1 ForkAwesome;
margin-right: 0.5em;
}
&[class*='btn-']:empty {
&::before {
margin-right: 0;
}
}
}
.btn {

View File

@ -36,11 +36,11 @@
{{ form_row(form.endDate) }}
{{ form_row(form.warningInterval) }}
<div class="grid-12 centered sticky-form-buttons">
<!-- {{ form_row(form.submit, { 'label': 'Add a new task'|trans, 'attr': {'class': 'fa fa-save btn btn-chill-green margin-10'} }) }} -->
<button class="btn btn-chill-green margin-10" type="submit"><i class="fa fa-save"></i> {{ 'Add a new task'|trans }}</button>
</div>
<ul class="record_actions sticky-form-buttons">
<li>
{{ form_row(form.submit, { 'label': 'Add a new task'|trans, 'attr': {'class': 'btn btn-save'} }) }}
</li>
</ul>
{{ form_end(form) }}