mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 23:05:41 +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>
34 lines
536 B
SCSS
34 lines
536 B
SCSS
.conditional-loading-section {
|
|
&.is-loading {
|
|
padding: 2em;
|
|
margin: 1em;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--primary-very-low);
|
|
flex-direction: column;
|
|
|
|
.title {
|
|
font-size: var(--font-up-1);
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
&:not(.is-loading) {
|
|
animation: fadein 0.5s;
|
|
@media (prefers-reduced-motion) {
|
|
animation-duration: 0s;
|
|
}
|
|
}
|
|
|
|
@keyframes fadein {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|