@jsb188/css 1.1.4 → 1.1.6

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/alert.css CHANGED
@@ -1,60 +1,26 @@
1
1
 
2
- /* Modal screen cover */
2
+ /* Modal cover for alerts & screens */
3
3
 
4
- .modal_cover {
5
- position: fixed;
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
- .modal_cover.visible {
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
- .modal_cover.p_d .scr_area {
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
- .m_close:hover {
46
- background-color: var(--color-bg-active);
14
+ .bg_modal_alert_w_screen {
15
+ background-color: rgba(var(--color-darker-rgb), .075);
47
16
  }
48
17
 
49
- /* Modal error message */
18
+ /* Different outlines + shadows for each modal type */
50
19
 
51
- .m_err {
52
- position: relative;
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
- .m_err .m_close {
58
- top: var(--rem-xsmall);
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
- transform: translate(0, -10px) scale(.95);
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(.95); opacity: 0; }
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: 125ms;
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: 125ms;
77
+ animation-duration: 100ms;
77
78
  animation-timing-function: ease-out;
78
79
  animation-fill-mode: both;
79
80
  }
@@ -83,76 +84,209 @@
83
84
  to { transform: translate(0, 0) scale(1); opacity: 1; }
84
85
  }
85
86
 
86
- /* Lift up & expand (scale transform) from sunken position */
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-up without fade */
87
113
 
88
- .anim_lift_center .target, .anim_lift_center.target {
114
+ .anim_move_up_center .target:not(.anim_inner), .anim_move_up_center.target {
89
115
  transition-property: transform;
116
+ transition-timing-function: linear;
117
+ transition-duration: 200ms;
118
+ transform: translateY(100%);
119
+ }
120
+
121
+ .anim_move_up_center.visible .target:not(.anim_inner), .anim_move_up_center.visible.target {
122
+ transform: translateY(0);
123
+ }
124
+
125
+ .anim_move_up_center.on_mount, .anim_move_up_center.reverse {
126
+ animation-name: anim_move_up_center;
127
+ animation-duration: 200ms;
128
+ animation-timing-function: linear;
129
+ animation-fill-mode: both;
130
+ }
131
+
132
+ @keyframes anim_move_up_center {
133
+ from { transform: translateY(100%); }
134
+ to { transform: translateY(0); }
135
+ }
136
+
137
+ /* Shift-appear up */
138
+
139
+ .anim_move_up_center_appear .target:not(.anim_inner), .anim_move_up_center_appear.target {
140
+ transition-property: transform, opacity;
141
+ transition-timing-function: linear;
142
+ transition-duration: 200ms;
143
+ transform: translateY(100%);
144
+ opacity: 0;
145
+ }
146
+
147
+ .anim_move_up_center_appear.visible .target:not(.anim_inner), .anim_move_up_center_appear.visible.target {
148
+ transform: translateY(0);
149
+ opacity: 1;
150
+ }
151
+
152
+ .anim_move_up_center_appear.on_mount, .anim_move_up_center_appear.reverse {
153
+ animation-name: keyframes_move_up_center_appear;
154
+ /* anim_move_up_center_appear on_mount spd_3 */
155
+ animation-duration: 200ms;
156
+ animation-timing-function: linear;
157
+ animation-fill-mode: both;
158
+ }
159
+
160
+ @keyframes keyframes_move_up_center_appear {
161
+ /* NOTE: This is double opacity animation because of modal container + content animation; */
162
+ /* but having 2 opacity transitions made it smoother */
163
+ from { transform: translateY(100%); opacity: 0; }
164
+ to { transform: translateY(0); opacity: 1; }
165
+ }
166
+
167
+ /* Lift up & expand (scale transform) from sunken position */
168
+
169
+ .anim_lift_scale_center .target:not(.anim_inner), .anim_lift_scale_center.target {
170
+ transition-property: transform, opacity;
90
171
  transition-timing-function: ease-out;
91
172
  transition-duration: 250ms;
92
- transform: translateY(100%) scale(.9);
173
+ transform: translateY(100%) scale(.85);
93
174
  opacity: 0;
94
175
  }
95
176
 
96
- .anim_lift_center.visible .target, .anim_lift_center.visible.target {
177
+ .anim_lift_scale_center.visible .target:not(.anim_inner), .anim_lift_scale_center.visible.target {
97
178
  transform: translateY(0) scale(1);
98
179
  opacity: 1;
99
180
  }
100
181
 
101
- .anim_lift_center.on_mount, .anim_lift_center.reverse {
102
- animation-name: keyframes_lift_center;
182
+ .anim_lift_scale_center.on_mount, .anim_lift_scale_center.reverse {
183
+ animation-name: keyframes_lift_scale_center;
103
184
  animation-duration: 250ms;
104
185
  animation-timing-function: ease-out;
105
186
  animation-fill-mode: both;
106
187
  }
107
188
 
108
- .anim_lift_center.on_mount.spd_1 { animation-duration: 150ms; }
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 {
189
+ @keyframes keyframes_lift_scale_center {
113
190
  from { transform: translateY(100%) scale(.9); opacity: 0; }
114
191
  to { transform: translateY(0) scale(1); opacity: 1; }
115
192
  }
116
193
 
117
194
  /* Drop down & expand (scale transform) from elevated position (no fade) */
118
195
 
119
- .anim_drop_center .target, .anim_drop_center.target {
196
+ .anim_drop_center .target:not(.anim_inner), .anim_drop_center.target {
120
197
  transition-property: transform;
121
198
  transition-timing-function: ease-out;
122
199
  transition-duration: 250ms;
123
- transform: translateY(-100%) scale(.9);
200
+ transform: translateY(-125%) scale(.9);
124
201
  }
125
202
 
126
- .anim_drop_center.visible .target, .anim_drop_center.visible.target {
203
+ .anim_drop_center.visible .target:not(.anim_inner), .anim_drop_center.visible.target {
127
204
  transform: translateY(0) scale(1);
128
205
  }
129
206
 
207
+ /* Simple slide down effect without any opacity */
208
+
209
+ .anim_slide_down .target:not(.anim_inner), .anim_slide_down.target {
210
+ transition-property: transform, opacity;
211
+ transition-timing-function: ease-in-out;
212
+ transition-duration: 150ms;
213
+ transform: translateY(-125%);
214
+ }
215
+
216
+ .anim_slide_down.visible .target:not(.anim_inner), .anim_slide_down.visible.target {
217
+ transform: translateY(0);
218
+ }
219
+
220
+ .anim_slide_down .target:not(.anim_inner), .anim_slide_down.target {
221
+ transform: translateY(125%);
222
+ }
223
+
224
+ .anim_slide_down.visible .target:not(.anim_inner), .anim_slide_down.visible.target {
225
+ transform: translateY(0);
226
+ }
227
+
228
+ .anim_slide_down.on_mount, .anim_slide_down.reverse {
229
+ animation-name: keyframes_slide_down;
230
+ animation-duration: 125ms;
231
+ animation-timing-function: ease-out;
232
+ animation-fill-mode: both;
233
+ }
234
+
235
+ @keyframes keyframes_slide_down {
236
+ from { transform: translateY(-125%); }
237
+ to { transform: translateY(0); }
238
+ }
239
+
130
240
  /* Zoom & fade in with a slight scale effect */
131
241
 
132
- .anim_zoom_in_fade .target, .anim_zoom_in_fade.target,
133
- .anim_zoom_in .target, .anim_zoom_in.target {
242
+ .anim_zoom_in_fade .target:not(.anim_inner), .anim_zoom_in_fade.target,
243
+ .anim_zoom_in .target:not(.anim_inner), .anim_zoom_in.target {
134
244
  transition-property: transform, opacity;
135
245
  transition-timing-function: ease-in-out;
136
246
  transition-duration: 150ms;
137
- transform: scale3d(0.9, 0.9, 0.9);
247
+ transform: scale3d(0.95, 0.95, 0.95);
138
248
  }
139
249
 
140
- .anim_zoom_in_fade.visible .target, .anim_zoom_in_fade.visible.target,
141
- .anim_zoom_in.visible .target, .anim_zoom_in.visible.target {
250
+ .anim_zoom_in_fade.visible .target:not(.anim_inner), .anim_zoom_in_fade.visible.target,
251
+ .anim_zoom_in.visible .target:not(.anim_inner), .anim_zoom_in.visible.target {
142
252
  transform: scale3d(1, 1, 1);
143
253
  }
144
254
 
145
- .anim_zoom_in_fade .target, .anim_zoom_in_fade.target {
255
+ .anim_zoom_in_fade .target:not(.anim_inner), .anim_zoom_in_fade.target {
146
256
  opacity: 0;
147
257
  }
148
258
 
149
- .anim_zoom_in_fade.visible .target, .anim_zoom_in_fade.visible.target {
259
+ .anim_zoom_in_fade.visible .target:not(.anim_inner), .anim_zoom_in_fade.visible.target {
150
260
  opacity: 1;
151
261
  }
152
262
 
263
+ .anim_zoom_in_fade.on_mount, .anim_zoom_in_fade.reverse {
264
+ animation-name: keyframes_zoom_in_fade;
265
+ animation-duration: 125ms;
266
+ animation-timing-function: ease-out;
267
+ animation-fill-mode: both;
268
+ }
269
+
270
+ @keyframes keyframes_zoom_in_fade {
271
+ from { transform: scale3d(0.95, 0.95, 0.95); opacity: 0; }
272
+ to { transform: scale3d(1, 1, 1); opacity: 1; }
273
+ }
274
+
275
+ .anim_zoom_in.on_mount, .anim_zoom_in.reverse {
276
+ animation-name: keyframes_zoom_in;
277
+ animation-duration: 125ms;
278
+ animation-timing-function: ease-out;
279
+ animation-fill-mode: both;
280
+ }
281
+
282
+ @keyframes keyframes_zoom_in {
283
+ from { transform: scale3d(0.9, 0.9, 0.9); }
284
+ to { transform: scale3d(1, 1, 1); }
285
+ }
286
+
153
287
  /* Drop & fade down from slightly elevated position */
154
288
 
155
- .anim_drop_down .target, .anim_drop_down.target {
289
+ .anim_drop_down .target:not(.anim_inner), .anim_drop_down.target {
156
290
  transition-property: transform, opacity;
157
291
  transition-timing-function: ease-out;
158
292
  transition-duration: 75ms;
@@ -161,7 +295,7 @@
161
295
  opacity: 0;
162
296
  }
163
297
 
164
- .anim_drop_down.visible .target, .anim_drop_down.visible.target {
298
+ .anim_drop_down.visible .target:not(.anim_inner), .anim_drop_down.visible.target {
165
299
  transform: translateY(0);
166
300
  opacity: 1;
167
301
  }
@@ -169,15 +303,3 @@
169
303
  /* Animation utility config classes */
170
304
 
171
305
  .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; }