flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 16155bf510067f53cb4387236c6c96c1f6429029
parent 055fcbe201d0fd4c1dd9b1c966359cdc9a11b31f
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun,  6 Dec 2020 11:32:30 -0800

add css for impersonation

Diffstat:
Mtemplates/nav.html | 8+++++++-
Mtemplates/static/style.css | 6++++++
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/templates/nav.html b/templates/nav.html @@ -8,7 +8,13 @@ {{ end }} <a href="/logout">logout</a> {{ if .AuthUser.ImpersonatingUser }} - <em><b>({{.AuthUser.Username}} impersonated by {{.AuthUser.ImpersonatingUser}})</b></em> +<style> +main { + background-color: #ffe9ec; +} +</style> +<div class="impersonate"> + ({{.AuthUser.Username}} impersonated by {{.AuthUser.ImpersonatingUser}})</div> {{ end }} {{ else }} <a href="/register">register</a> diff --git a/templates/static/style.css b/templates/static/style.css @@ -46,6 +46,12 @@ width: 100%; resize: vertical; } +.impersonate { + font-style: italic; + font-weight: bold; + background-color: +} + .button { background-color: white; /* Green */ border: 1px solid black;