Use material icon button for add functionality
parent
65015f701f
commit
b8a8b1302d
|
@ -7392,6 +7392,11 @@
|
||||||
"object-visit": "^1.0.0"
|
"object-visit": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"material-design-icons": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/material-design-icons/-/material-design-icons-3.0.1.tgz",
|
||||||
|
"integrity": "sha1-mnHEh0chjrylHlGmbaaCA4zct78="
|
||||||
|
},
|
||||||
"md5.js": {
|
"md5.js": {
|
||||||
"version": "1.3.4",
|
"version": "1.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz",
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
"jquery": "^3.1.0",
|
"jquery": "^3.1.0",
|
||||||
"jquery-ui": "^1.12.0",
|
"jquery-ui": "^1.12.0",
|
||||||
"jquery-ui-bundle": "^1.11.4",
|
"jquery-ui-bundle": "^1.11.4",
|
||||||
|
"material-design-icons": "^3.0.1",
|
||||||
"ngx-clipboard": "^11.1.1",
|
"ngx-clipboard": "^11.1.1",
|
||||||
"ngx-cookie-service": "^1.0.9",
|
"ngx-cookie-service": "^1.0.9",
|
||||||
"ngx-infinite-scroll": "^0.5.2",
|
"ngx-infinite-scroll": "^0.5.2",
|
||||||
|
|
|
@ -6,3 +6,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host/deep/.material-icons {
|
||||||
|
font-size: 32px;
|
||||||
|
}
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
Ohne Squad
|
Ohne Squad
|
||||||
</mat-button-toggle>
|
</mat-button-toggle>
|
||||||
</mat-button-toggle-group>
|
</mat-button-toggle-group>
|
||||||
<a class="pull-right btn btn-success" (click)="openNewUserForm()">+</a>
|
<button mat-icon-button class="pull-right" style="padding-right: 30px;">
|
||||||
|
<mat-icon (click)="openNewUserForm()">add_circle</mat-icon>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group list-header">
|
<div class="input-group list-header">
|
||||||
|
|
|
@ -4,10 +4,14 @@ import {CommonModule} from '@angular/common';
|
||||||
import {SharedModule} from '../shared.module';
|
import {SharedModule} from '../shared.module';
|
||||||
import {InfiniteScrollModule} from 'ngx-infinite-scroll';
|
import {InfiniteScrollModule} from 'ngx-infinite-scroll';
|
||||||
import {MatButtonToggleModule} from '@angular/material';
|
import {MatButtonToggleModule} from '@angular/material';
|
||||||
|
import {MatButtonModule} from '@angular/material/button';
|
||||||
|
import {MatIconModule} from '@angular/material/icon';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: usersRoutingComponents,
|
declarations: usersRoutingComponents,
|
||||||
imports: [CommonModule, SharedModule, MatButtonToggleModule, InfiniteScrollModule, usersRouterModule],
|
imports: [CommonModule, SharedModule, MatButtonToggleModule, MatButtonModule, MatIconModule,
|
||||||
|
InfiniteScrollModule, usersRouterModule],
|
||||||
})
|
})
|
||||||
export class UsersModule {
|
export class UsersModule {
|
||||||
static routes = usersRouterModule;
|
static routes = usersRouterModule;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@import "../node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css";
|
@import "../node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css";
|
||||||
|
@import "../node_modules/material-design-icons/iconfont/material-icons.css";
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-top: 50px;
|
padding-top: 50px;
|
||||||
|
@ -70,3 +71,8 @@ form {
|
||||||
border: 2px solid;
|
border: 2px solid;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Icon theme */
|
||||||
|
.mat-icon {
|
||||||
|
color: #c5c5c5;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue