-
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 adapting the padding to work in the classic inspector.
- Loading branch information
Showing
2 changed files
with
27 additions
and
13 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 |
---|---|---|
@@ -1,14 +1,23 @@ | ||
.block-editor__hooks-colors-panel .component-color-indicator { | ||
margin-left: 0; | ||
display: block; | ||
border-radius: 50%; | ||
border: 0; | ||
height: 24px; | ||
width: 24px; | ||
padding: 0; | ||
background-image: | ||
repeating-linear-gradient(45deg, $gray-200 25%, transparent 25%, transparent 75%, $gray-200 75%, $gray-200), | ||
repeating-linear-gradient(45deg, $gray-200 25%, transparent 25%, transparent 75%, $gray-200 75%, $gray-200); | ||
background-position: 0 0, 25px 25px; | ||
background-size: calc(2 * 5px) calc(2 * 5px); | ||
.block-editor__hooks-colors-panel { | ||
|
||
// Allow horizontal overflow so the size-increasing color indicators don't cause a scrollbar. | ||
.components-navigator-screen { | ||
overflow-x: visible; | ||
} | ||
|
||
// @todo: this can be removed when https://github.com/WordPress/gutenberg/pull/37028 lands. | ||
.component-color-indicator { | ||
margin-left: 0; | ||
display: block; | ||
border-radius: 50%; | ||
border: 0; | ||
height: 24px; | ||
width: 24px; | ||
padding: 0; | ||
background-image: | ||
repeating-linear-gradient(45deg, $gray-200 25%, transparent 25%, transparent 75%, $gray-200 75%, $gray-200), | ||
repeating-linear-gradient(45deg, $gray-200 25%, transparent 25%, transparent 75%, $gray-200 75%, $gray-200); | ||
background-position: 0 0, 25px 25px; | ||
background-size: calc(2 * 5px) calc(2 * 5px); | ||
} | ||
} |
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