fix(buttons): improve actions group styles

This commit is contained in:
Alexander Zhukov 2017-07-24 12:47:40 +03:00
parent 931dfea84e
commit 40129f50fa
8 changed files with 51 additions and 54 deletions

View file

@ -0,0 +1,17 @@
<div class="action-groups">
<div class="action-groups-header">
<span>Action Groups</span>
</div>
<nga-actions size="medium">
<nga-action icon="ion-navicon"></nga-action>
<nga-action>
<nga-search type="rotate-layout"></nga-search>
</nga-action>
<nga-action icon="ion-ios-email-outline"></nga-action>
<nga-action disabled icon="ion-ios-bell-outline"></nga-action>
<nga-action>
<nga-user [menu]="userMenu" name="Han Solo"></nga-user>
</nga-action>
<nga-action icon="ion-ios-gear-outline"></nga-action>
</nga-actions>
</div>

View file

@ -0,0 +1,14 @@
@import '../../../../@theme/styles/variables';
@import '~@akveo/nga-theme/components/card/card.component.theme';
@include nga-install-component() {
.action-groups {
display: flex;
}
.action-groups-header {
flex: 1;
@include nga-card-header();
}
}

View file

@ -0,0 +1,15 @@
import { Component } from '@angular/core';
@Component({
selector: 'ngx-action-groups',
styleUrls: ['./action-groups.component.scss'],
templateUrl: './action-groups.component.html',
})
export class ActionGroupsComponent {
userMenu = [{
title: 'Profile',
}, {
title: 'Log out',
}];
}