123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- /**
- * Comments Wrapper
- */
- .comments-area {
- & > * {
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- &:first-child {
- margin-top: 0;
- }
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- /**
- * Comment Title
- */
- .comments-title {
- font-size: #{map-deep-get($config-heading, "font", "size", "h3")};
- letter-spacing: #{map-deep-get($config-heading, "font", "letter-spacing", "h3")};
- }
- .comment-reply-title {
- font-size: #{map-deep-get($config-global, "font", "size", "xl")};
- display: flex;
- justify-content: space-between;
- align-items: center;
- small {
- font-size: #{map-deep-get($config-global, "font", "size", "base")};
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- letter-spacing: normal;
- line-height: #{map-deep-get($config-global, "font", "line-height", "heading")};
- }
- }
- /**
- * Comment Lists
- */
- .comment-list {
- border-bottom: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
- padding-left: 0;
- list-style: none;
- > li {
- border-top: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- .comment-list .children {
- list-style: none;
- padding-left: #{map-deep-get($config-global, "spacing", "horizontal")};
- > li {
- border-top: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- }
- @include media(mobile) {
- padding-left: #{2 * map-deep-get($config-global, "spacing", "horizontal")};
- }
- }
- /**
- * Comment Meta
- */
- .comment-meta {
- $avatar-size: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-right: calc( #{$avatar-size} + (0.5 * #{map-deep-get($config-global, "spacing", "horizontal")}) );
- .comment-author {
- line-height: #{map-deep-get($config-global, "font", "line-height", "heading")};
- margin-bottom: #{.25 * map-deep-get($config-global, "spacing", "unit")};
- padding-right: #{2.5 * map-deep-get($config-global, "spacing", "horizontal")};
- max-width: calc(100% - #{3 * map-deep-get($config-global, "spacing", "horizontal")});
- @include media(mobile) {
- display: flex;
- align-items: center;
- margin-bottom: 0;
- padding-right: 0;
- }
- .fn {
- word-wrap: break-word;
- word-break: break-word;
- hyphens: auto;
- }
- .avatar {
- display: block;
- position: absolute;
- right: 0;
- }
- }
- .comment-metadata {
- color: #{map-deep-get($config-global, "color", "foreground", "default")};
- padding-right: #{2.5 * map-deep-get($config-global, "spacing", "horizontal")};
- @include media(mobile) {
- padding-right: 0;
- }
- a {
- color: currentColor;
- &:hover,
- &:active {
- color: #{map-deep-get($config-global, "color", "primary", "hover")};
- }
- }
- }
- @include media(mobile) {
- margin-right: inherit;
- align-items: center;
- display: flex;
- justify-content: space-between;
- .comment-author {
- display: flex;
- align-items: center;
- max-width: inherit;
- flex: 0 1 auto;
- .fn {
- padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
- }
- .avatar {
- margin-right: #{map-deep-get($config-global, "spacing", "horizontal")};
- display: inherit;
- position: relative;
- right: inherit;
- }
- }
- .comment-metadata {
- flex: 0 1 auto;
- }
- }
- }
- .comment-metadata,
- .reply {
- font-size: #{map-deep-get($config-global, "font", "size", "xs")};
- line-height: #{map-deep-get($config-global, "font", "line-height", "heading")};
- }
- .reply {
- text-align: right;
- @include media(mobile) {
- text-align: left;
- }
- }
- .bypostauthor {
- display: block;
- }
- .says {
- display: none;
- }
- .comment-author .fn,
- .pingback .url,
- .trackback .url {
- @include font-family( map-deep-get($config-global, "font", "family", "primary") );
- }
- /**
- * Comment body
- */
- .comment-body {
- position: relative;
- & > * {
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- .comment-content a {
- word-wrap: break-word;
- }
- /**
- * Pingbacks & Trackbacks
- */
- .pingback .comment-body,
- .trackback .comment-body {
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- }
- /**
- * Comment Form
- */
- @import "comment-form";
- /**
- * Comment Nav
- */
- @import "comment-navigation";
|