Skip to content

Commit 795667d

Browse files
authored
Add Stylelint (hestiacp#3040)
1 parent a865c27 commit 795667d

File tree

10 files changed

+1002
-140
lines changed

10 files changed

+1002
-140
lines changed

.github/workflows/lint.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,26 @@ jobs:
4040
run: yarn install --frozen-lockfile
4141

4242
- name: Run ESLint
43-
run: yarn lint
43+
run: yarn eslint js
44+
45+
stylelint:
46+
name: Stylelint
47+
runs-on: ubuntu-latest
48+
defaults:
49+
run:
50+
working-directory: web
51+
steps:
52+
- name: Checkout code
53+
uses: actions/checkout@v3
54+
55+
- name: Setup Node
56+
uses: actions/setup-node@v3
57+
with:
58+
cache: yarn
59+
cache-dependency-path: web/yarn.lock
60+
61+
- name: Install Node packages
62+
run: yarn install --frozen-lockfile
63+
64+
- name: Run Stylelint
65+
run: yarn stylelint css/src/themes/*.css

web/.stylelintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"selector-class-pattern": null,
5+
"no-descending-specificity": null,
6+
"block-no-empty": null,
7+
8+
"property-no-vendor-prefix": null,
9+
"max-line-length": null,
10+
"declaration-block-no-shorthand-property-overrides": null,
11+
"selector-id-pattern": null
12+
}
13+
}

web/css/src/themes/dark.css

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ strong {
126126
background-color: #ff3478;
127127
}
128128

129-
.notification-container .unseen .notification-title a,
130-
.notification-container .unseen .notification-title {
129+
.notification-container .unseen .notification-title,
130+
.notification-container .unseen .notification-title a {
131131
color: #fff !important;
132132
}
133133

@@ -607,14 +607,6 @@ div.l-content > div.l-separator:nth-of-type(4) {
607607
box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
608608
}
609609

610-
textarea::input-placeholder {
611-
color: #bbb !important;
612-
}
613-
614-
textarea:focus::input-placeholder {
615-
color: #909090 !important;
616-
}
617-
618610
textarea::placeholder {
619611
color: #bbb !important;
620612
}
@@ -797,9 +789,7 @@ td.hint {
797789
.additional-control:active {}
798790

799791
.additional-control.delete:hover,
800-
801792
.additional-control.delete:active,
802-
803793
.additional-control.add:hover {}
804794

805795
.additional-control.add:active {}

0 commit comments

Comments
 (0)