feat(ui-features): add the tabs component

This commit is contained in:
Alexander Zhukov 2017-05-11 15:05:04 +03:00
parent ada9ac9c1d
commit 78e376bb5a
16 changed files with 90 additions and 28 deletions

View file

@ -11,8 +11,9 @@ import { NgaThemeService } from '@nga/theme/services/theme.service';
<i class="control-icon ion ion-navicon" (click)="toggleSidebar()"></i>
<span class="logo" (click)="goToHome()">NgX&nbsp;<a>Admin</a></span>
<button (click)="switchTheme()">Switch Theme!</button>
<button (click)="selectDefaultTheme()">Default Theme!</button>
</div>
<nga-actions size="medium" inverse class="right">
<nga-action><ngx-search-input></ngx-search-input></nga-action>
<nga-action icon="ion-ios-email-outline"></nga-action>
@ -55,4 +56,8 @@ export class HeaderComponent {
this.themeService.changeTheme('light');
}
}
selectDefaultTheme() {
this.themeService.changeTheme('default');
}
}

View file

@ -3,6 +3,7 @@
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
@import '../components';
@import 'variables';

View file

@ -0,0 +1,30 @@
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
@import '../components';
@import 'overrides/all';
@import '~@nga/theme/styles/themes/nga.theme.default';
$theme-name: 'default';
// @nga/theme module styles
@include nga-theme($theme-name) {
@include nga-theme-overrides($theme-name);
@include custom-components-theme($theme-name);
}
// @nga/bootstrap module styles
@import '~@nga/theme/overrides/bootstrap/styles/themes/nga.theme.default';
@include nga-bootstrap($theme-name);
// @nga/maps module styles
@import '~@nga/theme/overrides/maps/styles/themes/nga.theme.default';
@include nga-maps($theme-name);
// @nga/typography module styles
@import '~@nga/theme/overrides/typography/styles/themes/nga.theme.default';
@include nga-typography($theme-name);

View file

@ -0,0 +1,2 @@
@mixin nga-theme-overrides($theme-name) {
}

View file

@ -3,6 +3,7 @@
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
@import '../components';
@import 'overrides/all';