Styling blocks using theme.json
-
I have an hybrid theme and I want to style blocks using the
theme.json
file instead of pure CSS. These are my code block CSS styles:.wp-block-code { background-color: transparent; font-family: Menlo, Consolas, Monaco, monospace; font-size: 0.8125rem; line-height: 1.5; margin-bottom: 1.6em; max-width: 100%; overflow: auto; padding: 1.6em; }
I know how to migrate the
background-color
,font-family
,font-size
,line-height
,margin-bottom
andpadding
CSS properties totheme.json
properties, but what aboutmax-width
andoverflow
? Should these be kept in the CSS file?Thanks in advance
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Styling blocks using theme.json’ is closed to new replies.