aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/header.tmpl3
-rw-r--r--templates/settings.tmpl6
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/header.tmpl b/templates/header.tmpl
index df2b6af..1abb6dd 100644
--- a/templates/header.tmpl
+++ b/templates/header.tmpl
@@ -25,6 +25,9 @@
{{if $.Ctx.FluorideMode}}
<script src="/static/fluoride.js"></script>
{{end}}
+ {{if $.Ctx.UserCSS}}
+ <style>{{$.Ctx.UserCSS}}</style>
+ {{end}}
</head>
<body {{if $.Ctx.DarkMode}}class="dark"{{end}}>
{{end}}
diff --git a/templates/settings.tmpl b/templates/settings.tmpl
index 4a72b6a..8aee4e2 100644
--- a/templates/settings.tmpl
+++ b/templates/settings.tmpl
@@ -63,6 +63,12 @@
<input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
<label for="dark-mode"> Use dark theme </label>
</div>
+ <div class="settings-form-field">
+ <label for="css"> Custom CSS: </label>
+ </div>
+ <div>
+ <textarea id="css" name="css" cols="80" rows="8">{{.Settings.CSS}}</textarea>
+ </div>
<button type="submit"> Save </button>
</form>