all repos — flounder @ 16155bf510067f53cb4387236c6c96c1f6429029

A small site builder for the Gemini protocol

add css for impersonation
alex wennerberg alex@alexwennerberg.com
Sun, 06 Dec 2020 11:32:30 -0800
commit

16155bf510067f53cb4387236c6c96c1f6429029

parent

055fcbe201d0fd4c1dd9b1c966359cdc9a11b31f

2 files changed, 13 insertions(+), 1 deletions(-)

jump to
M templates/nav.htmltemplates/nav.html

@@ -8,7 +8,13 @@ <a href="/admin">admin</a>

{{ 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>
M templates/static/style.csstemplates/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;