mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 05:02:57 +01:00
Make styles for header buttons consistent
This commit is contained in:
parent
73f7a1abc4
commit
28d21bf066
@ -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;
|
||||
|
@ -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 %}
|
||||
|
@ -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 #}
|
||||
|
@ -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>
|
||||
|
@ -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(
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user