diff --git a/src/wp-content/themes/ipsum/DESIGN.md b/src/wp-content/themes/ipsum/DESIGN.md index f00e8e3b1fa32..3d01038d5be8a 100644 --- a/src/wp-content/themes/ipsum/DESIGN.md +++ b/src/wp-content/themes/ipsum/DESIGN.md @@ -245,6 +245,8 @@ Two classes in `style.css` hide a group when a block inside it renders nothing, - **`comments-meta`** goes on the group around the comments link row in post lists. Core renders nothing for the Comments Link block when comments are closed, so the row, with its `·` and call to action, hides with it. - **`author-card`** goes on the author chip in single posts. Core renders nothing for the Author Name block when the post type doesn't support authors, so the card, with its "Written by" byline and avatar, hides with it. +**`is-style-dotted-rule`** draws a 1px dotted rule in the text color at the start of a Group's line: left in LTR, right in RTL. Format Link uses it beside the link. It's named like a block style but isn't registered as one, so it isn't in the Styles panel; add it under Advanced > Additional CSS class(es). + ### The `·` meta separator The separator between meta items is built three ways, on purpose: diff --git a/src/wp-content/themes/ipsum/patterns/events-list.php b/src/wp-content/themes/ipsum/patterns/events-list.php index 2edca39156a89..6b382ac7f4f7d 100644 --- a/src/wp-content/themes/ipsum/patterns/events-list.php +++ b/src/wp-content/themes/ipsum/patterns/events-list.php @@ -10,6 +10,7 @@ * @since Ipsum 1.0 */ +$ipsum_event_chevron = is_rtl() ? 'core/chevron-left-small' : 'core/chevron-right-small'; ?>
@@ -47,7 +48,7 @@

-
+ @@ -75,7 +76,7 @@

- + @@ -103,7 +104,7 @@

- + @@ -131,7 +132,7 @@

- + diff --git a/src/wp-content/themes/ipsum/patterns/format-link.php b/src/wp-content/themes/ipsum/patterns/format-link.php index 52740694e4330..823a9affb9930 100644 --- a/src/wp-content/themes/ipsum/patterns/format-link.php +++ b/src/wp-content/themes/ipsum/patterns/format-link.php @@ -18,8 +18,8 @@

- -
+ +

diff --git a/src/wp-content/themes/ipsum/style.css b/src/wp-content/themes/ipsum/style.css index 1361ecaaac9db..8b443eea58bb3 100644 --- a/src/wp-content/themes/ipsum/style.css +++ b/src/wp-content/themes/ipsum/style.css @@ -171,6 +171,19 @@ footer.wp-block-template-part { border-bottom-color: var(--wp--preset--color--accent-5); } +/* + * Dotted rule: Format Link sets its link off with a rule at the start of the + * line, left in LTR and right in RTL. The border controls only set physical + * sides, so the rule is a logical property here. The class is named like a + * block style so the markup can stay as it is if it becomes one; a registered + * style would add a translatable title, which waits until after the WordPress + * 7.2 string freeze. + * https://github.com/WordPress/ipsum/pull/260 + */ +.wp-block-group.is-style-dotted-rule { + border-inline-start: 1px dotted currentcolor; +} + /* * Author cards: core hides the Author Name block for post types that do not * support authors, but the hand-written "Written by" byline would remain.