@jsb188/css 1.0.1

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/list.css ADDED
@@ -0,0 +1,292 @@
1
+
2
+ /* List container */
3
+
4
+ .li_cnt .li_item:last-child, /* Used for stand alone list */
5
+ .li_body:last-child .li_item:last-child, .li_body.end .li_item:last-child { /* Used for virtualized lists */
6
+ border-bottom: none;
7
+ }
8
+
9
+ /* List item */
10
+
11
+ .p_li {
12
+ padding: .55rem var(--rem-default);
13
+ }
14
+
15
+ .p_li.subtitle {
16
+ padding-top: .25rem;
17
+ padding-bottom: .25rem;
18
+ }
19
+
20
+ .li_item {
21
+ position: relative;
22
+ border-bottom: solid 1px var(--color-bg-alt);
23
+ }
24
+
25
+ .li_item .content {
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ .li_item a.content:hover,
30
+ .li_item button.content:hover,
31
+ .li_item div[role='button'].content:hover {
32
+ z-index: 11;
33
+ background-color: var(--color-bg-alt);
34
+ /* background-color: var(--opaque-default); */
35
+ }
36
+
37
+ .li_item.selected a.content {
38
+ z-index: 11;
39
+ background-color: var(--color-bg-alt);
40
+ box-shadow: inset 0 0 0 1px var(--color-primary);
41
+ }
42
+
43
+ /* List item; options button */
44
+
45
+ .li_opts_btn {
46
+ position: relative; z-index: 2;
47
+ display: none;
48
+ background-color: var(--color-bg);
49
+ }
50
+
51
+ .li_opts_btn:hover {
52
+ background-color: var(--color-bg-alt);
53
+ }
54
+
55
+ .li_opts_btn:active {
56
+ background-color: var(--color-bg-active);
57
+ transform: translateY(1px);
58
+ }
59
+
60
+ .li_item:hover .li_opts_btn, .li_opts_btn.active {
61
+ display: flex;
62
+ margin: 0 -4px 0 4px;
63
+ }
64
+
65
+ /* Unread dot & right icon */
66
+
67
+ .li_right {
68
+ position: absolute; z-index: 1;
69
+ }
70
+
71
+ .li_item.default .li_right {
72
+ top: 50%;
73
+ right: .75rem;
74
+ transform: translateY(-50%);
75
+ background-color: var(--color-bg);
76
+ box-shadow: 0 0 10px 5px var(--color-bg);
77
+ }
78
+
79
+ .li_item.em .li_right {
80
+ top: -9px;
81
+ right: -10px;
82
+ }
83
+
84
+ .li_item.default:hover .li_right,
85
+ .li_item.default.selected .li_right {
86
+ background-color: var(--color-bg-alt);
87
+ box-shadow: 0 0 10px 5px var(--color-bg-alt);
88
+ }
89
+
90
+ .unread_dot {
91
+ width: .5rem;
92
+ height: .5rem;
93
+ border-radius: 50%;
94
+ margin: 0 4px;
95
+ }
96
+
97
+ /* List group with an outline */
98
+
99
+ .li_group {
100
+ position: relative;
101
+ margin: 10px 0;
102
+ }
103
+
104
+ .li_group .li_item {
105
+ border-bottom: none;
106
+ }
107
+
108
+ .li_group .li_item a.content:hover,
109
+ .li_group .li_item.selected a.content {
110
+ background-color: var(--color-bg-active);
111
+ }
112
+
113
+ .li_group .li_item a.content:hover:before {
114
+ content: '';
115
+ position: absolute;
116
+ top: 0; bottom: 0; right: 0;
117
+ width: 1px;
118
+ background-color: var(--color-bg-medium);
119
+ }
120
+
121
+ .li_group .li_item:first-child a.content:hover:after {
122
+ content: '';
123
+ position: absolute;
124
+ top: 0; left: 0; right: 0;
125
+ height: 1px;
126
+ background-color: var(--color-bg-medium);
127
+ }
128
+
129
+ .li_group .li_item:last-child a.content:hover:after {
130
+ content: '';
131
+ position: absolute;
132
+ bottom: 0; left: 0; right: 0;
133
+ height: 1px;
134
+ background-color: var(--color-bg-medium);
135
+ }
136
+
137
+ .li_group .li_item.selected a.content:hover:before,
138
+ .li_group .li_item.selected:first-child a.content:hover:after,
139
+ .li_group .li_item.selected:last-child a.content:hover:after {
140
+ background-color: var(--color-primary);
141
+ }
142
+
143
+ .li_group:first-child {
144
+ margin-top: 0;
145
+ }
146
+
147
+ .li_group:before {
148
+ content: ' ';
149
+ position: absolute;
150
+ top: 0;
151
+ left: 0;
152
+ right: 0;
153
+ bottom: 0;
154
+ box-shadow: inset 0 0 0 1px var(--color-bg-medium);
155
+ }
156
+
157
+ .li_group_line {
158
+ position: absolute;
159
+ bottom: -11px;
160
+ /* left: 100%; right: -74px; */
161
+ left: 334px; right: -63px;
162
+ height: 10px;
163
+ background-color: var(--color-bg-alt);
164
+ }
165
+
166
+ /* Preset: em */
167
+
168
+ .li_item.em {
169
+ display: flex;
170
+ flex-direction: column;
171
+ margin: 0 var(--rem-default) 2px;
172
+ border: none;
173
+ }
174
+
175
+ .li_item.em:first-child .content, .li_item.em.first .content,
176
+ .ln_item.em:first-child, .ln_item.em.first {
177
+ margin-top: var(--rem-small);
178
+ border-top-left-radius: var(--radius-small);
179
+ border-top-right-radius: var(--radius-small);
180
+ }
181
+
182
+ .li_item.em:last-child .content, .li_item.em.last .content,
183
+ .ln_item.em:last-child, .ln_item.em.last {
184
+ margin-bottom: var(--rem-small);
185
+ border-bottom-left-radius: var(--radius-small);
186
+ border-bottom-right-radius: var(--radius-small);
187
+ }
188
+
189
+ .li_item.em .content {
190
+ padding: var(--rem-small) var(--rem-default) var(--rem-small) var(--rem-small);
191
+ }
192
+
193
+ .li_item.em .content,
194
+ .ln_item.em {
195
+ background-color: var(--color-bg-alt);
196
+ }
197
+
198
+ .li_item.em .content .mock_av, .li_item.em .content .mock:before {
199
+ background-color: var(--color-darker-light);
200
+ }
201
+
202
+ .li_item.em a.content:hover,
203
+ .li_item.em button.content:hover,
204
+ .li_item.em [role='button'].content:hover,
205
+ .ln_item.em.link:hover {
206
+ background-color: var(--color-bg-active);
207
+ }
208
+
209
+ /* Line list item */
210
+
211
+ .ln_item.normal:not(.m_t_b):not(.m_s_b) {
212
+ margin-bottom: .4rem;
213
+ }
214
+
215
+ .ln_item.normal:last-child {
216
+ margin-bottom: 0;
217
+ }
218
+
219
+ /* Line list item: .em preset */
220
+
221
+ .ln_item.em {
222
+ padding: .5rem 0;
223
+ margin: 0 var(--rem-default) 2px;
224
+ }
225
+
226
+ .ln_item.em .av_item {
227
+ margin: 0 var(--rem-small) 0 var(--rem-default);
228
+ }
229
+
230
+ /* Line item; subtitle */
231
+
232
+ .ln_item.subtitle {
233
+ min-height: 32px;
234
+ }
235
+
236
+ /* Thumbnail item */
237
+
238
+ .th_item {
239
+ position: relative;
240
+ padding: 100% 0 0;
241
+ }
242
+
243
+ /* Subtitle */
244
+
245
+ .subtitle.p_li .icon_cnt {
246
+ width: 2.3rem;
247
+ margin-right: .2rem;
248
+ }
249
+
250
+ /* Virtualized list */
251
+
252
+ .vl_list {
253
+ padding-bottom: var(--rem-default);
254
+ }
255
+
256
+ .vl_list .li_body.top {
257
+ display: flex;
258
+ flex-direction: column;
259
+ justify-content: flex-end;
260
+ }
261
+
262
+ /* Preset: small & tiny */
263
+
264
+ .li_item.small, .li_item.tiny, .li_item.xtiny {
265
+ border-bottom: none;
266
+ }
267
+
268
+ .li_item.small .p_li, .li_item.tiny .p_li, .li_item.xtiny .p_li {
269
+ padding: .25rem 7px;
270
+ margin: 0 7px;
271
+ border-radius: var(--radius-small);
272
+ }
273
+
274
+ .li_faded .li_item .li_item_body, .li_faded .li_item .av.main {
275
+ opacity: .5;
276
+ }
277
+
278
+ /* Sticky footer */
279
+
280
+ .btn_area {
281
+ padding: 1rem 0;
282
+ }
283
+
284
+ .btn_area.sticky {
285
+ position: sticky;
286
+ /* Need the -1px for DOM scroll behavior cover */
287
+ bottom: -1px;
288
+ padding: 1rem 10px;
289
+ margin-left: -10px;
290
+ margin-right: -10px;
291
+ background: transparent linear-gradient(180deg, transparent 0%, var(--color-bg) 50%, var(--color-bg) 100%);
292
+ }
@@ -0,0 +1,170 @@
1
+
2
+ /* Activity dots */
3
+
4
+ @keyframes anim-activity-dot {
5
+ 0% { opacity: .25; }
6
+ 50% { opacity: 1; }
7
+ 100% { opacity: .25; }
8
+ }
9
+
10
+ .dot {
11
+ width: .3rem;
12
+ height: .3rem;
13
+ margin: 0 .35rem;
14
+ }
15
+
16
+ .dot.tiny {
17
+ width: 0.3rem;
18
+ height: 0.3rem;
19
+ margin: 0 .073rem;
20
+ }
21
+
22
+ .dot.small {
23
+ width: 0.375rem;
24
+ height: 0.375rem;
25
+ margin: 0 .12rem;
26
+ }
27
+
28
+ .dot.default {
29
+ width: .5rem;
30
+ height: .5rem;
31
+ margin: 0 .13rem;
32
+ }
33
+
34
+ .dot.medium {
35
+ width: .75rem;
36
+ height: .75rem;
37
+ margin: 0 .24rem;
38
+ }
39
+
40
+ .dot.large {
41
+ width: 1rem;
42
+ height: 1rem;
43
+ margin: 0 .24rem;
44
+ }
45
+
46
+ .activity .dot {
47
+ opacity: 1;
48
+ flex-shrink: 0;
49
+ background-color: var(--color-text);
50
+ }
51
+
52
+ .activity .d0, .activity .d1, .activity .d2 {
53
+ animation-duration: 1.5s;
54
+ animation-fill-mode: both;
55
+ animation-iteration-count: infinite;
56
+ }
57
+
58
+ .activity .d0 {
59
+ animation-name: anim-activity-dot;
60
+ }
61
+
62
+ .activity .d1 {
63
+ animation-name: anim-activity-dot;
64
+ animation-delay: .2s;
65
+ }
66
+
67
+ .activity .d2 {
68
+ animation-name: anim-activity-dot;
69
+ animation-delay: .4s;
70
+ }
71
+
72
+ .bg_highlight .activity .dot,
73
+ .bg_primary .activity .dot,
74
+ .bg_contrast .activity .dot {
75
+ background-color: var(--color-solid);
76
+ }
77
+
78
+ /* Big loader */
79
+
80
+ .big_loader {
81
+ width: 45px;
82
+ aspect-ratio: 1;
83
+ border-radius: 50%;
84
+ animation: l5 2s infinite;
85
+ }
86
+
87
+ .big_loader.default {
88
+ background:
89
+ radial-gradient(farthest-side,var(--color-bg) 94%,#0000),
90
+ radial-gradient(farthest-side,var(--color-secondary) 94%,#0000),
91
+ radial-gradient(farthest-side,var(--color-primary) 94%,#0000),
92
+ radial-gradient(farthest-side,var(--color-highlight) 94%,#0000),
93
+ var(--color-bg);
94
+ background-size: 105% 105%;
95
+ background-repeat: no-repeat;
96
+ }
97
+
98
+ .big_loader.alt {
99
+ background:
100
+ radial-gradient(farthest-side,var(--color-bg-alt) 94%,#0000),
101
+ radial-gradient(farthest-side,var(--color-secondary) 94%,#0000),
102
+ radial-gradient(farthest-side,var(--color-primary) 94%,#0000),
103
+ radial-gradient(farthest-side,var(--color-highlight) 94%,#0000),
104
+ var(--color-bg-alt);
105
+ background-size: 105% 105%;
106
+ background-repeat: no-repeat;
107
+ }
108
+
109
+ .big_loader.active {
110
+ background:
111
+ radial-gradient(farthest-side,var(--color-bg-active) 94%,#0000),
112
+ radial-gradient(farthest-side,var(--color-secondary) 94%,#0000),
113
+ radial-gradient(farthest-side,var(--color-primary) 94%,#0000),
114
+ radial-gradient(farthest-side,var(--color-highlight) 94%,#0000),
115
+ var(--color-bg-active);
116
+ background-size: 105% 105%;
117
+ background-repeat: no-repeat;
118
+ }
119
+
120
+ .big_loader.muted {
121
+ background:
122
+ radial-gradient(farthest-side,var(--color-secondary) 94%,#0000),
123
+ radial-gradient(farthest-side,var(--color-secondary-opaque) 94%,#0000),
124
+ radial-gradient(farthest-side,var(--color-bg) 94%,#0000),
125
+ radial-gradient(farthest-side,var(--color-bg-active) 94%,#0000),
126
+ var(--color-secondary);
127
+ background-size: 105% 105%;
128
+ background-repeat: no-repeat;
129
+ }
130
+
131
+ @keyframes l5 {
132
+ 0% {background-position: 50% -55px,-48px 50%, 50% calc(100% + 55px),calc(100% + 55px) 50%}
133
+ 20%,
134
+ 25% {background-position: 50% -55px,-55px 50%, 50% calc(100% + 55px),50% 50%}
135
+ 45%,
136
+ 50% {background-position: 50% -55px,-55px 50%, 50% 50%, 50% 50%}
137
+ 75%,
138
+ 75% {background-position: 50% -55px, 50% 50%, 50% 50%, 50% 50%}
139
+ 95%,
140
+ 100%{background-position: 50% 50% , 50% 50%, 50% 50%, 50% 50%}
141
+ }
142
+
143
+ /* Circular progress */
144
+
145
+ .circular_progress {
146
+ position: absolute;
147
+ top: -16px; left: -16px; right: -16px; bottom: -16px;
148
+ }
149
+
150
+ .circular_progress svg {
151
+ width: 100%;
152
+ height: 100%;
153
+ }
154
+
155
+ .circular_progress .pill {
156
+ position: absolute;
157
+ top: 0; left: 50%;
158
+ transform: translate(-50%, -25%);
159
+ }
160
+
161
+ circle.circle_outline {
162
+ stroke: var(--color-bg-alt);
163
+ }
164
+
165
+ circle.circle_line {
166
+ stroke: var(--color-highlight);
167
+ transition: all .25s ease-in-out;
168
+ transform: rotate(-90deg);
169
+ transform-origin: 50% 50%;
170
+ }
package/css/misc.css ADDED
@@ -0,0 +1,79 @@
1
+
2
+ /* Themes container */
3
+
4
+ .themes_cnt {
5
+ /* -10 for item padding; -5 for border */
6
+ margin: 2rem -15px;
7
+ }
8
+
9
+ /* Boxed item */
10
+
11
+ .box_item {
12
+ position: relative;
13
+ width: 118px;
14
+ padding: 9px;
15
+ margin: 8px 8px 0;
16
+ border: solid 5px transparent;
17
+ }
18
+
19
+ .box_item:disabled {
20
+ cursor: not-allowed;
21
+ }
22
+
23
+ .box_item:hover {
24
+ background-color: var(--color-bg-alt);
25
+ }
26
+
27
+ .box_item.sel {
28
+ border-color: var(--color-bg-alt);
29
+ }
30
+
31
+ .box_item.sel:hover {
32
+ border-color: var(--color-bg-active);
33
+ }
34
+
35
+ /* Circle inside box item */
36
+
37
+ .cl_circle {
38
+ width: 70px;
39
+ height: 70px;
40
+ border-radius: 50%;
41
+ background-size: 125% auto;
42
+ background-position: 50% 25%;
43
+ }
44
+
45
+ /* Icon inside circle svg */
46
+
47
+ .box_item .icon_cnt {
48
+ position: absolute;
49
+ top: 9px; left: 15px; right: 15px;
50
+ /* This size is hard-coded to the SVG circle size in [MiscElements.tsx] */
51
+ height: 70px;
52
+ }
53
+
54
+ /* Close icon */
55
+
56
+ .box_item .close {
57
+ position: absolute;
58
+ top: -11px;
59
+ right: -11px;
60
+ }
61
+
62
+ /* Shorcut key button */
63
+
64
+ .shortcut {
65
+ display: inline-block;
66
+ padding: 3px 4px 2px;
67
+ margin: 0 7px;
68
+ border-radius: 5px;
69
+ transform: translateY(-1px);
70
+ box-shadow: 0 0 0 1px var(--color-solid-hover);
71
+ }
72
+
73
+ .shortcut:first-child {
74
+ margin-left: 0;
75
+ }
76
+
77
+ .shortcut:last-child {
78
+ margin-right: 0;
79
+ }