Skip to content

Commit

Permalink
Fix primary color for new brand
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 12, 2024
1 parent 2d0d2ba commit 7f01e80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions templates/frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@
href="{{ STATIC_URL }}css/jqcloud.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css"
rel="stylesheet">
<style type="text/css">
<!-- color overloads for countries -->
.primary-border {
border-color: {{ org|config:"dark1_color"}} !important;
}

.primary-background {
background: {{ org|config:"dark1_color"}} !important;
}

.highlight-background {
background: #FFD100;
}

.highlight-color {
color: #FFD100;
}
</style>
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
{% block styles %}
{% if is_rtl_org %}
Expand Down
2 changes: 1 addition & 1 deletion templates/public_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@
{% block script %}
<script type="text/javascript">
// global primary color
var primaryColor = '{{ org|config:"dark1_color"}}';
var primaryColor = '{% if org|config:"has_new_brand" %}#00aeef{% else %}{{ org|config:"dark1_color" }}{% endif %}';
window.string_Responders = "{% trans "Responders" %}";
window.string_Polled = "{% trans "Polled" %}";
window.string_Reporters = "{% trans "Reporters" %}";
Expand Down

0 comments on commit 7f01e80

Please sign in to comment.