Skip to content

Commit

Permalink
removed comments css and integrated comments block
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Jul 1, 2022
1 parent 83f4768 commit ec1f33c
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 302 deletions.
137 changes: 0 additions & 137 deletions blockbase/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 37 additions & 1 deletion blockbase/block-templates/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,43 @@
<!-- wp:spacer {"height":60} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:post-comments /-->

<!-- wp:comments-query-loop -->
<div class="wp-block-comments-query-loop"><!-- wp:comments-title /-->

<!-- wp:comment-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"40px"} -->
<div class="wp-block-column" style="flex-basis:40px"><!-- wp:avatar {"size":40,"style":{"border":{"radius":"20px"}}} /--></div>
<!-- /wp:column -->

<!-- wp:column -->
<div class="wp-block-column"><!-- wp:comment-author-name /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"0.5em"}},"layout":{"type":"flex"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px"><!-- wp:comment-date /-->

<!-- wp:comment-edit-link /--></div>
<!-- /wp:group -->

<!-- wp:comment-content /-->

<!-- wp:comment-reply-link /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- /wp:comment-template -->

<!-- wp:comments-pagination -->
<!-- wp:comments-pagination-previous /-->

<!-- wp:comments-pagination-numbers /-->

<!-- wp:comments-pagination-next /-->
<!-- /wp:comments-pagination -->

<!-- wp:post-comments-form /--></div>
<!-- /wp:comments-query-loop -->

</div>
<!-- /wp:group -->

Expand Down
163 changes: 0 additions & 163 deletions blockbase/sass/blocks/_post-comments.scss

This file was deleted.

1 change: 0 additions & 1 deletion blockbase/sass/ponyfill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@import "blocks/navigation";
@import "blocks/paragraph";
@import "blocks/post-author";
@import "blocks/post-comments";
@import "blocks/post-template";
@import "blocks/pullquote";
@import "blocks/query-pagination";
Expand Down
30 changes: 30 additions & 0 deletions blockbase/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,36 @@
"fontFamily": "monospace"
}
},
"core/comment-author-name": {
"typography": {
"fontSize": "var(--wp--custom--font-sizes--x-small)"
}
},
"core/comment-date": {
"typography": {
"fontSize": "var(--wp--custom--font-sizes--x-small)"
}
},
"core/comment-edit-link": {
"typography": {
"fontSize": "var(--wp--custom--font-sizes--x-small)"
}
},
"core/comment-reply-link": {
"color": {
"text": "var(--wp--custom--color--primary)"
},
"typography": {
"fontSize": "var(--wp--custom--font-sizes--x-small)",
"textDecoration": "underline"
}
},
"core/comment-content": {
"typography": {
"fontSize": "var(--wp--custom--post-comment--typography--font-size)",
"lineHeight": "var(--wp--custom--post-comment--typography--line-height)"
}
},
"core/gallery": {
"spacing": {
"margin": {
Expand Down

0 comments on commit ec1f33c

Please sign in to comment.