Skip to content

Commit

Permalink
Quadrat: comment form style tweaks (#3905)
Browse files Browse the repository at this point in the history
* comment form style tweaks
* inversed colors on comments buttons
* fixed font size
  • Loading branch information
MaggieCabrera authored May 24, 2021
1 parent 1032374 commit e9279bb
Show file tree
Hide file tree
Showing 2 changed files with 221 additions and 6 deletions.
183 changes: 180 additions & 3 deletions quadrat/assets/theme.css

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

44 changes: 41 additions & 3 deletions quadrat/sass/blocks/_post-comments.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
@import "../../../blank-canvas-blocks/sass/blocks/button";

.wp-block-post-comments {

font-size: var(--wp--preset--font-size--normal);
line-height: var(--wp--custom--line-height--body);

.reply a {
--wp--custom--button--typography--font-size: var(--wp--preset--font-size--normal);
@include button-border-styles;
--wp--custom--button--color--text: var(--wp--custom--button--hover--color--text);
--wp--custom--button--color--background: var(--wp--custom--button--hover--color--background);
--wp--custom--button--border--color: var(--wp--custom--button--hover--color--text);

& ,
&:hover,
&:focus,
&:active {
font-size: 1em;
line-height: 1.2;
line-height: 1;
}
&:not(.has-background):not(.has-text-color) {
&:hover,
&:focus,
&.has-focus {
--wp--custom--button--typography--font-size: var(--wp--preset--font-size--normal);
--wp--custom--button--color--text: var(--wp--custom--button--hover--color--background);
--wp--custom--button--color--background: var(--wp--custom--button--hover--color--text);
}
}
}

Expand All @@ -25,7 +45,7 @@
textarea {
border: none;
background: var(--wp--custom--color--secondary);
font-size: 1em;
font-size: var(--wp--preset--font-size--normal);
width: 100%;
}

Expand Down Expand Up @@ -94,6 +114,24 @@
}
}

.reply {
margin-bottom: 30px;
}

.commentmetadata {
margin-bottom: 20px;
}

.commentlist {
margin-bottom: 60px;
.comment {
p {
font-size: var(--wp--preset--font-size--normal);
line-height: var(--wp--custom--line-height--body);
}
}
}

// Target certain links within post comments to use the underline treatment.
.comment-body > p > a,
.comment-edit-link {
Expand Down

0 comments on commit e9279bb

Please sign in to comment.