forked from facebook/lexical
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace font size dropdown with font size entry component (facebook#5451
- Loading branch information
1 parent
b3a58c5
commit c9ee17c
Showing
9 changed files
with
470 additions
and
22 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions
40
packages/lexical-playground/src/plugins/ToolbarPlugin/fontSize.css
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,40 @@ | ||
.font-size-input { | ||
font-weight: bold; | ||
font-size: 14px; | ||
color: #777; | ||
border-radius: 5px; | ||
border-color: grey; | ||
height: 21px; | ||
margin-top: 5px; | ||
padding: 2px 4px; | ||
text-align: center; | ||
width: 20px; | ||
} | ||
|
||
input[type='number']::-webkit-outer-spin-button, | ||
input[type='number']::-webkit-inner-spin-button { | ||
-webkit-appearance: none; | ||
margin: 0; | ||
} | ||
|
||
.add-icon { | ||
background-image: url(../../images/icons/add-sign.svg); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
} | ||
|
||
.minus-icon { | ||
background-image: url(../../images/icons/minus-sign.svg); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
} | ||
|
||
button.font-decrement { | ||
padding: 0px; | ||
margin-right: 3px; | ||
} | ||
|
||
button.font-increment { | ||
padding: 0px; | ||
margin-left: 3px; | ||
} |
Oops, something went wrong.