@jsb188/css 1.1.10 → 1.1.11
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/_colors.generated.css +210 -0
- package/css/_global.css +2338 -857
- package/css/_responsive.css +7223 -1934
- package/css/_responsive.generated.css +5595 -1375
- package/css/_sizing.css +1566 -459
- package/css/alert.css +75 -17
- package/css/animate.css +515 -194
- package/css/form.css +353 -227
- package/css/layout.css +277 -149
- package/css/loading.css +117 -105
- package/css/misc.css +33 -32
- package/css/modal.css +54 -52
- package/css/popover.css +53 -50
- package/package.json +22 -22
- package/scripts/generateResponsiveCss.js +202 -116
package/css/layout.css
CHANGED
|
@@ -1,274 +1,402 @@
|
|
|
1
|
-
|
|
2
1
|
/* Route based styles */
|
|
3
2
|
|
|
4
3
|
body.p_auth {
|
|
5
|
-
|
|
4
|
+
background-color: rgb(var(--color-bg-alt));
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
/* Content & Modal wrapper */
|
|
9
8
|
|
|
10
|
-
.cw,
|
|
11
|
-
|
|
9
|
+
.cw,
|
|
10
|
+
.mw {
|
|
11
|
+
width: 100%;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.cw,
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
.cw,
|
|
15
|
+
.mw,
|
|
16
|
+
.mx_auto {
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
margin-right: auto;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.mw {
|
|
20
|
-
|
|
22
|
+
--toolbar-ht: 50px;
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
max-height: calc(100vh - var(--toolbar-ht));
|
|
25
|
+
/* max-height: calc(100vh - var(--rem-medium) - var(--rem-medium)); */
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
.mw .scr_area {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
max-height: calc(100vh - var(--toolbar-ht) - var(--toolbar-ht));
|
|
30
|
+
/* max-height: calc(100vh - var(--rem-medium) - var(--rem-medium) - 45px); */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mw .scr_area.sm {
|
|
34
|
+
max-height: min(640px, 75vh);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mw .scr_area.xs {
|
|
38
|
+
max-height: min(530px, 64vh);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* "Almost" full, centered modal page */
|
|
42
|
+
|
|
43
|
+
.mw.centered_big {
|
|
44
|
+
flex: 1;
|
|
45
|
+
max-height: 800px;
|
|
46
|
+
max-width: 1440px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Medium, centered modal page */
|
|
50
|
+
|
|
51
|
+
.mw.centered_medium {
|
|
52
|
+
flex: 1;
|
|
53
|
+
max-height: 600px;
|
|
54
|
+
max-width: 1080px;
|
|
29
55
|
}
|
|
30
56
|
|
|
31
57
|
/* Top-fixed position modal content wrappers */
|
|
32
58
|
|
|
33
59
|
.mw_page {
|
|
34
|
-
|
|
60
|
+
padding-top: 6vh;
|
|
35
61
|
}
|
|
36
62
|
|
|
37
63
|
.mw_page .modal_main_content {
|
|
38
|
-
|
|
64
|
+
max-height: calc(94vh + 10px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mw_page .modal_fit_content {
|
|
68
|
+
height: calc(88vh - var(--toolbar-ht));
|
|
39
69
|
}
|
|
40
70
|
|
|
41
71
|
/* Special sizing for mobile */
|
|
42
72
|
|
|
43
|
-
.max_h_extend_bottom {
|
|
44
|
-
|
|
73
|
+
.max_h_extend_bottom {
|
|
74
|
+
max-height: 87.5vh;
|
|
75
|
+
}
|
|
76
|
+
.mw_page .max_h_extend_bottom {
|
|
77
|
+
max-height: calc(94vh - var(--toolbar-ht) + 10);
|
|
78
|
+
padding-bottom: 10px;
|
|
79
|
+
}
|
|
45
80
|
|
|
46
81
|
@media (max-height: 1140px) {
|
|
47
|
-
|
|
48
|
-
|
|
82
|
+
/* Designed for modal wrapper layout content while accounting for mobile header area */
|
|
83
|
+
.max_h_extend_bottom {
|
|
84
|
+
max-height: 85vh;
|
|
85
|
+
}
|
|
49
86
|
}
|
|
50
87
|
|
|
51
88
|
@media (max-height: 1024px) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
89
|
+
/* Designed for modal wrapper layout content while accounting for mobile header area */
|
|
90
|
+
.max_h_extend_bottom {
|
|
91
|
+
max-height: 82.5vh;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* .mw_page responsive design */
|
|
95
|
+
.mw_page {
|
|
96
|
+
padding-top: 7.5vh;
|
|
97
|
+
}
|
|
98
|
+
.mw_page .modal_main_content {
|
|
99
|
+
max-height: calc(92.5vh + 10px);
|
|
100
|
+
}
|
|
101
|
+
.mw_page .max_h_extend_bottom {
|
|
102
|
+
max-height: calc(92.5vh - var(--toolbar-ht) + 10);
|
|
103
|
+
}
|
|
59
104
|
}
|
|
60
105
|
|
|
61
106
|
@media (max-height: 768px) {
|
|
62
|
-
|
|
63
|
-
|
|
107
|
+
/* Designed for modal wrapper layout content while accounting for mobile header area */
|
|
108
|
+
.max_h_extend_bottom {
|
|
109
|
+
max-height: 80vh;
|
|
110
|
+
}
|
|
64
111
|
}
|
|
65
112
|
|
|
66
113
|
@media (max-height: 640px) {
|
|
67
|
-
|
|
68
|
-
|
|
114
|
+
/* Designed for modal wrapper layout content while accounting for mobile header area */
|
|
115
|
+
.max_h_extend_bottom {
|
|
116
|
+
max-height: 75vh;
|
|
117
|
+
}
|
|
69
118
|
}
|
|
70
119
|
|
|
71
120
|
/* Common, standardized content wrapper sizes */
|
|
72
121
|
|
|
73
|
-
.cw.tn,
|
|
74
|
-
|
|
75
|
-
|
|
122
|
+
.cw.tn,
|
|
123
|
+
.mw.tn {
|
|
124
|
+
/* was .tiny */
|
|
125
|
+
max-width: 380px;
|
|
76
126
|
}
|
|
77
127
|
|
|
78
|
-
.cw.xs,
|
|
79
|
-
|
|
128
|
+
.cw.xs,
|
|
129
|
+
.mw.xs {
|
|
130
|
+
max-width: 425px;
|
|
80
131
|
}
|
|
81
132
|
|
|
82
|
-
.cw.sm,
|
|
83
|
-
|
|
84
|
-
|
|
133
|
+
.cw.sm,
|
|
134
|
+
.mw.sm {
|
|
135
|
+
/* was .default_alt */
|
|
136
|
+
max-width: 640px;
|
|
85
137
|
}
|
|
86
138
|
|
|
87
|
-
.cw.df,
|
|
88
|
-
|
|
139
|
+
.cw.df,
|
|
140
|
+
.mw.df {
|
|
141
|
+
max-width: 780px;
|
|
89
142
|
}
|
|
90
143
|
|
|
91
|
-
.cw.md,
|
|
92
|
-
|
|
144
|
+
.cw.md,
|
|
145
|
+
.mw.md {
|
|
146
|
+
max-width: 1140px;
|
|
93
147
|
}
|
|
94
148
|
|
|
95
|
-
.cw.lg,
|
|
96
|
-
|
|
149
|
+
.cw.lg,
|
|
150
|
+
.mw.lg {
|
|
151
|
+
max-width: 1280px;
|
|
97
152
|
}
|
|
98
153
|
|
|
99
|
-
.cw.xl,
|
|
100
|
-
|
|
154
|
+
.cw.xl,
|
|
155
|
+
.mw.xl {
|
|
156
|
+
max-width: 1440px;
|
|
101
157
|
}
|
|
102
158
|
|
|
103
|
-
.cw.full,
|
|
104
|
-
|
|
105
|
-
|
|
159
|
+
.cw.full,
|
|
160
|
+
.mw.full,
|
|
161
|
+
.mw.max {
|
|
162
|
+
flex: 1;
|
|
163
|
+
max-height: 100%;
|
|
106
164
|
}
|
|
107
165
|
|
|
108
|
-
.cw.full .cw,
|
|
109
|
-
|
|
166
|
+
.cw.full .cw,
|
|
167
|
+
.mw.full .cw,
|
|
168
|
+
.mw.max .cw {
|
|
169
|
+
max-height: 100%;
|
|
110
170
|
}
|
|
111
171
|
|
|
112
|
-
/*
|
|
172
|
+
/* Toolbar */
|
|
113
173
|
|
|
114
|
-
.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
174
|
+
.toolbar_input_click:hover:before,
|
|
175
|
+
.toolbar_input_click.editing:before {
|
|
176
|
+
content: "";
|
|
177
|
+
inset: -3px -9px -1px -8px;
|
|
178
|
+
border-radius: 100vmax;
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
position: absolute;
|
|
119
181
|
}
|
|
120
182
|
|
|
121
|
-
|
|
183
|
+
.toolbar_input_click:hover:before {
|
|
184
|
+
outline: 3px dashed rgba(var(--color-main), 0.75);
|
|
185
|
+
}
|
|
122
186
|
|
|
123
|
-
.
|
|
124
|
-
|
|
187
|
+
.toolbar_input_click.editing:before,
|
|
188
|
+
.toolbar_input_click.editing:hover:before {
|
|
189
|
+
outline: 3px dashed rgb(var(--color-main));
|
|
125
190
|
}
|
|
126
191
|
|
|
192
|
+
/* Sidebar */
|
|
193
|
+
|
|
127
194
|
/* Content with right <aside /> sticky sidebar */
|
|
128
195
|
|
|
129
196
|
.w_app_side {
|
|
130
|
-
|
|
197
|
+
margin-right: var(--aside-wt);
|
|
131
198
|
}
|
|
132
199
|
|
|
133
200
|
.app_aside {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
201
|
+
max-height: 100vh;
|
|
202
|
+
top: 0;
|
|
203
|
+
right: 0;
|
|
204
|
+
padding-top: var(--toolbar-ht);
|
|
137
205
|
}
|
|
138
206
|
|
|
139
207
|
/* Floating message */
|
|
140
208
|
|
|
141
209
|
.floating_msg_cnt {
|
|
142
|
-
|
|
143
|
-
|
|
210
|
+
pointer-events: none;
|
|
211
|
+
transition:
|
|
212
|
+
transform 0.2s ease-in-out,
|
|
213
|
+
opacity 0.2s ease-in-out;
|
|
214
|
+
width: max-content;
|
|
215
|
+
max-width: calc(100vw - 40px);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.floating_msg {
|
|
219
|
+
pointer-events: auto;
|
|
144
220
|
}
|
|
145
221
|
|
|
146
222
|
/* Helpers, to work with layout variables */
|
|
147
223
|
|
|
148
224
|
.min_h_toolbar_screen {
|
|
149
|
-
|
|
225
|
+
min-height: calc(100vh - var(--toolbar-ht));
|
|
150
226
|
}
|
|
151
227
|
|
|
152
228
|
.max_h_toolbar_screen {
|
|
153
|
-
|
|
229
|
+
max-height: calc(100vh - var(--toolbar-ht));
|
|
154
230
|
}
|
|
155
231
|
|
|
156
232
|
/* App layout; account nav */
|
|
157
233
|
|
|
158
234
|
#app_toolbar_right {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
235
|
+
position: absolute;
|
|
236
|
+
top: 0;
|
|
237
|
+
right: 0;
|
|
238
|
+
z-index: 50;
|
|
239
|
+
height: var(--toolbar-ht);
|
|
162
240
|
}
|
|
163
241
|
|
|
164
242
|
/* App layout; sidebar */
|
|
165
243
|
|
|
244
|
+
.app_sidebar_edge_reveal {
|
|
245
|
+
background: linear-gradient(
|
|
246
|
+
90deg,
|
|
247
|
+
rgba(var(--color-main), 0.125),
|
|
248
|
+
rgba(0, 0, 0, 0)
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
166
252
|
#app_sidebar {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
253
|
+
position: relative;
|
|
254
|
+
width: 0;
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
transition: width ease 0.2s;
|
|
171
257
|
}
|
|
172
258
|
|
|
173
259
|
.open #app_sidebar {
|
|
174
|
-
|
|
260
|
+
width: var(--sidebar-wt);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.overlayed #app_sidebar {
|
|
264
|
+
position: fixed;
|
|
265
|
+
z-index: 50;
|
|
266
|
+
top: 25px;
|
|
267
|
+
bottom: 25px;
|
|
268
|
+
left: 0;
|
|
269
|
+
width: 0;
|
|
270
|
+
overflow: visible;
|
|
175
271
|
}
|
|
176
272
|
|
|
177
273
|
.app_sidebar_inside {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
274
|
+
position: absolute;
|
|
275
|
+
top: 0;
|
|
276
|
+
left: calc(var(--sidebar-wt) * -1);
|
|
277
|
+
bottom: 0;
|
|
278
|
+
width: var(--sidebar-wt);
|
|
279
|
+
transition: left ease 0.2s;
|
|
184
280
|
}
|
|
185
281
|
|
|
186
282
|
.open .app_sidebar_inside {
|
|
187
|
-
|
|
283
|
+
left: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.overlayed .app_sidebar_inside {
|
|
287
|
+
left: 0;
|
|
288
|
+
border-top-right-radius: var(--radius-default);
|
|
289
|
+
border-bottom-right-radius: var(--radius-default);
|
|
290
|
+
background-color: rgb(var(--color-bg));
|
|
291
|
+
box-shadow:
|
|
292
|
+
var(--shadow-line),
|
|
293
|
+
0 0 0 1px rgba(0, 0, 0, 0.05),
|
|
294
|
+
10px 0 20px rgba(0, 0, 0, 0.05);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.overlayed.overlay_closing .app_sidebar_inside {
|
|
298
|
+
left: calc(var(--sidebar-wt) * -1);
|
|
188
299
|
}
|
|
189
300
|
|
|
190
301
|
.app_sidebar_inside_width {
|
|
191
|
-
|
|
302
|
+
width: calc(var(--sidebar-wt) - 23px);
|
|
192
303
|
}
|
|
193
304
|
|
|
194
305
|
/* App layout; sidebar mobile responsive design */
|
|
195
306
|
|
|
196
307
|
@media (--responsive-mobile-portrait) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
308
|
+
#app_sidebar {
|
|
309
|
+
width: 0;
|
|
310
|
+
}
|
|
200
311
|
}
|
|
201
312
|
|
|
202
313
|
/* App layout; main content (scroll area) */
|
|
203
314
|
|
|
204
315
|
.app_scr {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
316
|
+
/* position: relative; */
|
|
317
|
+
overflow-x: hidden;
|
|
318
|
+
overflow-y: scroll;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.app_scr.auto_y {
|
|
322
|
+
overflow-y: auto;
|
|
208
323
|
}
|
|
209
324
|
|
|
210
325
|
.app_scr.of_x {
|
|
211
|
-
|
|
326
|
+
overflow-x: scroll;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.app_scr.of_x.auto_x {
|
|
330
|
+
overflow-x: auto;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.app_scr.hide_y {
|
|
334
|
+
overflow-x: scroll;
|
|
335
|
+
overflow-y: hidden;
|
|
212
336
|
}
|
|
213
337
|
|
|
214
338
|
@media (--gte-mobile-portrait) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
339
|
+
.app_scr {
|
|
340
|
+
-webkit-overflow-scrolling: touch;
|
|
341
|
+
/* scroll-behavior: smooth; */
|
|
342
|
+
/* After a recent update, this no longer works in Chrome */
|
|
343
|
+
/* overflow-y: overlay; */
|
|
344
|
+
scrollbar-gutter: auto;
|
|
345
|
+
/* In "new" Google Chrome, this will make the scrollbar invisible, so we must turn it off. */
|
|
346
|
+
/* scrollbar-width: thin; */
|
|
347
|
+
|
|
348
|
+
/* This is for bottom-up chat style virtualized list */
|
|
349
|
+
overflow-anchor: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.app_scr::-webkit-scrollbar {
|
|
353
|
+
/* This size must match SHEET_CANVAS_APP_SCROLLBAR_SIZE in @jsb188:sheet/src/modules/Sheet-Controller.tsx. */
|
|
354
|
+
width: 19px;
|
|
355
|
+
height: 19px;
|
|
356
|
+
background-color: rgb(var(--color-bg));
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.app_scr::-webkit-scrollbar:vertical {
|
|
360
|
+
border-left: solid 1px rgb(var(--color-bg-active));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.app_scr::-webkit-scrollbar:horizontal {
|
|
364
|
+
border-top: solid 1px rgb(var(--color-bg-active));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.app_scr::-webkit-scrollbar-thumb:vertical {
|
|
368
|
+
border-left: solid 1px transparent;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.app_scr::-webkit-scrollbar-thumb:horizontal {
|
|
372
|
+
border-top: solid 1px transparent;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.app_scr::-webkit-scrollbar-thumb {
|
|
376
|
+
z-index: -1;
|
|
377
|
+
/* transform: scale(.5); */
|
|
378
|
+
border-radius: 10px;
|
|
379
|
+
min-height: 100px;
|
|
380
|
+
background-clip: padding-box;
|
|
381
|
+
background-color: rgb(var(--color-bg-active));
|
|
382
|
+
box-shadow: inset 0 0 0 5px rgb(var(--color-bg));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.app_scr:hover::-webkit-scrollbar-thumb {
|
|
386
|
+
/* background-color: rgb(var(--color-bg-medium)); */
|
|
387
|
+
background-color: rgb(var(--color-bg-active));
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.app_scr::-webkit-scrollbar-thumb:active {
|
|
391
|
+
/* background-color: rgb(var(--color-bg-strong)); */
|
|
392
|
+
background-color: rgb(var(--color-bg-medium));
|
|
393
|
+
/* background-color: rgb(var(--color-bg-active)); */
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.app_scr::-webkit-scrollbar-corner {
|
|
397
|
+
background-color: rgb(var(--color-bg));
|
|
398
|
+
border-top: solid 1px rgb(var(--color-bg-active));
|
|
399
|
+
border-left: solid 1px rgb(var(--color-bg-active));
|
|
400
|
+
box-shadow: 0 0 10px rgb(0, 0, 0, 0.125) inset;
|
|
401
|
+
}
|
|
274
402
|
}
|