Skip to content

Commit 382ef85

Browse files
authored
Bump Stylelint to 14 (#795)
1 parent a9e1661 commit 382ef85

File tree

6 files changed

+1951
-635
lines changed

6 files changed

+1951
-635
lines changed

.stylelintrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
2-
"extends": "stylelint-config-standard",
2+
"extends": "stylelint-config-recommended-less",
3+
"customSyntax": "postcss-less",
4+
"plugins": [
5+
"stylelint-less"
6+
],
37
"rules": {
8+
"at-rule-no-unknown": null,
9+
"less/color-no-invalid-hex": null,
10+
"less/no-duplicate-variables": null,
411
"indentation": 4,
512
"max-empty-lines": 2,
613
"no-invalid-double-slash-comments": null,

lib/css/atomic/_stacks-flex.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
//
102102
// ----------------------------------------------------------------------------
103103
.flex-fixed-item-spacing(@spacing, @num, @count: 1) when (@count =< @num) {
104-
@item-width: (@count * 100% / @num);
104+
@itemWidth: (@count * 100% / @num);
105105

106106
> .flex--item@{count} {
107107
margin: (@spacing / 2);
@@ -121,7 +121,7 @@
121121
&.flex__allitems@{count} > .d-flex, // [2]
122122
&.flex__allcells@{count} > .flex--item, // [2]
123123
&.flex__allitems@{count} > .flex--item { // [2]
124-
flex-basis: calc(~"@{item-width} - @{spacing}");
124+
flex-basis: calc(~"@{itemWidth} - @{spacing}");
125125
}
126126

127127
#stacks-internals #flex-builder-helpers .flex-fixed-item-spacing(@spacing, @num, (@count + 1));

lib/css/components/_stacks-badges.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
margin-top: 0;
168168
}
169169
}
170+
170171
.s-badge__staff {
171172
// Staff badges are always "Stack Overflow Orange"
172173
.badge-styles(var(--orange-300), var(--orange-100), var(--orange-900));

lib/css/components/_stacks-progress-bars.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
background-color: var(--green-400);
3838
}
3939

40-
4140
// $$ LABEL
4241
// For when there's descriptive, label copy within the progress bar
4342
// ----------------------------------------------------------------------------
@@ -53,7 +52,6 @@
5352
z-index: @zi-base + 2;
5453
}
5554

56-
5755
// ===========================================================================
5856
// $ VARIATION PROGRESS BACKGROUNDS
5957
// ---------------------------------------------------------------------------
@@ -78,7 +76,6 @@
7876
}
7977
}
8078

81-
8279
// ===========================================================================
8380
// $ BADGE PROGRESS BARS
8481
// ===========================================================================
@@ -95,7 +92,6 @@
9592
background-color: transparent;
9693
}
9794

98-
9995
// $$ GOLD
10096
// ---------------------------------------------------------------------------
10197
.s-progress__gold {

0 commit comments

Comments
 (0)