Skip to content

Commit

Permalink
feat(stylelint): number-leading-zero deprecated (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Jul 12, 2023
1 parent 109db68 commit b9b0008
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/style/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
text-decoration: none;
margin-right: 24px;
cursor: pointer;
transition: color .2s cubic-bezier(.38, 0, .24, 1);
transition: color 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

.left-operation-container,
Expand Down Expand Up @@ -129,7 +129,7 @@
top: 0;
bottom: 0;
z-index: 200;
transition: all .3s;
transition: all 0.3s;
min-height: 100%;

&-mix {
Expand Down Expand Up @@ -176,19 +176,19 @@
&-logo-normal {
color: var(--td-brand-color);
font: var(--td-font-body-large);
transition: all .3s;
transition: all 0.3s;
}
}

&-side-nav-placeholder {
flex: 1 1 232px;
min-width: 232px;
transition: all .3s;
transition: all 0.3s;

&-hidden {
flex: 1 1 72px;
min-width: 72px;
transition: all .3s;
transition: all 0.3s;
}
}
}
Expand All @@ -207,7 +207,7 @@

.version-container {
color: var(--td-text-color-primary);
opacity: .4;
opacity: 0.4;
}

.t-menu__popup {
Expand Down
1 change: 0 additions & 1 deletion stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
extends: ['stylelint-config-standard'],
rules: {
'no-duplicate-selectors': null,
'number-leading-zero': 'never',
'block-no-empty': null,
'selector-class-pattern': null,
'declaration-block-no-redundant-longhand-properties': [true, { ignoreShorthands: ['/flex/'] }],
Expand Down

0 comments on commit b9b0008

Please sign in to comment.