add username to expanded menu
This commit is contained in:
parent
dc71a3afb2
commit
3aa986cd7b
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue