diff options
author | Linnnus <[email protected]> | 2024-03-20 18:08:39 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-03-20 18:08:39 +0100 |
commit | 227bb3801b7ba58a2343c8067fd5937be1fb87aa (patch) | |
tree | 45a986cf7a3e14420e7436f2e0bda3416a125d0d /static | |
parent | d003bab8be942c31c3caedb69040c96aebe48549 (diff) |
Add initial site header
Diffstat (limited to 'static')
-rw-r--r-- | static/global.css | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/static/global.css b/static/global.css index 2c1f553..5625968 100644 --- a/static/global.css +++ b/static/global.css @@ -4,6 +4,51 @@ * No page-specific settings should go in this file. */ -html { - background-color: red; +* { + box-sizing: border-box; +} + +html, body { + padding: 0; + margin: 0; +} + +/* Sticky footer + * See: https://developer.mozilla.org/en-US/docs/Web/CSS/Layout_cookbook/Sticky_footers + */ +body { + min-height: 100vh; + display: grid; + grid-template-rows: auto 1fr auto; +} + +.navbar { + padding: 1.5rem; + background-color: #eee; + + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; +} + +.navbar__links { + list-style: none; + padding: 0; + + display: flex; + flex-direction: row; + gap: 1.5em; +} + +.navbar__links__item { + /* remove default link styling */ + color: inherit; + text-decoration: none; +} + +footer { + text-align: center; + font-size: small; + margin: 1rem; } |