-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try: Make it easier to select the Separator
The separator is usually very thin, almost by definition. This makes it hard to select. This PR tries to make the hit area for the block bigger, therefore easier to select. It does so at the cost of a little overlap — but this seems worth it. What are your thoughts?
- Loading branch information
Joen Asmussen
committed
Feb 6, 2019
1 parent
669d0c5
commit bfed72b
Showing
2 changed files
with
14 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
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,13 @@ | ||
.wp-block-separator { | ||
// Make the separator hit area bigger, to make it more easy to select. | ||
&::after { | ||
content: ""; | ||
display: block; | ||
padding-bottom: $icon-button-size-small; | ||
position: relative; | ||
top: ($icon-button-size-small / 2); | ||
} | ||
margin-top: -($icon-button-size-small / 2); | ||
margin-bottom: -$icon-button-size-small / 2; | ||
transform: translateY(-$icon-button-size-small / 2); | ||
} |