fix(docs): popover and themes page

This commit is contained in:
Alex 2020-04-01 14:46:32 +03:00
parent 2a921c2a0f
commit 75f27e2cfc
10 changed files with 42 additions and 25 deletions

View file

@ -1,12 +1,16 @@
<div style="position: relative;">
<nb-badge text="New!" status="danger" position="top right"></nb-badge>
<a
routerLink="/material"
class="eva-parent-hover"
[nbPopover]="popoverContent"
nbPopoverPlacement="bottom"
nbPopoverTrigger="noop"
nbPopoverOffset="0"
>
Material Theme
</a>
</div>
<ng-template #popoverContent>
<p class="material-theme-popover" (mouseover)="hidePopover()">New theme is available!</p>

View file

@ -5,7 +5,6 @@
@include nb-install-component() {
$menu-item-fg: nb-theme(color-fg-heading-light);
$menu-item-fg-active: nb-theme(header-menu-fg-active);
$header-font-weight: nb-theme(header-font-weight);
:host {
display: flex;
@ -15,7 +14,7 @@
a {
text-decoration: none;
font-weight: $header-font-weight;
font-weight: 600;
font-size: 13px;
line-height: 1.5rem;
padding: 0.675rem 1.375rem;

View file

@ -1,5 +1,5 @@
import { NgModule } from '@angular/core';
import {NbPopoverModule} from '@nebular/theme';
import {NbBadgeModule, NbPopoverModule} from '@nebular/theme';
import { MaterialThemeLinkComponent } from './components/material-theme-link/material-theme-link.component';
import { CapitalizePipe } from './pipes/capitalize.pipe';
import { EvaIconsPipe } from './pipes/eva-icons.pipe';
@ -9,7 +9,7 @@ const component = [MaterialThemeLinkComponent];
const pipes = [CapitalizePipe, EvaIconsPipe];
@NgModule({
imports: [RouterModule, NbPopoverModule],
imports: [RouterModule, NbPopoverModule, NbBadgeModule],
declarations: [...component, ...pipes],
exports: [NbPopoverModule, ...component, ...pipes],
})