-
Notifications
You must be signed in to change notification settings - Fork 116
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
Chore: Replace loading doc loading animation with a GIF #923
Conversation
Verified that @jeremypress has signed the CLA. Thanks for the pull request! |
src/lib/_loading.scss
Outdated
.bp .bp-doc.bp-doc-document { | ||
.pdfViewer .page .loadingIcon { | ||
background: url('icons/loading.gif') center no-repeat; | ||
background-size: $spinner-size $spinner-size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be folded into background
above.
src/lib/_loading.scss
Outdated
width: 30px; | ||
.bp-document-preload-wrapper { | ||
.bp-preload-spinner { | ||
background: url('icons/loading.gif') center no-repeat; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use SCSS mixins to avoid repeating styles. Something like:
@mixin spinner() {
background: url('icons/loading.gif') center $spinner-size $spinner-size no-repeat;
}
.bp .bp-doc .pdfViewer .page .loadingIcon {
@include spinner;
}
.bp-preload-spinner {
@include spinner;
// other rules
}
Can we remove the styles related to the animation of the div? nvm, was looking at a subset of the changes |
8e4b95d
Performance diff on IE11
Before:
After:
Todo: