Skip to content

Commit

Permalink
Fix some annoyances in gutenberg editor
Browse files Browse the repository at this point in the history
Adds padding to the bottom of the root container so that last item doesn't touch the bottom

Fixes problem where selecting a code block changes the background color to white, making the white text unreadable
  • Loading branch information
itsamoreh committed Nov 13, 2023
1 parent c548ceb commit f5cb8ba
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions assets/css/global/gutenberg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Gutenberg Block Editor Styles
---------------------------------------------------------------------------- */

/* Adds some padding to the bottom of Gutenberg's main container. */
.is-root-container {
padding-bottom: var(--wp--preset--spacing--small);
}

/* This will fix an issue in Gutenberg where inline code blocks become invisible when clicked. */
code {
&[data-rich-text-format-boundary] {
background-color: var(--wp--preset--color--black) !important;
}
}

0 comments on commit f5cb8ba

Please sign in to comment.