Skip to content

Commit

Permalink
Try: Minimal styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Aug 15, 2022
1 parent 9b44e4f commit fd1f067
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/block-library/src/image/editor.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
// Provide special styling for the placeholder.
// @todo: this particular minimal style of placeholder could be componentized further.
.wp-block-image.wp-block-image {
// Show legacy Placeholder style on-select.
// Show custom Placeholder style on-select.
&.is-selected .components-placeholder {
// Block UI appearance.
color: $gray-900;
background-color: $white;
box-shadow: inset 0 0 0 $border-width $gray-900;
border: none;
justify-content: center;
align-items: center;

// @todo: this should eventually be overridden by a custom border-radius set in the inspector.
border-radius: $radius-block-ui;

.components-placeholder__fieldset {
gap: $grid-unit-15;
}

.components-button {
margin: 0;
}

> svg {
opacity: 0;
visibility: hidden;
Expand Down

0 comments on commit fd1f067

Please sign in to comment.