From ca846720ea97ce2af061a6c5ac38f47c5b93d936 Mon Sep 17 00:00:00 2001 From: Copons Date: Thu, 13 Aug 2020 12:23:52 +0100 Subject: [PATCH 1/2] Center align the variation buttons --- .../src/components/block-variation-picker/style.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/block-variation-picker/style.scss b/packages/block-editor/src/components/block-variation-picker/style.scss index 87a30a86f261ba..735e765c5d7a09 100644 --- a/packages/block-editor/src/components/block-variation-picker/style.scss +++ b/packages/block-editor/src/components/block-variation-picker/style.scss @@ -26,15 +26,17 @@ margin: $grid-unit-20 0; padding: 0; list-style: none; + text-align: center; > li { list-style: none; - margin: $grid-unit-10 $grid-unit-10 0 0; + margin: $grid-unit-10 ( $grid-unit-10 + $grid-unit-15 ) 0 0; flex-shrink: 1; max-width: 100px; button { - display: flex; + display: inline-flex; + margin-right: 0; } } @@ -46,8 +48,6 @@ font-family: $default-font; font-size: 12px; display: block; - margin-right: $grid-unit-15; - text-align: center; } } From 5990425098183728a17bf0e486185c03e40c3bb9 Mon Sep 17 00:00:00 2001 From: Copons Date: Thu, 13 Aug 2020 12:39:07 +0100 Subject: [PATCH 2/2] Fix wrong paste --- .../src/components/block-variation-picker/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-variation-picker/style.scss b/packages/block-editor/src/components/block-variation-picker/style.scss index 735e765c5d7a09..1532c50d73b256 100644 --- a/packages/block-editor/src/components/block-variation-picker/style.scss +++ b/packages/block-editor/src/components/block-variation-picker/style.scss @@ -26,13 +26,13 @@ margin: $grid-unit-20 0; padding: 0; list-style: none; - text-align: center; > li { list-style: none; margin: $grid-unit-10 ( $grid-unit-10 + $grid-unit-15 ) 0 0; flex-shrink: 1; max-width: 100px; + text-align: center; button { display: inline-flex;