[build] add stylelint-config-rational-order plugin

This commit is contained in:
陈嘉涵
2019-05-09 19:00:53 +08:00
parent 21589c9b9f
commit ba4f02b9b4
64 changed files with 571 additions and 442 deletions

View File

@@ -1,17 +1,17 @@
@import '../style/var';
.van-step {
flex: 1;
font-size: 14px;
position: relative;
flex: 1;
color: @gray-dark;
font-size: 14px;
&__circle {
display: block;
width: 5px;
height: 5px;
border-radius: 50%;
background-color: @gray-dark;
border-radius: 50%;
}
&--horizontal {
@@ -19,8 +19,8 @@
&:first-child {
.van-step__title {
transform: none;
margin-left: 0;
transform: none;
}
}
@@ -30,13 +30,13 @@
width: auto;
.van-step__title {
transform: none;
margin-left: 0;
transform: none;
}
.van-step__circle-container {
left: auto;
right: -9px;
left: auto;
}
}
@@ -44,27 +44,27 @@
position: absolute;
top: 30px;
left: -8px;
padding: 0 8px;
z-index: 1;
padding: 0 8px;
background-color: @white;
transform: translateY(-50%);
}
.van-step__title {
display: inline-block;
font-size: 12px;
margin-left: 3px;
font-size: 12px;
transform: translateX(-50%);
@media(max-width: 321px) {
@media (max-width: 321px) {
font-size: 11px;
}
}
.van-step__line {
position: absolute;
left: 0;
top: 30px;
left: 0;
width: 100%;
height: 1px;
background-color: @border-color;
@@ -81,11 +81,11 @@
}
&--vertical {
float: none;
display: block;
float: none;
padding: 10px 10px 10px 0;
font-size: 14px;
line-height: 18px;
padding: 10px 10px 10px 0;
&:not(:last-child)::after {
border-bottom-width: 1px;
@@ -93,24 +93,24 @@
&:first-child {
&::before {
content: '';
position: absolute;
width: 1px;
height: 20px;
background-color: @white;
top: 0;
left: -15px;
z-index: 1;
width: 1px;
height: 20px;
background-color: @white;
content: '';
}
}
.van-step__circle-container {
position: absolute;
z-index: 2;
top: 19px;
left: -15px;
line-height: 1;
z-index: 2;
font-size: 12px;
line-height: 1;
transform: translate(-50%, -50%);
}