Skip to content

Commit

Permalink
Ensure template header_color and header_background are applied (#1917)
Browse files Browse the repository at this point in the history
* Ensure template header_color and header_background are applied

* Update React template
  • Loading branch information
philippjfr committed Jan 18, 2021
1 parent d3f5207 commit 0d7e8e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion panel/template/golden/golden.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<!-- goes in body -->
{% block contents %}
<header class="app-bar" id="header">
<header class="app-bar" id="header" style="{% if header_background %}background-color: {{ header_background }} !important;{% endif %}{% if header_color %}color: {{ header_color }} !important;{% endif %}">
<div style="display: contents;">
<div class="app-header">
{% if app_logo %}<a href="/"><img src="{{ app_logo }}" class="app-logo"></a>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion panel/template/material/material.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<!-- goes in body -->
{% block contents %}
<div class="mdc-typography" id="container">
<header class="mdc-top-app-bar app-bar mdc-top-app-bar--fixed" style="{% if header_background %}background-color: {{ header_background }} !important;{% endif %}{% if header_color %}color: {{ header_color }}{% endif %}" id="header">
<header class="mdc-top-app-bar app-bar mdc-top-app-bar--fixed" style="{% if header_background %}background-color: {{ header_background }} !important;{% endif %}{% if header_color %}color: {{ header_color }} !important;{% endif %}" id="header">
<div class="mdc-top-app-bar__row">
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start">
{% if nav %}
Expand Down
2 changes: 1 addition & 1 deletion panel/template/react/react.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<!-- goes in body -->
{% block contents %}
<div class="" id="container">
<nav class="" style="{% if header_background %}background-color: {{ header_background }} !important;{% endif %}{% if header_color %}color: {{ header_color }}{% endif %}" id="header">
<nav class="" style="{% if header_background %}background-color: {{ header_background }} !important;{% endif %}{% if header_color %}color: {{ header_color }} !important;{% endif %}" id="header">
{% if nav %}
<span style="font-size:30px;cursor:pointer" onclick="closeNav()" id="sidebar-button">
<div class="pn-bar"></div>
Expand Down
2 changes: 1 addition & 1 deletion panel/template/vanilla/vanilla.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- goes in body -->
{% block contents %}
<div id="container">
<nav style="{% if header_background %}background-color: {{ header_background }} !important;{% endif %}{% if header_color %}color: {{ header_color }}{% endif %}" id="header">
<nav style="{% if header_background %}background-color: {{ header_background }} !important;{% endif %}{% if header_color %}color: {{ header_color }} !important;{% endif %}" id="header">
{% if nav %}
<span onclick="closeNav()" id="sidebar-button">
<div class="pn-bar"></div>
Expand Down

0 comments on commit 0d7e8e4

Please sign in to comment.