Merge pull request #19899 from overleaf/ii-bs5-loading-page

[web] BS5 projects page loading screen

GitOrigin-RevId: d204c05b7245393b0d9e10fa885e844e4ce43e62
This commit is contained in:
ilkin-overleaf 2024-08-15 17:56:28 +03:00 committed by Copybot
parent bdbc17c374
commit 5f85e13033
3 changed files with 73 additions and 0 deletions

View file

@ -1,3 +1,4 @@
@import 'account-settings';
@import 'project-list';
@import 'sidebar-v2-dash-pane';
@import 'editor';

View file

@ -0,0 +1,60 @@
@keyframes blink {
0% {
opacity: 0.2;
}
20% {
opacity: 1;
}
100% {
opacity: 0.2;
}
}
.loading-screen-brand-container {
width: 15%;
min-width: 200px;
text-align: center;
}
.loading-screen-brand {
position: relative;
width: 100%;
padding-top: 115.44%;
height: 0;
background: url(../../../../public/img/ol-brand/overleaf-o-grey.svg) no-repeat
bottom / 100%;
&::after {
content: '';
position: absolute;
height: inherit;
right: 0;
bottom: 0;
left: 0;
background: url(../../../../public/img/ol-brand/overleaf-o.svg) no-repeat
bottom / 100%;
transition: height 0.5s;
}
}
.loading-screen-label {
margin: 0 !important;
padding-top: var(--spacing-09);
font-family: $font-family-serif;
font-size: var(--font-size-07) !important;
color: var(--content-secondary);
}
.loading-screen-ellip {
animation: blink 1.4s both infinite;
&:nth-child(2) {
animation-delay: 0.2s;
}
&:nth-child(3) {
animation-delay: 0.4s;
}
}

View file

@ -595,6 +595,18 @@
}
}
}
.loading-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: calc(100vh - #{$header-height});
.loading-screen-brand-container {
margin: 0 auto;
}
}
}
/* stylelint-disable selector-class-pattern */