From b952fdf0b260386a1def4186219768143c6b3a2a Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 5 Nov 2019 14:11:21 -0800 Subject: [PATCH 1/2] Limit gradient height --- packages/block-editor/src/components/link-control/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/link-control/style.scss b/packages/block-editor/src/components/link-control/style.scss index 2b1c9f050522d..be02493579ff8 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -53,14 +53,14 @@ &::before { height: $grid-size-large/2; - top: -1px; + top: 0; bottom: auto; background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); } &::after { height: 20px; - bottom: -1px; + bottom: 0; top: auto; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%); } From e0bb753cb8726da979990e1e677dc49c74c2448e Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Wed, 6 Nov 2019 15:20:15 -0800 Subject: [PATCH 2/2] Align bottom gradient with bottom padding --- packages/block-editor/src/components/link-control/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/link-control/style.scss b/packages/block-editor/src/components/link-control/style.scss index be02493579ff8..e9065ddba5cff 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -59,7 +59,7 @@ } &::after { - height: 20px; + height: $grid-size-large; bottom: 0; top: auto; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%); @@ -68,7 +68,7 @@ .block-editor-link-control__search-results { margin: 0; - padding: $grid-size-large/2 $grid-size-large; + padding: $grid-size-large/2 $grid-size-large $grid-size-large; max-height: 200px; overflow-y: scroll; // allow results list to scroll