230 lines
4.5 KiB
SCSS
230 lines
4.5 KiB
SCSS
section#comments {
|
|
#qrcode {
|
|
float: right;
|
|
margin: 3rem 0 0 1rem;
|
|
background-color: white;
|
|
padding: 12.5px;
|
|
width: 150px;
|
|
height: 150px;
|
|
|
|
@media only screen and (max-width: 720px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
#load-comments {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#comments-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.comment {
|
|
display: grid;
|
|
grid-template-columns: min-content;
|
|
grid-template-areas:
|
|
"avatar name "
|
|
"avatar time "
|
|
"avatar post "
|
|
"...... interactions";
|
|
column-gap: 1rem;
|
|
justify-items: start;
|
|
|
|
&.comment-reply {
|
|
position: relative;
|
|
border-left: 0.25rem solid var(--fg-muted-2);
|
|
border-radius: 0.25rem;
|
|
padding-left: 1rem;
|
|
|
|
&::before,
|
|
&::after {
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
&::before {
|
|
position: absolute;
|
|
top: 0.75rem;
|
|
left: -0.25rem;
|
|
background: var(--bg-color), var(--primary-color);
|
|
width: 0.25rem;
|
|
height: 0.375rem;
|
|
content: "";
|
|
}
|
|
|
|
&::after {
|
|
$reply-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M5 2a1 1 0 0 0-.707.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 1 0 1.414-1.414L3.414 8H12c1.117 0 2 .883 2 2v3c0 .55.45 1 1 1s1-.45 1-1v-3q.001-.035-.004-.07A4.01 4.01 0 0 0 12 6H3.414l2.293-2.293A1 1 0 0 0 5 2m0 0'/%3E%3C/svg%3E");
|
|
-webkit-mask-size: cover;
|
|
-webkit-mask-image: $reply-icon;
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
left: -0.75rem;
|
|
mask-image: $reply-icon;
|
|
mask-size: cover;
|
|
background-color: var(--fg-muted-4);
|
|
width: 1rem;
|
|
height: 1rem;
|
|
content: "";
|
|
}
|
|
}
|
|
|
|
.avatar-link {
|
|
position: relative;
|
|
grid-area: avatar;
|
|
width: 4rem;
|
|
height: 4rem;
|
|
|
|
.avatar {
|
|
all: unset;
|
|
transition-duration: var(--transition);
|
|
transition-property: transform, box-shadow;
|
|
box-shadow: var(--edge-highlight), var(--shadow);
|
|
border-radius: var(--rounded-corner);
|
|
background-position: 50%;
|
|
background-size: cover;
|
|
background-color: var(--fg-muted-1);
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
|
|
&:hover {
|
|
transform: rotate(10deg) scale(1.1);
|
|
box-shadow: var(--edge-highlight), var(--shadow-raised);
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(var(--active));
|
|
box-shadow: var(--edge-highlight), var(--shadow);
|
|
}
|
|
}
|
|
}
|
|
|
|
.author {
|
|
display: flex;
|
|
grid-area: name;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
font-weight: bold;
|
|
|
|
.instance {
|
|
transition-duration: var(--transition);
|
|
transition-property: background-color, transform, box-shadow;
|
|
box-shadow: var(--edge-highlight);
|
|
border-radius: 999px;
|
|
background-color: var(--fg-muted-1);
|
|
padding: 0.25rem 0.75rem;
|
|
color: var(--fg-color);
|
|
font-size: 0.8rem;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
background-color: var(--fg-muted-2);
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(var(--active));
|
|
}
|
|
|
|
&.op {
|
|
box-shadow: none;
|
|
background-color: transparent;
|
|
color: var(--primary-color);
|
|
|
|
&:hover {
|
|
box-shadow: var(--edge-highlight);
|
|
background-color: var(--primary-color-alpha);
|
|
}
|
|
|
|
&::before {
|
|
margin-inline-end: 0.25rem;
|
|
content: "✓";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.emoji {
|
|
all: unset;
|
|
display: inline;
|
|
vertical-align: middle;
|
|
width: 1.5em;
|
|
height: 1.5em;
|
|
}
|
|
|
|
time {
|
|
grid-area: time;
|
|
color: var(--fg-muted-5);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
main {
|
|
grid-area: post;
|
|
|
|
p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
footer {
|
|
grid-area: interactions;
|
|
margin-top: 1rem;
|
|
|
|
.boosts,
|
|
.faves {
|
|
display: inline-block;
|
|
transition-duration: var(--transition);
|
|
transition-property: box-shadow, transform, background-color;
|
|
margin-right: 0.25rem;
|
|
border-radius: 999px;
|
|
background-color: transparent;
|
|
padding: 0.25rem 0.75rem;
|
|
font-variant-numeric: tabular-nums;
|
|
text-decoration: none;
|
|
|
|
svg {
|
|
vertical-align: -0.125em;
|
|
transition: transform var(--transition-longer);
|
|
margin-inline-end: 0.25rem;
|
|
}
|
|
|
|
&:hover {
|
|
box-shadow: var(--edge-highlight);
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(var(--active));
|
|
}
|
|
}
|
|
|
|
.boosts {
|
|
color: var(--boosts-fg);
|
|
|
|
&:hover {
|
|
background-color: var(--boosts-bg);
|
|
|
|
svg {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.faves {
|
|
color: var(--faves-fg);
|
|
|
|
&:hover {
|
|
background-color: var(--faves-bg);
|
|
|
|
svg {
|
|
transform: rotate(72deg);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|