Browse Source
* add stylelint shareable config for css modules * fix CSS pseudo element with double colon * support stylelint declaration-block-no-ignored-properties rule * support sorted CSS properties order for readability and consistency * autofix order of all styles by lint:fix script * fix propTypes error of TagSelect component * Revert "autofix order of all styles by lint:fix script" This reverts commitpull/3528/head51cb9d055f. * Revert "support sorted CSS properties order for readability and consistency" This reverts commitff6c24d263. * make lint:fix work for stylelint * Revert "Revert "autofix order of all styles by lint:fix script"" This reverts commit946ed0a351. * Revert "Revert "support sorted CSS properties order for readability and consistency"" This reverts commit31b557e382.
committed by
陈帅
58 changed files with 425 additions and 415 deletions
@ -1,9 +1,13 @@ |
|||||
{ |
{ |
||||
"extends": ["stylelint-config-standard", "stylelint-config-prettier"], |
"extends": [ |
||||
|
"stylelint-config-standard", |
||||
|
"stylelint-config-css-modules", |
||||
|
"stylelint-config-rational-order", |
||||
|
"stylelint-config-prettier" |
||||
|
], |
||||
|
"plugins": ["stylelint-order", "stylelint-declaration-block-no-ignored-properties"], |
||||
"rules": { |
"rules": { |
||||
"declaration-empty-line-before": null, |
|
||||
"no-descending-specificity": null, |
"no-descending-specificity": null, |
||||
"selector-pseudo-class-no-unknown": null, |
"plugin/declaration-block-no-ignored-properties": true |
||||
"selector-pseudo-element-colon-notation": null |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,17 +1,17 @@ |
|||||
@import '~antd/lib/style/themes/default.less'; |
@import '~antd/lib/style/themes/default.less'; |
||||
|
|
||||
.field { |
.field { |
||||
white-space: nowrap; |
margin: 0; |
||||
overflow: hidden; |
overflow: hidden; |
||||
|
white-space: nowrap; |
||||
text-overflow: ellipsis; |
text-overflow: ellipsis; |
||||
margin: 0; |
|
||||
.label, |
.label, |
||||
.number { |
.number { |
||||
font-size: @font-size-base; |
font-size: @font-size-base; |
||||
line-height: 22px; |
line-height: 22px; |
||||
} |
} |
||||
.number { |
.number { |
||||
color: @heading-color; |
|
||||
margin-left: 8px; |
margin-left: 8px; |
||||
|
color: @heading-color; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,24 +1,24 @@ |
|||||
.ellipsis { |
.ellipsis { |
||||
overflow: hidden; |
|
||||
display: inline-block; |
display: inline-block; |
||||
word-break: break-all; |
|
||||
width: 100%; |
width: 100%; |
||||
|
overflow: hidden; |
||||
|
word-break: break-all; |
||||
} |
} |
||||
|
|
||||
.lines { |
.lines { |
||||
position: relative; |
position: relative; |
||||
.shadow { |
.shadow { |
||||
display: block; |
|
||||
position: absolute; |
position: absolute; |
||||
|
z-index: -999; |
||||
|
display: block; |
||||
color: transparent; |
color: transparent; |
||||
opacity: 0; |
opacity: 0; |
||||
z-index: -999; |
|
||||
} |
} |
||||
} |
} |
||||
|
|
||||
.lineClamp { |
.lineClamp { |
||||
position: relative; |
position: relative; |
||||
|
display: -webkit-box; |
||||
overflow: hidden; |
overflow: hidden; |
||||
text-overflow: ellipsis; |
text-overflow: ellipsis; |
||||
display: -webkit-box; |
|
||||
} |
} |
||||
|
|||||
@ -1,21 +1,21 @@ |
|||||
.themeColor { |
.themeColor { |
||||
overflow: hidden; |
|
||||
margin-top: 24px; |
margin-top: 24px; |
||||
|
overflow: hidden; |
||||
.title { |
.title { |
||||
font-size: 14px; |
margin-bottom: 12px; |
||||
color: rgba(0, 0, 0, 0.65); |
color: rgba(0, 0, 0, 0.65); |
||||
|
font-size: 14px; |
||||
line-height: 22px; |
line-height: 22px; |
||||
margin-bottom: 12px; |
|
||||
} |
} |
||||
.colorBlock { |
.colorBlock { |
||||
|
float: left; |
||||
width: 20px; |
width: 20px; |
||||
height: 20px; |
height: 20px; |
||||
border-radius: 2px; |
|
||||
float: left; |
|
||||
cursor: pointer; |
|
||||
margin-right: 8px; |
margin-right: 8px; |
||||
text-align: center; |
|
||||
color: #fff; |
color: #fff; |
||||
font-weight: bold; |
font-weight: bold; |
||||
|
text-align: center; |
||||
|
border-radius: 2px; |
||||
|
cursor: pointer; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,11 @@ |
|||||
@import '~antd/lib/style/themes/default.less'; |
@import '~antd/lib/style/themes/default.less'; |
||||
|
|
||||
.area_code { |
.area_code { |
||||
|
width: 30%; |
||||
max-width: 128px; |
max-width: 128px; |
||||
margin-right: 8px; |
margin-right: 8px; |
||||
width: 30%; |
|
||||
} |
} |
||||
.phone_number { |
.phone_number { |
||||
max-width: 312px; |
|
||||
width: ~'calc(70% - 8px)'; |
width: ~'calc(70% - 8px)'; |
||||
|
max-width: 312px; |
||||
} |
} |
||||
|
|||||
@ -1,8 +1,8 @@ |
|||||
@import '~antd/lib/style/themes/default.less'; |
@import '~antd/lib/style/themes/default.less'; |
||||
|
|
||||
.title { |
.title { |
||||
|
margin-bottom: 16px; |
||||
color: @heading-color; |
color: @heading-color; |
||||
font-size: 16px; |
|
||||
font-weight: 500; |
font-weight: 500; |
||||
margin-bottom: 16px; |
font-size: 16px; |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue