[breaking change] Cell: show active color when clicked (#497)

This commit is contained in:
neverland
2017-12-29 17:09:50 +08:00
committed by GitHub
parent b8ccd48648
commit 98ece3ab8f
15 changed files with 48 additions and 27 deletions

View File

@@ -47,7 +47,7 @@
&__edit {
position: absolute;
top: 50%;
right: 4px;
right: 15px;
font-size: 20px;
color: $gray-dark;
transform: translate(0, -50%);

View File

@@ -3,20 +3,21 @@
.van-cell {
width: 100%;
display: table;
padding: 10px 15px 10px 0;
padding: 10px 15px;
box-sizing: border-box;
line-height: 24px;
position: relative;
background-color: $white;
color: $text-color;
font-size: 14px;
overflow: hidden;
&:not(:last-child)::after {
left: 15px;
border-bottom-width: 1px;
}
&-group {
padding-left: 15px;
background-color: $white;
}
@@ -47,12 +48,18 @@
vertical-align: middle;
overflow: hidden;
&--alone {
text-align: left;
}
&--link {
padding-right: 20px;
}
}
&--alone {
text-align: left;
&--clickable {
&:active {
background-color: $active-color;
}
}

View File

@@ -38,8 +38,8 @@
&__edit {
position: absolute;
top: 50%;
right: 4px;
font-size: 24px;
right: 15px;
font-size: 20px;
color: $gray-dark;
transform: translate(0, -50%);
}

View File

@@ -1,20 +1,13 @@
@import './common/var.css';
.van-field {
width: 100%;
.van-cell__title,
.van-cell__value {
float: none;
box-sizing: border-box;
}
.van-cell__title {
width: 90px;
position: absolute;
top: 10px;
left: 0;
left: 15px;
}
.van-cell__value {

View File

@@ -2,5 +2,5 @@
font-style: normal;
font-weight: normal;
font-family: 'vant-icon';
src: url('./vant-icon-42d621.ttf') format('truetype');
src: url('./vant-icon-120564.ttf') format('truetype');
}

View File

@@ -4,7 +4,7 @@
font-style: normal;
font-weight: normal;
font-family: 'vant-icon';
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-42d621.ttf') format('truetype');
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-120564.ttf') format('truetype');
}
.van-icon {