Skip to content

Commit

Permalink
Add selectors that targets paragraphs in block quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Feb 27, 2020
1 parent e7482a8 commit 9dbfca1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ function gutenberg_experimental_global_styles_resolver( $global_styles ) {
$css_rules = '';

// This is only for demo purposes, it should be pluggable
// so new selectors can be register (3rd party blocks, etc).
// so new selectors can be register
// (3rd party blocks, custom selectors, etc).
$selectors = array(
'core' => ':root',
'core/paragraph' => '.entry-content p',
'core' => ':root',
'core/paragraph' => '.entry-content p',
'custom/paragraph-in-quote' => '.wp-block-quote p',
);
foreach ( $global_styles as $blockname => $subtree ) {
$token = '--';
Expand Down

0 comments on commit 9dbfca1

Please sign in to comment.