@jsb188/css 1.1.5 → 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/_global.css +431 -52
- package/css/_sizing.css +610 -46
- package/css/animate.css +35 -9
- package/css/form.css +34 -14
- package/css/layout.css +125 -4
- package/css/loading.css +12 -8
- package/css/modal.css +6 -1
- package/css/popover.css +2 -2
- package/package.json +1 -1
package/css/animate.css
CHANGED
|
@@ -109,32 +109,58 @@
|
|
|
109
109
|
to { opacity: 1; }
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
/* Shift-
|
|
112
|
+
/* Shift-up without fade */
|
|
113
113
|
|
|
114
114
|
.anim_move_up_center .target:not(.anim_inner), .anim_move_up_center.target {
|
|
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 {
|
|
115
140
|
transition-property: transform, opacity;
|
|
116
|
-
transition-timing-function:
|
|
141
|
+
transition-timing-function: linear;
|
|
117
142
|
transition-duration: 200ms;
|
|
118
|
-
transform: translateY(
|
|
143
|
+
transform: translateY(100%);
|
|
119
144
|
opacity: 0;
|
|
120
145
|
}
|
|
121
146
|
|
|
122
|
-
.
|
|
147
|
+
.anim_move_up_center_appear.visible .target:not(.anim_inner), .anim_move_up_center_appear.visible.target {
|
|
123
148
|
transform: translateY(0);
|
|
124
149
|
opacity: 1;
|
|
125
150
|
}
|
|
126
151
|
|
|
127
|
-
.
|
|
128
|
-
animation-name:
|
|
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 */
|
|
129
155
|
animation-duration: 200ms;
|
|
130
|
-
animation-timing-function:
|
|
156
|
+
animation-timing-function: linear;
|
|
131
157
|
animation-fill-mode: both;
|
|
132
158
|
}
|
|
133
159
|
|
|
134
|
-
@keyframes
|
|
160
|
+
@keyframes keyframes_move_up_center_appear {
|
|
135
161
|
/* NOTE: This is double opacity animation because of modal container + content animation; */
|
|
136
162
|
/* but having 2 opacity transitions made it smoother */
|
|
137
|
-
from { transform: translateY(
|
|
163
|
+
from { transform: translateY(100%); opacity: 0; }
|
|
138
164
|
to { transform: translateY(0); opacity: 1; }
|
|
139
165
|
}
|
|
140
166
|
|
package/css/form.css
CHANGED
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
padding: .58rem;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.form_cnt.smaller,
|
|
21
|
+
.form_el.smaller input, .form_el.smaller textarea, .form_el.smaller .tx_virtualizer {
|
|
22
|
+
/* If less is needed, use .lh_1 .lh_2 to further flatten the height */
|
|
23
|
+
padding: .32rem 6px;
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
/* Input */
|
|
21
27
|
|
|
22
28
|
.form_cnt.outline,
|
|
@@ -70,12 +76,16 @@ input.invis_input::-webkit-inner-spin-button {
|
|
|
70
76
|
box-shadow: 0 0 40px rgba(var(--color-main),.15), 0 0 1px rgba(0,0,0,.32);
|
|
71
77
|
} */
|
|
72
78
|
|
|
79
|
+
.form_not_allowed input, .form_not_allowed textarea, .form_not_allowed [role="button"] {
|
|
80
|
+
cursor: not-allowed !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
73
83
|
.form_el:hover .form_input:not(.disabled):not(.error) {
|
|
74
84
|
background-color: rgba(var(--color-main), .04) !important;
|
|
75
85
|
}
|
|
76
86
|
|
|
77
|
-
.form_el .form_input:not(.error):focus, .form_el:not(.error):hover .form_input:not(.error):focus,
|
|
78
|
-
.form_el.focused .form_input:not(.error) {
|
|
87
|
+
.form_el .form_input:not(.error):not(.disabled):focus, .form_el:not(.error):not(.disabled):hover .form_input:not(.error):not(.disabled):focus,
|
|
88
|
+
.form_el.focused .form_input:not(.error):not(.disabled) {
|
|
79
89
|
background-color: rgba(var(--color-main), .075) !important;
|
|
80
90
|
}
|
|
81
91
|
|
|
@@ -84,7 +94,7 @@ input.invis_input::-webkit-inner-spin-button {
|
|
|
84
94
|
background: linear-gradient(to left, var(--color-main-bg) 50%, rgba(var(--color-main), 0)) !important;
|
|
85
95
|
}
|
|
86
96
|
|
|
87
|
-
.form_el .form_input:focus, .form_el.focused .form_input {
|
|
97
|
+
.form_el .form_input:not(.disabled):not(.error):focus, .form_el.focused .form_input:not(.disabled):not(.error) {
|
|
88
98
|
border-color: var(--color-text-default) !important;
|
|
89
99
|
}
|
|
90
100
|
|
|
@@ -290,7 +300,7 @@ fieldset input[type="radio"] {
|
|
|
290
300
|
background-color: var(--color-solid-hover) !important;
|
|
291
301
|
}
|
|
292
302
|
|
|
293
|
-
.btn.em:active, .btn.em:disabled {
|
|
303
|
+
.btn.em:active, .btn.em:disabled, .btn.em.disabled {
|
|
294
304
|
transform: translateY(2px);
|
|
295
305
|
box-shadow: none;
|
|
296
306
|
}
|
|
@@ -299,7 +309,7 @@ fieldset input[type="radio"] {
|
|
|
299
309
|
background-color: var(--color-solid-active) !important;
|
|
300
310
|
}
|
|
301
311
|
|
|
302
|
-
.btn.em:disabled {
|
|
312
|
+
.btn.em:disabled, .btn.em.disabled {
|
|
303
313
|
background-color: var(--color-solid-hover) !important;
|
|
304
314
|
}
|
|
305
315
|
|
|
@@ -309,33 +319,43 @@ fieldset input[type="radio"] {
|
|
|
309
319
|
background-color: rgba(0,0,0,.1);
|
|
310
320
|
}
|
|
311
321
|
|
|
312
|
-
.btn.subtle:disabled {
|
|
322
|
+
.btn.subtle:disabled, .btn.subtle.disabled {
|
|
313
323
|
color: var(--color-text-medium);
|
|
314
324
|
}
|
|
315
325
|
|
|
316
|
-
.btn.subtle:not(:disabled):hover, .btn.cl_err:not(:disabled):hover {
|
|
326
|
+
.btn.subtle:not(:disabled):not(.disabled):hover, .btn.cl_err:not(:disabled):not(.disabled):hover {
|
|
317
327
|
background-color: rgba(0,0,0,.2);
|
|
318
328
|
}
|
|
319
329
|
|
|
320
|
-
.btn.subtle:not(:disabled):active, .btn.cl_err:not(:disabled):active {
|
|
330
|
+
.btn.subtle:not(:disabled):not(.disabled):active, .btn.cl_err:not(:disabled):not(.disabled):active {
|
|
321
331
|
background-color: rgba(0,0,0,.25);
|
|
322
332
|
}
|
|
323
333
|
|
|
324
334
|
/* Outline */
|
|
325
335
|
|
|
326
336
|
.btn.outline {
|
|
327
|
-
border: solid 2px var(--color-
|
|
337
|
+
border: solid 2px var(--color-darker-light);
|
|
328
338
|
background-color: rgb(var(--color-bg-alt));
|
|
329
339
|
}
|
|
330
340
|
|
|
331
|
-
.btn.outline:not(:disabled):hover {
|
|
341
|
+
.btn.outline:not(:disabled):not(.disabled):hover {
|
|
332
342
|
background-color: rgb(var(--color-bg-active));
|
|
333
343
|
}
|
|
334
344
|
|
|
335
|
-
.btn.outline:not(:disabled):active {
|
|
345
|
+
.btn.outline:not(:disabled):not(.disabled):active {
|
|
336
346
|
background-color: rgb(var(--color-bg-medium));
|
|
337
347
|
}
|
|
338
348
|
|
|
349
|
+
/* Subtle outline */
|
|
350
|
+
|
|
351
|
+
.btn.outline_subtle {
|
|
352
|
+
box-shadow: inset 0 0 0 2px var(--color-darker-light);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.btn.outline_subtle:not(:disabled):not(.disabled):hover {
|
|
356
|
+
background-color: var(--color-darker-soft);
|
|
357
|
+
}
|
|
358
|
+
|
|
339
359
|
/* Inline button */
|
|
340
360
|
|
|
341
361
|
.btn.il {
|
|
@@ -409,8 +429,8 @@ fieldset input[type="radio"] {
|
|
|
409
429
|
}
|
|
410
430
|
|
|
411
431
|
.ib_label .icon {
|
|
412
|
-
|
|
413
|
-
|
|
432
|
+
font-size: 1rem;
|
|
433
|
+
margin: -4px -2px;
|
|
414
434
|
}
|
|
415
435
|
|
|
416
436
|
.ib_label .indicator {
|
|
@@ -442,7 +462,7 @@ fieldset input[type="radio"] {
|
|
|
442
462
|
|
|
443
463
|
/* Color indicators */
|
|
444
464
|
|
|
445
|
-
.indicator {
|
|
465
|
+
.ib_label .indicator, .color_indicator {
|
|
446
466
|
width: 10px;
|
|
447
467
|
/*
|
|
448
468
|
height: 1em;
|
package/css/layout.css
CHANGED
|
@@ -14,7 +14,30 @@ body.p_auth {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.mw {
|
|
17
|
-
max-height: calc(100vh -
|
|
17
|
+
max-height: calc(100vh - 50px);
|
|
18
|
+
/* max-height: calc(100vh - var(--rem-medium) - var(--rem-medium)); */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mw .scr_area {
|
|
22
|
+
/* 45px is the height of modal header toolbar */
|
|
23
|
+
max-height: calc(100vh - 50px - 45px);
|
|
24
|
+
/* max-height: calc(100vh - var(--rem-medium) - var(--rem-medium) - 45px); */
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mw_adjust_center {
|
|
28
|
+
padding-top: calc(25px * 2);
|
|
29
|
+
/* padding-top: calc(var(--rem-medium) * 2); */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mw_adjust_center .mw {
|
|
33
|
+
/* This hides the bottom rounded corners */
|
|
34
|
+
max-height: calc(100vh - 50px + 14px);
|
|
35
|
+
/* max-height: calc(100vh - var(--rem-medium) - var(--rem-medium) + 14px); */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mw_adjust_center .mw .scr_area {
|
|
39
|
+
/* 45px is the height of modal header toolbar */
|
|
40
|
+
max-height: calc(100vh - 50px - 31px);
|
|
18
41
|
}
|
|
19
42
|
|
|
20
43
|
.cw.tn, .mw.tn {
|
|
@@ -59,14 +82,14 @@ body.p_auth {
|
|
|
59
82
|
/* Sidebar */
|
|
60
83
|
|
|
61
84
|
.w_lsidebar {
|
|
62
|
-
padding-right:
|
|
85
|
+
padding-right: var(--sidebar-wt);
|
|
63
86
|
}
|
|
64
87
|
|
|
65
88
|
/* Content with right <aside /> sticky sidebar */
|
|
66
89
|
|
|
67
|
-
.
|
|
90
|
+
.app_aside {
|
|
68
91
|
width: var(--aside-wt);
|
|
69
|
-
top:
|
|
92
|
+
top: 0;
|
|
70
93
|
}
|
|
71
94
|
|
|
72
95
|
/* Floating message */
|
|
@@ -85,3 +108,101 @@ body.p_auth {
|
|
|
85
108
|
.floating_msg {
|
|
86
109
|
margin: 0 -1rem;
|
|
87
110
|
}
|
|
111
|
+
|
|
112
|
+
/* Helpers, to work with layout variables */
|
|
113
|
+
|
|
114
|
+
.min_h_toolbar_screen {
|
|
115
|
+
min-height: calc(100vh - var(--toolbar-ht));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.max_h_toolbar_screen {
|
|
119
|
+
max-height: calc(100vh - var(--toolbar-ht));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* App layout; toolbar title */
|
|
123
|
+
|
|
124
|
+
#app_toolbar_title {
|
|
125
|
+
height: var(--toolbar-ht);
|
|
126
|
+
flex-shrink: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* App layout; account nav */
|
|
130
|
+
|
|
131
|
+
#app_toolbar_right {
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 0; right: 0; z-index: 50;
|
|
134
|
+
height: var(--toolbar-ht);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* App layout; sidebar */
|
|
138
|
+
|
|
139
|
+
#app_sidebar {
|
|
140
|
+
position: relative;
|
|
141
|
+
width: var(--sidebar-wt);
|
|
142
|
+
transition: width ease .2s;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.app_sidebar_inside {
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 0;
|
|
148
|
+
left: 0;
|
|
149
|
+
bottom: 0;
|
|
150
|
+
width: var(--sidebar-wt);
|
|
151
|
+
transition: left ease .2s;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.app_sidebar_inside_width {
|
|
155
|
+
width: calc(var(--sidebar-wt) - 27px);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* App layout; sidebar mobile responsive design */
|
|
159
|
+
|
|
160
|
+
@media (max-width: 1024px) {
|
|
161
|
+
#app_sidebar {
|
|
162
|
+
width: 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* App layout; main content (scroll area) */
|
|
167
|
+
|
|
168
|
+
.app_scr {
|
|
169
|
+
/* position: relative; */
|
|
170
|
+
overflow-x: hidden;
|
|
171
|
+
overflow-y: scroll;
|
|
172
|
+
-webkit-overflow-scrolling: touch;
|
|
173
|
+
/* scroll-behavior: smooth; */
|
|
174
|
+
/* After a recent update, this no longer works in Chrome */
|
|
175
|
+
/* overflow-y: overlay; */
|
|
176
|
+
scrollbar-gutter: auto;
|
|
177
|
+
/* In "new" Google Chrome, this will make the scrollbar invisible, so we must turn it off. */
|
|
178
|
+
/* scrollbar-width: thin; */
|
|
179
|
+
|
|
180
|
+
/* This is for bottom-up chat style virtualized list */
|
|
181
|
+
overflow-anchor: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.app_scr::-webkit-scrollbar {
|
|
185
|
+
width: 18px;
|
|
186
|
+
/* background-color: rgb(var(--color-bg-alt)); */
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.app_scr::-webkit-scrollbar-track {
|
|
190
|
+
box-shadow: inset 0 0 0 5px rgb(var(--color-bg));
|
|
191
|
+
border-radius: 9px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.app_scr::-webkit-scrollbar-thumb {
|
|
195
|
+
z-index: -1;
|
|
196
|
+
/* Use this for invisible style */
|
|
197
|
+
/* background-color: rgb(var(--color-bg-active)); */
|
|
198
|
+
background-color: transparent;
|
|
199
|
+
box-shadow: inset 0 0 0 5px rgb(var(--color-bg));
|
|
200
|
+
/* transform: scale(.5); */
|
|
201
|
+
border-radius: 9px;
|
|
202
|
+
min-height: 100px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.app_scr:hover::-webkit-scrollbar-thumb {
|
|
206
|
+
/* background-color: rgb(var(--color-bg-medium)); */
|
|
207
|
+
background-color: rgb(var(--color-bg-active));
|
|
208
|
+
}
|
package/css/loading.css
CHANGED
|
@@ -13,31 +13,31 @@
|
|
|
13
13
|
margin: 0 .35rem;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.dot.
|
|
16
|
+
.dot.tn {
|
|
17
17
|
width: 0.3rem;
|
|
18
18
|
height: 0.3rem;
|
|
19
19
|
margin: 0 .073rem;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.dot.
|
|
22
|
+
.dot.sm {
|
|
23
23
|
width: 0.375rem;
|
|
24
24
|
height: 0.375rem;
|
|
25
25
|
margin: 0 .12rem;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.dot.
|
|
28
|
+
.dot.df {
|
|
29
29
|
width: .5rem;
|
|
30
30
|
height: .5rem;
|
|
31
31
|
margin: 0 .13rem;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.dot.
|
|
35
|
-
width: .
|
|
36
|
-
height: .
|
|
37
|
-
margin: 0 .
|
|
34
|
+
.dot.md {
|
|
35
|
+
width: .64rem;
|
|
36
|
+
height: .64rem;
|
|
37
|
+
margin: 0 .2rem;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.dot.
|
|
40
|
+
.dot.lg {
|
|
41
41
|
width: 1rem;
|
|
42
42
|
height: 1rem;
|
|
43
43
|
margin: 0 .24rem;
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
background-color: var(--color-text);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
.bg_main .activity .dot, .bg_primary .activity .dot, .bg_secondary .activity .dot {
|
|
53
|
+
background-color: var(--color-solid);
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
.activity .d0, .activity .d1, .activity .d2 {
|
|
53
57
|
animation-duration: 1.5s;
|
|
54
58
|
animation-fill-mode: both;
|
package/css/modal.css
CHANGED
|
@@ -70,13 +70,18 @@
|
|
|
70
70
|
.mw_header {
|
|
71
71
|
position: relative;
|
|
72
72
|
height: 4.5rem;
|
|
73
|
-
margin-bottom: .3125rem; /* 5px */
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
.mw_desc {
|
|
77
76
|
max-width: 580px;
|
|
78
77
|
}
|
|
79
78
|
|
|
79
|
+
/* Modal tabs nav */
|
|
80
|
+
|
|
81
|
+
.mw_tabs_nav .tab_item:hover .indicator {
|
|
82
|
+
background-color: rgba(var(--color-darker-rgb),.1);
|
|
83
|
+
}
|
|
84
|
+
|
|
80
85
|
/* Modal side nav */
|
|
81
86
|
|
|
82
87
|
.mw_snav {
|
package/css/popover.css
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
box-shadow: var(--shadow);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.popover.small .tooltip {
|
|
19
|
+
.popover.small .tooltip:not(.w_override) {
|
|
20
20
|
max-width: 150px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.popover.default .tooltip {
|
|
23
|
+
.popover.default .tooltip:not(.w_override) {
|
|
24
24
|
max-width: 225px;
|
|
25
25
|
}
|
|
26
26
|
|