From 5bdc827cb8d4b6c17dea0cbe76824b3602dd0609 Mon Sep 17 00:00:00 2001 From: Ashish Verma Date: Wed, 11 Nov 2026 21:37:35 +0530 Subject: [PATCH 1/3] refactor: replace custom quote mark paragraph styles with core plain quote blocks --- .github/ipsum-demo-content.xml | 28 +------------------------- DESIGN.md | 4 ++-- patterns/page-blog-home.php | 8 +++++--- patterns/text-statement-wide.php | 8 +++++--- patterns/text-statement.php | 8 +++++--- style.css | 8 ++++++++ style.min.css | 2 +- styles/blocks/quote-mark-on-color.json | 10 --------- styles/blocks/quote-mark.json | 10 --------- 9 files changed, 27 insertions(+), 59 deletions(-) delete mode 100644 styles/blocks/quote-mark-on-color.json delete mode 100644 styles/blocks/quote-mark.json diff --git a/.github/ipsum-demo-content.xml b/.github/ipsum-demo-content.xml index f904963..8bfdf75 100644 --- a/.github/ipsum-demo-content.xml +++ b/.github/ipsum-demo-content.xml @@ -1647,7 +1647,7 @@ audio/mpeg -

Three styles, shared by both. The first is for saying one thing loudly.

+

One style, shared by both, for saying one thing loudly.

@@ -1662,32 +1662,6 @@ audio/mpeg

Display · is-style-text-display

- -

The second hangs a quotation mark over a line worth repeating.

- - - -

Write the sentence first. The page can wait.

- - - -

Quote Mark · is-style-text-quote-mark

- - - -

The third is the same mark for a card in a strong color: it takes the color of the text instead of a faint line.

- - - -
-

The page can wait. It always has.

-
- - - -

Quote Mark on Color · is-style-text-quote-mark-on-color

- -

Display also fits the Site Title, the Post Title and, on archive pages, the Query Title. Here are the first two, showing this site's name and this page's:

diff --git a/DESIGN.md b/DESIGN.md index efc7d52..8384213 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -163,8 +163,6 @@ The class is `is-style-` plus the slug. | --- | --- | --- | --- | | Crop Contents | `is-style-crop-contents` | Group | `overflow: clip` | | Display | `is-style-text-display` | Heading, Paragraph, Post Title, Site Title, Query Title | A size above 2X-Large that scales with the viewport, line height 1.2 | -| Quote Mark | `is-style-text-quote-mark` | Heading, Paragraph | A ❝ above the text, in Border, at 2X-Large | -| Quote Mark on Color | `is-style-text-quote-mark-on-color` | Heading, Paragraph | The same mark in the current text color; Text Statement uses it on a Strong Contrast card | | Evening | `is-style-evening` | Code | A black ground with near-white text and border, the same under every variation | | Sharp | `is-style-sharp` | Site Logo | Square corners | | Pinned to Bottom | `is-style-sticky-bottom` | Template Part | Pins the part to the bottom of the screen; see [Utility block styles](#utility-block-styles) | @@ -174,6 +172,8 @@ The class is `is-style-` plus the slug. Ipsum also restyles core's own block styles: Button Outline (a separate style from Search's Outline, though they share the name), Quote Plain (no ground, padding or corners), Separator Wide (capped at the wide width), Site Logo Rounded (9999px) and Social Icons Logos Only (icons in the current text color). +Text Statement, Text Statement Wide and Page Blog Home use Plain Quote blocks for their opening statements. The quote mark normally uses Border; Text Statement adds `ipsum-quote-on-color` to its Quote block so the mark follows the text color on the inverted card. + ## Templates and parts ### Templates diff --git a/patterns/page-blog-home.php b/patterns/page-blog-home.php index 9b6b85a..2ba62ed 100644 --- a/patterns/page-blog-home.php +++ b/patterns/page-blog-home.php @@ -15,9 +15,11 @@ ?>
-
-

essays.', 'ipsum' ) ); ?>

-
+
+
+

essays.', 'ipsum' ) ); ?>

+
+
diff --git a/patterns/text-statement-wide.php b/patterns/text-statement-wide.php index 4df5d4f..05df6f1 100644 --- a/patterns/text-statement-wide.php +++ b/patterns/text-statement-wide.php @@ -13,8 +13,10 @@ ?>
-
-

essays.', 'ipsum' ) ); ?>

-
+
+
+

essays.', 'ipsum' ) ); ?>

+
+
diff --git a/patterns/text-statement.php b/patterns/text-statement.php index 7affa47..ad16df5 100644 --- a/patterns/text-statement.php +++ b/patterns/text-statement.php @@ -13,8 +13,10 @@ ?>
- +
diff --git a/style.css b/style.css index 2cad46c..11b399c 100644 --- a/style.css +++ b/style.css @@ -109,6 +109,14 @@ span[style*="text-decoration"] { overflow-x: auto; } +/* + * The Text Statement quote sits on an inverted card, where the default + * Border-colored mark disappears. Match its text without changing other quotes. + */ +.wp-block-quote.ipsum-quote-on-color::before { + color: currentcolor; +} + /* * Make sure headers and footers have no margin, so the root block gap * never adds spacing the parts don't control themselves. diff --git a/style.min.css b/style.min.css index 9fb00ef..4299c36 100644 --- a/style.min.css +++ b/style.min.css @@ -1 +1 @@ -@media(prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}body{text-rendering:geometricprecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-wrap:break-word}blockquote,caption,figcaption,h1,h2,h3,h4,h5,h6,p{text-wrap:pretty}a,ins,span[style*=text-decoration],u{text-decoration-thickness:1px!important;text-decoration-style:dotted!important;text-underline-offset:.1em}:target{scroll-margin-block-start:var(--wp--preset--spacing--50)}#comments{scroll-margin-block-start:var(--wp--preset--spacing--70)}.more-link{display:block}:where(pre){overflow-x:auto}footer.wp-block-template-part,header.wp-block-template-part{margin-block-start:0}.wp-block-table :is(table,td,th){border-color:var(--wp--preset--color--accent-6)}.wp-block-table thead{background-color:var(--wp--preset--color--accent-5);border-bottom-width:1px!important;border-bottom-color:var(--wp--preset--color--accent-6)}.wp-block-table thead th{text-align:start;font-family:var(--wp--preset--font-family--manrope);font-size:var(--wp--preset--font-size--small);font-style:normal;font-weight:700}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:var(--wp--preset--color--accent-5)}.wp-block-table.is-style-stripes{border-bottom-color:var(--wp--preset--color--accent-5)}.author-card:not(:has(.wp-block-post-author-name)),.comments-meta:not(:has(.wp-block-post-comments-link)){display:none}.wp-block-comment-author-name{overflow-wrap:anywhere}header.wp-block-template-part:has(>.is-position-sticky){position:sticky;inset-block-start:0;z-index:10}.admin-bar header.wp-block-template-part:has(>.is-position-sticky){inset-block-start:var(--wp-admin--admin-bar--height,32px)}header.wp-block-template-part:has(>.is-position-sticky):has(.wp-block-navigation__responsive-container.is-menu-open){z-index:100000}.wp-site-blocks{display:flex;flex-direction:column;min-height:100vh;min-height:calc(100svh - var(--wp-admin--admin-bar--height,0px))}.wp-site-blocks>main{flex-grow:1}@media(prefers-reduced-motion:no-preference){.single:before{content:"";position:fixed;inset-block-start:0;inset-inline-start:0;block-size:3px;inline-size:100%;background-color:var(--wp--preset--color--accent-1);z-index:99;pointer-events:none;transform-origin:left;animation:ipsum-arrival .9s ease-out forwards}.rtl.single:before{transform-origin:right}.admin-bar.single:before{inset-block-start:var(--wp-admin--admin-bar--height,32px)}@keyframes ipsum-arrival{0%{transform:scaleX(0);opacity:1}60%{transform:scaleX(1);opacity:1}to{transform:scaleX(1);opacity:0}}} \ No newline at end of file +@media(prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}body{text-rendering:geometricprecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-wrap:break-word}blockquote,caption,figcaption,h1,h2,h3,h4,h5,h6,p{text-wrap:pretty}a,ins,span[style*=text-decoration],u{text-decoration-thickness:1px!important;text-decoration-style:dotted!important;text-underline-offset:.1em}:target{scroll-margin-block-start:var(--wp--preset--spacing--50)}#comments{scroll-margin-block-start:var(--wp--preset--spacing--70)}.more-link{display:block}:where(pre){overflow-x:auto}.wp-block-quote.ipsum-quote-on-color:before{color:currentcolor}footer.wp-block-template-part,header.wp-block-template-part{margin-block-start:0}.wp-block-table :is(table,td,th){border-color:var(--wp--preset--color--accent-6)}.wp-block-table thead{background-color:var(--wp--preset--color--accent-5);border-bottom-width:1px!important;border-bottom-color:var(--wp--preset--color--accent-6)}.wp-block-table thead th{text-align:start;font-family:var(--wp--preset--font-family--manrope);font-size:var(--wp--preset--font-size--small);font-style:normal;font-weight:700}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:var(--wp--preset--color--accent-5)}.wp-block-table.is-style-stripes{border-bottom-color:var(--wp--preset--color--accent-5)}.author-card:not(:has(.wp-block-post-author-name)),.comments-meta:not(:has(.wp-block-post-comments-link)){display:none}.wp-block-comment-author-name{overflow-wrap:anywhere}header.wp-block-template-part:has(>.is-position-sticky){position:sticky;inset-block-start:0;z-index:10}.admin-bar header.wp-block-template-part:has(>.is-position-sticky){inset-block-start:var(--wp-admin--admin-bar--height,32px)}header.wp-block-template-part:has(>.is-position-sticky):has(.wp-block-navigation__responsive-container.is-menu-open){z-index:100000}.wp-site-blocks{display:flex;flex-direction:column;min-height:100vh;min-height:calc(100svh - var(--wp-admin--admin-bar--height,0px))}.wp-site-blocks>main{flex-grow:1}@media(prefers-reduced-motion:no-preference){.single:before{content:"";position:fixed;inset-block-start:0;inset-inline-start:0;block-size:3px;inline-size:100%;background-color:var(--wp--preset--color--accent-1);z-index:99;pointer-events:none;transform-origin:left;animation:ipsum-arrival .9s ease-out forwards}.rtl.single:before{transform-origin:right}.admin-bar.single:before{inset-block-start:var(--wp-admin--admin-bar--height,32px)}@keyframes ipsum-arrival{0%{transform:scaleX(0);opacity:1}60%{transform:scaleX(1);opacity:1}to{transform:scaleX(1);opacity:0}}} \ No newline at end of file diff --git a/styles/blocks/quote-mark-on-color.json b/styles/blocks/quote-mark-on-color.json deleted file mode 100644 index 13e4728..0000000 --- a/styles/blocks/quote-mark-on-color.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "https://schemas.wp.org/trunk/theme.json", - "version": 3, - "title": "Quote Mark on Color", - "slug": "text-quote-mark-on-color", - "blockTypes": ["core/heading", "core/paragraph"], - "styles": { - "css": "&::before{content:\"❝\" / \"\";display:block;color:currentcolor;font-size:var(--wp--preset--font-size--2-x-large);line-height:1;}" - } -} diff --git a/styles/blocks/quote-mark.json b/styles/blocks/quote-mark.json deleted file mode 100644 index f19d569..0000000 --- a/styles/blocks/quote-mark.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "https://schemas.wp.org/trunk/theme.json", - "version": 3, - "title": "Quote Mark", - "slug": "text-quote-mark", - "blockTypes": ["core/heading", "core/paragraph"], - "styles": { - "css": "&::before{content:\"❝\" / \"\";display:block;color:var(--wp--preset--color--accent-6);font-size:var(--wp--preset--font-size--2-x-large);line-height:1;}" - } -} From ac53da1922044dd1b6e9d62b5fa19ae8ee4a1d27 Mon Sep 17 00:00:00 2001 From: Ashish Verma <88656163+AshishJii@users.noreply.github.com> Date: Wed, 11 Nov 2026 22:27:41 +0530 Subject: [PATCH 2/3] Remove unnecessary blank lines --- patterns/page-blog-home.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/patterns/page-blog-home.php b/patterns/page-blog-home.php index 9f2ac1a..d070f3f 100644 --- a/patterns/page-blog-home.php +++ b/patterns/page-blog-home.php @@ -23,8 +23,6 @@ - -
From 977f1ddebda16159d84192a1738c726b32d32cc8 Mon Sep 17 00:00:00 2001 From: Juan Aldasoro Date: Tue, 17 Nov 2026 10:42:36 +0100 Subject: [PATCH 3/3] Link the essays in the statement cite and add Plain on Color to the demo content --- .github/ipsum-demo-content.xml | 8 ++++++++ patterns/page-blog-home.php | 2 +- patterns/text-statement-wide.php | 2 +- patterns/text-statement.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/ipsum-demo-content.xml b/.github/ipsum-demo-content.xml index 8bfdf75..afc47eb 100644 --- a/.github/ipsum-demo-content.xml +++ b/.github/ipsum-demo-content.xml @@ -1748,6 +1748,14 @@ audio/mpeg Plain · is-style-plain + +
+
+

Plain on Color is the same quote for a card in a strong color: the mark takes the color of the text instead of a faint line.

+Plain on Color · is-style-plain-on-color
+
+ +

Images

diff --git a/patterns/page-blog-home.php b/patterns/page-blog-home.php index b482a56..40a5e04 100644 --- a/patterns/page-blog-home.php +++ b/patterns/page-blog-home.php @@ -18,7 +18,7 @@

-
+essays', 'ipsum' ) ); ?>
diff --git a/patterns/text-statement-wide.php b/patterns/text-statement-wide.php index f2e16f1..b36f207 100644 --- a/patterns/text-statement-wide.php +++ b/patterns/text-statement-wide.php @@ -16,7 +16,7 @@

-
+essays', 'ipsum' ) ); ?>
diff --git a/patterns/text-statement.php b/patterns/text-statement.php index f543e64..b27c84f 100644 --- a/patterns/text-statement.php +++ b/patterns/text-statement.php @@ -16,7 +16,7 @@