Skip to content

Commit

Permalink
BCB: Add post comments styles (#3553)
Browse files Browse the repository at this point in the history
* Add baseline styles for post comments.

* Initial styles.

* Blank Canvas Blocks: Add button styles for the Post Comments block Reply link

* Remove widths because of WordPress/gutenberg#30382

* Reset borders and cursor for form inputs.

* Move to border and cursor reset to button mixin.

* Remove addition to button mixin.

* Rebase.

Co-authored-by: Danny Dudzic <[email protected]>
  • Loading branch information
jffng and danieldudzic authored Apr 2, 2021
1 parent 7856f9d commit ae57d02
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
66 changes: 66 additions & 0 deletions blank-canvas-blocks/assets/ponyfill.css

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

8 changes: 8 additions & 0 deletions blank-canvas-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@
"text": "var(--wp--custom--color--foreground)",
"background": "transparent",
"boxShadow": "none"
},
"label": {
"typography": {
"fontSize": "var(--wp--preset--font-size--tiny)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)"
}
},
"paragraph": {
Expand Down
16 changes: 16 additions & 0 deletions blank-canvas-blocks/sass/blocks/_post-comments.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@import 'button';

.wp-block-post-comments {
.comment {
font-size: var(--wp--custom--form--typography--font-size);
}

label, .comment-meta {
font-size: var(--wp--custom--form--label--typography--font-size);
}

input[type="submit"], .reply a {
@include button-main-styles;
@include button-hover-styles;
}
}
1 change: 1 addition & 0 deletions blank-canvas-blocks/sass/ponyfill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@import "blocks/navigation";
@import "blocks/paragraph";
@import "blocks/post-author";
@import "blocks/post-comments";
@import "blocks/pullquote";
@import "blocks/quote";
@import "blocks/search";
Expand Down

0 comments on commit ae57d02

Please sign in to comment.