diff --git a/assets/styles/base.scss b/assets/styles/base.scss index 776f32d..4426abb 100644 --- a/assets/styles/base.scss +++ b/assets/styles/base.scss @@ -24,7 +24,6 @@ h1, h2, h3, h4, h5, h6, ol, ul, thead { opacity: 0.3; transition: opacity 0.3s ease; color: var(--secondary); - } p, ul, text { @@ -381,11 +380,24 @@ header { flex: 1 1 auto; } - & > svg { + #search-icon { + background-color: var(--lightgray); + border-radius: 4px; + height: 2em; + display: flex; + align-items: center; + cursor: pointer; + & > p { + display: inline; + padding-left: 0.5em; + } + } + + & svg { cursor: pointer; width: 18px; min-width: 18px; - margin: 0 1em; + margin: 0 0.5em; &:hover .search-path { stroke: var(--tertiary); @@ -592,4 +604,3 @@ header { } } - diff --git a/layouts/_default/section.html b/layouts/_default/section.html index abdf0b0..2fc7144 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -6,12 +6,7 @@ {{partial "search.html" .}}
-
-

{{ .Site.Data.config.page_title }}

- Search IconIcon to open search -
- {{partial "darkmode.html" .}} -
+ {{partial "header.html" .}}

All {{.Title}}

{{partial "page-list.html" .Paginator.Pages.ByLastmod.Reverse }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 06507a7..7c2ab10 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,13 +6,8 @@ {{partial "search.html" .}}
-
-

{{ .Site.Data.config.page_title }}

- Search IconIcon to open search -
- {{partial "darkmode.html" .}} -
-
+ {{partial "header.html" .}} +
{{if .Title}}

{{ .Title }}

{{end}}

Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}. diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index e0a1e87..8f86b64 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -6,12 +6,7 @@ {{partial "search.html" .}}

-
-

{{ .Site.Data.config.page_title }}

- Search IconIcon to open search -
- {{partial "darkmode.html" .}} -
+ {{partial "header.html" .}}

All {{.Title}}

diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 58f024b..abddc07 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -6,12 +6,7 @@ {{partial "search.html" .}}
-
-

{{ .Site.Data.config.page_title }}

- Search IconIcon to open search -
- {{partial "darkmode.html" .}} -
+ {{partial "header.html" .}}

Tag: {{.Title | humanize}}

{{partial "page-list.html" .Paginator.Pages}} diff --git a/layouts/index.html b/layouts/index.html index 5053614..c7871e9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,12 +6,7 @@ {{partial "search.html" .}}
-
-

{{if .Title}}{{ .Title }}{{else}}Untitled{{end}}

- Search IconIcon to open search -
- {{partial "darkmode.html" .}} -
+ {{partial "header.html" .}}
{{partial "toc.html" .}} {{partial "textprocessing.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..773e068 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,10 @@ +
+

{{ .Site.Data.config.page_title }}

+
+
+

Search

+ Search IconIcon to open search +
+ {{partial "darkmode.html" .}} +
+