Skip to content

Commit

Permalink
Drop focus animation when navigating regions
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 27, 2017
1 parent b5fc689 commit 21070a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion components/higher-order/navigate-regions/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
left: 0;
right: 0;
pointer-events: none;
@include focus_flash;
border: 4px solid $blue-medium-400;
}
}
20 changes: 0 additions & 20 deletions editor/assets/stylesheets/_animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,3 @@
50% { opacity: 1; }
100% { opacity: .5; }
}


@mixin focus_flash {
animation: focus_flash .4s;
}

@keyframes focus_flash {
0% {
border: 2px solid $blue-medium-400;
}
10% {
border: 4px solid $blue-medium-400;
}
90% {
border: 4px solid $blue-medium-400;
}
100% {
border: 2px solid $blue-medium-400;
}
}
4 changes: 4 additions & 0 deletions editor/assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ body.gutenberg-editor-page {
iframe {
width: 100%;
}

.components-navigate-regions {
height: 100%;
}
}

.editor-post-title,
Expand Down

0 comments on commit 21070a4

Please sign in to comment.