m_step.less
1.5 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
/***************************************************
* feature : 商品详情页,阶梯价格;
* update : 2015/02/03;
* use : ;
* 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-step{
overflow: hidden;
position: relative;
padding: 12px 0;
&:before, &:after{
content: '';
position: absolute;
left: 0;
right: 6px;
top: 50%;
height: 3px;
background-color: #ddd;
margin-top: -1px;
}
&:after{
left: auto;
right: -4px;
border: 8px solid #ddd;
border-color: transparent transparent transparent #ddd;
background: none;
width: 0;
height: 0;
margin-top: -7px;
font-size: 0;
}
li{
float: left;
text-align: left;
padding: 0 5px;
position: relative;
// width: 33.3%;
min-width: 85px;
box-sizing: border-box;
&:before{
content: '';
position: absolute;
width: 7px;
height: 7px;
border: 2px solid #FFF;
background-color: #DDD;
font-size: 0;
overflow: hidden;
top: 50%;
// margin-left: -2px;
margin-top: -5px;
border-radius: 50%;
box-shadow: 0 0 1px #ddd;
}
}
.text{
font-size: 14px;
color: #6c2;
display: block;
padding-bottom: 7px;
}
.desc{
font-size: 12px;
color: #999;
display: block;
padding-top: 7px;
}
}