.ct-comments { margin: 0 auto; width: var(--width); color: var(--color); @include media-breakpoint-down (sm) { padding-top: 40px; padding-bottom: 60px; } @include media-breakpoint-up (md) { padding-top: 80px; padding-bottom: 100px; } ol, ul { list-style: none; margin: 0; padding: 0; } li { &:not(.pingback) { @include media-breakpoint-up (md) { .ct-comment-content, .ct-comment-info section { padding-left: 70px; } } } } } .ct-comments-title { font-size: 30px; line-height: normal; margin: 0 0 50px 0; } .ct-comment-list { .children { @include media-breakpoint-down (sm) { padding-left: 35px; } @include media-breakpoint-up (md) { padding-left: 70px; } } .comment-respond { padding-bottom: 50px; @include media-breakpoint-up (md) { padding-left: 70px; } } } // comment .ct-comment-inner { padding-top: 50px; padding-bottom: 50px; border-top: 1px solid rgba(215, 222, 229, 0.5); &:not(.ct-has-reply-form) { &:hover .comment-reply-link { color: #fff; // background: $primary; background: var(--buttonInitialColor); } .comment-reply-link { &:hover { background: var(--buttonHoverColor); } } } } .ct-comment-info { display: flex; position: relative; margin-bottom: 20px; @include media-breakpoint-down (sm) { align-items: center; } figure { @include media-breakpoint-down (sm) { max-width: 45px; max-height: 45px; margin-right: 20px; } @include media-breakpoint-up (md) { position: absolute; top: 0; left: 0; max-width: 50px; max-height: 50px; } img { border-radius: 100%; } } section { display: flex; width: 100%; @include media-breakpoint-down (sm) { flex-direction: column; } @include media-breakpoint-up (md) { align-items: center; justify-content: space-between; align-self: flex-start; } } } .ct-comment-author { font-weight: bold; max-width: 60%; } .ct-comment-meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 11px; font-weight: 500; text-transform: uppercase; color: rgba(44, 62, 80, 0.6); > *:first-child { margin-right: 20px; } } .comment-edit-link { margin-right: 10px; } .comment-reply-link { display: flex; align-items: center; height: 25px; padding: 0 10px; border-radius: 3px; transition: color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955), background 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955); .ct-has-reply-form & { opacity: 0.5; user-select: none; pointer-events: none; } } .ct-comment-content { // line-height: 1.65; } // reply title .comment-reply-title { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: bold; line-height: normal; margin-bottom: 30px; } .ct-cancel-reply a { --buttonFontSize: 11px; --height: 25px; --padding: 0 10px; --buttonShadow: none; --buttonTransform: none; text-transform: uppercase; } // respond form .comment-respond { &:not(:only-child) { .comment-reply-title { padding-top: 50px; border-top: 1px solid rgba(215, 222, 229, 0.5); } } } .ct-respond-form-inputs { display: flex; flex-wrap: wrap; justify-content: space-between; margin-left: -10px; margin-right: -10px; > * { flex: 1 1 33.333%; min-width: 150px; padding-left: 10px; padding-right: 10px; margin-bottom: 1.5em; } label { height: var(--formInputHeight); } } .ct-respond-form-inputs > *, .ct-respond-form-textarea { position: relative; label { display: flex; align-items: center; position: absolute; top: 0; left: 10px; cursor: text; padding: var(--formPadding, 0 15px); font-size: 15px; color: rgba(44, 62, 80, 0.5); opacity: 1; visibility: visible; transition: opacity 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955), transform 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955), visibility 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); } } .ct-respond-form-textarea { // display: flex; label { top: 2px; left: 0; height: 45px; } textarea { display: block; min-height: 150px; resize: vertical; } } .comment-form { .required { color: #CC0000; margin-left: 3px; } input[type="text"], textarea { &:focus { + label { opacity: 0; visibility: hidden; transform: translate3d( 20px, 0, 0 ); } } &.ct-not-empty { + label { opacity: 0; visibility: hidden; transform: translateX(20px); } } } > p { margin-bottom: 1.5em; } .form-submit { margin-top: 2em; margin-bottom: 0; } } // no comments .no-comments { padding: 15px 20px; text-align: center; background: rgba(233, 235, 239, 0.5); border-radius: 2px; } // other fields .comment-form { .ct-respond-form-textarea { ~ p:not(.form-submit) { display: flex; align-items: center; line-height: normal; margin-top: 0 !important; margin-bottom: 1em !important; label { --fontSize: 14px; font-size: var(--fontSize); cursor: pointer; opacity: 0.8; } } } } // akismet privacy notice .akismet_comment_form_privacy_notice { margin-top: 2em; }