-
Notifications
You must be signed in to change notification settings - Fork 285
Expand file tree
/
Copy pathmodal.scss
More file actions
110 lines (96 loc) · 2.2 KB
/
modal.scss
File metadata and controls
110 lines (96 loc) · 2.2 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
@import '@devui/theme/styles-var/devui-var.scss';
.#{$devui-prefix}-modal {
position: fixed;
top: 50%;
left: 50%;
width: 300px;
border-radius: $devui-border-radius-card;
border: none;
opacity: 1;
transform: translate(-50%, -50%);
background-color: $devui-fullscreen-overlay-bg;
background-clip: padding-box;
outline: 0;
box-shadow: $devui-shadow-length-fullscreen-overlay $devui-shadow;
z-index: $devui-z-index-modal;
.btn-close {
position: absolute;
right: 20px;
top: 18px;
-webkit-appearance: none;
z-index: calc(var(--devui-z-index-model, 1050) + 1);
}
.type-content {
display: flex;
align-items: center;
&-icon {
display: flex;
align-items: center;
justify-content: center;
vertical-align: middle;
margin-right: 8px;
width: 24px;
height: 24px;
line-height: 16px;
}
&-text {
font-weight: 700;
vertical-align: middle;
font-size: 18px;
}
}
}
.#{$devui-prefix}-modal-content {
background: $devui-fullscreen-overlay-bg;
border-radius: $devui-border-radius;
}
.#{$devui-prefix}-modal__header {
width: 100%;
height: 46px;
line-height: 26px;
padding: 20px 20px 0;
font-size: $devui-font-size-modal-title;
font-weight: bold;
letter-spacing: 0;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
user-select: none;
.header-alert-icon {
display: inline-block;
vertical-align: middle;
margin-right: 8px;
line-height: 16px;
text-align: center;
}
}
.#{$devui-prefix}-modal__body {
padding: 20px;
font-size: $devui-font-size;
color: $devui-text-weak;
box-sizing: border-box;
}
.#{$devui-prefix}-modal__footer {
width: 100%;
border-top: none;
text-align: center;
padding: 0 20px 20px 20px;
box-sizing: border-box;
&>* {
margin: 0 4px;
}
}
.#{$devui-prefix}-modal--wipe {
&-enter-active {
transition: opacity 0.1s cubic-bezier(0.16, 0.75, 0.5, 1), top 0.1s cubic-bezier(0, 0, 1, 1);
}
&-leave-active {
transition: opacity 0.1s cubic-bezier(0.5, 0, 0.84, 0.25), top 0.1s cubic-bezier(0, 0, 1, 1);
}
&-enter-from,
&-leave-to {
opacity: 0.2;
top: calc(50% - 24px);
}
}