/* Variables */ $comment-padding: 1rem; $comment-vote-up-color: $success; $comment-vote-down-color: $alert; $comment-nested-bg: $light-gray; $comment-nested-alt-bg: $white; $comment-form-bg: $light-gray; /* Comments */ .comments{ padding-top: 3rem; } .comment-thread{ @extend .card; } .comment-thread__title{ font-weight: normal; font-size: 90%; text-transform: none; color: $muted; } .comment__header{ padding: $comment-padding; display: flex; } .comment__content{ padding: 0 $comment-padding; > :last-child{ margin-bottom: 0; } p:empty{ display: none; } } .comment__additionalreply{ padding: $comment-padding; font-size: 90%; @include clearfix; } .comment__footer{ padding: $comment-padding; font-size: 90%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; } .comment--nested{ background: $comment-nested-bg; margin: $comment-padding; padding-bottom: 1px; &.comment--nested--alt{ background: $comment-nested-alt-bg; } &:first-of-type{ margin-top: 0; } } .comment__actions{ display: flex; flex-wrap: wrap; > button, a{ cursor: pointer; margin-top: .5rem; } } .comment__reply, .comment__reply[data-toggle]{ float: left; color: $muted; margin-right: .75rem; margin-bottom: 0; span{ margin-right: 0; } &.muted-link{ color: $anchor-color; &:hover{ color: $anchor-color-hover; } } } .comment__votes{ float: right; margin-top: .5rem; button:focus{ background-color: $secondary; color: $white; outline: none; } form.button_to{ display: inline-block; } } .comment__votes--up{ color: $muted; .icon{ color: $comment-vote-up-color; } &:hover, &.is-vote-selected{ color: darken($comment-vote-up-color, 10); .icon{ color: inherit; } } &.is-vote-notselected{ color: $muted; opacity: .3; .icon{ color: inherit; } } } .comment__votes--down{ color: $muted; padding-left: .3rem; .icon{ color: $comment-vote-down-color; } &:hover, &.is-vote-selected{ color: darken($comment-vote-down-color, 10); .icon{ color: inherit; } } &.is-vote-notselected{ color: $muted; opacity: .3; .icon{ color: inherit; } } } .comment__quote{ border-left-width: 6px; font-size: 80%; background-color: rgba(0, 0, 0, .03); padding: 1rem; margin-bottom: 1rem; > p:last-of-type{ margin-bottom: 0; } > br{ display: none; } } /* Comment form */ .comment__quote{ border-left-width: 6px; font-size: 80%; background-color: rgba(0, 0, 0, .03); padding: 1rem; margin-bottom: 1rem; > p:last-child{ margin-bottom: 0; } } .add-comment{ background: $comment-form-bg; padding: $comment-padding; a:hover{ text-decoration: underline; } a:focus{ background-color: var(--secondary); color: $white; outline: none; } .button{ margin-bottom: 0; } } .add-comment--reply{ display: none; &.is-active{ display: block; } } /* Comments toggle */ .comment{ &__text-is-open{ display: none; } &__is-open &__text-is-open{ display: inline; } &__is-open &__text-is-closed{ display: none; } }