m_table_view.less
2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/***************************************************
* feature : 表格视图, 提供类ios UITableView风格布局;
* update : 2015/02/03;
* use : .m-table-view;
* extend : ;
* example : ;
* desc : ;
* feedback : 此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
* - demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
@import "var";
.m-table-view-old{
background-color: #fff;
li{
padding: 15px;
// border-bottom: 1px solid #ddd;
}
.pic{
float: left;
width: 60px;
height: 60px;
margin-right: 13px;
}
h3{
font-size: 14px;
color: #FA4535;
margin-bottom: 4px;
}
p{
color: #999;
font-size: 12px;
}
}
.m-table-view{
width: 100%;
background-color: #FFF;
border-top: 1px solid #ddd;
margin-top: 10px;
.cell{
font-size: 14px;
padding: 11px 15px;
text-align: right;
border-bottom: 1px solid #ddd;
overflow: hidden;
position: relative;
}
.acc-icon{
position: relative;
.text{
padding-right: 15px;
}
&:after{
content: '';
position: absolute;
right: 10px;
top: 50%;
width: 10px;
height: 15px;
background: url("@{iconURI}arrow_rt@2x.png") center center no-repeat;
background-size: 10px;
margin-top: -7.5px;
}
}
.title{
font-size: 14px;
color: #333;
float: left;
font-weight: 400;
}
.text{
display: inline-block;
font-size: 14px;
color: #999;
}
.cell-extend{
padding: 11px 45px 11px 110px;
text-align: left;
.m-icon{
margin-right: 10px;
}
.title{
line-height: 36px;
margin-left: -95px;
display: inline-block;
float: none;
vertical-align: middle;
}
.text{
display: inline-block;
text-align: left;
padding: 0 10px;
font-size: 12px;
width: 100%;
box-sizing: border-box;
color: #999;
vertical-align: middle;
}
.acc{
position: absolute;
top: 50%;
right: 15px;
margin-top: -10px;
float: right;
width: 20px;
height: 20px;
}
}
.cell-extend-pic{
.cell-extend;
padding: 15px 85px;
text-align: left;
font-size: 12px;
.title{
margin-left: 0;
font-size: 12px;
text-align: left;
margin: 0 0 5px;
line-height: 1.5;
}
.detail{
color: #999;
font-size: 12px;
}
.pic{
width: 60px;
height: 60px;
float: left;
margin-left: -70px;
}
.text{
position: absolute;
right: 0;
top: 15px;
text-align: right;
color: #000;
font-size: 12px;
font-weight: 700;
width: 70px;
padding: 0 15px 0 0;
box-sizing: content-box;
em{
display: block;
font-style: normal;
}
}
}
}