-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polish side UI and multi select in nested.
- Loading branch information
Joen Asmussen
committed
Mar 19, 2018
1 parent
53cbee6
commit 6d5845c
Showing
5 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// These margins make sure that nested blocks stack/overlay with the parent block chrome | ||
// This is sort of an experiment at making sure the editor looks as much like the end result as possible | ||
// Potentially the rules here can apply to all nested blocks and enable stacking, in which case it should be moved elsewhere | ||
.wp-block-columns .editor-block-list__layout { | ||
&:first-child { | ||
margin-left: -$block-padding; | ||
} | ||
&:last-child { | ||
margin-right: -$block-padding; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.editor-block-list__block:not( .is-multi-selected ) .wp-block-paragraph { | ||
background: white; | ||
} | ||
|
||
// Don't show white background when a nesting parent is selected | ||
.editor-block-list__layout .editor-block-list__layout .editor-block-list__block .wp-block-paragraph { | ||
background: inherit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters