Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/wp-content/themes/ipsum/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ The class is `is-style-` plus the slug.
| Style | Class | Blocks | What it does |
| --- | --- | --- | --- |
| Crop Contents | `is-style-crop-contents` | Group | `overflow: clip` |
| Dotted Rule | `is-style-dotted-rule` | Group | A 1px dotted rule in the text color at the start of the line (left in LTR, right in RTL); Format Link uses it beside the link |
| 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 |
| Plain on Color | `is-style-plain-on-color` | Quote | Quote Plain with the ❝ in the current text color instead of Border; 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 |
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/ipsum/patterns/format-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<p class="has-medium-font-size" style="font-style:normal;font-weight:700"><?php esc_html_e( 'Elsewhere: a long read on how lorem ipsum took over design—five centuries of scrambled Cicero standing in for the words to come.', 'ipsum' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Link Line', 'Name of the link line group', 'ipsum' ); ?>"},"style":{"spacing":{"padding":{"right":"var:preset|spacing|20","left":"var:preset|spacing|20"}},"border":{"left":{"width":"1px","style":"dotted"}}},"fontSize":"medium","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group has-medium-font-size" style="border-left-style:dotted;border-left-width:1px;padding-right:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)"><!-- wp:paragraph {"metadata":{"name":"<?php echo esc_html_x( 'Link', 'Name of the link paragraph', 'ipsum' ); ?>"},"style":{"typography":{"lineHeight":"1"}},"fontSize":"small"} -->
<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Link Line', 'Name of the link line group', 'ipsum' ); ?>"},"className":"is-style-dotted-rule","style":{"spacing":{"padding":{"right":"var:preset|spacing|20","left":"var:preset|spacing|20"}}},"fontSize":"medium","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group is-style-dotted-rule has-medium-font-size" style="padding-right:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)"><!-- wp:paragraph {"metadata":{"name":"<?php echo esc_html_x( 'Link', 'Name of the link paragraph', 'ipsum' ); ?>"},"style":{"typography":{"lineHeight":"1"}},"fontSize":"small"} -->
<p class="has-small-font-size" style="line-height:1"><a href="#"><?php esc_html_e( 'https://example.com', 'ipsum' ); ?></a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
Expand Down
10 changes: 10 additions & 0 deletions src/wp-content/themes/ipsum/styles/blocks/dotted-rule.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"title": "Dotted Rule",
"slug": "dotted-rule",
"blockTypes": ["core/group"],
"styles": {
"css": "border-inline-start:1px dotted currentcolor;"
}
}
Loading