mirror of
https://git.zavage.net/Zavage-Software/skrill-frontend.git
synced 2025-01-18 02:36:34 -07:00
build: style and cleanup a bit better nav menu
This commit is contained in:
parent
7d981250ec
commit
f29db81bf6
2
documentation/styles/bootstrap.min.css
vendored
2
documentation/styles/bootstrap.min.css
vendored
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' },
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user