generated from open-template-hub/web-ui-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d372ef
commit b684932
Showing
9 changed files
with
81 additions
and
60 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
23 changes: 23 additions & 0 deletions
23
src/app/component/common/color-chart/color-chart.component.html
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 @@ | ||
<div class="color-chart"> | ||
|
||
Less | ||
|
||
<svg width="10" height="10" class="d-inline-block"> | ||
<rect width="10" height="10" style="fill: var(--brand-color-lighter-4)"></rect> | ||
</svg> | ||
<svg width="10" height="10" class="d-inline-block"> | ||
<rect width="10" height="10" style="fill: var(--brand-color-lighter-3)"></rect> | ||
</svg> | ||
<svg width="10" height="10" class="d-inline-block"> | ||
<rect width="10" height="10" style="fill: var(--brand-color-lighter-2)"></rect> | ||
</svg> | ||
<svg width="10" height="10" class="d-inline-block"> | ||
<rect width="10" height="10" style="fill: var(--brand-color-lighter-1)"></rect> | ||
</svg> | ||
<svg width="10" height="10" class="d-inline-block"> | ||
<rect width="10" height="10" style="fill: var(--brand-color)"></rect> | ||
</svg> | ||
|
||
More | ||
|
||
</div> |
10 changes: 10 additions & 0 deletions
10
src/app/component/common/color-chart/color-chart.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,10 @@ | ||
.color-chart { | ||
float: right; | ||
color: var(--color); | ||
} | ||
|
||
.color-chart svg { | ||
margin-left: 2px; | ||
margin-right: 2px; | ||
} | ||
|
25 changes: 25 additions & 0 deletions
25
src/app/component/common/color-chart/color-chart.component.spec.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,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ColorChartComponent } from './color-chart.component'; | ||
|
||
describe('ColorChartComponent', () => { | ||
let component: ColorChartComponent; | ||
let fixture: ComponentFixture<ColorChartComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ ColorChartComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ColorChartComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/app/component/common/color-chart/color-chart.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-color-chart', | ||
templateUrl: './color-chart.component.html', | ||
styleUrls: ['./color-chart.component.scss'] | ||
}) | ||
export class ColorChartComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
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