more fixes

This commit is contained in:
a 2022-10-16 17:49:29 -05:00
parent e004f35404
commit 6f92a989cc
8 changed files with 66 additions and 30 deletions

View file

@ -37,6 +37,9 @@
li { li {
line-height: 1.5; line-height: 1.5;
} }
.sub-menu {
margin-top: 0.5rem;
}
li::marker { li::marker {
content: ''; content: '';
} }

View file

@ -1,16 +0,0 @@
.header-nav {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
.menu {
display: flex;
flex-flow: row wrap;
gap: 1em;
a {
display: flex;
align-items: center;
gap: 0.5em;
}
}
}

View file

@ -2,11 +2,11 @@
display: flex; display: flex;
align-items: center; align-items: center;
padding: 1em 0; padding: 1em 0;
}
.site-footer hr {display: none;} hr {display: none;}
.site-footer .container {
.container {
display: flex; display: flex;
justify-content: space-between;
flex-flow: row wrap; flex-flow: row wrap;
gap: 1em; gap: 1em;
} }
@ -16,3 +16,19 @@
flex-flow: row wrap; flex-flow: row wrap;
gap: 1em; gap: 1em;
} }
.social-nav {
.menu {
display: flex;
gap: 1rem;
a:after {
display: none;
}
}
}
a[href='#top'] {
margin-left: auto;
}
}

View file

@ -32,3 +32,20 @@
justify-content: space-between; justify-content: space-between;
gap: 1em; gap: 1em;
} }
.header-nav {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
.menu {
display: flex;
flex-flow: row wrap;
gap: 1em;
a {
display: flex;
align-items: center;
gap: 0.5em;
}
}
}

View file

@ -37,6 +37,8 @@
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
margin-right: 0.5rem; margin-right: 0.5rem;
flex-shrink: 1; flex-shrink: 1;
height: 2rem;
box-sizing: border-box;
} }
#search-submit { #search-submit {
@ -45,4 +47,5 @@
background: var(--primary-accent); background: var(--primary-accent);
color: var(--primary-accent-text); color: var(--primary-accent-text);
border-radius: 4px; border-radius: 4px;
height: 2rem;
} }

View file

@ -4,7 +4,6 @@
@import "common/content"; @import "common/content";
@import "components/site-header"; @import "components/site-header";
@import "components/nav-header";
@import "components/nav-docs"; @import "components/nav-docs";
@import "components/site-footer"; @import "components/site-footer";

View file

@ -0,0 +1,13 @@
<nav class="social-nav">
<ul class="menu">
{{ $currentPage := . }}
{{ range .Site.Menus.social }}
<li
class='{{ .Identifier }}'>
<a href="{{ .URL }}">
{{ .Pre }}
</a>
</li>
{{ end }}
</ul>
</nav>

View file

@ -2,6 +2,7 @@
<hr> <hr>
<div class="container"> <div class="container">
{{ partial "nav-footer.html" . }} {{ partial "nav-footer.html" . }}
{{ partial "nav-social.html" . }}
<a href="#top">back to top</a> <a href="#top">back to top</a>
</div> </div>
</footer> </footer>