discourse/app/assets/stylesheets/common/post-action-feedback.scss
Sam baa7c4cec7
FIX: allow styling of feedback on mobile (#25072)
(to test try using discourse-ai which displays feedback on mobile)


---------

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2023-12-30 08:57:16 +11:00

43 lines
709 B
SCSS

@keyframes draw {
to {
stroke-dashoffset: 0;
}
}
.post-controls {
.post-action-feedback-button {
position: relative;
height: 100%;
&.is-copied,
&.is-copied:hover {
.d-icon-d-post-share {
color: var(--success);
}
}
}
.post-action-feedback-svg {
position: absolute;
bottom: 0;
right: 0;
width: 20px;
height: 20px;
display: block;
stroke: var(--success);
opacity: 0;
transition: opacity 0.5s ease-in-out;
&.is-visible {
opacity: 1;
}
path {
stroke: var(--success);
stroke-width: 4;
stroke-dasharray: 100;
stroke-dashoffset: 100;
animation: draw 1s forwards;
}
}
}