Skip to content

Commit

Permalink
WIP nav layout
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoWinterhalter committed Oct 18, 2024
1 parent cec3956 commit a7c604e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pandoc/template.html4
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ $endif$
</header>
$if(toc)$
<nav>
<div id="$idprefix$TOC">
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
</div>
</nav>
$endif$
<main>
Expand Down
16 changes: 16 additions & 0 deletions website/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:root {
--bg: #e3e7ed;
--headerbg: #cef1f1;
--navbg: #bdf4f4;
}

/*** GENERAL ***/
Expand Down Expand Up @@ -58,6 +59,21 @@ header p {
margin: 0;
}

/*** NAV ***/

nav {
max-width: 1200px;
width: auto;
margin: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding: 15px;
background: var(--navbg);
}

/*** MAIN ***/

main {
Expand Down

0 comments on commit a7c604e

Please sign in to comment.