Let the logout button match the link color.

This commit is contained in:
voussoir 2021-05-19 00:07:19 -07:00
parent bfea9c097c
commit 95a6d7bb92
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 6 additions and 1 deletions

View file

@ -27,6 +27,11 @@ p:last-of-type
margin-bottom: 0;
}
#header #logout_button
{
color: var(--color_text_link);
}
.header_element:hover
{
background-color: var(--color_secondary);

View file

@ -5,7 +5,7 @@
<a class="header_element" href="/tags">Tags</a>
{% if session.user %}
<a class="header_element dynamic_user_display_name" href="/user/{{session.user.username}}">{{session.user.display_name}}</a>
<button class="header_element" onclick="return api.users.logout(common.refresh);" style="flex:0">Logout</button>
<button id="logout_button" class="header_element" onclick="return api.users.logout(common.refresh);" style="flex:0">Logout</button>
{% else %}
<a class="header_element" href="/login">Log in</a>
{% endif %}