add username to expanded menu

This commit is contained in:
Ted Unangst 2019-11-07 17:54:10 -05:00
parent dc71a3afb2
commit 3aa986cd7b
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<header> <header>
{{ if .UserInfo }} {{ if .UserInfo }}
<details id="topmenu"> <details id="topmenu">
<summary>menu</summary> <summary>menu<span> {{ .UserInfo.Username }}</span></summary>
<ul> <ul>
<li><a id="homelink" href="/">home</a> <li><a id="homelink" href="/">home</a>
<li><a id="atmelink" href="/atme">@me</a> <li><a id="atmelink" href="/atme">@me</a>

View File

@ -75,6 +75,12 @@ header > details[open] {
margin-bottom: 1em; margin-bottom: 1em;
opacity: 1.0; opacity: 1.0;
} }
header > details summary span {
display: none;
}
header > details[open] summary span {
display: inline;
}
header > details li { header > details li {
margin: 1em 0em 1em 0em; margin: 1em 0em 1em 0em;
} }