Skip to content

Commit

Permalink
Updates variable to BEM specification
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Apr 10, 2019
1 parent c6898c3 commit 41286af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ $block-spacing: 4px; // Vertical space between blocks.
$block-side-ui-width: 28px; // Width of the movers/drag handle UI.
$block-side-ui-clearance: 2px; // Space between movers/drag handle UI, and block.
$block-container-side-padding: $block-side-ui-width + $block-padding + 2 * $block-side-ui-clearance; // Total space left and right of the block footprint.
$block-with-background-v-padding: $block-padding + $block-spacing + $block-side-ui-clearance;
$block-with-background-h-padding: $block-side-ui-width + $block-side-ui-clearance;
$block-bg-padding--v: $block-padding + $block-spacing + $block-side-ui-clearance; // padding for Blocks with a background color (eg: paragraph or section)
$block-bg-padding--h: $block-side-ui-width + $block-side-ui-clearance; // padding for Blocks with a background color (eg: paragraph or section)

// Buttons & UI Widgets
$radius-round-rectangle: 4px;
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/paragraph/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

p.has-background {
padding: $block-with-background-v-padding $block-with-background-h-padding;
padding: $block-bg-padding--v $block-bg-padding--h;
}

p.has-text-color a {
Expand Down

0 comments on commit 41286af

Please sign in to comment.