Skip to content

Commit

Permalink
Enhance styles for blockquote and lists added via wysiwyg, T-17639
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumppex committed Jan 24, 2025
1 parent c48379b commit 02f7e19
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Add debug function to print all available blocks
* Fix page including all allowed blocks by default (default: none)
* Fix cssnano stripping out font-family declarations
* Enhance styles for blockquote and lists added via wysiwyg, T-17639

### 9.4.7: 2024-12-04

Expand Down
29 changes: 28 additions & 1 deletion css/dev/global.css

Large diffs are not rendered by default.

23 changes: 22 additions & 1 deletion css/dev/gutenberg-editor-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/gutenberg-editor-styles.css

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions sass/layout/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,33 @@ p {
p:last-child {
margin-bottom: 0;
}

// Enhance styles for blockquote and lists added via wysiwyg
.wysiwyg li {
margin-bottom: .6rem;
margin-top: .6rem;
}

.wysiwyg li:first-child {
margin-top: 0;
}

.wysiwyg li:last-child {
margin-bottom: 0;
}

blockquote.wysiwyg {
border-left: 2px solid var(--color-main);
margin: 2.9rem 1rem;
padding: .5rem 0 .5rem 1.5rem;
}

blockquote.wysiwyg > *:first-child {
margin-top: 0;
}

blockquote.wysiwyg > *:last-child {
margin-bottom: 0;
}


0 comments on commit 02f7e19

Please sign in to comment.