From 18a348c90f0727791ec675acfff806129c2f46bf Mon Sep 17 00:00:00 2001 From: Donna Peplinskie Date: Sun, 4 Dec 2022 17:07:05 -0500 Subject: [PATCH 1/4] Use useRootPaddingAwareAlignments setting to add site padding --- theme.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/theme.json b/theme.json index 91d35c5..dccfda0 100644 --- a/theme.json +++ b/theme.json @@ -337,7 +337,8 @@ "slug": "xxx-large" } ] - } + }, + "useRootPaddingAwareAlignments": true }, "styles": { "blocks": { @@ -897,7 +898,11 @@ } }, "spacing": { - "blockGap": "2.5rem" + "blockGap": "2.5rem", + "padding": { + "right": "1.25rem", + "left": "1.25rem" + } }, "typography": { "fontFamily": "var(--wp--preset--font-family--body)", From f41381ff40ff857f28c6ee1946f9a2eacbcc5325 Mon Sep 17 00:00:00 2001 From: Donna Peplinskie Date: Sun, 4 Dec 2022 17:07:41 -0500 Subject: [PATCH 2/4] Adjust templates --- templates/single-column-featured-no-title.html | 11 +++++------ templates/single-column-featured-title.html | 11 +++++------ templates/single-column-no-featured-no-title.html | 6 +++--- templates/single-column-no-featured-title.html | 11 +++++------ templates/single-course.html | 12 ++++++------ templates/wide-featured-no-title.html | 14 ++++++-------- templates/wide-featured-title.html | 11 +++++------ templates/wide-no-featured-no-title.html | 6 +++--- 8 files changed, 38 insertions(+), 44 deletions(-) diff --git a/templates/single-column-featured-no-title.html b/templates/single-column-featured-no-title.html index 36ae42e..fa08531 100644 --- a/templates/single-column-featured-no-title.html +++ b/templates/single-column-featured-no-title.html @@ -1,10 +1,9 @@ - -
- -
+ +
+ +
@@ -75,4 +74,4 @@
- \ No newline at end of file + diff --git a/templates/single-column-featured-title.html b/templates/single-column-featured-title.html index 40ba4d1..478c7a6 100644 --- a/templates/single-column-featured-title.html +++ b/templates/single-column-featured-title.html @@ -1,10 +1,9 @@ - -
- -
+ +
+ +
@@ -77,4 +76,4 @@
- \ No newline at end of file + diff --git a/templates/single-column-no-featured-no-title.html b/templates/single-column-no-featured-no-title.html index 1b1a1ec..09170ad 100644 --- a/templates/single-column-no-featured-no-title.html +++ b/templates/single-column-no-featured-no-title.html @@ -1,7 +1,7 @@ - -
+ +
@@ -68,4 +68,4 @@
- \ No newline at end of file + diff --git a/templates/single-column-no-featured-title.html b/templates/single-column-no-featured-title.html index 0624162..dc2e98a 100644 --- a/templates/single-column-no-featured-title.html +++ b/templates/single-column-no-featured-title.html @@ -1,10 +1,9 @@ - -
- -
+ +
+ +
@@ -75,4 +74,4 @@
- \ No newline at end of file + diff --git a/templates/single-course.html b/templates/single-course.html index 80170fd..988d4ce 100644 --- a/templates/single-course.html +++ b/templates/single-course.html @@ -1,9 +1,9 @@ - -
- -
+ + +
+ +
@@ -74,4 +74,4 @@
- \ No newline at end of file + diff --git a/templates/wide-featured-no-title.html b/templates/wide-featured-no-title.html index a41beef..858143f 100644 --- a/templates/wide-featured-no-title.html +++ b/templates/wide-featured-no-title.html @@ -1,11 +1,9 @@ - - - -
- -
+ + +
+ +
@@ -76,4 +74,4 @@
- \ No newline at end of file + diff --git a/templates/wide-featured-title.html b/templates/wide-featured-title.html index 661cd54..8579418 100644 --- a/templates/wide-featured-title.html +++ b/templates/wide-featured-title.html @@ -1,10 +1,9 @@ - -
- -
+ +
+ +
@@ -77,4 +76,4 @@
- \ No newline at end of file + diff --git a/templates/wide-no-featured-no-title.html b/templates/wide-no-featured-no-title.html index b084059..e64ca4a 100644 --- a/templates/wide-no-featured-no-title.html +++ b/templates/wide-no-featured-no-title.html @@ -1,7 +1,7 @@ - -
+ +
@@ -68,4 +68,4 @@
- \ No newline at end of file + From c869589431161d6189dc4ac03f111f27794bad0c Mon Sep 17 00:00:00 2001 From: Donna Peplinskie Date: Sun, 4 Dec 2022 17:13:57 -0500 Subject: [PATCH 3/4] Adjust header and footer as padding is globally applied now --- parts/header.html | 4 ++-- patterns/footer.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parts/header.html b/parts/header.html index 952e016..c551c43 100644 --- a/parts/header.html +++ b/parts/header.html @@ -1,5 +1,5 @@ - -
+ +
diff --git a/patterns/footer.php b/patterns/footer.php index c3cad22..3709040 100644 --- a/patterns/footer.php +++ b/patterns/footer.php @@ -7,8 +7,8 @@ */ ?> - -
+ +