mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-05-21 11:05:49 +00:00
style(header): add separator styling for nav
This commit is contained in:
@@ -64,6 +64,10 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-sep {
|
||||||
|
color: var(--secondary);
|
||||||
|
}
|
||||||
|
|
||||||
.lang-menu * {
|
.lang-menu * {
|
||||||
display: inherit;
|
display: inherit;
|
||||||
min-height: inherit;
|
min-height: inherit;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
{{- $lang := .Lang}}
|
{{- $lang := .Lang}}
|
||||||
{{- with site.Home.Translations }}
|
{{- with site.Home.Translations }}
|
||||||
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
|
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
|
||||||
{{- if $separator }}<span>|</span>{{ end }}
|
{{- if $separator }}<span class="nav-sep">|</span>{{ end }}
|
||||||
<ul class="lang-menu">
|
<ul class="lang-menu">
|
||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
{{- if ne $lang .Lang }}
|
{{- if ne $lang .Lang }}
|
||||||
|
|||||||
Reference in New Issue
Block a user