Skip to content

Commit

Permalink
autofix order of all styles by lint:fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
laozhu committed Feb 11, 2019
1 parent ff6c24d commit 51cb9d0
Show file tree
Hide file tree
Showing 56 changed files with 394 additions and 391 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"build": "umi build",
"site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy && npm run docker:push",
"analyze": "cross-env ANALYZE=1 umi build",
"lint:style": "stylelint \"src/**/*.less\" --syntax less",
"lint:style": "stylelint 'src/**/*.less' --syntax less",
"lint:prettier": "check-prettier lint",
"lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier",
"lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
"lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js",
"tslint": "npm run tslint:fix",
Expand Down
8 changes: 4 additions & 4 deletions src/components/ActiveChart/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
}
.activeChartLegend {
position: relative;
font-size: 0;
margin-top: 8px;
height: 20px;
margin-top: 8px;
font-size: 0;
line-height: 20px;
span {
display: inline-block;
width: 33.33%;
font-size: 12px;
text-align: center;
width: 33.33%;
}
span:first-child {
text-align: left;
Expand All @@ -31,9 +31,9 @@
}
.dashedLine {
position: relative;
height: 1px;
top: -70px;
left: -3px;
height: 1px;

.line {
position: absolute;
Expand Down
16 changes: 8 additions & 8 deletions src/components/ArticleListContent/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@

.listContent {
.description {
line-height: 22px;
max-width: 720px;
line-height: 22px;
}
.extra {
color: @text-color-secondary;
margin-top: 16px;
color: @text-color-secondary;
line-height: 22px;
& > :global(.ant-avatar) {
vertical-align: top;
margin-right: 8px;
width: 20px;
height: 20px;
position: relative;
top: 1px;
width: 20px;
height: 20px;
margin-right: 8px;
vertical-align: top;
}
& > em {
margin-left: 16px;
color: @disabled-color;
font-style: normal;
margin-left: 16px;
}
}
}
Expand All @@ -30,8 +30,8 @@
.extra {
& > em {
display: block;
margin-left: 0;
margin-top: 8px;
margin-left: 0;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/AvatarList/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

.avatarItem {
display: inline-block;
font-size: @font-size-base;
margin-left: -8px;
width: @avatar-size-base;
height: @avatar-size-base;
margin-left: -8px;
font-size: @font-size-base;
:global {
.ant-avatar {
border: 1px solid #fff;
Expand Down
26 changes: 13 additions & 13 deletions src/components/Charts/ChartCard/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
position: relative;
.chartTop {
position: relative;
overflow: hidden;
width: 100%;
overflow: hidden;
}
.chartTopMargin {
margin-bottom: 12px;
Expand All @@ -26,45 +26,45 @@
}
}
.meta {
height: 22px;
color: @text-color-secondary;
font-size: @font-size-base;
line-height: 22px;
height: 22px;
}
.action {
cursor: pointer;
position: absolute;
top: 4px;
right: 0;
line-height: 1;
cursor: pointer;
}
.total {
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
white-space: nowrap;
color: @heading-color;
height: 38px;
margin-top: 4px;
margin-bottom: 0;
overflow: hidden;
color: @heading-color;
font-size: 30px;
line-height: 38px;
height: 38px;
white-space: nowrap;
text-overflow: ellipsis;
word-break: break-all;
}
.content {
margin-bottom: 12px;
position: relative;
width: 100%;
margin-bottom: 12px;
}
.contentFixed {
position: absolute;
left: 0;
bottom: 0;
left: 0;
width: 100%;
}
.footer {
border-top: 1px solid @border-color-split;
padding-top: 9px;
margin-top: 8px;
padding-top: 9px;
border-top: 1px solid @border-color-split;
& > * {
position: relative;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Charts/Field/index.less
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
@import '~antd/lib/style/themes/default.less';

.field {
white-space: nowrap;
margin: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin: 0;
.label,
.number {
font-size: @font-size-base;
line-height: 22px;
}
.number {
color: @heading-color;
margin-left: 8px;
color: @heading-color;
}
}
14 changes: 7 additions & 7 deletions src/components/Charts/MiniProgress/index.less
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
@import '~antd/lib/style/themes/default.less';

.miniProgress {
padding: 5px 0;
position: relative;
width: 100%;
padding: 5px 0;
.progressWrap {
background-color: @background-color-base;
position: relative;
background-color: @background-color-base;
}
.progress {
transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
border-radius: 1px 0 0 1px;
background-color: @primary-color;
width: 0;
height: 100%;
background-color: @primary-color;
border-radius: 1px 0 0 1px;
transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
}
.target {
position: absolute;
top: 0;
bottom: 0;
span {
border-radius: 100px;
position: absolute;
top: 0;
left: 0;
height: 4px;
width: 2px;
height: 4px;
border-radius: 100px;
}
span:last-child {
top: auto;
Expand Down
36 changes: 18 additions & 18 deletions src/components/Charts/Pie/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,38 @@
}
.legend {
position: absolute;
top: 50%;
right: 0;
min-width: 200px;
top: 50%;
transform: translateY(-50%);
margin: 0 20px;
list-style: none;
padding: 0;
list-style: none;
transform: translateY(-50%);
li {
cursor: pointer;
margin-bottom: 16px;
height: 22px;
margin-bottom: 16px;
line-height: 22px;
cursor: pointer;
&:last-child {
margin-bottom: 0;
}
}
}
.dot {
border-radius: 8px;
display: inline-block;
margin-right: 8px;
position: relative;
top: -1px;
height: 8px;
display: inline-block;
width: 8px;
height: 8px;
margin-right: 8px;
border-radius: 8px;
}
.line {
background-color: @border-color-split;
display: inline-block;
margin-right: 8px;
width: 1px;
height: 16px;
margin-right: 8px;
background-color: @border-color-split;
}
.legendTitle {
color: @text-color;
Expand All @@ -58,24 +58,24 @@
}
.total {
position: absolute;
left: 50%;
top: 50%;
text-align: center;
left: 50%;
max-height: 62px;
text-align: center;
transform: translate(-50%, -50%);
& > h4 {
color: @text-color-secondary;
font-size: 14px;
line-height: 22px;
height: 22px;
margin-bottom: 8px;
color: @text-color-secondary;
font-weight: normal;
font-size: 14px;
line-height: 22px;
}
& > p {
color: @heading-color;
display: block;
font-size: 1.2em;
height: 32px;
color: @heading-color;
font-size: 1.2em;
line-height: 32px;
white-space: nowrap;
}
Expand Down
22 changes: 11 additions & 11 deletions src/components/Charts/Radar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,42 @@
margin-top: 16px;
.legendItem {
position: relative;
text-align: center;
cursor: pointer;
color: @text-color-secondary;
line-height: 22px;
text-align: center;
cursor: pointer;
p {
margin: 0;
}
h6 {
color: @heading-color;
margin-top: 4px;
margin-bottom: 0;
padding-left: 16px;
color: @heading-color;
font-size: 24px;
line-height: 32px;
margin-top: 4px;
margin-bottom: 0;
}
&::after {
background-color: @border-color-split;
position: absolute;
top: 8px;
right: 0;
height: 40px;
width: 1px;
height: 40px;
background-color: @border-color-split;
content: '';
}
}
> :last-child .legendItem::after {
display: none;
}
.dot {
border-radius: 6px;
display: inline-block;
margin-right: 6px;
position: relative;
top: -1px;
height: 6px;
display: inline-block;
width: 6px;
height: 6px;
margin-right: 6px;
border-radius: 6px;
}
}
}
8 changes: 4 additions & 4 deletions src/components/Charts/WaterWave/index.less
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
@import '~antd/lib/style/themes/default.less';

.waterWave {
display: inline-block;
position: relative;
display: inline-block;
transform-origin: left;
.text {
position: absolute;
left: 0;
top: 32px;
text-align: center;
left: 0;
width: 100%;
text-align: center;
span {
color: @text-color-secondary;
font-size: 14px;
line-height: 22px;
}
h4 {
color: @heading-color;
line-height: 32px;
font-size: 24px;
line-height: 32px;
}
}
.waterWaveCanvasWrapper {
Expand Down
Loading

0 comments on commit 51cb9d0

Please sign in to comment.