liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
@import "../../base/fn";
@weuiActionSheetAndroidBorderRadius: 2px;
 
.weui-actionsheet {
    position: fixed;
    left: 0;
    bottom: 0;
    transform: translate(0, 100%);
    backface-visibility: hidden;
    z-index: 5000;
    width: 100%;
    background-color: @weuiBgColorDefault;
    //slide up animation
    transition: transform .3s;
}
.weui-actionsheet__menu{
    background-color: #FFFFFF;
}
.weui-actionsheet__action {
    margin-top: 6px;
    background-color: #FFFFFF;
}
.weui-actionsheet__cell {
    position: relative;
    padding: 10px 0;
    text-align: center;
    font-size: 18px;
    &:before {
        .setTopLine(@weuiCellBorderColor);
    }
    &:active{
        background-color: @weuiBgColorActive;
    }
    &:first-child{
        &:before{
            display: none;
        }
    }
}
 
 
//android actionSheet
.weui-skin_android{
    .weui-actionsheet {
        position: fixed;
        left: 50%;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        //padding: 0 40px;
        width: 274px;
        box-sizing: border-box;
        backface-visibility: hidden;
        background: transparent;
        //slide up animation
        transition: transform .3s;
    }
    .weui-actionsheet__action{
        display: none;
    }
    .weui-actionsheet__menu {
        border-radius: @weuiActionSheetAndroidBorderRadius;
        box-shadow: 0 6px 30px 0 rgba(0,0,0,.1);
    }
    .weui-actionsheet__cell {
        padding: 13px 24px;
        font-size: 16px;
        line-height: 1.4;
        text-align: left;
        &:first-child {
            border-top-left-radius: @weuiActionSheetAndroidBorderRadius;
            border-top-right-radius: @weuiActionSheetAndroidBorderRadius;
        }
        &:last-child {
            border-bottom-left-radius: @weuiActionSheetAndroidBorderRadius;
            border-bottom-right-radius: @weuiActionSheetAndroidBorderRadius;
        }
    }
}
 
//actionSheet aniamtion
.weui-actionsheet_toggle{
    transform: translate(0, 0);
}