Skip to content

Commit

Permalink
docs: enable stylelint declaration-block-no-duplicate-properties (#16466
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nschonni committed Nov 2, 2022
1 parent d03a8bf commit cc6128d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
4 changes: 3 additions & 1 deletion docs/.stylelintrc.json
Expand Up @@ -7,7 +7,9 @@
"color-hex-case": null,
"custom-property-empty-line-before": null,
"custom-property-pattern": null,
"declaration-block-no-duplicate-properties": null,
"declaration-block-no-duplicate-properties": [true, {
"ignore": ["consecutive-duplicates-with-different-values"]
}],
"declaration-block-no-redundant-longhand-properties": null,
"declaration-block-no-shorthand-property-overrides": null,
"hue-degree-notation": null,
Expand Down
2 changes: 1 addition & 1 deletion docs/src/assets/scss/carbon-ads.scss
Expand Up @@ -15,9 +15,9 @@
padding: .6em;
font-size: 1rem;
overflow: hidden;
border-radius: 4px;
background-color: var(--body-background-color);
border: 1px solid var(--border-color);
border-radius: 4px;
border-radius: var(--border-radius);
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.1);

Expand Down
1 change: 0 additions & 1 deletion docs/src/assets/scss/components/search.scss
Expand Up @@ -65,7 +65,6 @@
.search .search-results {
font-size: .875rem;
background-color: var(--body-background-color);
position: relative;
z-index: 10;
width: 100%;
border-radius: 0 0 var(--border-radius) var(--border-radius);
Expand Down
2 changes: 0 additions & 2 deletions docs/src/assets/scss/forms.scss
Expand Up @@ -25,7 +25,6 @@

.label__text.label__text {
display: flex;
font-size: .875rem;
align-items: center;
gap: .5rem;
font-size: .875rem;
Expand All @@ -44,7 +43,6 @@ input {
font: inherit;
font-size: 1rem;
display: block;
line-height: 1.3;
min-width: 0;
line-height: 1.3;
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/assets/scss/languages.scss
Expand Up @@ -13,10 +13,10 @@

a {
color: inherit;
display: block;
width: 100%;
padding: .75rem .1rem;
text-decoration: none;
display: block;
display: flex;
align-items: center;
border-bottom: 1px solid var(--divider-color);
Expand Down
1 change: 0 additions & 1 deletion docs/src/assets/scss/syntax-highlighter.scss
Expand Up @@ -36,7 +36,6 @@ pre[class*="language-"] {
padding: 1.5rem;
margin: 1.5rem 0;
overflow: auto;
background-color: var(--color-neutral-50);
border-radius: var(--border-radius);
background-color: var(--lightest-background-color);
color: var(--color-neutral-900);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/assets/scss/versions.scss
Expand Up @@ -14,10 +14,10 @@

a {
color: var(--link-color);
display: block;
width: 100%;
padding: 1rem .5rem;
text-decoration: none;
display: block;
display: flex;
align-items: center;
border-bottom: 1px solid var(--divider-color);
Expand Down

0 comments on commit cc6128d

Please sign in to comment.