From bb96d6ba7fbf65ff943065758d14c313b864a524 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Mon, 9 Dec 2024 13:13:22 -0300 Subject: [PATCH 1/3] avoid double line in titles --- packages/edit-site/src/components/style-book/constants.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/edit-site/src/components/style-book/constants.ts b/packages/edit-site/src/components/style-book/constants.ts index 401d532b98cbb7..a83de2b01060dc 100644 --- a/packages/edit-site/src/components/style-book/constants.ts +++ b/packages/edit-site/src/components/style-book/constants.ts @@ -223,7 +223,6 @@ export const STYLE_BOOK_IFRAME_STYLES = ` border: 1px solid color-mix( in srgb, currentColor 10%, transparent ); } - .edit-site-style-book__subcategory-title, .edit-site-style-book__example-title { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; @@ -237,10 +236,15 @@ export const STYLE_BOOK_IFRAME_STYLES = ` } .edit-site-style-book__subcategory-title { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px; margin-bottom: 40px; - border-bottom: 1px solid #ddd; + border-bottom: 1px solid color-mix( in srgb, currentColor 10%, transparent ); padding-bottom: 8px; + color: color-mix( in srgb, currentColor 60%, transparent ); + font-weight: normal; + line-height: normal; + text-align: left; } .edit-site-style-book__example-preview { From 836ee058a392c74316d582bf1e10b3a355476c64 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Tue, 10 Dec 2024 09:58:31 -0300 Subject: [PATCH 2/3] Revert "avoid double line in titles" This reverts commit bb96d6ba7fbf65ff943065758d14c313b864a524. --- packages/edit-site/src/components/style-book/constants.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/edit-site/src/components/style-book/constants.ts b/packages/edit-site/src/components/style-book/constants.ts index a83de2b01060dc..401d532b98cbb7 100644 --- a/packages/edit-site/src/components/style-book/constants.ts +++ b/packages/edit-site/src/components/style-book/constants.ts @@ -223,6 +223,7 @@ export const STYLE_BOOK_IFRAME_STYLES = ` border: 1px solid color-mix( in srgb, currentColor 10%, transparent ); } + .edit-site-style-book__subcategory-title, .edit-site-style-book__example-title { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; @@ -236,15 +237,10 @@ export const STYLE_BOOK_IFRAME_STYLES = ` } .edit-site-style-book__subcategory-title { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 16px; margin-bottom: 40px; - border-bottom: 1px solid color-mix( in srgb, currentColor 10%, transparent ); + border-bottom: 1px solid #ddd; padding-bottom: 8px; - color: color-mix( in srgb, currentColor 60%, transparent ); - font-weight: normal; - line-height: normal; - text-align: left; } .edit-site-style-book__example-preview { From 8a7ac5a8a137522b5821807761e59260c99225a9 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Tue, 10 Dec 2024 16:24:55 -0300 Subject: [PATCH 3/3] use only border top --- packages/edit-site/src/components/style-book/constants.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/edit-site/src/components/style-book/constants.ts b/packages/edit-site/src/components/style-book/constants.ts index 401d532b98cbb7..ea99279fd9e655 100644 --- a/packages/edit-site/src/components/style-book/constants.ts +++ b/packages/edit-site/src/components/style-book/constants.ts @@ -239,7 +239,6 @@ export const STYLE_BOOK_IFRAME_STYLES = ` .edit-site-style-book__subcategory-title { font-size: 16px; margin-bottom: 40px; - border-bottom: 1px solid #ddd; padding-bottom: 8px; }