From e40ce7849e97a1e0295fb07072d95041b60ec72a Mon Sep 17 00:00:00 2001 From: Linnnus Date: Wed, 20 Mar 2024 18:20:42 +0100 Subject: Rename static/{global => base}.css Now the name of the css file `static/XXX.css` matches the HTML/template file in `views/XXX.html`. --- static/base.css | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ static/global.css | 54 ------------------------------------------------------ 2 files changed, 54 insertions(+), 54 deletions(-) create mode 100644 static/base.css delete mode 100644 static/global.css (limited to 'static') 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; +} diff --git a/static/global.css b/static/global.css deleted file mode 100644 index 5625968..0000000 --- a/static/global.css +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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; -} -- cgit v1.2.3