-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds in basic styling for post comment form (#35704)
* Adds in basic styling for post comment form * Add padding, type specs. * Move some styles to the post-comments block too. * Tidy up cookies consent area + checkbox. * Standardize the font family used in forms. Co-authored-by: Tammie Lister <tammie@automattic.com> Co-authored-by: Kjell Reigstad <kjell@kjellr.com>
- Loading branch information
1 parent
57d3bc3
commit 7d06163
Showing
2 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,49 @@ | ||
// Styles copied from button block styles. | ||
.wp-block-post-comments-form input[type="submit"] { | ||
border: none; | ||
box-shadow: none; | ||
cursor: pointer; | ||
display: inline-block; | ||
text-align: center; | ||
overflow-wrap: break-word; | ||
.wp-block-post-comments-form { | ||
|
||
input[type="submit"] { | ||
border: none; | ||
box-shadow: none; | ||
cursor: pointer; | ||
display: inline-block; | ||
text-align: center; | ||
overflow-wrap: break-word; | ||
} | ||
|
||
textarea, | ||
input:not([type="submit"]) { | ||
border: 1px solid $gray-600; | ||
font-size: 1em; | ||
font-family: inherit; | ||
} | ||
|
||
textarea, | ||
input:not([type="submit"]):not([type="checkbox"]) { | ||
padding: calc(0.667em + 2px); // The extra 2px is added to match outline buttons. | ||
} | ||
|
||
.comment-form-comment textarea { | ||
display: block; | ||
box-sizing: border-box; | ||
width: 100%; | ||
} | ||
|
||
.comment-form-comment, | ||
.comment-form-author, | ||
.comment-form-email, | ||
.comment-form-url { | ||
label { | ||
display: block; | ||
margin-bottom: 0.25em; | ||
} | ||
} | ||
|
||
.comment-form-cookies-consent { | ||
display: flex; | ||
gap: 0.25em; | ||
|
||
#wp-comment-cookies-consent { | ||
margin-top: 0.35em; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters