Skip to content

Commit f2ab4bd

Browse files
benotternmetulev
authored andcommitted
[feature] Add 'ghost task' to task loading, and improved tasks lit-html standards compliance (#81)
* Updated several componenets to lit-html/lit-element spec * Added 'loading' ghost task
1 parent 479325b commit f2ab4bd

File tree

4 files changed

+250
-131
lines changed

4 files changed

+250
-131
lines changed

src/components/mgt-tasks/mgt-tasks.scss

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,25 +232,30 @@
232232
}
233233

234234
.Task.NewTask .FakeCheckBox::after {
235-
font-family: "FabricMDL2Icons";
236-
content: "\uE739";
235+
font-family: 'FabricMDL2Icons';
236+
content: '\uE739';
237237
}
238238

239239
.Task.NewTask input:checked ~ .FakeCheckBox::after {
240-
font-family: "FabricMDL2Icons";
241-
content: "\uE73A";
240+
font-family: 'FabricMDL2Icons';
241+
content: '\uE73A';
242242
}
243243

244244
.Task .TaskDetails {
245-
display: flex;
246-
margin: 0 0 16px 50px;
247-
color: #767676;
245+
margin: 0 0 16px 20px;
246+
color: var(--task-detail-color, #767676);
248247
font-size: 0.9em;
248+
display: flex;
249+
flex-wrap: wrap;
250+
justify-content: flex-start;
251+
justify-items: flex-start;
252+
align-content: stretch;
253+
align-items: stretch;
249254
}
250255

251256
.Task .TaskDetails input,
252257
.Task .TaskDetails select {
253-
color: #767676;
258+
color: var(--task-detail-color, #767676);
254259
font-size: 0.9em;
255260
}
256261

@@ -396,3 +401,43 @@
396401
transform: rotate(360deg);
397402
}
398403
}
404+
405+
.LoadingHeader {
406+
max-width: 90px;
407+
width: 100%;
408+
height: 20px;
409+
background: #F2F2F2;
410+
}
411+
412+
.Task.LoadingTask .TaskCheckCont {
413+
cursor: default;
414+
}
415+
.Task.LoadingTask .TaskCheck {
416+
background: #f2f2f2;
417+
border-color: #f2f2f2;
418+
cursor: default;
419+
}
420+
.Task.LoadingTask .TaskHeader {
421+
justify-content: flex-start;
422+
justify-items: flex-start;
423+
}
424+
.Task.LoadingTask .TaskTitle {
425+
max-width: 370px;
426+
width: 100%;
427+
height: 20px;
428+
background: #f2f2f2;
429+
}
430+
.Task.LoadingTask .TaskDetailIcon {
431+
width: 16px;
432+
height: 16px;
433+
margin: 5px;
434+
background: #f2f2f2;
435+
}
436+
.Task.LoadingTask .TaskDetail {
437+
margin-right: 8px;
438+
}
439+
.Task.LoadingTask .TaskDetailName {
440+
width: 81px;
441+
height: 10px;
442+
background: #f2f2f2;
443+
}

0 commit comments

Comments
 (0)