Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Use -unit values from @wordpress/base-styles. Fixes #3313
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Dec 2, 2020
1 parent 73be047 commit b2a4741
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions assets/css/abstracts/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
@import "node_modules/@wordpress/base-styles/variables";

// @todo replace with $grid-unit values when `@woocommerce/base-styles` is updated.
// see: https://github.com/WordPress/gutenberg/blob/master/packages/base-styles/_variables.scss#L23-L36
$gap-largest: 40px; // $grid-unit-50
$gap-larger: 36px;
$gap-large: 24px; // $grid-unit-30
$gap: 16px; // $grid-unit-20
$gap-small: 12px; // $grid-unit-15
$gap-smaller: 8px; // $grid-unit-10
$gap-smallest: 4px; // $grid-unit-05
$gap-largest: $grid-unit-50;
$gap-larger: 4.5 * $grid-unit;
$gap-large: $grid-unit-30;
$gap: $grid-unit-20;
$gap-small: $grid-unit-15;
$gap-smaller:$grid-unit-10;
$gap-smallest:$grid-unit-05;

// Cart block
$cart-image-width: 5rem;

0 comments on commit b2a4741

Please sign in to comment.