Skip to content

Commit be39003

Browse files
authored
Fix stylelint deprecations and warnings (#1347)
* updated node version and other packages * Update Dockerfile * regenerated min css * min css * wip * removed console logs * updated uglidy-js; minify argohub-redirect separately * wip * wip * updated .nvmrc, added prettier rules, updated package.lock * updated .nvmrc, added prettier rules, updated package.lock * fixed gitops layout * fixed stylelint deprecation issues and warnings * wip * wip * returned @import and silenced deprecations * remove import css comments * removed accidental changes * removed accidental changes * minified css
1 parent 4be0a6b commit be39003

37 files changed

+170
-244
lines changed

.eslintrc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212

213213
// ECMAScript 6
214214
"arrow-body-style": ["error", "as-needed"],
215-
"arrow-parens": "error",
215+
"arrow-parens": "off",
216216
"arrow-spacing": "error",
217217
"generator-star-spacing": "error",
218218
"no-confusing-arrow": "error",
@@ -234,6 +234,8 @@
234234
"sort-imports": "error",
235235
"symbol-description": "error",
236236
"template-curly-spacing": "error",
237-
"yield-star-spacing": "error"
237+
"yield-star-spacing": "error",
238+
"color-function-notation": "off",
239+
"alpha-value-notation": "off"
238240
}
239241
}

.stylelintrc

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,36 @@
11
{
22
"extends": ["stylelint-config-standard-scss"],
33
"plugins": ["stylelint-scss", "stylelint-order"],
4+
"ignoreFiles": ["**/node_modules/**"],
45
"rules": {
56
"at-rule-empty-line-before": [null,
67
"except": ["first-nested"]
78
],
8-
"at-rule-name-space-after": "always",
99
"at-rule-no-vendor-prefix": true,
1010
"at-rule-no-unknown": null,
1111
"scss/at-rule-no-unknown": true,
12-
"at-rule-semicolon-space-before": "never",
1312
"block-closing-brace-empty-line-before": null,
1413
"block-closing-brace-newline-after": null,
1514
"block-opening-brace-space-before": null,
1615
"color-named": "never",
17-
"declaration-block-semicolon-newline-after": "always-multi-line",
18-
"declaration-block-semicolon-newline-before": "never-multi-line",
19-
"declaration-block-semicolon-space-after": "always-single-line",
2016
"declaration-empty-line-before": null,
2117
"declaration-no-important": null,
2218
"font-family-name-quotes": "always-where-recommended",
2319
"font-weight-notation": "numeric",
2420
"function-url-no-scheme-relative": true,
2521
"function-url-quotes": "always",
2622
"length-zero-no-unit": true,
27-
"max-empty-lines": 2,
2823
"max-line-length": null,
2924
"media-feature-name-no-vendor-prefix": true,
30-
"media-feature-parentheses-space-inside": "never",
31-
"media-feature-range-operator-space-after": "always",
32-
"media-feature-range-operator-space-before": "never",
3325
"no-descending-specificity": null,
3426
"no-duplicate-selectors": true,
35-
"number-leading-zero": "never",
3627
"property-no-vendor-prefix": true,
3728
"rule-empty-line-before": null,
3829
"selector-attribute-quotes": "always",
39-
"selector-list-comma-newline-after": "always",
40-
"selector-list-comma-newline-before": "never-multi-line",
41-
"selector-list-comma-space-after": "always-single-line",
42-
"selector-list-comma-space-before": "never-single-line",
4330
"selector-max-attribute": 2,
4431
"selector-max-class": 7,
4532
"selector-max-combinators": 7,
4633
"selector-max-compound-selectors": 7,
47-
"selector-max-empty-lines": 1,
4834
"selector-max-id": 0,
4935
"selector-max-specificity": null,
5036
"selector-max-type": 4,
@@ -53,11 +39,7 @@
5339
"ignore": [ "attribute", "class", "id" ]
5440
}],
5541
"selector-no-vendor-prefix": true,
56-
"string-quotes": "double",
5742
"value-keyword-case": "lower",
58-
"value-list-comma-newline-after": "never-multi-line",
59-
"value-list-comma-newline-before": "never-multi-line",
60-
"value-list-comma-space-after": "always",
6143
"value-no-vendor-prefix": true
6244
}
6345
}

_includes/argohub-docs-navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@
7474
onclick="window.CommandBar.openHelpHub(); setTimeout(() => {
7575
document.querySelector('input[data-testid=helphub-input]').focus()
7676
}, 100)"
77-
class="helpbub-toggler helpbub-toggler--small order-2 order-md-2"
77+
class="helpbub-toggler helpbub-toggler-small order-2 order-md-2"
7878
aria-label="Search Codefresh Documentation"
7979
type="button"
8080
>
8181
<div class="d-flex align-items-center">
8282
<img src="{{site.baseurl}}/images/icons/search.png" />
8383
<span class="ml-2">Search</span>
8484
</div>
85-
<span class="helpbub-toggler--hotkey">Ctrl / &#8984; + K</span>
85+
<span class="helpbub-toggler-hotkey">Ctrl / &#8984; + K</span>
8686
</button>
8787
{% endif %}
8888
</div>

_includes/docs-navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@
134134
onclick="window.CommandBar.openHelpHub(); setTimeout(() => {
135135
document.querySelector('input[data-testid=helphub-input]').focus()
136136
}, 100)"
137-
class="helpbub-toggler helpbub-toggler--small order-2 order-md-2"
137+
class="helpbub-toggler helpbub-toggler-small order-2 order-md-2"
138138
aria-label="Search Codefresh Documentation"
139139
type="button"
140140
>
141141
<div class="d-flex align-items-center">
142142
<img src="{{site.baseurl}}/images/icons/search.png" />
143143
<span class="ml-2">Search</span>
144144
</div>
145-
<span class="helpbub-toggler--hotkey">Ctrl / &#8984; + K</span>
145+
<span class="helpbub-toggler-hotkey">Ctrl / &#8984; + K</span>
146146
</button>
147147
{% endif %}
148148
</header>

_includes/modal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="container-fluid">
1212
<div class="row align-items-center">
1313
<div class="col-sm-auto">
14-
<div class="redirect-popup__info-icon">
14+
<div class="redirect-popup-info-icon">
1515
{% include icons/info-circle.svg class="bd-icon" %}
1616
</div>
1717
</div>
@@ -22,7 +22,7 @@
2222

2323
<button
2424
type="button"
25-
class="close redirect-popup__close"
25+
class="close redirect-popup-close"
2626
data-dismiss="modal"
2727
aria-label="Close"
2828
>

assets/css/docs.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/docs.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/argohub-redirect/argohub-redirect.min.js

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/scss/_ads.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// stylelint-disable declaration-no-important, selector-max-id
22

3-
//
43
// Carbon ads
5-
//
64

75
#carbonads {
86
position: static;
@@ -14,7 +12,7 @@
1412
font-size: 13px;
1513
line-height: 1.4;
1614
text-align: left;
17-
background-color: rgba(0, 0, 0, .05);
15+
background-color: rgba(0 0 0 / 5%);
1816

1917
a {
2018
color: #333;

assets/scss/_algolia.scss

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// stylelint-disable declaration-no-important
22

33
// Docsearch overrides
4-
//
4+
55
// `!important` indicates overridden properties.
66

7-
.bd-search--home {
7+
.bd-search-home {
88
padding: 0;
99

1010
.doc-search-input {
@@ -35,8 +35,8 @@
3535
padding: .75rem 0 !important;
3636
background-color: #fff;
3737
background-clip: padding-box;
38-
border: 1px solid rgba(0, 0, 0, .1);
39-
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175);
38+
border: 1px solid rgba(0 0 0 / 10%);
39+
box-shadow: 0 .5rem 1rem rgba(0 0 0 / 175%);
4040

4141
@include media-breakpoint-up(md) {
4242
width: 175%;
@@ -64,7 +64,7 @@
6464
overflow: visible !important;
6565
}
6666

67-
.algolia-docsearch-suggestion--category-header {
67+
.algolia-docsearch-suggestion-category-header {
6868
padding: .125rem 1rem !important;
6969
margin-top: 0 !important;
7070
font-size: .875rem !important;
@@ -73,20 +73,20 @@
7373
border-bottom: 0 !important;
7474
}
7575

76-
.algolia-docsearch-suggestion--wrapper {
76+
.algolia-docsearch-suggestion-wrapper {
7777
float: none !important;
7878
padding-top: 0 !important;
7979
}
8080

8181
// Section header
82-
.algolia-docsearch-suggestion--subcategory-column {
82+
.algolia-docsearch-suggestion-subcategory-column {
8383
float: none !important;
8484
width: auto !important;
8585
padding: 0 !important;
8686
text-align: left !important;
8787
}
8888

89-
.algolia-docsearch-suggestion--content {
89+
.algolia-docsearch-suggestion-content {
9090
float: none !important;
9191
width: auto !important;
9292
padding: 0 !important;
@@ -99,27 +99,27 @@
9999

100100
.ds-suggestion {
101101
&:not(:first-child) {
102-
.algolia-docsearch-suggestion--category-header {
102+
.algolia-docsearch-suggestion-category-header {
103103
padding-top: .75rem !important;
104104
margin-top: .75rem !important;
105-
border-top: 1px solid rgba(0, 0, 0, .1);
105+
border-top: 1px solid rgba(0 0 0 / 10%);
106106
}
107107
}
108108

109-
.algolia-docsearch-suggestion--subcategory-column {
109+
.algolia-docsearch-suggestion-subcategory-column {
110110
display: none !important;
111111
}
112112
}
113113

114-
.algolia-docsearch-suggestion--title {
114+
.algolia-docsearch-suggestion-title {
115115
display: block;
116116
padding: .25rem 1rem !important;
117117
margin-bottom: 0 !important;
118118
font-size: .875rem !important;
119119
font-weight: 400 !important;
120120
}
121121

122-
.algolia-docsearch-suggestion--text {
122+
.algolia-docsearch-suggestion-text {
123123
padding: 0 1rem .5rem !important;
124124
margin-top: -.25rem;
125125
font-size: .875rem !important;
@@ -135,28 +135,26 @@
135135
font-size: 0 !important;
136136
line-height: 1 !important;
137137
color: #767676 !important;
138-
border-top: 1px solid rgba(0, 0, 0, .1);
138+
border-top: 1px solid rgba(0 0 0 / 10%);
139139
}
140140

141-
.algolia-docsearch-footer--logo {
141+
.algolia-docsearch-footer-logo {
142142
display: inline-block !important;
143143
width: 100px;
144-
//overflow: visible !important;
145144
color: inherit !important;
146145
text-indent: 0 !important;
147-
//background: none !important;
148146
}
149147

150-
.algolia-docsearch-suggestion--highlight {
148+
.algolia-docsearch-suggestion-highlight {
151149
color: $bd-topaz-main;
152-
background-color: rgba(20, 187, 79, .12);
150+
background-color: rgba(20 187 79 / 12%);
153151
}
154152

155-
.algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
153+
.algolia-docsearch-suggestion-text .algolia-docsearch-suggestion-highlight {
156154
box-shadow: inset 0 -2px 0 0 rgba($bd-topaz-extra-light, .99) !important;
157155
}
158156

159-
.ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
160-
background-color: rgba(52, 236, 61, .12) !important;
157+
.ds-suggestion.ds-cursor .algolia-docsearch-suggestion-content {
158+
background-color: rgba(52 236 61 / 12%) !important;
161159
}
162160
}

0 commit comments

Comments
 (0)