-
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.
Writing Flow: Revert the empty placeholder
- Loading branch information
1 parent
d0b84b0
commit 8ef1f3d
Showing
7 changed files
with
26 additions
and
63 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,32 +1,22 @@ | ||
$empty-paragraph-height: $text-editor-font-size * 4; | ||
|
||
.editor-default-block-appender { | ||
&.is-visible-placeholder .editor-default-block-appender__content { | ||
height: $empty-paragraph-height; | ||
color: $dark-gray-300; | ||
outline: 1px solid transparent; | ||
transition: 0.2s outline; | ||
|
||
&:hover { | ||
outline: 1px solid $light-gray-500; | ||
} | ||
} | ||
} | ||
|
||
.editor-default-block-appender__content, | ||
input[type=text].editor-default-block-appender__content { | ||
border: none; | ||
background: none; | ||
box-shadow: none; | ||
display: block; | ||
width: 100%; | ||
height: $empty-paragraph-height * 1.5; | ||
font-size: $editor-font-size; | ||
line-height: $editor-line-height; | ||
cursor: text; | ||
max-width: none; // fixes a bleed issue from the admin | ||
|
||
&:focus { | ||
height: $empty-paragraph-height; | ||
color: $dark-gray-300; | ||
outline: 1px solid transparent; | ||
transition: 0.2s outline; | ||
|
||
&:focus, &:hover { | ||
outline: 1px solid $light-gray-500; | ||
} | ||
} |
14 changes: 2 additions & 12 deletions
14
editor/components/default-block-appender/test/__snapshots__/index.js.snap
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
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