feat: Tweak comment styles
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
David Lapshin 2023-10-14 15:31:41 +00:00
parent c039516692
commit eb5990a208
Signed by: daudix
GPG key ID: 93ECF15D3053D81C

View file

@ -137,7 +137,6 @@ section#comments {
figcaption { figcaption {
color: var(--text); color: var(--text);
font-size: unset;
display: grid; display: grid;
gap: 0.5rem; gap: 0.5rem;
margin: 0; margin: 0;
@ -146,17 +145,17 @@ section#comments {
* { * {
display: inline-block; display: inline-block;
line-height: 1.25;
margin: 0; margin: 0;
overflow: hidden;
padding: 0; padding: 0;
text-overflow: ellipsis; overflow: hidden;
white-space: nowrap; display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
} }
} }
} }
Hide the card from the shared post // Hide the card from the shared post
&:first-of-type .card { &:first-of-type .card {
display: none; display: none;
} }
@ -220,27 +219,11 @@ section#comments {
details { details {
summary { summary {
background-image: linear-gradient( color: var(--yellow-fg);
to right,
transparent,
transparent 0.4rem,
var(--fg-05) 0.4rem,
var(--fg-05) calc(100% - 0.4rem),
transparent calc(100% - 0.4rem),
transparent
),
repeating-linear-gradient(
45deg,
var(--fg-50),
var(--fg-50) 0.3rem,
var(--accent-color) 0.3rem,
var(--accent-color) 0.6rem
);
border-radius: var(--border-radius);
cursor: pointer;
box-shadow: var(--shadow);
padding: 1rem;
} }
margin-top: 1rem;
background-color: var(--yellow-bg);
} }
} }
} }