Skip to content

Commit d539dcd

Browse files
authored
Cottage: Update CSS classes (Automattic#8003)
* Remove references to font family not used in the theme * Update theme.json Remove references to Source Sans font, not included in the theme (I believe this was a leftover from development process).
1 parent 48e75bc commit d539dcd

File tree

5 files changed

+12
-24
lines changed

5 files changed

+12
-24
lines changed

cottage/patterns/header-with-sticky-post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|60","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
2020
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|40"},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
21-
<div class="wp-block-group alignwide has-base-color has-text-color has-link-color"><!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"400","letterSpacing":"0px"}},"fontSize":"small","fontFamily":"source-sans-3"} -->
22-
<p class="has-source-sans-3-font-family has-small-font-size" style="font-style:normal;font-weight:400;letter-spacing:0px"><?php esc_html_e('Featured', 'cottage');?></p>
21+
<div class="wp-block-group alignwide has-base-color has-text-color has-link-color"><!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"400","letterSpacing":"0px"}},"fontSize":"small"} -->
22+
<p class="has-small-font-size" style="font-style:normal;font-weight:400;letter-spacing:0px"><?php esc_html_e('Featured', 'cottage');?></p>
2323
<!-- /wp:paragraph -->
2424

2525
<!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"lineHeight":"1.3"}},"fontSize":"xxx-large"} /--></div>

cottage/patterns/latest-post-heading.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0.5rem","margin":{"bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} -->
1212
<div class="wp-block-group alignwide" style="margin-bottom:var(--wp--preset--spacing--60)">
13-
<!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"600","letterSpacing":"0px"}},"fontSize":"small","fontFamily":"source-sans-3"} -->
14-
<h2 class="wp-block-heading has-source-sans-3-font-family has-small-font-size" style="font-style:normal;font-weight:600;letter-spacing:0px"><?php echo esc_html__( 'Latest Posts', 'cottage' ); ?></h2>
13+
<!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"600","letterSpacing":"0px"}},"fontSize":"small"} -->
14+
<h2 class="wp-block-heading has-small-font-size" style="font-style:normal;font-weight:600;letter-spacing:0px"><?php echo esc_html__( 'Latest Posts', 'cottage' ); ?></h2>
1515
<!-- /wp:heading -->
1616

1717
<!-- wp:separator -->

cottage/patterns/post-author.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
1616
<div class="wp-block-group">
17-
<!-- wp:paragraph {"fontSize":"small","fontFamily":"source-sans-3"} -->
18-
<p class="has-source-sans-3-font-family has-small-font-size"><?php esc_html_e('Published by', 'cottage');?></p>
17+
<!-- wp:paragraph {"fontSize":"small"} -->
18+
<p class="has-small-font-size"><?php esc_html_e('Published by', 'cottage');?></p>
1919
<!-- /wp:paragraph -->
2020

2121
<!-- wp:post-author-name {"isLink":true} /-->

cottage/patterns/single.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<div class="wp-block-group" style="border-top-color:var(--wp--preset--color--secondary);border-top-width:1px;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:avatar {"size":56} /-->
1818

1919
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
20-
<div class="wp-block-group"><!-- wp:paragraph {"fontSize":"small","fontFamily":"source-sans-3"} -->
21-
<p class="has-source-sans-3-font-family has-small-font-size"><?php esc_html_e('Published by', 'cottage');?></p>
20+
<div class="wp-block-group"><!-- wp:paragraph {"fontSize":"small"} -->
21+
<p class="has-small-font-size"><?php esc_html_e('Published by', 'cottage');?></p>
2222
<!-- /wp:paragraph -->
2323

2424
<!-- wp:post-author-name {"isLink":true} /-->

cottage/theme.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -441,19 +441,13 @@
441441
}
442442
},
443443
"typography": {
444-
"fontFamily": "var(--wp--preset--font-family--source-sans-3)",
445-
"fontSize": "var(--wp--preset--font-size--small)",
446-
"letterSpacing": "normal",
447-
"lineHeight": "1.590909091"
444+
"fontSize": "var(--wp--preset--font-size--small)"
448445
}
449446
},
450447
"core/comment-content": {
451448
"css": "& p{margin:0;}& p+p{margin-top:1.75rem;}",
452449
"typography": {
453-
"fontFamily": "var(--wp--preset--font-family--source-sans-3)",
454-
"fontSize": "var(--wp--preset--font-size--small)",
455-
"letterSpacing": "normal",
456-
"lineHeight": "1.590909091"
450+
"fontSize": "var(--wp--preset--font-size--small)"
457451
}
458452
},
459453
"core/comment-date": {
@@ -470,10 +464,7 @@
470464
}
471465
},
472466
"typography": {
473-
"fontFamily": "var(--wp--preset--font-family--source-sans-3)",
474-
"fontSize": "var(--wp--preset--font-size--small)",
475-
"letterSpacing": "normal",
476-
"lineHeight": "1.590909091"
467+
"fontSize": "var(--wp--preset--font-size--small)"
477468
}
478469
},
479470
"core/comment-edit-link": {
@@ -490,10 +481,7 @@
490481
}
491482
},
492483
"typography": {
493-
"fontFamily": "var(--wp--preset--font-family--source-sans-3)",
494-
"fontSize": "var(--wp--preset--font-size--small)",
495-
"letterSpacing": "normal",
496-
"lineHeight": "1.590909091"
484+
"fontSize": "var(--wp--preset--font-size--small)"
497485
}
498486
},
499487
"core/comment-reply-link": {

0 commit comments

Comments
 (0)