Skip to content

Commit

Permalink
Fix: Block movers don't appear on the playground and on the widgets p…
Browse files Browse the repository at this point in the history
…age. (#15076)

The keyframe animations contained a comment saying they need to be duplicated, but they were not being duplicated in widgets and playground styles this made the block movers invisible.
  • Loading branch information
jorgefilipecosta committed May 6, 2019
1 parent a2e3a40 commit ef95cb9
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/edit-widgets/src/style.scss
Expand Up @@ -40,3 +40,31 @@ body.gutenberg_page_gutenberg-widgets {
height: 100%;
}
}

/**
* Animations
*/

// These keyframes should not be part of the _animations.scss mixins file.
// Because keyframe animations can't be defined as mixins properly, they are duplicated.
// Since hey are intended only for the editor, we add them here instead.
@keyframes edit-post__loading-fade-animation {
0% {
opacity: 0.5;
}
50% {
opacity: 1;
}
100% {
opacity: 0.5;
}
}

@keyframes edit-post__fade-in-animation {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
28 changes: 28 additions & 0 deletions playground/src/style.scss
Expand Up @@ -35,3 +35,31 @@
height: 100%;
}
}

/**
* Animations
*/

// These keyframes should not be part of the _animations.scss mixins file.
// Because keyframe animations can't be defined as mixins properly, they are duplicated.
// Since hey are intended only for the editor, we add them here instead.
@keyframes edit-post__loading-fade-animation {
0% {
opacity: 0.5;
}
50% {
opacity: 1;
}
100% {
opacity: 0.5;
}
}

@keyframes edit-post__fade-in-animation {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

0 comments on commit ef95cb9

Please sign in to comment.