From 6f3ecf991dcf753517e354db3f85c16b2a323b30 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.cyberia@doesthisthing.work> Date: Wed, 21 Jul 2021 22:48:54 +0200 Subject: [PATCH] Custom theme fixes --- capsulflask/__init__.py | 3 +-- capsulflask/static/style.yolocolo.css | 25 +++++++++++++++---------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/capsulflask/__init__.py b/capsulflask/__init__.py index 4c18525..7aabe3f 100644 --- a/capsulflask/__init__.py +++ b/capsulflask/__init__.py @@ -159,9 +159,8 @@ app.logger.info(f"is_running_server: {is_running_server}") if app.config['THEME'] != "": my_loader = jinja2.ChoiceLoader([ - app.jinja_loader, jinja2.FileSystemLoader( - [os.path.join('capsulflask', 'themes', app.config['THEME']), + [os.path.join('capsulflask', 'theme', app.config['THEME']), 'capsulflask/templates']), ]) app.jinja_loader = my_loader diff --git a/capsulflask/static/style.yolocolo.css b/capsulflask/static/style.yolocolo.css index 5ab0fd7..206c245 100644 --- a/capsulflask/static/style.yolocolo.css +++ b/capsulflask/static/style.yolocolo.css @@ -1,30 +1,35 @@ html { - color: #241e1e; - background-color: #bdc7b8; + color: #241e1e !important; + background-color: #bdc7b8 !important; } a { - color:#00517a; - text-shadow: 1px 1px 0px #eee; + color:#00517a !important; + text-shadow: 1px 1px 0px #eee !important; } a:hover, a:active, a:visited { - color: #323417; + color: #323417 !important; } .nav-links a { - text-shadow: 2px 2px 0px #eee; + text-shadow: 2px 2px 0px #eee !important; +} + +h1, h2, h3, h4, h5 { + text-shadow: 2px 2px 0px #eee; } main { - border: 1px dashed #241e1e; + border: 1px dashed #241e1e !important; +} input, select, textarea { - color: #241e1e; + color: #241e1e !important; } th { - border-right: 1px solid #eee; - text-align: left; + border-right: 1px solid #eee !important; + text-align: left !important; }