UI Timeline: scale the placeholder to almost fit the screen.
So the timeline has some initial height (75% of viewport height), and once the content shows up the page doesn't jump much.
This commit is contained in:
parent
3906bab2ac
commit
c31ef97c9e
@ -1,4 +1,10 @@
|
||||
.timeline
|
||||
|
||||
// Shown briefly while the timeline is loading.
|
||||
&.placeholder
|
||||
color: $color-text-dark-hint
|
||||
height: 75vh // Timelines are usually long, so scale the placeholder to almost viewport height.
|
||||
|
||||
.group
|
||||
opacity: 0
|
||||
animation: fade-in 500ms forwards
|
||||
|
@ -80,9 +80,10 @@ mixin timeline(projectid, sortdirection)
|
||||
data-project-id=projectid,
|
||||
data-sort-dir=sortdirection,
|
||||
)
|
||||
// TODO: Make nicer reuseable placeholder
|
||||
.h3.text-center.text-secondary.p-5.border-bottom
|
||||
i.pi-spin.spin
|
||||
.d-flex.w-100.h-100
|
||||
//- TODO: Make nicer reuseable placeholder
|
||||
.h3.text-muted.m-auto
|
||||
i.pi-spin.spin
|
||||
|
||||
|
||||
//- Category listing (Learn, Libraries, etc).
|
||||
|
Loading…
x
Reference in New Issue
Block a user