discourse/app/assets/stylesheets/common/post-action-feedback.scss
David Taylor d88ee33eb6
DEV: Introduce stylelint (#29852)
Stylelint is a css linter: https://stylelint.io/

As part of this change we have added two javascript scripts:

```
pnpm lint:css
pnpm lint:css:fix
```

Look at `.vscode/settings.json.sample` and `.vscode/extensions.json` for
configuration in VSCode.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2025-01-20 15:27:42 +00:00

39 lines
628 B
SCSS

@keyframes draw {
to {
stroke-dashoffset: 0;
}
}
.post-controls {
.post-action-feedback-button {
position: relative;
height: 100%;
&.--activated,
&.--activated: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;
path {
stroke: var(--success);
stroke-width: 4;
stroke-dasharray: 100;
stroke-dashoffset: 100;
animation: draw 1s forwards;
}
}
}