diff options
author | r <r@freesoftwareextremist.com> | 2021-04-03 09:22:43 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-04-03 09:24:39 +0000 |
commit | 76c5baef6ae8f5520ab40fef48532b6b5759384f (patch) | |
tree | 4826c83217ab73d7f7b9964190553027a2ed994a /templates | |
parent | a82745175e6e4cbd87c884a7ec7d0408e9a4f3d5 (diff) | |
download | bloat-76c5baef6ae8f5520ab40fef48532b6b5759384f.tar.gz bloat-76c5baef6ae8f5520ab40fef48532b6b5759384f.zip |
Add option for user CSS
Diffstat (limited to 'templates')
-rw-r--r-- | templates/header.tmpl | 3 | ||||
-rw-r--r-- | templates/settings.tmpl | 6 |
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> |