From d1027952565fd9fec4c22ac04a60ceaa39d405fa Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Mon, 11 Nov 2019 18:47:49 +0100 Subject: [PATCH] #4: add stylesheets and basic color scheme --- static/css/style.css | 52 ++++++++++++++++++++++++++++++++++++++++++++ templates/base.html | 8 ++++++- tofu/settings.py | 4 ++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 static/css/style.css diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..ad01985 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,52 @@ +:root { + --main-bg-color: #121212; + --main-text-color-normal: #cccccc; + --main-text-color-light: #eeeeee; + + /* Generated by Paletton.com */ + /* http://paletton.com/#uid=54W0u0kiCFn8GVde7NVmtwSqXtg */ + --primary-color-0: #C351C3; + --primary-color-1: #EFAEEF; + --primary-color-2: #DB7ADB; + --primary-color-3: #A832A8; + --primary-color-4: #981898; + + --secondary-color-1-0: #8B5DC8; + --secondary-color-1-1: #CEB5F0; + --secondary-color-1-2: #AA84DD; + --secondary-color-1-3: #6F3FAF; + --secondary-color-1-4: #59249E; + + --secondary-color-2-0: #ED638D; + --secondary-color-2-1: #FAB6CB; + --secondary-color-2-2: #F488A9; + --secondary-color-2-3: #E54475; + --secondary-color-2-4: #D02156; +} + +html { + font-family: sans-serif; +} + +body { + background-color: var(--main-bg-color); + color: var(--main-text-color-normal); + margin: 0; +} + +h1, h2, h3, h4, h5, h6 { + color: var(--main-text-color-light); +} + +a { + color: var(--primary-color-2); + text-decoration: none; +} + +a:hover { + color: var(--primary-color-1); +} + +a:focus { + color: var(--primary-color-1); +} diff --git a/templates/base.html b/templates/base.html index c54107f..b8d8058 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,12 +1,18 @@ +{% load static %} + {% block title %}Tofu{% endblock %} - Tofu + +

Tofu

- {% block content %}No content.{% endblock %} +
+ {% block content %}No content.{% endblock %} +
diff --git a/tofu/settings.py b/tofu/settings.py index cc78a18..2971575 100644 --- a/tofu/settings.py +++ b/tofu/settings.py @@ -123,6 +123,10 @@ USE_TZ = True STATIC_URL = '/static/' +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, "static"), +] + # Other settings