@jsb188/css 1.1.11 → 1.1.12
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 +290 -122
- package/css/_responsive.css +954 -109
- package/css/_responsive.generated.css +1705 -225
- package/css/_sizing.css +118 -27
- package/css/alert.css +22 -13
- package/css/animate.css +83 -0
- package/css/form.css +99 -22
- package/css/layout.css +34 -8
- package/css/loading.css +1 -1
- package/css/misc.css +0 -73
- package/css/modal.css +0 -37
- package/css/popover.css +4 -9
- package/package.json +3 -2
package/css/layout.css
CHANGED
|
@@ -42,16 +42,30 @@ body.p_auth {
|
|
|
42
42
|
|
|
43
43
|
.mw.centered_big {
|
|
44
44
|
flex: 1;
|
|
45
|
-
max-height:
|
|
45
|
+
max-height: 900px;
|
|
46
46
|
max-width: 1440px;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/* Medium, centered modal page */
|
|
50
50
|
|
|
51
|
-
.mw.
|
|
51
|
+
.mw.centered_medium_wide {
|
|
52
52
|
flex: 1;
|
|
53
53
|
max-height: 600px;
|
|
54
|
-
max-width:
|
|
54
|
+
max-width: 1060px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.mw.centered_medium_tall {
|
|
58
|
+
flex: 1;
|
|
59
|
+
max-height: 900px;
|
|
60
|
+
max-width: 1060px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Small, centered modal page */
|
|
64
|
+
|
|
65
|
+
.mw.centered_small_tall {
|
|
66
|
+
flex: 1;
|
|
67
|
+
max-height: 900px;
|
|
68
|
+
max-width: 780px;
|
|
55
69
|
}
|
|
56
70
|
|
|
57
71
|
/* Top-fixed position modal content wrappers */
|
|
@@ -194,7 +208,7 @@ body.p_auth {
|
|
|
194
208
|
/* Content with right <aside /> sticky sidebar */
|
|
195
209
|
|
|
196
210
|
.w_app_side {
|
|
197
|
-
|
|
211
|
+
padding-right: var(--aside-wt);
|
|
198
212
|
}
|
|
199
213
|
|
|
200
214
|
.app_aside {
|
|
@@ -204,6 +218,17 @@ body.p_auth {
|
|
|
204
218
|
padding-top: var(--toolbar-ht);
|
|
205
219
|
}
|
|
206
220
|
|
|
221
|
+
/* Account for the toolbar's additional 40px filters row. */
|
|
222
|
+
.app_aside.with_toolbar_filters {
|
|
223
|
+
padding-top: calc(var(--toolbar-ht) + 40px);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@media (--gte-mobile-landscape) {
|
|
227
|
+
.app_aside:not(.without_scrollbar) {
|
|
228
|
+
right: var(--app-scrollbar-size);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
207
232
|
/* Floating message */
|
|
208
233
|
|
|
209
234
|
.floating_msg_cnt {
|
|
@@ -313,6 +338,8 @@ body.p_auth {
|
|
|
313
338
|
/* App layout; main content (scroll area) */
|
|
314
339
|
|
|
315
340
|
.app_scr {
|
|
341
|
+
--app-scrollbar-size: 19px;
|
|
342
|
+
|
|
316
343
|
/* position: relative; */
|
|
317
344
|
overflow-x: hidden;
|
|
318
345
|
overflow-y: scroll;
|
|
@@ -326,7 +353,7 @@ body.p_auth {
|
|
|
326
353
|
overflow-x: scroll;
|
|
327
354
|
}
|
|
328
355
|
|
|
329
|
-
.app_scr.
|
|
356
|
+
.app_scr.auto_x {
|
|
330
357
|
overflow-x: auto;
|
|
331
358
|
}
|
|
332
359
|
|
|
@@ -338,7 +365,6 @@ body.p_auth {
|
|
|
338
365
|
@media (--gte-mobile-portrait) {
|
|
339
366
|
.app_scr {
|
|
340
367
|
-webkit-overflow-scrolling: touch;
|
|
341
|
-
/* scroll-behavior: smooth; */
|
|
342
368
|
/* After a recent update, this no longer works in Chrome */
|
|
343
369
|
/* overflow-y: overlay; */
|
|
344
370
|
scrollbar-gutter: auto;
|
|
@@ -351,8 +377,8 @@ body.p_auth {
|
|
|
351
377
|
|
|
352
378
|
.app_scr::-webkit-scrollbar {
|
|
353
379
|
/* This size must match SHEET_CANVAS_APP_SCROLLBAR_SIZE in @jsb188:sheet/src/modules/Sheet-Controller.tsx. */
|
|
354
|
-
width:
|
|
355
|
-
height:
|
|
380
|
+
width: var(--app-scrollbar-size);
|
|
381
|
+
height: var(--app-scrollbar-size);
|
|
356
382
|
background-color: rgb(var(--color-bg));
|
|
357
383
|
}
|
|
358
384
|
|
package/css/loading.css
CHANGED
package/css/misc.css
CHANGED
|
@@ -1,80 +1,7 @@
|
|
|
1
|
-
/* Themes container */
|
|
2
|
-
|
|
3
|
-
.themes_cnt {
|
|
4
|
-
/* -10 for item padding; -5 for border */
|
|
5
|
-
margin: 2rem -15px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/* Boxed item */
|
|
9
|
-
|
|
10
|
-
.box_item {
|
|
11
|
-
position: relative;
|
|
12
|
-
width: 118px;
|
|
13
|
-
padding: 9px;
|
|
14
|
-
margin: 8px 8px 0;
|
|
15
|
-
border: solid 5px transparent;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.box_item:disabled {
|
|
19
|
-
cursor: not-allowed;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.box_item:hover {
|
|
23
|
-
background-color: rgb(var(--color-bg-alt));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.box_item.sel {
|
|
27
|
-
border-color: rgb(var(--color-bg-alt));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.box_item.sel:hover {
|
|
31
|
-
border-color: rgb(var(--color-bg-active));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Circle inside box item */
|
|
35
|
-
|
|
36
|
-
.cl_circle {
|
|
37
|
-
width: 70px;
|
|
38
|
-
height: 70px;
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
background-size: 125% auto;
|
|
41
|
-
background-position: 50% 25%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* Icon inside circle svg */
|
|
45
|
-
|
|
46
|
-
.box_item .icon_cnt {
|
|
47
|
-
position: absolute;
|
|
48
|
-
top: 9px;
|
|
49
|
-
left: 15px;
|
|
50
|
-
right: 15px;
|
|
51
|
-
/* This size is hard-coded to the SVG circle size in [MiscElements.tsx] */
|
|
52
|
-
height: 70px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Close icon */
|
|
56
|
-
|
|
57
|
-
.box_item .close {
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: -11px;
|
|
60
|
-
right: -11px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
1
|
/* Shorcut key button */
|
|
64
2
|
|
|
65
3
|
.shortcut {
|
|
66
4
|
display: inline-block;
|
|
67
5
|
padding: 3px 6px 2px;
|
|
68
|
-
margin: 0 7px;
|
|
69
6
|
border-radius: 5px;
|
|
70
|
-
transform: translateY(-1px);
|
|
71
|
-
box-shadow: 0 0 0 1px var(--color-solid-hover);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.shortcut:first-child {
|
|
75
|
-
margin-left: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.shortcut:last-child {
|
|
79
|
-
margin-right: 0;
|
|
80
7
|
}
|
package/css/modal.css
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/* Modal content container */
|
|
2
|
-
|
|
3
|
-
.mw_content {
|
|
4
|
-
flex: 1;
|
|
5
|
-
height: 100%;
|
|
6
|
-
overflow-y: auto;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.mw_content.w_pad {
|
|
10
|
-
padding-bottom: 3.5rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
1
|
/* Themed container */
|
|
14
2
|
|
|
15
3
|
.mw_themed {
|
|
@@ -82,31 +70,6 @@
|
|
|
82
70
|
background-color: rgba(var(--color-darker-rgb), 0.1);
|
|
83
71
|
}
|
|
84
72
|
|
|
85
|
-
/* Modal side nav */
|
|
86
|
-
|
|
87
|
-
.mw_snav {
|
|
88
|
-
align-self: stretch;
|
|
89
|
-
width: 270px;
|
|
90
|
-
padding: var(--rem-large) 0 var(--rem-large) 40px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/* Modal save button */
|
|
94
|
-
|
|
95
|
-
.mfs_cnt {
|
|
96
|
-
position: absolute;
|
|
97
|
-
bottom: 0;
|
|
98
|
-
left: 286px; /* 270px + 16px */
|
|
99
|
-
right: 16px;
|
|
100
|
-
transform: translateY(100%);
|
|
101
|
-
transition: transform ease 0.15s;
|
|
102
|
-
padding: 0.75rem;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.mfs_cnt.active {
|
|
106
|
-
box-shadow: var(--shadow-float-full);
|
|
107
|
-
transform: translateY(0);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
73
|
/* Update notes */
|
|
111
74
|
|
|
112
75
|
.mw_content_title {
|
package/css/popover.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.popover.default .tooltip:not(.w_override) {
|
|
22
|
-
max-width:
|
|
22
|
+
max-width: 200px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* Pop over; list */
|
|
@@ -54,14 +54,9 @@
|
|
|
54
54
|
right: 0;
|
|
55
55
|
padding: 5px 0.4rem 8px;
|
|
56
56
|
margin-bottom: 0.3rem;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: -5px;
|
|
62
|
-
left: 0;
|
|
63
|
-
right: 0;
|
|
64
|
-
height: 5px;
|
|
57
|
+
box-shadow:
|
|
58
|
+
0 -5px 0 rgb(var(--color-bg)),
|
|
59
|
+
0 0 7px rgb(var(--color-bg));
|
|
65
60
|
}
|
|
66
61
|
|
|
67
62
|
/* Pop over; list item */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsb188/css",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Re-usable, base CSS styles for any app (NOTE: Bring your own variables).",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "jsb188",
|
|
@@ -20,5 +20,6 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"gen:responsive-css": "node ./scripts/generateResponsiveCss.js",
|
|
22
22
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {}
|
|
24
25
|
}
|