-
Notifications
You must be signed in to change notification settings - Fork 297
Expand file tree
/
Copy pathactionsheet.scss
More file actions
91 lines (84 loc) · 1.89 KB
/
actionsheet.scss
File metadata and controls
91 lines (84 loc) · 1.89 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
@import '../popup/popup.scss';
.nut-actionsheet {
text-align: center;
box-sizing: border-box;
padding: 16px;
.nut-popup-title {
padding: 0;
}
width: 100%;
&-bottom {
padding-bottom: 34px;
}
&.nut-popup {
min-height: 10%;
background-color: $actionsheet-background-color;
}
&-close-icon {
width: 16px;
height: 16px;
}
&-list {
display: block;
list-style: none;
padding: 0;
margin: 0;
border-radius: $actionsheet-border-radius;
}
&-cancel,
&-item {
display: block;
text-align: $actionsheet-item-text-align;
line-height: $actionsheet-item-line-height;
font-size: $font-size-base;
color: $actionsheet-item-color;
cursor: pointer;
&-border {
border-bottom: $actionsheet-item-border-bottom;
/* #ifdef harmony */
border-width: 1px;
/* #endif */
}
&-name {
text-align: $actionsheet-item-text-align;
line-height: $actionsheet-item-line-height;
font-size: $font-size-base;
color: $actionsheet-item-color;
}
&-description {
display: block;
font-size: $font-size-s;
color: $color-text;
text-align: $actionsheet-item-text-align;
line-height: $actionsheet-item-line-height;
}
&-danger {
color: $actionsheet-item-danger;
}
&-disabled {
color: $color-text-disabled !important;
cursor: not-allowed;
}
}
&-cancel {
border: 0.5px solid #c2c4cc;
/* #ifdef harmony */
border-width: 1px;
/* #endif */
border-radius: $actionsheet-border-radius;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
line-height: 40px;
color: $color-title;
margin-top: 16px;
}
&-safe-area {
display: block;
width: 100%;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
}