Less bad hover effect on avatar.
This commit is contained in:
parent
205b019cef
commit
4458ac011b
2 changed files with 6 additions and 9 deletions
|
@ -127,16 +127,13 @@
|
||||||
width: var(--header-image-px);
|
width: var(--header-image-px);
|
||||||
height: var(--header-image-px);
|
height: var(--header-image-px);
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
transition: box-shadow .2s, width .1s, height .1s;
|
transition: width .1s, height .1s;
|
||||||
box-shadow: 0 0 4px #111;
|
box-shadow: 0 0 4px #111;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus,
|
||||||
box-shadow: 0 0 0 1px var(--header-accent-colour), 0 0 4px #111;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
box-shadow: 0 0 0 2px var(--header-accent-colour), 0 0 4px #111;
|
box-shadow: inset 0 0 0 1px var(--user-colour), 0 0 4px #111;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,8 +123,8 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if current_user is defined %}
|
{% if current_user is defined %}
|
||||||
<a href="/profile.php?u={{ current_user.user_id }}" class="avatar header__desktop__user__avatar"
|
<a href="/profile.php?u={{ current_user.user_id }}" class="avatar header__desktop__user__avatar" title="{{ current_user.username }}"
|
||||||
style="background-image:url('/profile.php?u={{ current_user.user_id }}&m=avatar');" title="{{ current_user.username }}"></a>
|
style="background-image:url('/profile.php?u={{ current_user.user_id }}&m=avatar');{{ current_user.user_colour|html_colour }}"></a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/auth.php?m=login" class="avatar header__desktop__user__avatar"
|
<a href="/auth.php?m=login" class="avatar header__desktop__user__avatar"
|
||||||
style="background-image:url('/profile.php?m=avatar');"></a>
|
style="background-image:url('/profile.php?m=avatar');"></a>
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
|
|
||||||
{{ input_checkbox_raw('', false, 'header__mobile__toggle', '', false, {'id':'toggle-mobile-header'}) }}
|
{{ input_checkbox_raw('', false, 'header__mobile__toggle', '', false, {'id':'toggle-mobile-header'}) }}
|
||||||
<div class="header__mobile__menu">
|
<div class="header__mobile__menu">
|
||||||
<div class="header__mobile__menu__spacer"><!-- required because padding is DUMB and OVERRIDES max-height --></div>
|
<div class="header__mobile__menu__spacer"></div>
|
||||||
|
|
||||||
<div class="header__mobile__user">
|
<div class="header__mobile__user">
|
||||||
{% for item in user_menu %}
|
{% for item in user_menu %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue