-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Larger h1 to enable three levels of headings. <img width="508" alt="Screenshot 2024-05-24 at 07 38 31" src="https://github.com/enso-org/enso/assets/1047859/53e77040-30c2-4ed0-bfb5-81d4a703a565"> Fixes #10051. # Important Notes Refactored Lexical styling.
- Loading branch information
Showing
4 changed files
with
87 additions
and
49 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
Lexical theme. Class names are derived from the `LexicalThemeClasses` type from `lexical`, with the hierarchy flattened | ||
using `_` to separate levels. See the `lexicalTheme` function in `lexical/formatting.ts`. | ||
*/ | ||
|
||
.heading_h1 { | ||
font-weight: 700; | ||
font-size: 20px; | ||
line-height: 1.75; | ||
} | ||
.heading_h2 { | ||
font-weight: 700; | ||
font-size: 16px; | ||
line-height: 1.75; | ||
} | ||
.heading_h3, | ||
.heading_h4, | ||
.heading_h5, | ||
.heading_h6 { | ||
font-size: 14px; | ||
line-height: 2; | ||
} | ||
|
||
.text_strikethrough { | ||
text-decoration: line-through; | ||
} | ||
.text_italic { | ||
font-style: italic; | ||
} | ||
.text_quote { | ||
margin-left: 0.2em; | ||
border-left: 0.3em solid #ccc; | ||
padding-left: 1.6em; | ||
} | ||
.text_bold { | ||
font-weight: bold; | ||
} | ||
|
||
.paragraph { | ||
margin-bottom: 0.5em; | ||
} | ||
|
||
.list_ol { | ||
list-style-type: decimal; | ||
list-style-position: outside; | ||
padding-left: 1.6em; | ||
} | ||
.list_ul { | ||
list-style-type: disc; | ||
list-style-position: outside; | ||
padding-left: 1.6em; | ||
} |