mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-30 13:40:35 +00:00
Create tech ui card css to replace material cards
This commit is contained in:
parent
7aca2bcbc0
commit
7226a87c6d
@ -1,6 +1,6 @@
|
|||||||
<mat-card class="{{elevation}}">
|
<div class="{{elevation}} tui-card">
|
||||||
<mat-card-title>Devices</mat-card-title>
|
<div class="tui-card-title">Devices</div>
|
||||||
<mat-card-content>
|
<div class="tui-card-content">
|
||||||
<div fxLayout="row" fxLayoutAlign="space-between start">
|
<div fxLayout="row" fxLayoutAlign="space-between start">
|
||||||
<app-donut-chart [elementID]="chartID"></app-donut-chart>
|
<app-donut-chart [elementID]="chartID"></app-donut-chart>
|
||||||
<div class="items" fxLayout="column" fxLayoutAlign="space-evenly end">
|
<div class="items" fxLayout="column" fxLayoutAlign="space-evenly end">
|
||||||
@ -8,5 +8,5 @@
|
|||||||
</app-chart-item>
|
</app-chart-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</div>
|
||||||
</mat-card>
|
</div>
|
@ -1,6 +1,6 @@
|
|||||||
<mat-card class="{{elevation}}">
|
<div class="{{elevation}} tui-card">
|
||||||
<mat-card-title>Folders</mat-card-title>
|
<div class="tui-card-title">Folders</div>
|
||||||
<mat-card-content>
|
<div class="tui-card-content">
|
||||||
<div fxLayout="row" fxLayoutAlign="space-between start">
|
<div fxLayout="row" fxLayoutAlign="space-between start">
|
||||||
<app-donut-chart [elementID]="chartID"></app-donut-chart>
|
<app-donut-chart [elementID]="chartID"></app-donut-chart>
|
||||||
<div class="items" fxLayout="column" fxLayoutAlign="space-evenly end">
|
<div class="items" fxLayout="column" fxLayoutAlign="space-evenly end">
|
||||||
@ -8,5 +8,5 @@
|
|||||||
</app-chart-item>
|
</app-chart-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</div>
|
||||||
</mat-card>
|
</div>
|
@ -1,10 +1,10 @@
|
|||||||
<mat-card class="{{elevation}}">
|
<div class="{{elevation}} tui-card">
|
||||||
<div fxLayout="row" fxLayoutAlign="space-between start">
|
<div fxLayout="row" fxLayoutAlign="space-between start">
|
||||||
<mat-card-title>Status</mat-card-title>
|
<div class="tui-card-title">Status</div>
|
||||||
<app-list-toggle (listTypeEvent)="onToggle($event)"></app-list-toggle>
|
<app-list-toggle (listTypeEvent)="onToggle($event)" class="tui-card-content"></app-list-toggle>
|
||||||
</div>
|
</div>
|
||||||
<mat-card-content>
|
<div class="tui-card-content">
|
||||||
<app-folder-list *ngIf="currentListType===listType.Folders"></app-folder-list>
|
<app-folder-list *ngIf="currentListType===listType.Folders"></app-folder-list>
|
||||||
<app-device-list *ngIf="currentListType===listType.Devices"></app-device-list>
|
<app-device-list *ngIf="currentListType===listType.Devices"></app-device-list>
|
||||||
</mat-card-content>
|
</div>
|
||||||
</mat-card>
|
</div>
|
@ -78,6 +78,18 @@ html, body {
|
|||||||
font-family: mat-font-family($tech-ui-typography);
|
font-family: mat-font-family($tech-ui-typography);
|
||||||
line-height: mat-line-height($tech-ui-typography, body-1);
|
line-height: mat-line-height($tech-ui-typography, body-1);
|
||||||
}
|
}
|
||||||
.mat-card-title {
|
|
||||||
|
.tui-card {
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 4px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tui-card-title {
|
||||||
|
padding: 16px 16px 0 16px;
|
||||||
font-size: mat-font-size($tech-ui-typography, subheading-2)
|
font-size: mat-font-size($tech-ui-typography, subheading-2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tui-card-content {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user