From e519e994706091df0c2e07e883965f3fcf80a157 Mon Sep 17 00:00:00 2001 From: John Fraskos Date: Thu, 23 Nov 2023 14:26:32 +0200 Subject: [PATCH 1/4] replaces px padding values with variables --- theme.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/theme.json b/theme.json index 5318cd1..17ab3b4 100644 --- a/theme.json +++ b/theme.json @@ -421,10 +421,10 @@ }, "spacing": { "padding": { - "bottom": "16px", - "left": "32px", - "right": "32px", - "top": "16px" + "bottom": "var(--wp--preset--spacing--30)", + "left": "var(--wp--preset--spacing--50)", + "right": "var(--wp--preset--spacing--50)", + "top": "var(--wp--preset--spacing--30)" } }, "typography": { @@ -441,10 +441,10 @@ }, "spacing": { "padding": { - "bottom": "24px", - "left": "24px", - "right": "24px", - "top": "24px" + "bottom": "var(--wp--preset--spacing--40)", + "left": "var(--wp--preset--spacing--40)", + "right": "var(--wp--preset--spacing--40)", + "top": "var(--wp--preset--spacing--40)" } } }, From 2a8aea83191937865f78b9c044a6fe2ca161dd92 Mon Sep 17 00:00:00 2001 From: John Fraskos Date: Thu, 23 Nov 2023 14:43:13 +0200 Subject: [PATCH 2/4] Update _extends.scss replaced px padding with spacing vars --- assets/css/src/elements/_extends.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/css/src/elements/_extends.scss b/assets/css/src/elements/_extends.scss index c9f0dda..83025c4 100644 --- a/assets/css/src/elements/_extends.scss +++ b/assets/css/src/elements/_extends.scss @@ -9,8 +9,8 @@ border: 0; box-shadow: none; font-weight: 600; - padding: 16px 32px; - border-radius: 3px; + padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50); + border-radius: 5px; font-size: var(--wp--preset--font-size--normal); } From c7cf60582967d728ea982a59f7ca21501103fe74 Mon Sep 17 00:00:00 2001 From: John Fraskos Date: Thu, 23 Nov 2023 14:45:19 +0200 Subject: [PATCH 3/4] Update _post-terms.scss replaced px values with spacing vars --- assets/css/src/blocks/_post-terms.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/src/blocks/_post-terms.scss b/assets/css/src/blocks/_post-terms.scss index 6b401f1..d38aa3c 100644 --- a/assets/css/src/blocks/_post-terms.scss +++ b/assets/css/src/blocks/_post-terms.scss @@ -5,7 +5,7 @@ &.taxonomy-category { a { - padding: 8px 24px; + padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40); margin: 5px; background-color: var(--wp--preset--color--raft-bg-alt); border-radius: 25px; From c393d77ec999949240fdc4d1f34038f3b6d95ef1 Mon Sep 17 00:00:00 2001 From: John Fraskos Date: Thu, 23 Nov 2023 14:47:47 +0200 Subject: [PATCH 4/4] Update _inputs.scss --- assets/css/src/elements/_inputs.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/src/elements/_inputs.scss b/assets/css/src/elements/_inputs.scss index 7a2e7ec..df4499e 100644 --- a/assets/css/src/elements/_inputs.scss +++ b/assets/css/src/elements/_inputs.scss @@ -9,7 +9,7 @@ input:read-write:not([type="search"]), textarea, select { width: 100%; - padding: 11px; + padding: 12px; font-size: var(--wp--preset--font-size--normal); }