Merge branch 'dev' of https://github.com/youzan/vant into dev

This commit is contained in:
陈嘉涵
2018-04-25 14:48:59 +08:00
107 changed files with 646 additions and 862 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
&__area {
.van-cell__title {
width: 90px;
max-width: 90px;
}
.van-cell__value {
+17 -20
View File
@@ -1,7 +1,6 @@
@import './common/var.css';
.van-cell {
width: 100%;
display: flex;
padding: 10px 15px;
box-sizing: border-box;
@@ -24,31 +23,38 @@
background-color: $white;
}
&__left-icon {
font-size: 16px;
line-height: 1.5;
margin-right: 5px;
}
&__label {
font-size: 12px;
line-height: 1.2;
color: $gray-darker;
}
&__title,
&__value {
flex: 1;
}
&__value {
overflow: hidden;
text-align: right;
vertical-align: middle;
overflow: hidden;
&--alone {
text-align: left;
}
}
&__left-icon {
font-size: 16px;
line-height: 24px;
margin-right: 5px;
}
&--link {
padding-right: 15px;
}
&__right-icon {
color: $gray-dark;
font-size: 12px;
line-height: 24px;
margin-left: 5px;
}
&--clickable {
@@ -72,13 +78,4 @@
&--center {
align-items: center;
}
&__right-icon {
position: absolute;
top: 50%;
right: 15px;
transform: translateY(-50%);
color: $gray-dark;
font-size: 12px;
}
}
+2 -2
View File
@@ -17,7 +17,7 @@
box-sizing: border-box;
}
&__filed {
&__field {
margin: 10px 0;
padding: 4px 10px 4px 25px;
@@ -77,7 +77,7 @@
}
}
&--with-exchange {
&__list--with-exchange {
padding-top: 60px;
}
+1 -1
View File
@@ -36,7 +36,7 @@
&__footer {
overflow: hidden;
&.is-twobtn {
&--buttons {
display: flex;
.van-button {
+1 -1
View File
@@ -2,7 +2,7 @@
.van-field {
.van-cell__title {
min-width: 90px;
max-width: 90px;
}
.van-cell__value {
+3 -3
View File
@@ -7,7 +7,7 @@
display: flex;
position: fixed;
&__big-btn {
&-big-btn {
flex: 1;
padding: 0;
@@ -16,7 +16,7 @@
}
}
&__mini-btn {
&-mini-btn {
color: $gray-darker;
display: flex;
height: 50px;
@@ -40,7 +40,7 @@
background-color: $active-color;
}
&-icon {
&__icon {
font-size: 20px;
margin-bottom: 5px;
}
+1 -1
View File
@@ -34,7 +34,7 @@
line-height: 1;
}
&__content-wrap {
&__wrap {
flex: 1;
height: 18px;
overflow: hidden;
+22 -28
View File
@@ -28,31 +28,27 @@
&:last-child::after {
border-right-width: 1px;
}
}
&__prev,
&__next {
&.van-pagination__item {
padding: 0 5px;
}
}
&__page {
flex-grow: 0;
&.van-pagination--active {
background-color: $blue;
color: $white;
}
}
&--disabled {
&.van-pagination__item {
&--disabled,
&--disabled:active {
background-color: $background-color;
color: $gray-darker;
opacity: 0.6;
}
&--active {
color: $white;
background-color: $blue;
}
}
&__prev,
&__next {
padding: 0 5px;
}
&__page {
flex-grow: 0;
}
&__page-desc {
@@ -60,15 +56,13 @@
height: 40px;
color: $gray-darker;
}
}
.van-pagination-simple {
.van-pagination__prev,
.van-pagination__next {
&.van-pagination__item::after {
border-width: 1px;
&--simple {
.van-pagination__prev,
.van-pagination__next {
&::after {
border-width: 1px;
}
}
}
}
+3 -19
View File
@@ -4,25 +4,9 @@
background: $white;
&__header {
padding: 10px 15px;
}
&__title {
font-size: 14px;
color: $text-color;
}
&__desc {
font-size: 12px;
color: $gray-darker;
}
&__status {
font-size: 14px;
position: absolute;
top: 10px;
right: 15px;
color: $red;
.van-cell__value {
color: $red;
}
}
&__footer {
+8 -7
View File
@@ -5,6 +5,7 @@
user-select: none;
position: relative;
background-color: $white;
-webkit-text-size-adjust: 100%; /* avoid iOS text size adjust */
&__toolbar {
display: flex;
@@ -64,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;
}
}
}
}
+2 -2
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;
+1 -1
View File
@@ -164,7 +164,7 @@
&__image-cell {
.van-cell__title {
width: 90px;
max-width: 90px;
}
.van-cell__value {
text-align: left;
+16 -28
View File
@@ -1,41 +1,29 @@
@import './common/var.css';
$c-slider-background: #cacaca;
$c-pivot-border: #fff;
.van-slider {
&--disabled {
opacity: .3;
.van-slider__pivot {
cursor: not-allowed;
}
}
position: relative;
border-radius: 999px;
background-color: $border-color;
&__bar {
position: relative;
margin: 0 15px;
height: 4px;
border-radius: 5px;
background: $c-slider-background;
border-radius: inherit;
background-color: $blue;
}
&__loaded-portion,
&__finished-portion {
border-radius: 5px;
height: 100%;
position: absolute;
left: 0;
}
&__pivot {
&__button {
position: absolute;
top: 50%;
width: 16px;
height: 16px;
border: 3px solid $c-pivot-border;
box-shadow: 0 1px 4px;
right: 0;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: $c-slider-background;
transform: translate3d(0, -50%, 0);
background-color: $white;
transform: translate3d(50%, -50%, 0);
box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
&--disabled {
opacity: .3;
}
}
+2 -4
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;
}
+14 -15
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;
}
}
}
+16 -16
View File
@@ -22,6 +22,22 @@ $van-tabs-card-height: 30px;
top: auto;
bottom: 0;
}
&--scrollable {
.van-tab {
flex: 0 0 22%;
}
.van-tabs__nav {
overflow: hidden;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar {
display: none;
}
}
}
}
&__nav {
@@ -69,22 +85,6 @@ $van-tabs-card-height: 30px;
background-color: $red;
}
&--scrollable {
.van-tab {
flex: 0 0 22%;
}
.van-tabs__nav {
overflow: hidden;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
&::-webkit-scrollbar {
display: none;
}
}
}
&--line {
padding-top: $van-tabs-line-height;
+1 -1
View File
@@ -31,7 +31,7 @@
display: block;
}
&-dot {
&--dot {
&::after {
top: 0;
right: -8px;