-
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.
Paragraph block: remove min-height (#19835)
* Paragraph block: remove min-height * Use lineheight to set drop cap min height
- Loading branch information
Showing
2 changed files
with
2 additions
and
7 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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
.block-editor-block-list__block[data-type="core/paragraph"] p { | ||
min-height: $empty-paragraph-height / 2; | ||
line-height: $editor-line-height; | ||
} | ||
|
||
// Overwrite the inline style to make the height collapse when the paragraph editable gets focus. | ||
.block-editor-block-list__block[data-type="core/paragraph"] .has-drop-cap:focus { | ||
min-height: $empty-paragraph-height / 2 !important; | ||
min-height: auto !important; | ||
} |