drupal/core/themes/olivero/css/components/comments.css

462 lines
7.3 KiB
CSS

/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Comment section and individual comments.
*/
.comments > .comment {
border-top: 2px solid #e7edf1
}
.comments > .comment ~ .comment {
margin-top: 36px;
}
.comments__title {
display: flex;
align-items: center;
margin-top: 0;
}
[dir="ltr"] .comments__count {
margin-left: 18px
}
[dir="rtl"] .comments__count {
margin-right: 18px
}
[dir="ltr"] .comments__count {
margin-right: 18px
}
[dir="rtl"] .comments__count {
margin-left: 18px
}
[dir="ltr"] .comments__count {
padding-left: 5px
}
[dir="rtl"] .comments__count {
padding-right: 5px
}
[dir="ltr"] .comments__count {
padding-right: 5px
}
[dir="rtl"] .comments__count {
padding-left: 5px
}
.comments__count {
position: relative;
display: inline-block;
min-width: 34px;
margin-top: 0;
margin-bottom: 9px;
padding-top: 0;
padding-bottom: 0;
text-align: center;
color: #fff;
border-radius: 2px;
background-color: #0d77b5;
font-size: 11px;
line-height: 21px
}
[dir="ltr"] .comments__count:after {
left: 8px
}
[dir="rtl"] .comments__count:after {
right: 8px
}
[dir="ltr"] .comments__count:after {
border-right: 8px solid transparent
}
[dir="rtl"] .comments__count:after {
border-left: 8px solid transparent
}
.comments__count:after {
position: absolute;
bottom: -7px;
width: 0;
height: 0;
content: "";
border-top: 7px solid #0d77b5;
}
.comment-form {
padding-bottom: 36px;
}
[dir="ltr"] .add-comment__form {
padding-left: 54px
}
[dir="rtl"] .add-comment__form {
padding-right: 54px
}
@media (min-width: 700px) {
[dir="ltr"] .add-comment__form {
padding-left: 0
}
[dir="rtl"] .add-comment__form {
padding-right: 0
}
}
[dir="ltr"] .comment {
padding-left: 54px
}
[dir="rtl"] .comment {
padding-right: 54px
}
.comment {
position: relative;
padding-top: 36px
}
.comment .text-content {
padding-bottom: 0;
font-size: 16px
}
.comment .text-content blockquote {
font-size: 21px;
line-height: 36px;
}
[dir="ltr"] .comment .links {
margin-left: 0
}
[dir="rtl"] .comment .links {
margin-right: 0
}
[dir="ltr"] .comment .links {
margin-right: 0
}
[dir="rtl"] .comment .links {
margin-left: 0
}
[dir="ltr"] .comment .links {
padding-left: 0
}
[dir="rtl"] .comment .links {
padding-right: 0
}
[dir="ltr"] .comment .links {
padding-right: 0
}
[dir="rtl"] .comment .links {
padding-left: 0
}
.comment .links {
margin-top: 18px;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0
}
.comment .links a {
text-decoration: none;
color: #0d77b5;
font-size: 14px;
font-weight: bold;
line-height: 18px
}
.comment .links a:hover,
.comment .links a:focus {
text-decoration: underline;
}
[dir="ltr"] .comment .links li {
margin-right: 18px
}
[dir="rtl"] .comment .links li {
margin-left: 18px
}
.comment .links li {
display: inline-block;
}
@media (min-width: 700px) {
[dir="ltr"] .comment {
padding-left: 0
}
[dir="rtl"] .comment {
padding-right: 0
}
}
.add-comment__picture-wrapper.comment-picture {
top: 36px;
}
[dir="ltr"] .comment-picture__image {
left: 0
}
[dir="rtl"] .comment-picture__image {
right: 0
}
.comment-picture__image {
position: absolute;
overflow: hidden;
width: 36px;
height: 36px;
border-radius: 50%;
background-color: #e7edf1
}
.comment-picture__image *:not(img) {
display: inherit;
width: inherit;
height: inherit;
}
.comment-picture__image img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover
/* @TODO: create image-style for profile's avatar to have image squared by default. */
}
@media all and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.comment-picture__image img {
position: absolute;
/* stylelint-disable csstools/use-logical */
top: 50%;
left: 50%;
/* stylelint-enable csstools/use-logical */
width: 100%;
height: auto;
transform: translate(-50%, -50%)
}
}
@media (min-width: 700px) {
[dir="ltr"] .comment-picture__image {
left: -90px
}
[dir="rtl"] .comment-picture__image {
right: -90px
}
.comment-picture__image {
width: 54px;
height: 54px
}
}
@media all and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.comment-picture__image {
position: relative
}
}
@media (min-width: 700px) {
[dir="ltr"] .indented .comment-picture__image {
left: -72px
}
[dir="rtl"] .indented .comment-picture__image {
right: -72px
}
.indented .comment-picture__image {
width: 36px;
height: 36px
}
}
.comment__meta * {
display: inline;
}
[dir="ltr"] .comment__author {
margin-right: 18px
}
[dir="rtl"] .comment__author {
margin-left: 18px
}
.comment__author {
font-family: "metropolis", sans-serif;
font-size: 16px;
font-weight: 700;
line-height: 18px
}
.comment__author a {
text-decoration: none;
}
.comment__time {
margin: 0;
color: #6e7172;
font-family: "metropolis", sans-serif;
font-size: 14px;
line-height: 18px;
}
[dir="ltr"] .indented {
margin-left: 36px
}
[dir="rtl"] .indented {
margin-right: 36px
}
[dir="ltr"] .indented > .comment:not(:last-of-type):not(.has-children):before {
left: -54px
}
[dir="rtl"] .indented > .comment:not(:last-of-type):not(.has-children):before {
right: -54px
}
[dir="ltr"] .indented > .comment:not(:last-of-type):not(.has-children):before {
border-left: solid 1px #e7edf1
}
[dir="rtl"] .indented > .comment:not(:last-of-type):not(.has-children):before {
border-right: solid 1px #e7edf1
}
.indented > .comment:not(:last-of-type):not(.has-children):before {
position: absolute;
top: 36px; /* Comment's padding-top */
width: 0;
height: 100%;
content: ""
}
@media (min-width: 700px) {
[dir="ltr"] .indented > .comment:not(:last-of-type):not(.has-children):before {
left: -54px
}
[dir="rtl"] .indented > .comment:not(:last-of-type):not(.has-children):before {
right: -54px
}
}
@media (min-width: 700px) {
[dir="ltr"] .indented {
margin-left: 72px
}
[dir="rtl"] .indented {
margin-right: 72px
}
}
[dir="ltr"] .show-hide-btn {
margin-left: 54px
}
[dir="rtl"] .show-hide-btn {
margin-right: 54px
}
[dir="ltr"] .show-hide-btn {
margin-right: 0
}
[dir="rtl"] .show-hide-btn {
margin-left: 0
}
[dir="ltr"] .show-hide-btn {
padding-left: 0
}
[dir="rtl"] .show-hide-btn {
padding-right: 0
}
[dir="ltr"] .show-hide-btn {
padding-right: 0
}
[dir="rtl"] .show-hide-btn {
padding-left: 0
}
.show-hide-btn {
margin-top: 36px;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
cursor: pointer;
color: #313637;
border: 0;
background: none;
font-size: 14px;
font-weight: 600;
line-height: 18px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none
}
.show-hide-btn[aria-expanded="true"]:after {
content: "\0020 -";
}
.show-hide-btn[aria-expanded="false"]:after {
content: "\0020 +";
}
@media (min-width: 700px) {
[dir="ltr"] .show-hide-btn {
margin-left: 0
}
[dir="rtl"] .show-hide-btn {
margin-right: 0
}
}