mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
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>
This commit is contained in:
@ -57,9 +57,11 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
h2 {
|
||||
margin: 0 auto 0 0;
|
||||
}
|
||||
|
||||
&-filter {
|
||||
margin: 0;
|
||||
flex: 0 1 15em;
|
||||
@ -81,9 +83,11 @@
|
||||
grid-template-rows: subgrid;
|
||||
grid-row: span 4;
|
||||
gap: 0;
|
||||
|
||||
&__buttons {
|
||||
display: none; // empty container
|
||||
}
|
||||
|
||||
&__description {
|
||||
max-width: 18.75em;
|
||||
}
|
||||
@ -128,6 +132,7 @@
|
||||
|
||||
.alert {
|
||||
padding: 1em;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
@ -312,9 +317,11 @@
|
||||
.control-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.control-label {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.controls {
|
||||
margin: 0;
|
||||
}
|
||||
@ -340,9 +347,11 @@
|
||||
.pm-field:not(:last-child) {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.pm-title {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pm-textarea {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
Reference in New Issue
Block a user