From 576beb89046a78d9e1777ff15d18e4d703e0f9c8 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Tue, 3 Oct 2023 14:59:11 +0000 Subject: [PATCH 1/3] enhance: update designs of injected "Add button" text with control appearance --- baker/formatWordpressPost.tsx | 6 +++-- site/css/content.scss | 44 +++++++++++------------------------ 2 files changed, 17 insertions(+), 33 deletions(-) diff --git a/baker/formatWordpressPost.tsx b/baker/formatWordpressPost.tsx index 3e8c3ace037..4ea569ad7ac 100644 --- a/baker/formatWordpressPost.tsx +++ b/baker/formatWordpressPost.tsx @@ -266,9 +266,11 @@ export const formatWordpressPost = async ( /(\+ )?[a|A]dd [c|C]ountry/g, ` - + + + - Add country + Edit countries or regions ` ) diff --git a/site/css/content.scss b/site/css/content.scss index 8ddb6784bd4..96e2162f98e 100644 --- a/site/css/content.scss +++ b/site/css/content.scss @@ -256,39 +256,21 @@ figure[data-explorer-src] { .article-content { span.add-country { font-size: 0.9rem; - font-weight: bold; - color: $controls-color; + font: 400 13px/16px Lato, "Helvetica Neue", Helvetica, Arial, + "Liberation Sans", sans-serif; + letter-spacing: 0.01em; + display: inline-flex; + align-items: center; + border: 1px solid #e7e7e7; + border-radius: 4px; + padding: 7px; + color: #5b5b5b; + white-space: nowrap; .icon { - position: relative; - display: inline-block; - width: 16px; - height: 16px; - margin-right: 3px; - vertical-align: text-bottom; - - svg { - position: absolute; - top: 0; - left: 0; - } - - path { - stroke: #fff; - stroke-width: 2px; - } - - &::before { - display: block; - content: ""; - position: absolute; - left: 0; - top: 0; - width: 16px; - height: 16px; - background-color: $controls-color; - border-radius: 50%; - } + width: 0.75rem; + height: 0.75rem; + margin-right: 5px; } } } From 570d3209aa489ef6a9e6eb9a8dada7e6f36ad029 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Wed, 4 Oct 2023 10:11:51 +0000 Subject: [PATCH 2/3] fix: fix wording issue in "Add country" button --- baker/formatWordpressPost.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baker/formatWordpressPost.tsx b/baker/formatWordpressPost.tsx index 4ea569ad7ac..cc54c4570bf 100644 --- a/baker/formatWordpressPost.tsx +++ b/baker/formatWordpressPost.tsx @@ -270,7 +270,7 @@ export const formatWordpressPost = async ( - Edit countries or regions + Edit countries and regions ` ) From 66a021e917eed6f219a6dc2fbced12d13339e909 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Thu, 5 Oct 2023 15:25:39 +0000 Subject: [PATCH 3/3] enhance: improve styling of in-text "Add country" button --- site/css/content.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/css/content.scss b/site/css/content.scss index 96e2162f98e..7398bd544af 100644 --- a/site/css/content.scss +++ b/site/css/content.scss @@ -263,9 +263,10 @@ figure[data-explorer-src] { align-items: center; border: 1px solid #e7e7e7; border-radius: 4px; - padding: 7px; + padding: 5px 7px; color: #5b5b5b; white-space: nowrap; + margin: -5px 0px -5px -2px; .icon { width: 0.75rem;