m_actionsheet.less
1.62 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
/***************************************************
* feature : actionSheet组件,模拟IOS actionSheet外观;
* update : 2015/02/03;
* use : .m-actionsheet;
* extend : .actionsheet-*;
* 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-actionsheet{
position: fixed;
left: 10px;
right: 10px;
bottom: 0;
padding-bottom: 10px;
z-index: 20;
-webkit-transform: translate(0, 100%) translateZ(0);
-ms-transform: translate(0, 100%) translateZ(0);
-o-transform: translate(0, 100%) translateZ(0);
transform: translate(0, 100%) translateZ(0);
-webkit-transition: -webkit-transform cubic-bezier(0.22, 0.61, 0.36, 1) .15s;
-moz-transition: -moz-transform cubic-bezier(0.22, 0.61, 0.36, 1) .15s;
-o-transition: -o-transform cubic-bezier(0.22, 0.61, 0.36, 1) .15s;
transition: transform cubic-bezier(0.22, 0.61, 0.36, 1) .15s;
ul{
list-style: none;
}
li{
line-height: 50px;
text-align: center;
background: rgba(255, 255, 255, .95);
border-top: 1px solid #ddd;
&:first-child{
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: none;
}
&:last-child{
margin-top: 10px;
border-radius: 8px;
border: none;
}
&.last-item{
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
a{
display: block;
color: #027aff;
font-size: 16px;
font-weight: 700;
text-decoration: none;
}
}
}