From 3edc160c5937d627cd95bb6b0c67e603f00bdf59 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 16 Oct 2020 23:47:46 +0530 Subject: [PATCH] nav-label: init * label can be set differently from title * label can have an optional icon with preffered size * in site config => params: label: text: "Home" icon: /apple-touch-icon.png iconHeight: 35 --- assets/css/header.css | 11 ++++++++++- layouts/partials/header.html | 10 ++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/assets/css/header.css b/assets/css/header.css index 916e575d..e5061d43 100644 --- a/assets/css/header.css +++ b/assets/css/header.css @@ -25,6 +25,15 @@ font-weight: 700; } +.logo a img { + display: inline; + vertical-align: middle; + pointer-events: none; + transform: translate(0, -10%); + border-radius: 6px; + margin-right: 8px; +} + .theme-toggle svg{ height: 18px; margin: 0 10px; @@ -57,4 +66,4 @@ body:not(.dark) #sun { .menu .active { font-weight: 500; border-bottom: 2px solid currentColor; -} \ No newline at end of file +} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 40e7b15f..c73333a1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -30,7 +30,13 @@
-
\ No newline at end of file +