mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[breaking change] Cell: show active color when clicked (#497)
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
&__edit {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 4px;
|
||||
right: 15px;
|
||||
font-size: 20px;
|
||||
color: $gray-dark;
|
||||
transform: translate(0, -50%);
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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%);
|
||||
}
|
||||
|
@@ -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 {
|
||||
|
@@ -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');
|
||||
}
|
@@ -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 {
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user