fix(header): header style and search dropdown (#282)
This commit is contained in:
@@ -8,11 +8,18 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
min-height: 1.25em;
|
min-height: 1.5em;
|
||||||
height: 1.25em;
|
height: 1.5em;
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo, .header-title-pre {
|
||||||
padding-right: .25rem;
|
padding-right: .25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-title-post {
|
||||||
|
padding-left: .25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-wrapper {
|
.header-wrapper {
|
||||||
|
|||||||
3
assets/js/theme.min.js
vendored
3
assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -86,6 +86,7 @@ enableEmoji = true
|
|||||||
[[languages.en.menu.main]]
|
[[languages.en.menu.main]]
|
||||||
identifier = "github"
|
identifier = "github"
|
||||||
pre = "<i class='fab fa-github fa-fw'></i>"
|
pre = "<i class='fab fa-github fa-fw'></i>"
|
||||||
|
post = ""
|
||||||
name = ""
|
name = ""
|
||||||
url = "https://github.com/dillonzq/LoveIt"
|
url = "https://github.com/dillonzq/LoveIt"
|
||||||
title = "GitHub"
|
title = "GitHub"
|
||||||
@@ -279,6 +280,7 @@ enableEmoji = true
|
|||||||
[[languages.zh-cn.menu.main]]
|
[[languages.zh-cn.menu.main]]
|
||||||
identifier = "github"
|
identifier = "github"
|
||||||
pre = "<i class='fab fa-github fa-fw'></i>"
|
pre = "<i class='fab fa-github fa-fw'></i>"
|
||||||
|
post = ""
|
||||||
name = ""
|
name = ""
|
||||||
url = "https://github.com/dillonzq/LoveIt"
|
url = "https://github.com/dillonzq/LoveIt"
|
||||||
title = "GitHub"
|
title = "GitHub"
|
||||||
@@ -468,6 +470,7 @@ enableEmoji = true
|
|||||||
[[languages.fr.menu.main]]
|
[[languages.fr.menu.main]]
|
||||||
identifier = "github"
|
identifier = "github"
|
||||||
pre = "<i class='fab fa-github fa-fw'></i>"
|
pre = "<i class='fab fa-github fa-fw'></i>"
|
||||||
|
post = ""
|
||||||
name = ""
|
name = ""
|
||||||
url = "https://github.com/dillonzq/LoveIt"
|
url = "https://github.com/dillonzq/LoveIt"
|
||||||
title = "GitHub"
|
title = "GitHub"
|
||||||
|
|||||||
@@ -7,7 +7,13 @@
|
|||||||
{{- with .logo -}}
|
{{- with .logo -}}
|
||||||
{{- partial "plugin/image.html" (dict "src" . "alt" $.Site.Title "class" "logo") -}}
|
{{- partial "plugin/image.html" (dict "src" . "alt" $.Site.Title "class" "logo") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- .pre | safeHTML }}{{ .name }}{{ .post | safeHTML -}}
|
{{- with .pre -}}
|
||||||
|
<span class="header-title-pre">{{ . | safeHTML }}</span>
|
||||||
|
{{- end -}}
|
||||||
|
{{- .name -}}
|
||||||
|
{{- with .post -}}
|
||||||
|
<span class="header-title-post">{{ . | safeHTML }}</span>
|
||||||
|
{{- end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Site.Title -}}
|
{{- .Site.Title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -79,7 +85,13 @@
|
|||||||
{{- with .logo -}}
|
{{- with .logo -}}
|
||||||
{{- partial "plugin/image.html" (dict "src" . "alt" $.Site.Title "class" "logo") -}}
|
{{- partial "plugin/image.html" (dict "src" . "alt" $.Site.Title "class" "logo") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- .pre | safeHTML }}{{ .name }}{{ .post | safeHTML -}}
|
{{- with .pre -}}
|
||||||
|
<span class="header-title-pre">{{ . | safeHTML }}</span>
|
||||||
|
{{- end -}}
|
||||||
|
{{- .name -}}
|
||||||
|
{{- with .post -}}
|
||||||
|
<span class="header-title-post">{{ . | safeHTML }}</span>
|
||||||
|
{{- end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Site.Title -}}
|
{{- .Site.Title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -161,7 +161,7 @@ class Theme {
|
|||||||
dropdownMenuContainer: `#search-dropdown-${classSuffix}`,
|
dropdownMenuContainer: `#search-dropdown-${classSuffix}`,
|
||||||
clearOnSelected: true,
|
clearOnSelected: true,
|
||||||
cssClasses: { noPrefix: true },
|
cssClasses: { noPrefix: true },
|
||||||
// debug: true,
|
debug: true,
|
||||||
}, {
|
}, {
|
||||||
name: 'search',
|
name: 'search',
|
||||||
source: (query, callback) => {
|
source: (query, callback) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user