fix header logo width inconsistancy

This commit is contained in:
Reorx 2022-09-09 11:30:00 +08:00
parent 2dd6ff7b0a
commit 7a7486c112
2 changed files with 10 additions and 6 deletions

View File

@ -31,7 +31,8 @@
font-weight: 700; font-weight: 700;
} }
.logo a img { .logo a img,
.logo a svg {
display: inline; display: inline;
vertical-align: middle; vertical-align: middle;
pointer-events: none; pointer-events: none;
@ -81,9 +82,12 @@ body:not(.dark) #sun {
color: var(--primary); color: var(--primary);
} }
#menu a.active:hover {
color: var(--signature);
}
#menu .active { #menu .active {
color: var(--primary); color: var(--signature);
box-shadow: 0 2px 0 var(--primary); box-shadow: 0 2px 0 var(--signature);
} }
#menu .external-link { #menu .external-link {

View File

@ -89,10 +89,10 @@ function toggleThemeListener() {
{{- end }} {{- end }}
{{- end }} {{- end }}
<img src="{{ $img.Permalink }}" alt="logo" aria-label="logo" <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 }} {{- else }}
<img src="{{- site.Params.logo.icon | absURL -}}" alt="logo" aria-label="logo" <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" -}}">
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- $label_text -}} {{- $label_text -}}