build: style and cleanup a bit better nav menu

This commit is contained in:
Mathew Guest 2024-08-04 06:38:23 -06:00
parent 7d981250ec
commit f29db81bf6
5 changed files with 23 additions and 5 deletions

File diff suppressed because one or more lines are too long

@ -0,0 +1,18 @@
.nav-button {
color: #1a1e21;
margin-right: 1em;
}
.dropdown-menu-pane {
background: #141a42;
border: 1px solid #1aafb7;
border-radius: 0.15rem 0.05rem 0.5rem 0.5rem;
}
.dropdown-menu-pane a {
color: #ccc;
}
.dropdown-menu-pane a:hover {
background: #212529;
}

@ -5,8 +5,8 @@
(mouseleave)="onMouseLeave()" (mouseleave)="onMouseLeave()"
class="d-inline-block" class="d-inline-block"
> >
<button class="btn btn-outline-primary" ngbDropdownToggle>{{ buttonLabel }}</button> <button class="btn btn-outline-warning btn-warning nav-button" ngbDropdownToggle>{{ buttonLabel }}</button>
<div ngbDropdownMenu> <div ngbDropdownMenu class="dropdown-menu-pane">
<a *ngFor="let item of items" ngbDropdownItem [routerLink]="item.route"> <a *ngFor="let item of items" ngbDropdownItem [routerLink]="item.route">
{{ item.label }} {{ item.label }}
</a> </a>

@ -21,6 +21,6 @@ export class DropdownNavButtonComponent {
onMouseLeave() { onMouseLeave() {
this.timeout = setTimeout(() => { this.timeout = setTimeout(() => {
this.myDrop.close(); this.myDrop.close();
}, 140); }, 70);
} }
} }

@ -21,7 +21,7 @@
<app-dropdown-nav-button <app-dropdown-nav-button
buttonLabel="Trade" buttonLabel="Trade"
[items]="[ [items]="[
{ label: 'Holdings', route: '/trade/coinbase' }, { label: 'Coinbase', route: '/trade/coinbase' },
{ label: 'Alerts', route: '/trade/alerts' }, { label: 'Alerts', route: '/trade/alerts' },
]" ]"
> >