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

Blocks: remove custom spinner styles #30494

Merged
merged 3 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/update-spinner-styles
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Story Block: remove custom spinner styles.
39 changes: 0 additions & 39 deletions projects/plugins/jetpack/extensions/blocks/story/player/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,6 @@
@import '../../../shared/styles/jetpack-variables.scss';
@import './variables.scss';

$spinner-size: 18px;
// This used to be imported from @wordpress/components, but that was updated to use
// @emotion so original scss copied here.
.components-spinner {
display: inline-block;
background-color: #7e8993;
width: $spinner-size;
height: $spinner-size;
opacity: 0.7;
margin: 5px 11px 0;
border-radius: 100%;
position: relative;

&::before {
/* rtl:begin:ignore */
content: "";
position: absolute;
background-color: $white;
top: ( $spinner-size - ( $spinner-size * math.div(2, 3) ) ) * 0.5;
left: ( $spinner-size - ( $spinner-size * math.div(2, 3) ) ) * 0.5;
width: math.div($spinner-size, 4.5);
height: math.div($spinner-size, 4.5);
border-radius: 100%;
transform-origin: math.div($spinner-size, 3) math.div($spinner-size, 3);
animation: components-spinner__animation 1s infinite linear;
/* rtl:end:ignore */
}
}

@keyframes components-spinner__animation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
// end of deprecated @wordpress/component scss

.wp-story-display-contents {
display: contents;
}
Expand Down