/
index.less
138 lines (121 loc) 路 2.81 KB
/
index.less
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
@import '../../style/mixins';
@import '../../style/themes/default';
@ActionSheetPrefixCls: am-action-sheet;
@import './base';
.@{ActionSheetPrefixCls} {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: @fill-base;
&&-share {
background-color: #f2f2f2;
}
&-title,
&-message {
margin: @h-spacing-lg auto;
padding: 0 @h-spacing-lg;
text-align: center;
}
&-title {
font-size: @font-size-heading;
}
&-message {
color: @color-text-caption;
font-size: @font-size-base;
}
&-button-list {
text-align: center;
color: @color-text-base;
&-item {
font-size: @actionsheet-item-font-size;
padding: 0;
margin: 0;
position: relative;
height: @actionsheet-item-height;
line-height: @actionsheet-item-height;
box-sizing: border-box;
white-space: nowrap;
text-overflow: ellipsis;
.hairline('top');
&&-active {
background-color: @fill-tap;
}
}
&-badge {
display: flex;
align-items: center;
justify-content: center;
.am-badge {
margin-left: 8 * @hd;
flex-shrink: 0;
}
}
&-item-content {
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.@{ActionSheetPrefixCls}-cancel-button {
padding-top: @v-spacing-sm;
position: relative;
&-mask {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: @v-spacing-sm;
background-color: #e7e7ed;
.hairline('top');
.hairline('bottom');
}
}
.@{ActionSheetPrefixCls}-destructive-button {
color: @brand-error;
}
}
&-share {
&-list {
display: flex;
position: relative;
.hairline('top');
padding: @v-spacing-xl 0 @v-spacing-xl @h-spacing-lg;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
&-item {
flex: none;
margin: 0 12 * @hd 0 0;
&-icon {
margin-bottom: @v-spacing-md;
width: 60 * @hd;
height: 60 * @hd;
background-color: @fill-base;
border-radius: @radius-sm;
display: flex;
justify-content: center;
align-items: center;
}
&-title {
color: @color-text-caption;
font-size: @font-size-icontext;
text-align: center;
}
}
}
&-cancel-button {
height: @actionsheet-item-height;
line-height: @actionsheet-item-height;
text-align: center;
background-color: @fill-base;
color: @color-text-base;
font-size: @button-font-size;
position: relative;
.hairline('top');
box-sizing: border-box;
&&-active {
background-color: @fill-tap;
}
}
}
}