Skip to content

Commit a0f3e68

Browse files
committed
Upgrade to stylelint 15.2
We no longer need to turn off style rules that prettier will check, and we also allow prettier to enforce CSS property order, although it's a bit different than our current sort order.
1 parent fcde6dc commit a0f3e68

21 files changed

+170
-118
lines changed

ui/frontend/.stylelintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"extends": [
33
"stylelint-config-standard",
4-
"stylelint-config-css-modules",
5-
"stylelint-config-idiomatic-order",
6-
"stylelint-config-prettier"
4+
"stylelint-config-css-modules"
75
],
86
"rules": {
97
"selector-class-pattern": [

ui/frontend/BuildMenu.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.code {
2-
padding: 0 0.25em;
32
background: #eee;
3+
padding: 0 0.25em;
44
}

ui/frontend/ConfigElement.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
$border: 1px solid #bbb;
3030

3131
flex: 1;
32-
padding: 0 1em;
32+
cursor: pointer;
3333
border: $border;
3434
border-right-width: 0;
35-
border-bottom-left-radius: var(--header-border-radius);
3635
border-top-left-radius: var(--header-border-radius);
36+
border-bottom-left-radius: var(--header-border-radius);
37+
padding: 0 1em;
3738
color: #777;
38-
cursor: pointer;
39-
font-size: 11px;
4039
font-weight: 600;
40+
font-size: 11px;
4141
text-align: center;
4242
text-transform: uppercase;
4343

4444
& ~ label {
45-
border-radius: 0 var(--header-border-radius) var(--header-border-radius) 0;
46-
border-right-width: 1px;
4745
border-left: $border;
46+
border-right-width: 1px;
47+
border-radius: 0 var(--header-border-radius) var(--header-border-radius) 0;
4848
}
4949

5050
&:hover {

ui/frontend/HeaderButton.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.container {
22
display: flex;
3-
height: 3em;
43
align-items: center;
54
padding: 0 1.25em;
5+
height: 3em;
66
font-weight: 600;
77
text-decoration: none;
88
text-transform: uppercase;

ui/frontend/Help.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.container {
2-
max-width: 800px;
3-
padding: 1em;
42
margin: 1em auto;
53
background-color: #fff;
4+
padding: 1em;
5+
max-width: 800px;
66
line-height: 1.5;
77
}
88

99
.code {
10-
padding: 0 0.25em;
1110
background: #eee;
11+
padding: 0 0.25em;
1212
}
1313

1414
.logo {

ui/frontend/HelpExample.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
position: absolute;
77
top: 0;
88
right: 0;
9-
border: none;
10-
background: rgb(255 255 255 / 80%);
11-
border-bottom-left-radius: 0.5em;
12-
cursor: pointer;
9+
visibility: hidden;
1310
opacity: 0;
1411
transition: all 0.5s;
15-
visibility: hidden;
12+
cursor: pointer;
13+
border: none;
14+
border-bottom-left-radius: 0.5em;
15+
background: rgb(255 255 255 / 80%);
1616
}
1717

1818
.container:hover .loadExample {
19-
opacity: 1;
2019
visibility: visible;
20+
opacity: 1;
2121
}

ui/frontend/Icon.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.icon {
2-
display: block;
32
fill: currentcolor;
3+
display: block;
44
}

ui/frontend/Loader.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
}
1010

1111
.dot {
12+
opacity: 0;
1213
animation: loader-fade 1s;
1314
animation-iteration-count: infinite;
14-
opacity: 0;
1515

1616
&:nth-child(2) {
1717
animation-delay: 0.2s;

ui/frontend/MenuGroup.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.container {
2-
width: 27em;
32
padding: 0.75em 1em 0;
3+
width: 27em;
44
line-height: normal;
55

66
&:last-child {
@@ -9,11 +9,11 @@
99
}
1010

1111
.title {
12-
padding-bottom: 10px;
13-
border-bottom: 1px solid var(--header-main-border);
1412
margin: 0;
15-
font-size: 11px;
13+
border-bottom: 1px solid var(--header-main-border);
14+
padding-bottom: 10px;
1615
font-weight: 700;
16+
font-size: 11px;
1717
text-transform: uppercase;
1818
}
1919

ui/frontend/Notifications.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ $space: 0.25em;
33

44
.container {
55
position: absolute;
6-
z-index: 10;
76
right: $buffer;
87
bottom: $buffer;
98
left: $buffer;
10-
max-width: 50em;
11-
border: 2px solid #428bca;
9+
z-index: 10;
1210
margin-right: auto;
1311
margin-left: auto;
12+
border: 2px solid #428bca;
1413
background: white;
14+
max-width: 50em;
1515
}
1616

1717
.notification {
@@ -24,7 +24,7 @@ $space: 0.25em;
2424

2525
.close {
2626
composes: -buttonReset from './shared.module.css';
27-
padding: $space;
28-
background: #e1e1db;
2927
cursor: pointer;
28+
background: #e1e1db;
29+
padding: $space;
3030
}

0 commit comments

Comments
 (0)