mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 05:02:57 +01:00
Use bigger font size for last breadcrumb item by default except on create/edit views
We want to make the slim_header.html as the basis for the modern header template that will be used everywhere, eventually replacing header.html. Rather than making the page explorer be the special case where we want the last item to be bigger, do it the other way around i.e. use the smaller font size on the create/edit views. This ensures that the big font size is used on all other views e.g. Inspect view.
This commit is contained in:
parent
f4f08ee2fe
commit
3fbf792621
@ -1,4 +1,4 @@
|
||||
.page-explorer .w-breadcrumbs {
|
||||
.w-breadcrumbs:not(.editor-view .w-breadcrumbs) {
|
||||
@apply sm:w-py-2.5;
|
||||
|
||||
li[hidden] ~ li:last-child,
|
||||
|
@ -1,5 +1,6 @@
|
||||
{% extends "wagtailadmin/generic/base.html" %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% block bodyclass %}editor-view{% endblock %}
|
||||
|
||||
{% block main_content %}
|
||||
{% block before_form %}{% endblock %}
|
||||
|
@ -1,6 +1,7 @@
|
||||
{% extends "wagtailadmin/generic/base.html" %}
|
||||
{% load wagtailadmin_tags %}
|
||||
{% load i18n %}
|
||||
{% block bodyclass %}editor-view{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
{% load wagtailadmin_tags %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% block bodyclass %}{% if page.live %}page-is-live{% endif %} {% if page_locked %}content-locked{% endif %}{% endblock %}
|
||||
{% block bodyclass %}editor-view {% if page.live %}page-is-live{% endif %} {% if page_locked %}content-locked{% endif %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% page_permissions page as page_perms %}
|
||||
|
@ -1,6 +1,7 @@
|
||||
{% extends "wagtailadmin/base.html" %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% block titletag %}{% blocktrans trimmed with snippet_type_name=model_opts.verbose_name %}New {{ snippet_type_name }}{% endblocktrans %}{% endblock %}
|
||||
{% block bodyclass %}editor-view{% endblock %}
|
||||
{% block content %}
|
||||
{% include 'wagtailadmin/shared/headers/slim_header.html' with breadcrumbs_items=breadcrumbs_items side_panels=side_panels history_url=history_url %}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{% extends "wagtailadmin/base.html" %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
{% block titletag %}{% blocktrans trimmed with snippet_type_name=model_opts.verbose_name %}Editing {{ snippet_type_name }} - {{ object }}{% endblocktrans %}{% endblock %}
|
||||
{% block bodyclass %}{% if locked_for_user %}content-locked{% endif %}{% endblock %}
|
||||
{% block bodyclass %}editor-view {% if locked_for_user %}content-locked{% endif %}{% endblock %}
|
||||
{% block content %}
|
||||
{% include 'wagtailadmin/shared/headers/slim_header.html' with breadcrumbs_items=breadcrumbs_items side_panels=side_panels history_url=history_url %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user