Skip to content

Commit

Permalink
feat(module:icon): add material design icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-nest-moon committed Dec 2, 2020
1 parent 10a0b72 commit 6762757
Show file tree
Hide file tree
Showing 6 changed files with 2,720 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<x-tabs [layout]="'top'">
<x-tab *ngFor="let tab of tabs" [label]="tab.name">
<x-row>
<x-col *ngFor="let icon of tab.icons" [span]="4">
<div class="box">
<x-icon [type]="tab.type + '-' + icon"></x-icon>
<span>{{ icon }}</span>
</div>
</x-col>
</x-row>
</x-tab>
</x-tabs>
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
:host {
.x-row {
margin-top: 1rem;
> .x-col {
> .box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 5rem;
border-radius: 0.125rem;
transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
cursor: pointer;
> .x-icon {
font-size: 1.5rem;
transition: transform 0.3s ease-in-out;
}
> span {
font-size: 0.75rem;
cursor: inherit;
white-space: nowrap;
display: block;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
text-align: center;
padding: 0.5rem 0.625rem;
}
&:hover {
background-color: var(--x-primary);
color: white;
> .x-icon {
color: inherit;
transform: scale(1.4);
}
}
}
}
}
}
Loading

0 comments on commit 6762757

Please sign in to comment.