Skip to content

Instantly share code, notes, and snippets.

@zgordon
Last active February 15, 2018 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zgordon/6cc2317955bb02b6d4f649cfdfd76dad to your computer and use it in GitHub Desktop.
Save zgordon/6cc2317955bb02b6d4f649cfdfd76dad to your computer and use it in GitHub Desktop.
An example sheet that customizes default blocks. Used to enqueue with enqueue_block_assets.
/* Style all header blocks that appear within the main content area */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
font-family: futura, san-serif;
text-transform: uppercase;
}
/* Customize the font-family for paragraphs with drop cap enabled */
p.has-drop-cap:first-letter {
font-family: futura, san-serif;
}
/* Add bottom margin to cover images */
.wp-block-cover-image {
margin: 4rem 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment