-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple controls for top/bottom margins, and border-radius #191
Comments
Here's an alternative solution: I am able to edit the top/bottom margin and border-radius by inserting additional CSS with the help of a plugin call Simple Custom CSS and JS insert the following CSS to the frontend: .wp-block-kevinbatdorf-code-block-pro {
margin-top: 25px; /* Top Margin */
margin-bottom: 25px; /* Bottom Margin */
}
.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre {
/* Border Radius of the code block */
border-radius: 10px !important;
} |
Yeah that will work for some people, but asking users to install a plugin and add CSS isn't really a good overall solution. Thanks for sharing though. Is there a reason you used the plugin rather than just add CSS to your theme? |
at the customize theme section [menu] > [appearance] > [customized] Some theme doesn't have the section for "Additional CSS", for example:
I once tried edit code at "theme file editor", [menu] > [appearance] > [theme file editor] the plugin allows css for code block works outside the theme. it has less dependant and interference by the theme. |
This is really more of a theme or WP core thing, I think, but while WP is catching up I can add a few common styling tools tot he editor.
The text was updated successfully, but these errors were encountered: