-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Showing
3 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
7 changes: 3 additions & 4 deletions
7
...ts/ledge-render/src/lib/components/component-checklist/component-checklist.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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
<div *ngFor="let checklist of checklists;let i = index"> | ||
<mat-checkbox [checked]="checklist.complete" (change)="completeChange($event)"> | ||
<div *ngFor="let checklist of checklists;let i = index" class="component-checklist"> | ||
<mat-checkbox [checked]="checklist.complete" (change)="completeChange($event)" class="checklist-item"> | ||
<span class="title">{{checklist?.title}}</span> | ||
<span *ngIf="checklist.description" class="description"> {{checklist.description}}</span> | ||
<span *ngIf="checklist.description" class="description"> {{checklist.description}}</span> | ||
</mat-checkbox> | ||
<span *ngIf="checklist.description" class="description">: {{checklist.description}}</span> | ||
<component-todo name="todo" ngDefaultControl [disableInput]="true" [ngModel]="checklist.subitems" (ngModelChange)="changeTodo($event, i)"></component-todo> | ||
</div> | ||
|
16 changes: 14 additions & 2 deletions
16
...ts/ledge-render/src/lib/components/component-checklist/component-checklist.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 |
---|---|---|
@@ -1,10 +1,22 @@ | ||
.component-checklist { | ||
border: 1px solid #eee; | ||
padding: 8px 8px 0 8px; | ||
margin-top: 4px; | ||
border-radius: 4px; | ||
} | ||
|
||
.title { | ||
font-size: 16px; | ||
padding: 8px 0; | ||
font-weight: bold; | ||
padding: 0; | ||
font-weight: 300; | ||
} | ||
|
||
.description { | ||
font-weight: lighter; | ||
font-size: 12px; | ||
} | ||
|
||
.checklist-item { | ||
height: 24px; | ||
line-height: 24px; | ||
} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
} | ||
|
||
.title { | ||
font-weight: bold; | ||
font-weight: 300; | ||
} | ||
|
||
.description { | ||
|