Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: update default loading animation #10761

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion packages/core/src/browser/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,30 @@ blockquote {
bottom: 0;
z-index: 50000;
background: var(--theia-editor-background);
background-image: var(--theia-preloader);
background-size: 60px 60px;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
transition: opacity 0.8s;
display: flex;
justify-content: center;
align-items: center;
}

.theia-preload::after {
animation: 1s theia-preload-rotate infinite;
color: #777; /* color works on both light and dark themes */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately we cannot re-use a variable here like var(theia-foreground since it is not ready and would cause a flicker. Instead we can use a color which should work for most themes.

content: "\eb19"; /* codicon-load */
font: normal normal normal 72px/1 codicon;
}

@keyframes theia-preload-rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

.theia-preload.theia-hidden {
Expand Down