Custom theme fixes

This commit is contained in:
3wc 2021-07-21 22:48:54 +02:00
parent 40aa3bccd3
commit 6f3ecf991d
2 changed files with 16 additions and 12 deletions

View File

@ -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

View File

@ -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;
}