-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(desktop-ui): add ProgressTracker UI component + new dui-secti…
…on-header Also add new `.text-tabular` css class to display tabular numeric data nicely
- Loading branch information
Showing
7 changed files
with
121 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/desktop-ui/src/components/layout/section-header.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
:host { | ||
display: block; | ||
} | ||
|
||
.title { | ||
white-space: nowrap; | ||
font-size: 12px; | ||
padding: 4px 2px; | ||
color: var(--color-black1); | ||
} | ||
|
||
.line { | ||
border-top: 1px solid var(--line-color-light); | ||
height: 10px; | ||
} | ||
|
||
:host.center { | ||
.header { | ||
text-align: center; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
packages/desktop-ui/src/components/layout/section-header.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) Marc J. Schmidt <marc@marcjschmidt.de> | ||
* This file is part of Deepkit and licensed under GNU GPL v3. See the LICENSE file for more information. | ||
*/ | ||
|
||
import {Component, Input} from "@angular/core"; | ||
|
||
@Component({ | ||
selector: 'dui-section-header', | ||
template: ` | ||
<div class="title"> | ||
<ng-content></ng-content> | ||
</div> | ||
<div class="line"></div> | ||
`, | ||
host: { | ||
'[class.center]': 'center !== false' | ||
}, | ||
styleUrls: ['./section-header.component.scss'] | ||
}) | ||
export class SectionHeaderComponent { | ||
@Input() center: boolean | '' = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters