Skip to content

Commit

Permalink
fix: Use correct logo in dark mode menubar (#6016)
Browse files Browse the repository at this point in the history
Also use the "nor" variant elsewhere the logo is small.
  • Loading branch information
larseggert committed Jul 22, 2023
1 parent 4ec22da commit 97c7dd4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ietf/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
<nav class="navbar navbar-expand-lg fixed-top {% if server_mode and server_mode != "production" %}bg-danger-subtle{% else %}bg-secondary{% endif %}">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img alt="IETF Logo" class="me-2"
src="{% static 'ietf/images/ietf-logo-nor-white.svg' %}">
{% include "logo.html" with org="ietf" classes="me-2" nor=True only %}
Datatracker
{% if server_mode and server_mode != "production" %}
<span class="text-danger">&delta;</span>
Expand Down
2 changes: 1 addition & 1 deletion ietf/templates/doc/document_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
{% endif %}
{% if document_html %}
{% if doc.stream.name|lower in 'iab,ietf,irtf' %}
{% include "logo.html" with org=doc.stream.name|lower classes="w-25 mt-1" title=stream_desc only %}
{% include "logo.html" with org=doc.stream.name|lower classes="w-25 mt-1" title=stream_desc nor=True only %}
{% else %}
{{ stream_desc }}
{% endif %}
Expand Down
12 changes: 10 additions & 2 deletions ietf/templates/logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
{% if org == "iab" %}
srcset="{% static 'ietf/images/iab-logo-white.svg' %}"
{% elif org == "ietf" %}
srcset="{% static 'ietf/images/ietf-logo-white.svg' %}"
{% if nor %}
srcset="{% static 'ietf/images/ietf-logo-nor-white.svg' %}"
{% else %}
srcset="{% static 'ietf/images/ietf-logo-white.svg' %}"
{% endif %}
{% elif org == "irtf" %}
srcset="{% static 'ietf/images/irtf-logo-white.svg' %}"
{% endif %}
Expand All @@ -18,7 +22,11 @@
{% if org == "iab" %}
src="{% static 'ietf/images/iab-logo.svg' %}"
{% elif org == "ietf" %}
src="{% static 'ietf/images/ietf-logo.svg' %}"
{% if nor %}
src="{% static 'ietf/images/ietf-logo-nor.svg' %}"
{% else %}
src="{% static 'ietf/images/ietf-logo.svg' %}"
{% endif %}
{% elif org == "irtf" %}
src="{% static 'ietf/images/irtf-logo.svg' %}"
{% endif %}
Expand Down

0 comments on commit 97c7dd4

Please sign in to comment.