Skip to content
Snippets Groups Projects
Commit ce38bedf authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Make the menu button look/behave more like the login one

Same hover effect, padding and cleanup the CSS etc.
parent e59c39d3
No related branches found
No related tags found
No related merge requests found
...@@ -373,39 +373,40 @@ export class Auth extends ScopedElementsMixin(VPULitElement) { ...@@ -373,39 +373,40 @@ export class Auth extends ScopedElementsMixin(VPULitElement) {
min-width: 150px; min-width: 150px;
} }
vpu-icon { .menu-icon {
height: 1em; height: 1em;
width: 1em; width: 1em;
vertical-align: -0.1rem; vertical-align: -0.1rem;
} }
.loginbox svg { .login-box svg {
width: 1.2em; width: 1.1em;
height: 1.2em; height: 1.1em;
top: 0.15em;
position: relative;
}
.loginbox {
display: flex; display: flex;
}
align-items: center; .login-button {
padding: 0 0.1em; padding: 0.3em 0.4em;
transition: background-color 0.15s, color 0.15s; transition: background-color 0.15s, color 0.15s;
} }
.loginbox:hover { .login-button:hover {
background-color: var(--vpu-dark); background-color: var(--vpu-dark);
color: var(--vpu-light); color: var(--vpu-light);
cursor: pointer; cursor: pointer;
transition: none; transition: none;
} }
.loginbox:hover svg path { .login-box {
display: flex;
align-items: center;
}
.login-box:hover svg path {
fill: var(--vpu-light); fill: var(--vpu-light);
} }
.loginbox .label { .login-box .label {
padding-left: 0.2em; padding-left: 0.2em;
} }
...@@ -457,10 +458,9 @@ export class Auth extends ScopedElementsMixin(VPULitElement) { ...@@ -457,10 +458,9 @@ export class Auth extends ScopedElementsMixin(VPULitElement) {
return html` return html`
<div class="dropdown" @click="${this.onDropdownClick}"> <div class="dropdown" @click="${this.onDropdownClick}">
<a href="#"> <a href="#">
<div class="dropdown-trigger"> <div class="dropdown-trigger login-button">
<div class="name">${this.name}</div> <div class="name">${this.name}</div>
<vpu-icon name="chevron-down" id="menu-chevron-icon"></vpu-icon> <vpu-icon class="menu-icon" name="chevron-down" id="menu-chevron-icon"></vpu-icon>
</div> </div>
</a> </a>
<div class="dropdown-menu" id="dropdown-menu2" role="menu"> <div class="dropdown-menu" id="dropdown-menu2" role="menu">
...@@ -500,7 +500,7 @@ export class Auth extends ScopedElementsMixin(VPULitElement) { ...@@ -500,7 +500,7 @@ export class Auth extends ScopedElementsMixin(VPULitElement) {
return html` return html`
<a href="#" @click="${this.onLoginClicked}"> <a href="#" @click="${this.onLoginClicked}">
<div class="loginbox"> <div class="login-box login-button">
<div class="icon">${unsafeHTML(loginSVG)}</div> <div class="icon">${unsafeHTML(loginSVG)}</div>
<div class="label">${i18n.t('login')}</div> <div class="label">${i18n.t('login')}</div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment