Skip to content

Commit

Permalink
Blue ESPHome logo (#3932)
Browse files Browse the repository at this point in the history
Co-authored-by: H. Árkosi Róbert <robreg@zsurob.hu>
  • Loading branch information
Madelena and nagyrobi authored Jun 10, 2024
1 parent daa22aa commit 83c6bcf
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 3 deletions.
10 changes: 9 additions & 1 deletion _static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ div.body p, div.body dd, div.body li {
line-height: 1.6;
}

img.logo {
content: url("/_static/logo-text-on-light.svg");
}

@media screen and (max-width: 875px) {
/* hide search result thumbnails on mobile */
.pagefind-modular-list-thumb {
Expand Down Expand Up @@ -338,7 +342,11 @@ div.body p, div.body dd, div.body li {
background-color: #212121;
}

img.dark-invert, img.logo {
img.logo {
content: url("/_static/logo-text-on-dark.svg");
}

img.dark-invert {
filter: invert(1);
}

Expand Down
18 changes: 18 additions & 0 deletions _static/logo-text-on-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions _static/logo-text-on-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions _templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
{% endblock %}

{%- block extrahead %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap" rel="stylesheet">
<link href="/pagefind/pagefind-modular-ui.css" rel="stylesheet">
<link rel="stylesheet" href="{{ pathto('_static/custom.css', 1) }}?hash={{ custom_css_hash }}" type="text/css" />
<link rel="apple-touch-icon" sizes="180x180" href="/_static/apple-touch-icon.png">
Expand Down
12 changes: 11 additions & 1 deletion images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:image: logo.svg

.. image:: /images/logo-text.svg
:class: dark-invert
:class: logo

ESPHome is a system to control your microcontrollers by simple yet powerful configuration files and control them remotely through Home Automation systems.

Expand Down

0 comments on commit 83c6bcf

Please sign in to comment.