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

52 lines
825 B
SCSS

.body-page {
/* covers /about, /faq, /guidelines, /tos, /privacy, and login-required */
max-width: 700px;
background: var(--d-content-background);
.about-page & {
max-width: unset;
section:not(
.admins,
.moderators,
.category-moderators,
.about__admins,
.about__moderators,
.about__header
) {
max-width: 700px;
}
.about.category-moderators {
.badge-category__wrapper .badge-category {
color: var(--primary);
}
}
}
.mobile-view & {
font-size: var(--font-0);
}
li {
margin-bottom: 8px;
}
.nav-pills {
margin: 0 0 2em;
}
ul:not(.nav-pills),
ol:not(.nav-pills) {
margin-left: 40px;
}
}
.body-page-button-container {
display: flex;
button {
margin-right: 0.75em;
}
}