Skip to content

Commit

Permalink
Spotlight mode: Fix inactive block's styling regression (#9951)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored and tofumatt committed Sep 19, 2018
1 parent 897775f commit 333a4c2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions packages/editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@
> .editor-block-list__block-edit .reusable-block-edit-panel * {
z-index: z-index(".editor-block-list__block-edit .reusable-block-edit-panel *");
}

&.is-focus-mode:not(.is-multi-selected) {
opacity: 0.5;
transition: opacity 0.1s linear;

&:not(.is-focused) .editor-block-list__block,
&.is-focused {
opacity: 1;
}
}
}


Expand Down Expand Up @@ -171,6 +161,17 @@
&.is-hovered > .editor-block-list__block-edit::before {
outline: $border-width solid theme(outlines);
}

// Spotlight mode
&.is-focus-mode:not(.is-multi-selected) {
opacity: 0.5;
transition: opacity 0.1s linear;

&:not(.is-focused) .editor-block-list__block,
&.is-focused {
opacity: 1;
}
}
}


Expand Down

0 comments on commit 333a4c2

Please sign in to comment.