Skip to content

Commit

Permalink
Vertically center header elements (#306)
Browse files Browse the repository at this point in the history
* Vertically center header elements

* Add 'Doug Barrett' to contributors.yml

---------

Co-authored-by: Bryan Finster <[email protected]>
  • Loading branch information
dkbnz and bdfinst authored Jun 26, 2023
1 parent 0ea84d8 commit b2614e9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ color_second = "#b30000"
disableSearch = false # default is false
disableNavChevron = false # set true to hide next/prev chevron, default is false
menushortcutsnewtab = false # set true to open shortcuts links to a new tab/window
custom_css = ["css/style.css"]

editURL = "https://github.com/Minimum-CD/cd-manifesto/blob/master/content/"
enableGitInfo = true
Expand Down
3 changes: 3 additions & 0 deletions data/names/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ list:
- fName: Sean
lName: Poulter
contact: https://ca.linkedin.com/in/seanpoulter
- fName: Doug
lName: Barrett
contact: https://dkb.nz/
- fName: Luiz
lName: Esmiralha
contact: https://www.linkedin.com/in/luizesmiralha
Expand Down
9 changes: 4 additions & 5 deletions layouts/partials/body-header.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div>
{{if not (in .Params.hide "nav")}}
<div class="burger {{.Params.layout }}">
<a href="javascript:void(0);" style="font-size:15px;" onclick="$('article > aside').toggleClass('responsive')">&#9776;</a>
<a href="javascript:void(0);" onclick="$('article > aside').toggleClass('responsive')">&#9776;</a>
</div>
{{end}}

<div height="100px">
{{- $defaultheader := printf "<a class='baselink' href='%s'><img src='%s' alt='Site logo' height='100px'> %s</a>" .Site.BaseURL .Site.Params.logo .Site.Title -}}
<div>
{{- $defaultheader := printf "<a class='baselink' href='%s'><img src='%s' alt='Site logo'> %s</a>" .Site.BaseURL .Site.Params.logo .Site.Title -}}
{{- partial "_mdinclude.html" (dict "name" "header" "context" . "tip" $defaultheader ) -}}
</div>

Expand All @@ -22,5 +22,4 @@
>Star</a>
</nav>
{{- end}}

</div>
</div>
5 changes: 2 additions & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{{ range .Site.Params.custom_js -}}
<script async defer src="{{ . | absURL }}"></script>
{{ range .Site.Params.custom_css -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
11 changes: 11 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
body header, header a, header nav {
display: flex;
align-items: center;
justify-content: center;
}

@media (max-width: 936px) {
body header div.burger {
display: flex;
}
}

0 comments on commit b2614e9

Please sign in to comment.