diff options
author | Linnnus <[email protected]> | 2024-03-20 18:20:42 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-03-20 18:20:42 +0100 |
commit | e40ce7849e97a1e0295fb07072d95041b60ec72a (patch) | |
tree | 9392bcc828dd943128c2dfe2536b0ea66dab9a50 /static/base.css | |
parent | 227bb3801b7ba58a2343c8067fd5937be1fb87aa (diff) |
Rename static/{global => base}.css
Now the name of the css file `static/XXX.css` matches the HTML/template
file in `views/XXX.html`.
Diffstat (limited to 'static/base.css')
-rw-r--r-- | static/base.css | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/static/base.css b/static/base.css new file mode 100644 index 0000000..529dee9 --- /dev/null +++ b/static/base.css @@ -0,0 +1,54 @@ +/* + * This file will contain the styles that are to be applied to the WHOLE site. + * + * No page-specific settings should go in this file. + */ + +* { + 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; +} |