Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions coderedcms/static/coderedcms/css/crx-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,13 @@ textarea.monospace,
.crx-logo-custom {
width: auto;
height: auto;
max-height: 80px;
max-width: 100%;
display: block;
}
.crx-logo-container {
box-sizing: border-box;
margin: 0 15px;
}
.crx-logo-container.navbar-light {
background-color: #fff;
border-radius: 6px;
padding: 0.25em;
}
.crx-logo-container.navbar-dark {
background-color: transparent;

.sidebar-custom-branding {
padding: 20px;
margin: 0;
}


Expand Down
3 changes: 1 addition & 2 deletions coderedcms/templates/wagtailadmin/base.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "wagtailadmin/base.html" %}
{% load coderedcms_tags wagtailimages_tags wagtailsettings_tags %}
{% django_setting "CRX_DISABLE_LAYOUT" as disable_layout %}

{% block furniture %}
{% include "coderedcms/includes/crx_banner.html" %}
Expand All @@ -9,4 +8,4 @@

{# NOTE: this must be on a single line, otherwise Django templates will create
whitespace, and wagtail will think the whitespace is the custom logo! #}
{% block branding_logo %}{% if not disable_layout and settings.coderedcms.LayoutSettings.logo %}<div class="crx-logo-container {{settings.coderedcms.LayoutSettings.navbar_color_scheme}}">{% image settings.coderedcms.LayoutSettings.logo original format-webp preserve-svg as logo_image %}<img src="{{ logo_image.url }}" class="crx-logo-custom" alt="Dashboard"></div>{% endif %}{% endblock %}
{% block branding_logo %}{% django_setting "CRX_DISABLE_LAYOUT" as disable_layout %}{% if not disable_layout and settings.coderedcms.LayoutSettings.favicon %}{% image settings.coderedcms.LayoutSettings.favicon original format-webp preserve-svg as logo_image %}<img src="{{ logo_image.url }}" class="crx-logo-custom" alt="Dashboard">{% endif %}{% endblock %}