add Contact components

This commit is contained in:
陈嘉涵
2017-09-29 15:33:48 +08:00
parent bf68cf284d
commit 235ec89baa
14 changed files with 782 additions and 14 deletions

View File

@@ -0,0 +1,59 @@
@import './common/var.css';
.van-contact-card {
position: relative;
background-color: #fff;
&--add {
line-height: 40px;
.van-contact-card__icon {
color: $blue;
font-size: 40px;
}
}
&--edit {
.van-contact-card__icon {
font-size: 18px;
vertical-align: top;
}
}
&__content {
padding: 15px 10px;
}
&__icon,
&__text {
display: inline-block;
vertical-align: middle;
}
&__icon {
margin-right: 10px;
}
&__text {
line-height: 20px;
font-size: 14px;
}
&__arrow {
top: 50%;
right: 10px;
font-size: 12px;
position: absolute;
color: $gray-dark;
transform: translate3d(0, -50%, 0);
}
&::after {
content: ' ';
display: block;
width: 100%;
height: 2px;
background-image: url('data:image/false;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAAECAYAAAA3S5neAAAAAXNSR0IArs4c6QAAAIpJREFUOBHF0iESg1AMBNDshx4H0+EUSCxnQKBAVDIMjhnOgO8NOADTI7V/CcjU58ckq/aJQHTYto2u7bpdB3hjXWvb+Ry/jTC6e6CeQBIK6i3KJWfZbHsuDxiTeCCcc+m6SlGFhTnkHcty2J5y+lVM4NHv2D+vxxEkxsGiXHIIf99x95JJPIDcnhMVeyVty5S/SAAAAABJRU5ErkJggg==');
background-size: 34px 2px;
}
}

View File

@@ -0,0 +1,21 @@
@import './common/var.css';
.van-contact-edit {
&__buttons {
padding: 20px 10px;
}
&__default {
.van-cell__title {
line-height: 31px;
}
.van-cell__value {
height: 31px;
}
}
.van-button {
margin-bottom: 10px;
}
}

View File

@@ -0,0 +1,58 @@
@import './common/var.css';
.van-contact-list {
height: 100%;
.van-cell__value {
color: $text-color;
padding-right: 34px;
position: relative;
}
.van-radio__label {
margin-left: 32px;
}
.van-radio__input {
top: 50%;
left: 0;
position: absolute;
transform: translate(0, -50%);
}
.van-icon-checked {
color: $blue;
}
&__text {
font-size: 14px;
color: #333;
line-height: 1.5;
}
&__edit {
position: absolute;
top: 50%;
right: 4px;
font-size: 24px;
color: $gray-dark;
transform: translate(0, -50%);
}
&__add {
position: fixed;
left: 0;
bottom: 0;
z-index: 9999;
padding-left: 15px;
.van-cell__text {
font-size: 16px;
}
.van-icon-add {
color: $blue;
font-size: 20px;
}
}
}

View File

@@ -52,8 +52,10 @@
/* business components */
@import './address-edit.css';
@import './address-list.css';
@import './contact-card.css';
@import './contact-list.css';
@import './contact-edit.css';
@import './coupon-list.css';
@import './goods-action.css';
@import './submit-bar.css';
@import './sku.css';
@import './contact-card.css';