0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00

Make styles for header buttons consistent

This commit is contained in:
Sage Abdullah 2023-12-15 14:45:37 +00:00 committed by Thibaud Colas
parent 73f7a1abc4
commit 28d21bf066
5 changed files with 8 additions and 6 deletions

View File

@ -325,8 +325,8 @@
display: flex;
align-items: center;
justify-content: center;
width: theme('spacing.6');
height: theme('spacing.6');
width: theme('spacing.7');
height: theme('spacing.slim-header');
appearance: none;
color: theme('colors.text-button-outline-default');
padding: 0;

View File

@ -2,7 +2,7 @@
{% trans "Actions" as title %}
<nav aria-label="{{ title }}">
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=title toggle_classname="w-p-0 w-w-10 w-h-slim-header hover:w-scale-110 w-transition w-outline-offset-inside w-relative w-z-30" toggle_tooltip_offset="[0, -2]" %}
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=title toggle_classname="w-p-0 w-w-8 w-h-slim-header hover:w-scale-110 w-transition w-outline-offset-inside w-relative w-z-30" toggle_tooltip_offset="[0, -2]" %}
{% block content %}
{% include "wagtailadmin/pages/listing/_dropdown_items.html" with buttons=buttons only %}
{% endblock %}

View File

@ -9,7 +9,7 @@
{% block actions %}
{% page_permissions parent_page as parent_page_perms %}
{% if parent_page_perms.can_add_subpage %}
<a href="{% url "wagtailadmin_pages:add_subpage" parent_page.id %}" class="w-header-button w-h-slim-header w-ml-3" data-controller="w-tooltip" data-w-tooltip-content-value="{% trans 'Add child page' %}">{% icon name="plus" %}</a>
<a href="{% url "wagtailadmin_pages:add_subpage" parent_page.id %}" class="w-header-button" data-controller="w-tooltip" data-w-tooltip-content-value="{% trans 'Add child page' %}">{% icon name="plus" %}</a>
{% endif %}
{# Page actions dropdown #}

View File

@ -49,7 +49,9 @@
{% if actions or block_actions %}
{# Actions divider #}
<div class="w-w-px w-h-[30px] w-ml-auto sm:w-ml-0 w-bg-border-furniture"></div>
{% firstof actions block_actions %}
<div class="w-flex w-items-center w-ml-3">
{% firstof actions block_actions %}
</div>
{% endif %}
{% endblock %}
</div>

View File

@ -105,7 +105,7 @@ class HeaderButton(Button):
attrs={},
**kwargs,
):
classname = f"{classname} w-header-button w-h-slim-header w-ml-3".strip()
classname = f"{classname} w-header-button".strip()
attrs = attrs.copy()
attrs.update(
{