@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/layout.css CHANGED
@@ -1,274 +1,402 @@
1
-
2
1
  /* Route based styles */
3
2
 
4
3
  body.p_auth {
5
- background-color: rgb(var(--color-bg-alt));
4
+ background-color: rgb(var(--color-bg-alt));
6
5
  }
7
6
 
8
7
  /* Content & Modal wrapper */
9
8
 
10
- .cw, .mw {
11
- width: 100%;
9
+ .cw,
10
+ .mw {
11
+ width: 100%;
12
12
  }
13
13
 
14
- .cw, .mw, .mx_auto {
15
- margin-left: auto;
16
- margin-right: auto;
14
+ .cw,
15
+ .mw,
16
+ .mx_auto {
17
+ margin-left: auto;
18
+ margin-right: auto;
17
19
  }
18
20
 
19
21
  .mw {
20
- --toolbar-ht: 50px;
22
+ --toolbar-ht: 50px;
21
23
 
22
- max-height: calc(100vh - var(--toolbar-ht));
23
- /* max-height: calc(100vh - var(--rem-medium) - var(--rem-medium)); */
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
- max-height: calc(100vh - var(--toolbar-ht) - var(--toolbar-ht));
28
- /* max-height: calc(100vh - var(--rem-medium) - var(--rem-medium) - 45px); */
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
- padding-top: 6vh;
60
+ padding-top: 6vh;
35
61
  }
36
62
 
37
63
  .mw_page .modal_main_content {
38
- max-height: calc(94vh + 10px);
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 { max-height: 87.5vh; }
44
- .mw_page .max_h_extend_bottom { max-height: calc(94vh - var(--toolbar-ht) + 10); padding-bottom: 10px; }
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
- /* Designed for modal wrapper layout content while accounting for mobile header area */
48
- .max_h_extend_bottom { max-height: 85vh; }
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
- /* Designed for modal wrapper layout content while accounting for mobile header area */
53
- .max_h_extend_bottom { max-height: 82.5vh; }
54
-
55
- /* .mw_page responsive design */
56
- .mw_page { padding-top: 7.5vh; }
57
- .mw_page .modal_main_content { max-height: calc(92.5vh + 10px); }
58
- .mw_page .max_h_extend_bottom { max-height: calc(92.5vh - var(--toolbar-ht) + 10); }
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
- /* Designed for modal wrapper layout content while accounting for mobile header area */
63
- .max_h_extend_bottom { max-height: 80vh; }
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
- /* Designed for modal wrapper layout content while accounting for mobile header area */
68
- .max_h_extend_bottom { max-height: 75vh; }
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, .mw.tn {
74
- /* was .tiny */
75
- max-width: 380px;
122
+ .cw.tn,
123
+ .mw.tn {
124
+ /* was .tiny */
125
+ max-width: 380px;
76
126
  }
77
127
 
78
- .cw.xs, .mw.xs {
79
- max-width: 425px;
128
+ .cw.xs,
129
+ .mw.xs {
130
+ max-width: 425px;
80
131
  }
81
132
 
82
- .cw.sm, .mw.sm {
83
- /* was .default_alt */
84
- max-width: 640px;
133
+ .cw.sm,
134
+ .mw.sm {
135
+ /* was .default_alt */
136
+ max-width: 640px;
85
137
  }
86
138
 
87
- .cw.df, .mw.df {
88
- max-width: 780px;
139
+ .cw.df,
140
+ .mw.df {
141
+ max-width: 780px;
89
142
  }
90
143
 
91
- .cw.md, .mw.md {
92
- max-width: 1140px;
144
+ .cw.md,
145
+ .mw.md {
146
+ max-width: 1140px;
93
147
  }
94
148
 
95
- .cw.lg, .mw.lg {
96
- max-width: 1280px;
149
+ .cw.lg,
150
+ .mw.lg {
151
+ max-width: 1280px;
97
152
  }
98
153
 
99
- .cw.xl, .mw.xl {
100
- max-width: 1440px;
154
+ .cw.xl,
155
+ .mw.xl {
156
+ max-width: 1440px;
101
157
  }
102
158
 
103
- .cw.full, .mw.full, .mw.max {
104
- flex: 1;
105
- max-height: 100%;
159
+ .cw.full,
160
+ .mw.full,
161
+ .mw.max {
162
+ flex: 1;
163
+ max-height: 100%;
106
164
  }
107
165
 
108
- .cw.full .cw, .mw.full .cw, .mw.max .cw {
109
- max-height: 100%;
166
+ .cw.full .cw,
167
+ .mw.full .cw,
168
+ .mw.max .cw {
169
+ max-height: 100%;
110
170
  }
111
171
 
112
- /* Max size modals */
172
+ /* Toolbar */
113
173
 
114
- .mw.max {
115
- background: radial-gradient(ellipse at center, rgba(var(--color-bg-alt), .7) 50%, rgba(var(--color-bg-alt), 0) 100%);
116
- /* background: radial-gradient(ellipse at center, rgba(var(--color-bg-active), .9) 50%, rgba(var(--color-bg-active), 0) 100%); */
117
- /* background: radial-gradient(ellipse at center, rgba(var(--color-bg-medium), .9) 50%, rgba(var(--color-bg-medium), 0) 100%); */
118
- /* background: radial-gradient(ellipse at center, rgba(var(--color-bg-strong), .9) 50%, rgba(var(--color-bg-strong), 0) 100%); */
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
- /* Sidebar */
183
+ .toolbar_input_click:hover:before {
184
+ outline: 3px dashed rgba(var(--color-main), 0.75);
185
+ }
122
186
 
123
- .w_lsidebar {
124
- padding-right: var(--sidebar-wt);
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
- margin-right: var(--aside-wt);
197
+ margin-right: var(--aside-wt);
131
198
  }
132
199
 
133
200
  .app_aside {
134
- max-height: 100vh;
135
- top: 0; right: 0;
136
- padding-top: var(--toolbar-ht);
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
- transition: transform .2s ease-in-out, opacity .2s ease-in-out;
143
- transform: translateY(0);
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
- min-height: calc(100vh - var(--toolbar-ht));
225
+ min-height: calc(100vh - var(--toolbar-ht));
150
226
  }
151
227
 
152
228
  .max_h_toolbar_screen {
153
- max-height: calc(100vh - var(--toolbar-ht));
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
- position: absolute;
160
- top: 0; right: 0; z-index: 50;
161
- height: var(--toolbar-ht);
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
- position: relative;
168
- width: 0;
169
- overflow: hidden;
170
- transition: width ease .2s;
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
- width: var(--sidebar-wt);
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
- position: absolute;
179
- top: 0;
180
- left: calc(var(--sidebar-wt) * -1);
181
- bottom: 0;
182
- width: var(--sidebar-wt);
183
- transition: left ease .2s;
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
- left: 0;
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
- width: calc(var(--sidebar-wt) - 23px);
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
- #app_sidebar {
198
- width: 0;
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
- /* position: relative; */
206
- overflow-x: hidden;
207
- overflow-y: scroll;
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
- overflow-x: scroll;
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
- .app_scr {
216
- -webkit-overflow-scrolling: touch;
217
- /* scroll-behavior: smooth; */
218
- /* After a recent update, this no longer works in Chrome */
219
- /* overflow-y: overlay; */
220
- scrollbar-gutter: auto;
221
- /* In "new" Google Chrome, this will make the scrollbar invisible, so we must turn it off. */
222
- /* scrollbar-width: thin; */
223
-
224
- /* This is for bottom-up chat style virtualized list */
225
- overflow-anchor: none;
226
- }
227
-
228
- .app_scr::-webkit-scrollbar {
229
- width: 18px;
230
- height: 18px;
231
- /* background-color: rgb(var(--color-bg-active)); */
232
- background-color: rgb(var(--color-bg));
233
- /* border: solid 1px red; */
234
- }
235
-
236
- .app_scr::-webkit-scrollbar:vertical {
237
- border-left: solid 1px rgb(var(--color-bg-active));
238
- }
239
-
240
- .app_scr::-webkit-scrollbar:horizontal {
241
- border-top: solid 1px rgb(var(--color-bg-active));
242
- }
243
-
244
- .app_scr::-webkit-scrollbar-track {
245
- /* box-shadow: inset 0 0 0 5px rgb(var(--color-bg)); */
246
- border-radius: 9px;
247
- }
248
-
249
- .app_scr::-webkit-scrollbar-thumb {
250
- z-index: -1;
251
- /* Use this for invisible style */
252
- /* background-color: rgb(var(--color-bg-active)); */
253
- background-color: transparent;
254
- box-shadow: inset 0 0 0 5px rgb(var(--color-bg));
255
- /* transform: scale(.5); */
256
- border-radius: 9px;
257
- min-height: 100px;
258
- }
259
-
260
- .app_scr::-webkit-scrollbar-thumb {
261
- background-color: rgb(var(--color-bg-medium));
262
- /* background-color: rgb(var(--color-bg-active)); */
263
- }
264
-
265
- .app_scr:hover::-webkit-scrollbar-thumb {
266
- background-color: rgb(var(--color-bg-medium));
267
- /* background-color: rgb(var(--color-bg-active)); */
268
- }
269
-
270
- .app_scr::-webkit-scrollbar-thumb:active {
271
- background-color: rgb(var(--color-bg-strong));
272
- /* background-color: rgb(var(--color-bg-active)); */
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
  }