diff options
| author | Reorx <novoreorx@gmail.com> | 2022-09-09 11:30:00 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-09-09 11:30:32 +0800 |
| commit | 7a7486c112f56555166315f5ba1a8b28b68e6513 (patch) | |
| tree | a935a546492aee059ddd1b02ee968b3ce7409595 | |
| parent | 2dd6ff7b0aaaf7469973c8e88fd6b814428120af (diff) | |
fix header logo width inconsistancy
| -rw-r--r-- | assets/css/common/header.css | 10 | ||||
| -rw-r--r-- | layouts/partials/header.html | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 1a9ccff..4a93258 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -31,7 +31,8 @@ font-weight: 700; } -.logo a img { +.logo a img, +.logo a svg { display: inline; vertical-align: middle; pointer-events: none; @@ -81,9 +82,12 @@ body:not(.dark) #sun { color: var(--primary); } +#menu a.active:hover { + color: var(--signature); +} #menu .active { - color: var(--primary); - box-shadow: 0 2px 0 var(--primary); + color: var(--signature); + box-shadow: 0 2px 0 var(--signature); } #menu .external-link { diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 01f2b41..f1435b8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -89,10 +89,10 @@ function toggleThemeListener() { {{- end }} {{- end }} <img src="{{ $img.Permalink }}" alt="logo" aria-label="logo" - height="{{- site.Params.logo.iconHeight | default "30" -}}"> + height="{{- site.Params.logo.iconHeight | default "30" -}}" width="{{- site.Params.logo.iconWidth | default "30" -}}"> {{- else }} - <img src="{{- site.Params.logo.icon | absURL -}}" alt="logo" aria-label="logo" - height="{{- site.Params.logo.iconHeight | default "30" -}}"> + <img src="{{ $img.Permalink }}" alt="logo" aria-label="logo" + height="{{- site.Params.logo.iconHeight | default "30" -}}" width="{{- site.Params.logo.iconWidth | default "30" -}}"> {{- end -}} {{- end -}} {{- $label_text -}} |
