Skip to content

Commit

Permalink
centered subtitle + lighter navbars (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi1cazenave authored Mar 13, 2024
1 parent 6af4bd8 commit 158a73f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 11 deletions.
24 changes: 23 additions & 1 deletion www/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,32 @@ footer {
text-align: right;
}

header nav,
footer nav {
display: flex;
justify-content: end;
}

header nav a:not(:first-child):before,
footer nav a:not(:first-child):before {
display: inline-block;
content: "|";
width: 1em;
text-align: center;
color: var(--fg-banner-border);
}

header h1 {
text-align: center;
font-size: 2em;
margin: 1.2em auto;
line-height: 1em;
margin: 1.8em auto 1.2em;
}

main > p:first-child {
text-align: center;
text-wrap: balance;
margin: -1em auto 2em;
}

footer {
Expand Down
2 changes: 1 addition & 1 deletion www/content/erglace.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jsScripts = ["/js/keebs.js"]
footer = "réfrigéré par [x-keyboard](https://onedeadkey.github.io/x-keyboard)"
+++

**🚧 en construction**
**🚧 en construction 🚧**


{{<x-keyboard name="Erglace"
Expand Down
4 changes: 2 additions & 2 deletions www/content/lexique.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title = "Lexique"
+++

**🚧 en construction 🚧**

<style>
dt + dd:has(+ dd), dd + dd { display: list-item; list-style-type: "- "; }
dd p { margin: 0.7em 0; }
Expand All @@ -10,8 +12,6 @@ title = "Lexique"
.footnotes li p { margin: 0.2em 0; }
</style>

**🚧 en construction**


Ergonomie & Optimisation
--------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion www/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<small style="float: left">{{ .Params.footer | markdownify }}</small>
<nav>
<a href="https://github.com/Nuclear-Squid/ErgoL">GitHub</a> |
<a href="https://github.com/Nuclear-Squid/ErgoL">GitHub</a>
<a href="https://discord.gg/5xR5K3nAFX">Discord</a>
</nav>
12 changes: 6 additions & 6 deletions www/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

<nav>
<a href="/">Ergo‑L</a>
| <a href="/bepo">Bépo ?</a>
<!-- | <a href="/erglace">Erglace !</a> -->
| <a href="/lafayette">Lafayette *</a>
| <a href="/stats/#/ergol//en+fr">Stats</a>
| <a href="/lexique">Lexique</a>
| <a href="/dactylo">Apprendre</a>
<a href="/bepo">Bépo ?</a>
<!-- <a href="/erglace">Erglace !</a> -->
<a href="/lafayette">Lafayette *</a>
<a href="/stats/#/ergol//en+fr">Stats</a>
<a href="/lexique">Lexique</a>
<a href="/dactylo">Apprendre</a>
</nav>

{{ partial "menu.html" (dict "menuID" "main" "page" .) }}
Expand Down

0 comments on commit 158a73f

Please sign in to comment.