-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial pass at comments styles (#27)
- Loading branch information
1 parent
603abb7
commit f04de4b
Showing
5 changed files
with
164 additions
and
7 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
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
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,2 +1,3 @@ | ||
@import url( './_navigation.scss' ); | ||
@import url( './_post-author-name.scss' ); | ||
@import url( './_post-comments.scss' ); |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.wp-block-post-comments-form { | ||
form { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--wp--preset--spacing--50); | ||
margin-top: var(--wp--preset--spacing--50); | ||
|
||
p { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
p { | ||
color: var( --wp--custom--color--gray-700 ); | ||
font-size: var(--wp--preset--font-size--small); | ||
|
||
a { | ||
color: inherit; | ||
} | ||
} | ||
|
||
.bypostauthor { // we probably don't want to inline text via CSS; can we filter the author post? | ||
|
||
} | ||
} | ||
|
||
.wp-block-comment-template { | ||
> li { | ||
&:not(:first-of-type) { | ||
padding-top: var(--wp--preset--spacing--50); | ||
} | ||
|
||
&:not(:last-of-type) { | ||
border-bottom: 1px solid var( --wp--custom--color--gray-300 ); | ||
padding-bottom: var(--wp--preset--spacing--50); | ||
} | ||
} | ||
|
||
ol { | ||
border-left: 1px solid var( --wp--custom--color--gray-300 ); | ||
margin: var(--wp--preset--spacing--50) 0 0; | ||
padding-left: var(--wp--preset--spacing--50); | ||
} | ||
} | ||
|
||
.wp-block-comments-pagination-numbers { | ||
a, | ||
span { | ||
border-radius: 6px; | ||
padding: 0.5rem 0.8rem; | ||
} | ||
|
||
.current { | ||
background: var(--wp--preset--color--primary); | ||
color: var(--wp--preset--color--base); | ||
} | ||
} |
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