clone of olivero for island lives
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

259 lines
5.1 KiB

10 months ago
/*
* 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.
*/
10 months ago
:root {
--comment-indentation: var(--sp2);
--comment-indentation--md: var(--sp4);
}
10 months ago
.comment--level-1 {
10 months ago
border-block-start: 2px solid var(--color--gray-95);
10 months ago
}
.comment--level-1 ~ .comment--level-1 {
10 months ago
margin-block-start: var(--sp2);
}
10 months ago
.comments__title {
display: flex;
align-items: center;
10 months ago
margin-block-start: 0;
10 months ago
}
.comments__count {
position: relative;
display: inline-block;
min-width: 2.125rem;
10 months ago
margin-block-start: 0;
margin-block-end: var(--sp0-5);
margin-inline-start: var(--sp);
margin-inline-end: var(--sp);
padding-block: 0;
padding-inline-start: 0.3125rem;
padding-inline-end: 0.3125rem;
10 months ago
text-align: center;
color: var(--color--white);
border-radius: 2px;
background-color: var(--color--primary-40);
font-size: 0.6875rem;
10 months ago
line-height: 1.3125rem;
10 months ago
}
.comments__count::after {
10 months ago
position: absolute;
inset-block-end: -0.4375rem;
inset-inline-start: 0.5rem;
width: 0;
height: 0;
content: "";
border-block-start: 0.4375rem solid var(--color--primary-40);
border-inline-end: 0.5rem solid transparent;
10 months ago
}
10 months ago
.comment-form {
padding-block-end: var(--sp2);
10 months ago
}
10 months ago
.add-comment__form {
padding-inline-start: 0;
10 months ago
}
.comment {
position: relative;
10 months ago
padding-block-start: var(--sp2);
padding-inline-start: var(--sp3);
10 months ago
}
@media (min-width: 43.75rem) {
10 months ago
.comment {
padding-inline-start: 0;
10 months ago
}
10 months ago
}
10 months ago
.comment__text-content {
10 months ago
font-size: 1rem;
10 months ago
}
.comment__text-content blockquote {
10 months ago
font-size: 1.3125rem;
line-height: var(--sp2);
10 months ago
}
10 months ago
/* Override for .field:not(:last-child) */
10 months ago
.comment__text-content:not(:last-child) {
10 months ago
margin-block-end: 0;
}
10 months ago
10 months ago
.comment__links {
10 months ago
margin-block: var(--sp) 0;
10 months ago
}
.comment__links-link {
10 months ago
-webkit-text-decoration: none;
10 months ago
text-decoration: none;
font-size: 0.875rem;
font-weight: bold;
10 months ago
line-height: var(--sp);
10 months ago
}
.comment__links-link:hover {
10 months ago
-webkit-text-decoration: underline;
text-decoration: underline;
10 months ago
}
10 months ago
.add-comment__picture-wrapper {
inset-block-start: calc(var(--line-height-base) + var(--sp0-5));
10 months ago
}
.add-comment__picture,
.comment__picture {
position: absolute;
10 months ago
inset-inline-start: 0;
10 months ago
overflow: hidden;
width: var(--sp2);
height: var(--sp2);
border-radius: 50%;
10 months ago
background-color: var(--color--gray-95);
10 months ago
}
10 months ago
.add-comment__picture *:not(img),
.comment__picture *:not(img) {
display: inherit;
width: inherit;
height: inherit;
}
10 months ago
10 months ago
.add-comment__picture img,
.comment__picture img {
width: 100%;
height: 100%;
object-fit: cover;
10 months ago
10 months ago
/* @TODO: create image-style for profile's avatar to have image squared by default. */
}
10 months ago
@media all and (-ms-high-contrast: active), (-ms-high-contrast: none) {
10 months ago
.add-comment__picture img,
.comment__picture 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%);
10 months ago
}
10 months ago
}
10 months ago
@media (min-width: 43.75rem) {
10 months ago
.add-comment__picture,
.comment__picture {
inset-inline-start: calc(-1 * var(--sp5));
10 months ago
width: var(--sp3);
10 months ago
height: var(--sp3);
10 months ago
}
10 months ago
}
10 months ago
@media (min-width: 43.75rem) {
10 months ago
.indented .comment__picture {
inset-inline-start: calc(-1 * var(--sp4));
10 months ago
width: var(--sp2);
10 months ago
height: var(--sp2);
10 months ago
}
}
10 months ago
.comment__meta * {
display: inline;
10 months ago
}
.comment__author {
10 months ago
margin-inline-end: var(--sp);
10 months ago
font-family: var(--font-sans);
font-size: 1rem;
font-weight: 700;
10 months ago
line-height: var(--sp);
10 months ago
}
.comment__author a {
10 months ago
-webkit-text-decoration: none;
text-decoration: none;
}
10 months ago
.comment__time {
margin: 0;
color: var(--color-text-neutral-soft);
font-family: var(--font-sans);
font-size: 0.875rem;
line-height: var(--sp);
}
10 months ago
.indented {
margin-inline-start: var(--comment-indentation);
10 months ago
}
10 months ago
.indented > .comment:not(:last-of-type, .has-children)::before {
position: absolute;
inset-block-start: var(--sp2);
inset-inline-start: calc(-1 * var(--comment-indentation) - var(--sp)); /* Comment's padding-top */
width: 0;
height: 100%;
content: "";
border-inline-start: solid 1px var(--color--gray-95);
10 months ago
}
@media (min-width: 43.75rem) {
10 months ago
.indented > .comment:not(:last-of-type, .has-children)::before {
inset-inline-start: calc(-1 * var(--comment-indentation--md) + var(--sp));
10 months ago
}
10 months ago
}
10 months ago
@media (min-width: 43.75rem) {
10 months ago
.indented {
margin-inline-start: var(--comment-indentation--md);
10 months ago
}
}
.show-hide-btn {
10 months ago
margin-block-start: var(--sp2);
margin-block-end: 0;
margin-inline-start: var(--sp3);
margin-inline-end: 0;
padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
10 months ago
cursor: pointer;
color: var(--color-text-neutral-medium);
border: 0;
background: none;
font-size: 0.875rem;
font-weight: 600;
line-height: 1.125rem;
-webkit-appearance: none;
10 months ago
appearance: none;
10 months ago
}
.show-hide-btn[aria-expanded="true"]::after {
10 months ago
content: "\0020 -";
}
10 months ago
.show-hide-btn[aria-expanded="false"]::after {
10 months ago
content: "\0020 +";
}
10 months ago
@media (min-width: 43.75rem) {
10 months ago
.show-hide-btn {
margin-inline-start: 0;
10 months ago
}
10 months ago
}