@jsb188/css 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/_global.css +301 -351
- package/css/_sizing.css +582 -94
- package/css/alert.css +12 -46
- package/css/animate.css +144 -48
- package/css/form.css +96 -123
- package/css/layout.css +9 -1
- package/css/list.css +21 -33
- package/css/loading.css +17 -17
- package/css/misc.css +4 -4
- package/css/modal.css +6 -112
- package/css/popover.css +25 -6
- package/package.json +1 -1
package/css/alert.css
CHANGED
|
@@ -1,60 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
/* Modal
|
|
2
|
+
/* Modal cover for alerts & screens */
|
|
3
3
|
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
top: 0; right: 0; bottom: 0; left: 0;
|
|
7
|
-
opacity: 0;
|
|
8
|
-
transition: ease opacity .2s;
|
|
4
|
+
.bg_modal {
|
|
5
|
+
background: linear-gradient(360deg, rgba(var(--color-modal), 1) 0%, rgba(var(--color-modal), .5) 50%);
|
|
9
6
|
}
|
|
10
7
|
|
|
11
|
-
.
|
|
12
|
-
opacity: 1;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.modal_cover .main_content {
|
|
8
|
+
.modal_main_content {
|
|
16
9
|
cursor: auto;
|
|
17
|
-
box-shadow: var(--shadow-float);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.alert_shadow {
|
|
21
|
-
box-shadow: 0 0 0 8px var(--color-bg-active), 0 15px 25px rgba(0,0,0,.1) !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.modal_cover.p_m .scr_area {
|
|
25
|
-
max-height: calc(100vh - var(--rem-medium) - var(--rem-medium));
|
|
26
10
|
}
|
|
27
11
|
|
|
28
|
-
|
|
29
|
-
max-height: calc(100vh - var(--rem-default) - var(--rem-default));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.modal_cover .main_content.full {
|
|
33
|
-
box-shadow: var(--shadow-float-full);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Close button inside modals */
|
|
37
|
-
|
|
38
|
-
.m_close {
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: var(--rem-default);
|
|
41
|
-
right: var(--rem-default);
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
12
|
+
/* Alert black-to-transparent background */
|
|
44
13
|
|
|
45
|
-
.
|
|
46
|
-
background-color: var(--color-
|
|
14
|
+
.bg_modal_alert_w_screen {
|
|
15
|
+
background-color: rgba(var(--color-darker-rgb), .075);
|
|
47
16
|
}
|
|
48
17
|
|
|
49
|
-
/*
|
|
18
|
+
/* Different outlines + shadows for each modal type */
|
|
50
19
|
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
padding: var(--rem-default);
|
|
54
|
-
margin-bottom: var(--rem-small);
|
|
20
|
+
.alert_shadow_default {
|
|
21
|
+
box-shadow: 0 0 20px rgb(var(--color-modal));
|
|
55
22
|
}
|
|
56
23
|
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
right: var(--rem-xsmall);
|
|
24
|
+
.alert_shadow_error {
|
|
25
|
+
box-shadow: 0 8px 15px rgba(0,0,0,.07), 0 0 0 4px rgba(var(--color-error), .5), 0 0 20px rgba(var(--color-error), .1);
|
|
60
26
|
}
|
package/css/animate.css
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
/* Dropdown from top */
|
|
3
3
|
|
|
4
|
-
.anim_dropdown_top .target, .anim_dropdown_top.target {
|
|
5
|
-
transition-property: transform;
|
|
4
|
+
.anim_dropdown_top .target:not(.anim_inner), .anim_dropdown_top.target {
|
|
5
|
+
transition-property: transform, opacity;
|
|
6
6
|
transition-timing-function: ease-out;
|
|
7
7
|
transition-duration: 125ms;
|
|
8
8
|
transform-origin: top right;
|
|
9
|
-
|
|
9
|
+
/* Scale transformation is a little less if from top without left-right direction */
|
|
10
|
+
transform: translate(0, -10px) scale(.97);
|
|
10
11
|
opacity: 0;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
.anim_dropdown_top.visible .target, .anim_dropdown_top.visible.target {
|
|
14
|
+
.anim_dropdown_top.visible .target:not(.anim_inner), .anim_dropdown_top.visible.target {
|
|
14
15
|
transform: translate(0, 0) scale(1);
|
|
15
16
|
opacity: 1;
|
|
16
17
|
}
|
|
@@ -23,14 +24,14 @@
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
@keyframes keyframes_dropdown_top {
|
|
26
|
-
from { transform: translate(0, -10px) scale(.
|
|
27
|
+
from { transform: translate(0, -10px) scale(.97); opacity: 0; }
|
|
27
28
|
to { transform: translate(0, 0) scale(1); opacity: 1; }
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
/* Dropdown from top left corner */
|
|
31
32
|
|
|
32
|
-
.anim_dropdown_top_left .target, .anim_dropdown_top_left.target {
|
|
33
|
-
transition-property: transform;
|
|
33
|
+
.anim_dropdown_top_left .target:not(.anim_inner), .anim_dropdown_top_left.target {
|
|
34
|
+
transition-property: transform, opacity;
|
|
34
35
|
transition-timing-function: ease-out;
|
|
35
36
|
transition-duration: 125ms;
|
|
36
37
|
transform-origin: top left;
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
opacity: 0;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
.anim_dropdown_top_left.visible .target, .anim_dropdown_top_left.visible.target {
|
|
42
|
+
.anim_dropdown_top_left.visible .target:not(.anim_inner), .anim_dropdown_top_left.visible.target {
|
|
42
43
|
transform: translate(0, 0) scale(1);
|
|
43
44
|
opacity: 1;
|
|
44
45
|
}
|
|
@@ -57,23 +58,23 @@
|
|
|
57
58
|
|
|
58
59
|
/* Dropdown from top right corner */
|
|
59
60
|
|
|
60
|
-
.anim_dropdown_top_right .target, .anim_dropdown_top_right.target {
|
|
61
|
-
transition-property: transform;
|
|
61
|
+
.anim_dropdown_top_right .target:not(.anim_inner), .anim_dropdown_top_right.target {
|
|
62
|
+
transition-property: transform, opacity;
|
|
62
63
|
transition-timing-function: ease-out;
|
|
63
|
-
transition-duration:
|
|
64
|
+
transition-duration: 100ms;
|
|
64
65
|
transform-origin: top right;
|
|
65
66
|
transform: translate(2px, -10px) scale(.95);
|
|
66
67
|
opacity: 0;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
.anim_dropdown_top_right.visible .target, .anim_dropdown_top_right.visible.target {
|
|
70
|
+
.anim_dropdown_top_right.visible .target:not(.anim_inner), .anim_dropdown_top_right.visible.target {
|
|
70
71
|
transform: translate(0, 0) scale(1);
|
|
71
72
|
opacity: 1;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.anim_dropdown_top_right.on_mount, .anim_dropdown_top_right.reverse {
|
|
75
76
|
animation-name: keyframes_dropdown_top_right;
|
|
76
|
-
animation-duration:
|
|
77
|
+
animation-duration: 100ms;
|
|
77
78
|
animation-timing-function: ease-out;
|
|
78
79
|
animation-fill-mode: both;
|
|
79
80
|
}
|
|
@@ -83,76 +84,183 @@
|
|
|
83
84
|
to { transform: translate(0, 0) scale(1); opacity: 1; }
|
|
84
85
|
}
|
|
85
86
|
|
|
87
|
+
/* Very simple opacity-appear */
|
|
88
|
+
|
|
89
|
+
.anim_appear .target:not(.anim_inner), .anim_appear.target {
|
|
90
|
+
transition-property: transform, opacity;
|
|
91
|
+
transition-timing-function: ease-out;
|
|
92
|
+
transition-duration: 200ms;
|
|
93
|
+
opacity: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.anim_appear.visible .target:not(.anim_inner), .anim_appear.visible.target {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.anim_appear.on_mount, .anim_appear.reverse {
|
|
101
|
+
animation-name: keyframes_anim_appear;
|
|
102
|
+
animation-duration: 200ms;
|
|
103
|
+
animation-timing-function: ease-out;
|
|
104
|
+
animation-fill-mode: both;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes keyframes_anim_appear {
|
|
108
|
+
from { opacity: 0; }
|
|
109
|
+
to { opacity: 1; }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Shift-appear up */
|
|
113
|
+
|
|
114
|
+
.anim_move_up_center .target:not(.anim_inner), .anim_move_up_center.target {
|
|
115
|
+
transition-property: transform, opacity;
|
|
116
|
+
transition-timing-function: ease-out;
|
|
117
|
+
transition-duration: 200ms;
|
|
118
|
+
transform: translateY(20%);
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.anim_move_up_center.visible .target:not(.anim_inner), .anim_move_up_center.visible.target {
|
|
123
|
+
transform: translateY(0);
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.anim_move_up_center.on_mount, .anim_move_up_center.reverse {
|
|
128
|
+
animation-name: keyframes_shift_appear_center;
|
|
129
|
+
animation-duration: 200ms;
|
|
130
|
+
animation-timing-function: ease-out;
|
|
131
|
+
animation-fill-mode: both;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@keyframes keyframes_shift_appear_center {
|
|
135
|
+
/* NOTE: This is double opacity animation because of modal container + content animation; */
|
|
136
|
+
/* but having 2 opacity transitions made it smoother */
|
|
137
|
+
from { transform: translateY(20%); opacity: 0; }
|
|
138
|
+
to { transform: translateY(0); opacity: 1; }
|
|
139
|
+
}
|
|
140
|
+
|
|
86
141
|
/* Lift up & expand (scale transform) from sunken position */
|
|
87
142
|
|
|
88
|
-
.
|
|
89
|
-
transition-property: transform;
|
|
143
|
+
.anim_lift_scale_center .target:not(.anim_inner), .anim_lift_scale_center.target {
|
|
144
|
+
transition-property: transform, opacity;
|
|
90
145
|
transition-timing-function: ease-out;
|
|
91
146
|
transition-duration: 250ms;
|
|
92
|
-
transform: translateY(100%) scale(.
|
|
147
|
+
transform: translateY(100%) scale(.85);
|
|
93
148
|
opacity: 0;
|
|
94
149
|
}
|
|
95
150
|
|
|
96
|
-
.
|
|
151
|
+
.anim_lift_scale_center.visible .target:not(.anim_inner), .anim_lift_scale_center.visible.target {
|
|
97
152
|
transform: translateY(0) scale(1);
|
|
98
153
|
opacity: 1;
|
|
99
154
|
}
|
|
100
155
|
|
|
101
|
-
.
|
|
102
|
-
animation-name:
|
|
156
|
+
.anim_lift_scale_center.on_mount, .anim_lift_scale_center.reverse {
|
|
157
|
+
animation-name: keyframes_lift_scale_center;
|
|
103
158
|
animation-duration: 250ms;
|
|
104
159
|
animation-timing-function: ease-out;
|
|
105
160
|
animation-fill-mode: both;
|
|
106
161
|
}
|
|
107
162
|
|
|
108
|
-
|
|
109
|
-
.anim_lift_center.on_mount.spd_2 { animation-duration: 700ms; }
|
|
110
|
-
.anim_lift_center.on_mount.spd_3 { animation-duration: 2000ms; }
|
|
111
|
-
|
|
112
|
-
@keyframes keyframes_lift_center {
|
|
163
|
+
@keyframes keyframes_lift_scale_center {
|
|
113
164
|
from { transform: translateY(100%) scale(.9); opacity: 0; }
|
|
114
165
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
115
166
|
}
|
|
116
167
|
|
|
117
168
|
/* Drop down & expand (scale transform) from elevated position (no fade) */
|
|
118
169
|
|
|
119
|
-
.anim_drop_center .target, .anim_drop_center.target {
|
|
170
|
+
.anim_drop_center .target:not(.anim_inner), .anim_drop_center.target {
|
|
120
171
|
transition-property: transform;
|
|
121
172
|
transition-timing-function: ease-out;
|
|
122
173
|
transition-duration: 250ms;
|
|
123
|
-
transform: translateY(-
|
|
174
|
+
transform: translateY(-125%) scale(.9);
|
|
124
175
|
}
|
|
125
176
|
|
|
126
|
-
.anim_drop_center.visible .target, .anim_drop_center.visible.target {
|
|
177
|
+
.anim_drop_center.visible .target:not(.anim_inner), .anim_drop_center.visible.target {
|
|
127
178
|
transform: translateY(0) scale(1);
|
|
128
179
|
}
|
|
129
180
|
|
|
181
|
+
/* Simple slide down effect without any opacity */
|
|
182
|
+
|
|
183
|
+
.anim_slide_down .target:not(.anim_inner), .anim_slide_down.target {
|
|
184
|
+
transition-property: transform, opacity;
|
|
185
|
+
transition-timing-function: ease-in-out;
|
|
186
|
+
transition-duration: 150ms;
|
|
187
|
+
transform: translateY(-125%);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.anim_slide_down.visible .target:not(.anim_inner), .anim_slide_down.visible.target {
|
|
191
|
+
transform: translateY(0);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.anim_slide_down .target:not(.anim_inner), .anim_slide_down.target {
|
|
195
|
+
transform: translateY(125%);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.anim_slide_down.visible .target:not(.anim_inner), .anim_slide_down.visible.target {
|
|
199
|
+
transform: translateY(0);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.anim_slide_down.on_mount, .anim_slide_down.reverse {
|
|
203
|
+
animation-name: keyframes_slide_down;
|
|
204
|
+
animation-duration: 125ms;
|
|
205
|
+
animation-timing-function: ease-out;
|
|
206
|
+
animation-fill-mode: both;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@keyframes keyframes_slide_down {
|
|
210
|
+
from { transform: translateY(-125%); }
|
|
211
|
+
to { transform: translateY(0); }
|
|
212
|
+
}
|
|
213
|
+
|
|
130
214
|
/* Zoom & fade in with a slight scale effect */
|
|
131
215
|
|
|
132
|
-
.anim_zoom_in_fade .target, .anim_zoom_in_fade.target,
|
|
133
|
-
.anim_zoom_in .target, .anim_zoom_in.target {
|
|
216
|
+
.anim_zoom_in_fade .target:not(.anim_inner), .anim_zoom_in_fade.target,
|
|
217
|
+
.anim_zoom_in .target:not(.anim_inner), .anim_zoom_in.target {
|
|
134
218
|
transition-property: transform, opacity;
|
|
135
219
|
transition-timing-function: ease-in-out;
|
|
136
220
|
transition-duration: 150ms;
|
|
137
|
-
transform: scale3d(0.
|
|
221
|
+
transform: scale3d(0.95, 0.95, 0.95);
|
|
138
222
|
}
|
|
139
223
|
|
|
140
|
-
.anim_zoom_in_fade.visible .target, .anim_zoom_in_fade.visible.target,
|
|
141
|
-
.anim_zoom_in.visible .target, .anim_zoom_in.visible.target {
|
|
224
|
+
.anim_zoom_in_fade.visible .target:not(.anim_inner), .anim_zoom_in_fade.visible.target,
|
|
225
|
+
.anim_zoom_in.visible .target:not(.anim_inner), .anim_zoom_in.visible.target {
|
|
142
226
|
transform: scale3d(1, 1, 1);
|
|
143
227
|
}
|
|
144
228
|
|
|
145
|
-
.anim_zoom_in_fade .target, .anim_zoom_in_fade.target {
|
|
229
|
+
.anim_zoom_in_fade .target:not(.anim_inner), .anim_zoom_in_fade.target {
|
|
146
230
|
opacity: 0;
|
|
147
231
|
}
|
|
148
232
|
|
|
149
|
-
.anim_zoom_in_fade.visible .target, .anim_zoom_in_fade.visible.target {
|
|
233
|
+
.anim_zoom_in_fade.visible .target:not(.anim_inner), .anim_zoom_in_fade.visible.target {
|
|
150
234
|
opacity: 1;
|
|
151
235
|
}
|
|
152
236
|
|
|
237
|
+
.anim_zoom_in_fade.on_mount, .anim_zoom_in_fade.reverse {
|
|
238
|
+
animation-name: keyframes_zoom_in_fade;
|
|
239
|
+
animation-duration: 125ms;
|
|
240
|
+
animation-timing-function: ease-out;
|
|
241
|
+
animation-fill-mode: both;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@keyframes keyframes_zoom_in_fade {
|
|
245
|
+
from { transform: scale3d(0.95, 0.95, 0.95); opacity: 0; }
|
|
246
|
+
to { transform: scale3d(1, 1, 1); opacity: 1; }
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.anim_zoom_in.on_mount, .anim_zoom_in.reverse {
|
|
250
|
+
animation-name: keyframes_zoom_in;
|
|
251
|
+
animation-duration: 125ms;
|
|
252
|
+
animation-timing-function: ease-out;
|
|
253
|
+
animation-fill-mode: both;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@keyframes keyframes_zoom_in {
|
|
257
|
+
from { transform: scale3d(0.9, 0.9, 0.9); }
|
|
258
|
+
to { transform: scale3d(1, 1, 1); }
|
|
259
|
+
}
|
|
260
|
+
|
|
153
261
|
/* Drop & fade down from slightly elevated position */
|
|
154
262
|
|
|
155
|
-
.anim_drop_down .target, .anim_drop_down.target {
|
|
263
|
+
.anim_drop_down .target:not(.anim_inner), .anim_drop_down.target {
|
|
156
264
|
transition-property: transform, opacity;
|
|
157
265
|
transition-timing-function: ease-out;
|
|
158
266
|
transition-duration: 75ms;
|
|
@@ -161,7 +269,7 @@
|
|
|
161
269
|
opacity: 0;
|
|
162
270
|
}
|
|
163
271
|
|
|
164
|
-
.anim_drop_down.visible .target, .anim_drop_down.visible.target {
|
|
272
|
+
.anim_drop_down.visible .target:not(.anim_inner), .anim_drop_down.visible.target {
|
|
165
273
|
transform: translateY(0);
|
|
166
274
|
opacity: 1;
|
|
167
275
|
}
|
|
@@ -169,15 +277,3 @@
|
|
|
169
277
|
/* Animation utility config classes */
|
|
170
278
|
|
|
171
279
|
.reverse { animation-direction: reverse; }
|
|
172
|
-
|
|
173
|
-
.spd_1 { transition-duration: 1000ms; }
|
|
174
|
-
.spd_2 { transition-duration: 500ms; }
|
|
175
|
-
.spd_3 { transition-duration: 200ms; }
|
|
176
|
-
.spd_4 { transition-duration: 125ms; }
|
|
177
|
-
.spd_5 { transition-duration: 50ms; }
|
|
178
|
-
|
|
179
|
-
.delay_1 { animation-delay: 0.5s; }
|
|
180
|
-
.delay_2 { animation-delay: 1s; }
|
|
181
|
-
.delay_3 { animation-delay: 2s; }
|
|
182
|
-
.delay_4 { animation-delay: 5s; }
|
|
183
|
-
.delay_5 { animation-delay: 10s; }
|