Skip to content

Commit 324db1a

Browse files
authored
docs: explicit stylelint color related rules (#16465)
* docs: legacy stylelint color-function-notation * docs: stylelint number alpha-value-notation * docs: stylelint number hue-degree-notation
1 parent 94dc4f1 commit 324db1a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/.stylelintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"extends": ["stylelint-config-standard-scss"],
33
"rules": {
4-
"alpha-value-notation": null,
4+
"alpha-value-notation": "number",
55
"at-rule-empty-line-before": null,
6-
"color-function-notation": null,
6+
"color-function-notation": "legacy",
77
"color-hex-case": null,
88
"custom-property-empty-line-before": null,
99
"custom-property-pattern": null,
@@ -12,7 +12,7 @@
1212
}],
1313
"declaration-block-no-redundant-longhand-properties": null,
1414
"declaration-block-no-shorthand-property-overrides": null,
15-
"hue-degree-notation": null,
15+
"hue-degree-notation": "number",
1616
"indentation": 4,
1717
"max-line-length": null,
1818
"no-descending-specificity": null,

docs/src/assets/scss/carbon-ads.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
}
3232

3333
.jumbotron #carbonads {
34-
border: solid 1px hsla(250, 20%, 50%, .6);
35-
background-color: hsla(0, 0%, 70%, .15);
34+
border: solid 1px hsla(250, 20%, 50%, 0.6);
35+
background-color: hsla(0, 0%, 70%, 0.15);
3636
}
3737

3838
#carbonads a {

0 commit comments

Comments
 (0)