misc: add style to edit links

This commit is contained in:
2024-11-07 12:54:01 +01:00
parent c102cf936e
commit 129360f89d
4 changed files with 11 additions and 8 deletions

View File

@ -509,6 +509,11 @@ a.nav-item:hover {
color: #738EF2 !important;
}
.withmargin {
margin-bottom: 5px;
margin-right: 5px;
}
@media screen and (max-width: 1224px) {
.grid.list-emissions:not(.list-home) > .list-item {width: calc(33% - 2rem) !important;;}
}

View File

@ -56,7 +56,7 @@ Styling related context:
<div class="actions">
{% block actions %}
{% if admin and object.edit_url_name %}
<a href="{% url object.edit_url_name pk=object.pk %}" target="_self">{% translate "Edit" %}</a>
<a href="{% url object.edit_url_name pk=object.pk %}" target="_self" class="button secondary withmargin">{% translate "Edit" %}</a>
{% endif %}
{% endblock %}
</div>