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:
Pablo Vazquez 2019-04-01 14:28:04 +02:00
parent 3906bab2ac
commit c31ef97c9e
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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).