From 7c71f70f036614f625312a3e8252b616b5d0e429 Mon Sep 17 00:00:00 2001 From: Alec Rust Date: Wed, 2 Oct 2019 22:17:56 +0100 Subject: [PATCH] Improve header alignment and logo (#10376) * Switch to SVG main header logo * Improve header alignment * Reduce border radius of logo --- sass/custom/_paulus.scss | 8 +++++++- sass/oscailte/base/_navigation.scss | 14 +++++++------- source/_includes/site/header.html | 8 ++++---- source/images/home-assistant-logo.svg | 16 ++++++++++++++++ 4 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 source/images/home-assistant-logo.svg diff --git a/sass/custom/_paulus.scss b/sass/custom/_paulus.scss index 8c1efdd4f9c..5db79363d7c 100644 --- a/sass/custom/_paulus.scss +++ b/sass/custom/_paulus.scss @@ -6,6 +6,8 @@ $primary-color: #049cdb; position: relative; .site-title { + display: flex; + align-items: center; font-weight: normal; } } @@ -221,10 +223,14 @@ dt:hover a.title-link { } .ha-title { + display: inline-flex; + height: 100%; white-space: nowrap; img { - width: 40px; + border-radius: 3px; + width: 36px; + margin-right: 10px; } a > * { diff --git a/sass/oscailte/base/_navigation.scss b/sass/oscailte/base/_navigation.scss index 720884c5b62..acbda0859ae 100644 --- a/sass/oscailte/base/_navigation.scss +++ b/sass/oscailte/base/_navigation.scss @@ -101,24 +101,24 @@ header .grid { border-top: 1px solid $navigation-color; border-bottom: 4px solid $navigation-color; } - + .menu, .menu li, .menu li a{ height: auto; } - + .menu li a{ padding: 15px 15px !important; } - + .menu li a:hover, .menu li a:focus{ background: $grayLighter; box-shadow: inset 5px 0px $navigation-color; padding: 15px 15px 15px 25px; } - + .toggle { position: absolute; - top: 17px; + top: 15px; right: 10px; } @@ -137,11 +137,11 @@ header .grid { color: $white; white-space: nowrap; } - + .toggle:hover::after{ background: darken($navigation-color, 7%); } - + #toggle:checked + .toggle::after{ content: attr(data-close); } diff --git a/source/_includes/site/header.html b/source/_includes/site/header.html index 63708e5eb9d..7dfba15d6f6 100644 --- a/source/_includes/site/header.html +++ b/source/_includes/site/header.html @@ -2,11 +2,11 @@
- +
- +
-
\ No newline at end of file + diff --git a/source/images/home-assistant-logo.svg b/source/images/home-assistant-logo.svg new file mode 100644 index 00000000000..9e25b23da52 --- /dev/null +++ b/source/images/home-assistant-logo.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + +