[Improvement] more component use bem mixin (#932)

This commit is contained in:
neverland
2018-04-24 23:33:51 +08:00
committed by GitHub
parent 91163b2f14
commit c012a65ba3
23 changed files with 110 additions and 119 deletions

View File

@@ -65,17 +65,17 @@
font-size: 17px;
text-align: center;
li {
&__item {
padding: 0 5px;
color: $gray-darker;
}
li&--selected {
color: $black;
}
&--selected {
color: $black;
}
li&--disabled {
opacity: .3;
&--disabled {
opacity: .3;
}
}
}
}

View File

@@ -10,7 +10,7 @@
padding-right: 0;
}
&__input-wrap {
&__wrap {
position: relative;
flex: 1;
height: 34px;
@@ -49,7 +49,7 @@
letter-spacing: 1px;
}
&__action-text {
&__cancel {
padding: 0 10px;
color: $green;

View File

@@ -11,7 +11,8 @@
}
}
&__stepper {
&__minus,
&__plus {
width: 40px;
height: 30px;
box-sizing: border-box;
@@ -42,10 +43,7 @@
bottom: 0;
background-color: #6c6c6c;
}
}
&__minus,
&__plus {
&:active {
background-color: $active-color;
}

View File

@@ -22,23 +22,22 @@ $van-swipe-indicator: 6px;
position: absolute;
height: $van-swipe-indicator;
transform: translate3d(-50%, 0, 0);
}
> i {
border-radius: 100%;
vertical-align: top;
display: inline-block;
background-color: $gray-dark;
width: $van-swipe-indicator;
height: $van-swipe-indicator;
&:not(:last-child) {
margin-right: $van-swipe-indicator;
}
&__indicator {
border-radius: 100%;
vertical-align: top;
display: inline-block;
background-color: $gray-dark;
width: $van-swipe-indicator;
height: $van-swipe-indicator;
&:not(:last-child) {
margin-right: $van-swipe-indicator;
}
.van-swipe__indicator {
&--active {
background-color: $orange;
}
&--active {
background-color: $orange;
}
}
}