mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 02:16:23 +08:00

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>
37 lines
637 B
SCSS
37 lines
637 B
SCSS
.post-action-feedback-alert {
|
|
position: absolute;
|
|
top: -1.5rem;
|
|
left: 60%;
|
|
transform: translateX(-50%);
|
|
color: var(--success);
|
|
padding: 0.25rem 0.5rem;
|
|
white-space: nowrap;
|
|
font-size: var(--font-down-2);
|
|
opacity: 0;
|
|
z-index: calc(z("timeline") + 1);
|
|
}
|
|
|
|
.--transition {
|
|
.post-action-feedback-alert,
|
|
.post-action-feedback-svg {
|
|
transition: opacity 0.25s, color 0.25s;
|
|
}
|
|
}
|
|
|
|
.--activated {
|
|
.post-action-feedback-alert,
|
|
.post-action-feedback-svg {
|
|
opacity: 1;
|
|
}
|
|
|
|
.post-action-feedback-alert {
|
|
&.-success {
|
|
color: var(--success);
|
|
}
|
|
|
|
&.-fail {
|
|
color: var(--danger);
|
|
}
|
|
}
|
|
}
|