Skip to content

Commit

Permalink
Post Comments: Add some basic CSS to the post comments block (#30382)
Browse files Browse the repository at this point in the history
* Post Comments: Add some basic CSS to the post comments block
  • Loading branch information
scruffian authored May 8, 2021
1 parent 95593c9 commit 6fd16c7
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/post-comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"link": true
},
"lineHeight": true
}
},
"style": "wp-block-post-comments"
}
77 changes: 77 additions & 0 deletions packages/block-library/src/post-comments/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
.wp-block-post-comments {
.commentlist {
list-style: none;
margin: 0;
padding: 0;

.comment {
min-height: 2.25em;
padding-left: 3.25em;

p {
font-size: 0.875em;
line-height: 1.8;
margin: 0.36em 0 1.4em;
}
}

.children {
list-style: none;
margin: 0;
padding: 0;
}
}

.comment-author {
line-height: 1.5;
margin-left: -3.25em;

.avatar {
border-radius: 1.5em;
display: block;
float: left;
height: 2.5em;
margin-right: 0.75em;
width: 2.5em;
}

cite {
font-style: normal;
}
}

.comment-meta {
line-height: 1.5;
margin-left: -3.25em;
}

.comment-body .commentmetadata {
font-size: 0.75em;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
label {
display: block;
}
}

.comment-form-comment textarea {
box-sizing: border-box;
width: 100%;
}

.reply {
font-size: 0.75em;
margin-bottom: 1.4em;
}

.comment-form {
textarea,
input {
border: 1px solid $gray-600;
}
}
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
@import "./page-list/style.scss";
@import "./paragraph/style.scss";
@import "./post-author/style.scss";
@import "./post-comments/style.scss";
@import "./post-comments-form/style.scss";
@import "./post-excerpt/style.scss";
@import "./post-title/style.scss";
Expand Down

0 comments on commit 6fd16c7

Please sign in to comment.