Skip to content

Instantly share code, notes, and snippets.

@mwhiteley16
Created May 8, 2026 15:23
Show Gist options
  • Select an option

  • Save mwhiteley16/293053e657c1b53299c7feac28a30f5e to your computer and use it in GitHub Desktop.

Select an option

Save mwhiteley16/293053e657c1b53299c7feac28a30f5e to your computer and use it in GitHub Desktop.
Earth Trekkers Comments CSS
/* ----- Comments -------------------- */
.x-comments-area {
margin: 4em 0 0;
}
.h-comments-title span {
position: relative;
}
.h-comments-title small {
position: absolute;
top: -4px;
right: -40px;
display: flex;
justify-content: center;
align-items: center;
width: 35px;
height: 35px;
font-size: 16px;
font-weight: 300;
letter-spacing: 0;
line-height: 35px;
text-align: center;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
color: #fff;
background-color: var(--wp--preset--color--tertiary);
border-radius: 100px;
transform: translateY(-12px);
}
.x-comments-list {
margin: 0;
list-style: none;
}
.x-comments-list .children {
margin: 0 0 0 89px;
list-style: none;
}
@media (max-width: 978.98px) {
.x-comments-list .children {
margin-left: 0;
}
}
li.comment {
margin: 0;
padding: 0;
}
article.comment {
position: relative;
margin: 0 0 30px 89px;
padding: 30px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 0.15em 0.35em rgba(0, 0, 0, 0.1333333333);
}
@media (max-width: 600px) {
article.comment {
margin-left: 0;
}
}
@media (max-width: 479.98px) {
article.comment {
padding: 7%;
}
}
.x-boxed-layout-active article.comment {
border: 1px solid #ddd;
}
.x-comment-header {
margin-bottom: 1.313em;
}
.x-comment-content {
position: relative;
}
.x-comment-author {
letter-spacing: -1px;
line-height: 1;
color: var(--wp--preset--color--primary);
font-size: 24px;
font-style: normal;
font-weight: 600;
}
.x-comment-author a {
color: #272727;
}
.x-comment-author a:hover {
color: #ff2a13;
}
.x-comment-time {
display: block;
position: relative;
margin-top: 2px;
font-size: 85.7%;
font-weight: 400;
line-height: 1.3;
text-transform: uppercase;
color: #7a7a7a;
}
.x-comment-awaiting-moderation {
padding: 0.5em 0.5em 0.75em;
line-height: 1.2;
text-align: center;
color: #ff2a13;
background-color: #f5f5f5;
border-radius: 3px;
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.1019607843);
}
.comment-edit-link {
display: block;
position: absolute;
right: 10px;
top: 10px;
font-size: 10px;
font-weight: 700;
line-height: 1;
text-transform: uppercase;
white-space: nowrap;
}
.comment-reply-link {
position: relative;
font-size: 128.5%;
font-weight: 700;
line-height: 1.4;
}
.comment-reply-link-after {
position: relative;
bottom: 1px;
font-size: 0.722em;
line-height: 1;
}
.x-comment-img {
float: left;
}
@media (max-width: 600px) {
.x-comment-img {
float: none;
display: inline-block;
margin-bottom: 12px;
}
}
.x-comment-img .avatar-wrap {
display: block;
position: relative;
}
.x-comment-img .avatar-wrap:before {
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
border-radius: 4px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4509803922), 0 1px rgba(255, 255, 255, 0.8509803922);
}
.x-comment-img .avatar-wrap .avatar {
width: 60px;
border-radius: 4px;
display: block;
}
.x-comment-img .bypostauthor {
display: block;
bottom: 0;
width: 100%;
clear: left;
margin-top: 3px;
padding: 3px 0 4px;
font-size: 13px;
line-height: 1.2;
text-align: center;
text-transform: lowercase;
text-shadow: 0 1px 0 white;
color: #999;
}
#respond .required {
font-weight: 300;
color: #ff2a13;
}
#reply-title {
margin: 1em 0 0;
font-size: 20px;
line-height: 1.05;
}
#reply-title small {
margin: 0.55em 0 0.3em;
display: block;
font-size: 40%;
text-transform: uppercase;
}
#reply-title small a {
color: #ff2a13;
}
#reply-title small a:hover, #reply-title small a:focus {
color: #c61300;
}
#commentform {
margin-bottom: 0;
}
.comment-notes, .logged-in-as {
margin-bottom: 1em;
font-size: 114.2%;
}
.comment-form-author, .comment-form-email,
.comment-form-url, .comment-form-rating,
.comment-form-comment {
margin: 0;
}
.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-rating label,
.comment-form-comment label {
font-family: Lato, Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 18px;
color: #272727;
}
.comment-form-author label .required,
.comment-form-email label .required,
.comment-form-url label .required,
.comment-form-rating label .required,
.comment-form-comment label .required {
position: relative;
right: 0.175em;
}
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
width: 100%;
margin-bottom: 0.85em;
font-size: 18px;
}
.comment-form-comment textarea {
width: 100%;
resize: none;
margin-bottom: 0.85em;
padding-top: 11px;
padding-bottom: 11px;
font-size: 18px;
}
.comment-form-cookies-consent,
.mc4wp-checkbox label {
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: baseline;
}
.comment-form-cookies-consent input {
margin: 0;
}
.comment-form-cookies-consent label,
.mc4wp-checkbox label span {
margin: 0 0 0 0.65em;
line-height: inherit;
cursor: pointer;
}
.form-submit {
margin: 0;
}
a#load-more-comments {
display: flex;
justify-content: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment