@jsb188/css 1.0.4 → 1.1.3

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/form.css CHANGED
@@ -21,7 +21,7 @@
21
21
  border: solid 1px var(--color-text-light);
22
22
  background-color: transparent;
23
23
  /* opacity: .2; */
24
- /* box-shadow: 0 2px 4px var(--color-highlight), 0 4px 10px var(--color-highlight); */
24
+ /* box-shadow: 0 2px 4px var(--color-main), 0 4px 10px var(--color-main); */
25
25
  }
26
26
 
27
27
  /* Input */
@@ -50,8 +50,8 @@ input.is_disabled, textarea.is_disabled {
50
50
  }
51
51
 
52
52
  .form_el.error input {
53
- border-color: var(--color-error);
54
- background-color: var(--color-error-faded);
53
+ border-color: rgb(var(--color-error));
54
+ background-color: rgb(var(--color-error-faded));
55
55
  }
56
56
 
57
57
  .form_el.c input {
@@ -235,7 +235,7 @@ fieldset input[type="radio"] {
235
235
  }
236
236
 
237
237
  .form_el.inside_outline.error input {
238
- border-bottom-color: var(--color-error-active);
238
+ border-bottom-color: rgb(var(--color-error-active));
239
239
  }
240
240
 
241
241
  .form_cnt.outline .form_el.inside_outline:last-child {
@@ -288,22 +288,25 @@ fieldset input[type="radio"] {
288
288
  }
289
289
 
290
290
  .btn.em:hover {
291
- background-color: var(--color-solid-hover);
291
+ background-color: var(--color-solid-hover) !important;
292
292
  }
293
293
 
294
294
  .btn.em:active, .btn.em:disabled {
295
- background-color: var(--color-solid-active);
296
295
  transform: translateY(2px);
297
296
  box-shadow: none;
298
297
  }
299
298
 
299
+ .btn.em:active {
300
+ background-color: var(--color-solid-active) !important;
301
+ }
302
+
300
303
  .btn.em:disabled {
301
- background-color: var(--color-solid-hover);
304
+ background-color: var(--color-solid-hover) !important;
302
305
  }
303
306
 
304
307
  /* Opaque preset */
305
308
 
306
- .btn.subtle, .btn.cl_error {
309
+ .btn.subtle, .btn.cl_err {
307
310
  background-color: rgba(0,0,0,.1);
308
311
  }
309
312
 
@@ -311,11 +314,11 @@ fieldset input[type="radio"] {
311
314
  color: var(--color-text-medium);
312
315
  }
313
316
 
314
- .btn.subtle:not(:disabled):hover, .btn.cl_error:not(:disabled):hover {
317
+ .btn.subtle:not(:disabled):hover, .btn.cl_err:not(:disabled):hover {
315
318
  background-color: rgba(0,0,0,.2);
316
319
  }
317
320
 
318
- .btn.subtle:not(:disabled):active, .btn.cl_error:not(:disabled):active {
321
+ .btn.subtle:not(:disabled):active, .btn.cl_err:not(:disabled):active {
319
322
  background-color: rgba(0,0,0,.25);
320
323
  }
321
324
 
@@ -342,16 +345,26 @@ fieldset input[type="radio"] {
342
345
  border-radius: 4px;
343
346
  }
344
347
 
345
- /* Normal button */
348
+ /* Button sizes */
349
+
350
+ .btn.sm {
351
+ padding: .3rem .45rem;
352
+ border-radius: var(--radius-small);
353
+ }
346
354
 
347
355
  .btn.df {
348
- /* padding: .7rem .7rem .7rem; */
349
356
  padding: .58rem;
350
357
  border-radius: var(--radius-small);
351
358
  }
352
359
 
353
- .btn.df.ft_t {
354
- padding: .3rem .45rem;
360
+ .btn.md {
361
+ padding: .7rem 1.05rem .7rem;
362
+ border-radius: var(--radius-small-wrap);
363
+ }
364
+
365
+ .btn.lg {
366
+ padding: .9rem 1.2rem .9rem;
367
+ border-radius: var(--radius-small-wrap);
355
368
  }
356
369
 
357
370
  /* Form break */
@@ -371,7 +384,7 @@ fieldset input[type="radio"] {
371
384
  position: absolute;
372
385
  top: 50%;
373
386
  height: 1px;
374
- background-color: var(--color-text-medium);
387
+ background-color: var(--color-text-light);
375
388
  }
376
389
 
377
390
  .form_break .line:after {
@@ -421,12 +434,20 @@ fieldset input[type="radio"] {
421
434
  .ib_label {
422
435
  position: relative;
423
436
  padding: 0 5px;
424
- margin: 0 5px;
437
+ margin: 0 2px 0 3px;
438
+ line-height: 1;
439
+ white-space: nowrap;
425
440
  }
426
441
 
427
442
  .ib_label .icon {
428
443
  margin: -5px -4px -3px;
429
- font-size: 1.5em;
444
+ font-size: 1.6em;
445
+ }
446
+
447
+ .ib_label .indicator {
448
+ display: block;
449
+ margin-left: 2px;
450
+ margin-right: 5px;
430
451
  }
431
452
 
432
453
  .ib_label:first-child {
@@ -441,7 +462,27 @@ fieldset input[type="radio"] {
441
462
  content: ' ';
442
463
  position: absolute;
443
464
  top: 50%; left: 0; right: 0;
444
- height: 1.5rem;
445
- transform: translateY(-.75rem);
465
+ height: 1.6rem;
466
+ transform: translateY(-.85rem);
446
467
  border-radius: 5px;
447
468
  }
469
+
470
+ .ib_label.outline {
471
+ transform: translateX(-1px);
472
+ }
473
+
474
+ .ib_label.outline:before {
475
+ border: solid 1px var(--color-darker-light);
476
+ }
477
+
478
+ /* Color indicators */
479
+
480
+ .indicator {
481
+ width: 10px;
482
+ /*
483
+ height: 1em;
484
+ 14px is 1em of .ft_xs. I wanted it to be pixels so .ft_sm and .ft_xs has the same indicator height.
485
+ */
486
+ height: 14px;
487
+ border-radius: 3px;
488
+ }
package/css/layout.css CHANGED
@@ -13,28 +13,34 @@ body.p_auth {
13
13
  margin-right: auto;
14
14
  }
15
15
 
16
- .cw.tiny, .mw.tiny {
17
- /* Used for alerts */
16
+ .cw.tn, .mw.tn {
17
+ /* was .tiny */
18
18
  max-width: 380px;
19
19
  }
20
20
 
21
- .cw.small, .mw.small {
21
+ .cw.xxs, .mw.xxs {
22
+ /* was .small */
22
23
  max-width: 450px;
23
24
  }
24
25
 
25
- .cw.default_alt, .mw.default_alt {
26
+ .cw.xs, .mw.xs {
27
+ max-width: 530px;
28
+ }
29
+
30
+ .cw.sm, .mw.sm {
31
+ /* was .default_alt */
26
32
  max-width: 600px;
27
33
  }
28
34
 
29
- .cw.default, .mw.default {
35
+ .cw.df, .mw.df {
30
36
  max-width: 780px;
31
37
  }
32
38
 
33
- .cw.medium, .mw.medium {
39
+ .cw.md, .mw.md {
34
40
  max-width: 1140px;
35
41
  }
36
42
 
37
- .cw.large, .mw.large {
43
+ .cw.lg, .mw.lg {
38
44
  max-width: 1440px;
39
45
  }
40
46
 
@@ -106,26 +112,20 @@ body.p_auth {
106
112
  bottom: .15em; left: 0; right: 0;
107
113
  z-index: 1;
108
114
 
109
- /* background-color: var(--color-highlight); */
110
- background: var(--color-highlight) linear-gradient(45deg, var(--color-highlight-alt), var(--color-highlight));
115
+ /* background-color: var(--color-main); */
116
+ background: var(--color-main) linear-gradient(45deg, var(--color-main-alt), var(--color-main));
111
117
  opacity: .5;
112
118
  }
113
119
 
114
- /* Page & content elements; page cards */
120
+ /* Sidebar */
115
121
 
116
- .pg_card .title {
117
- padding: .5rem 0 .75rem;
118
- border-bottom: dashed 4px var(--color-bg-alt);
122
+ .w_lsidebar {
123
+ padding-right: var(--sidebar-wt);
119
124
  }
120
125
 
121
- .pg_card:before {
122
- content: ' ';
123
- width: 7rem; height: 7rem;
124
- border-radius: 3.5rem;
125
-
126
- background-color: var(--color-highlight);
127
- opacity: .125;
126
+ /* Content with right <aside /> sticky sidebar */
128
127
 
129
- position: absolute;
130
- top: -2rem; left: -2rem;
131
- }
128
+ .pg_aside {
129
+ width: var(--aside-wt);
130
+ top: var(--rem-medium);
131
+ }
package/css/list.css CHANGED
@@ -284,7 +284,9 @@
284
284
  .btn_area.sticky {
285
285
  position: sticky;
286
286
  /* Need the -1px for DOM scroll behavior cover */
287
+ top: 0; left: 0; right: 0;
287
288
  bottom: -1px;
289
+
288
290
  padding: 1rem 10px;
289
291
  margin-left: -10px;
290
292
  margin-right: -10px;
package/css/loading.css CHANGED
@@ -69,7 +69,7 @@
69
69
  animation-delay: .4s;
70
70
  }
71
71
 
72
- .bg_highlight .activity .dot,
72
+ .bg_main .activity .dot,
73
73
  .bg_primary .activity .dot,
74
74
  .bg_contrast .activity .dot {
75
75
  background-color: var(--color-solid);
@@ -89,7 +89,7 @@
89
89
  radial-gradient(farthest-side,var(--color-bg) 94%,#0000),
90
90
  radial-gradient(farthest-side,var(--color-secondary) 94%,#0000),
91
91
  radial-gradient(farthest-side,var(--color-primary) 94%,#0000),
92
- radial-gradient(farthest-side,var(--color-highlight) 94%,#0000),
92
+ radial-gradient(farthest-side,var(--color-main) 94%,#0000),
93
93
  var(--color-bg);
94
94
  background-size: 105% 105%;
95
95
  background-repeat: no-repeat;
@@ -100,7 +100,7 @@
100
100
  radial-gradient(farthest-side,var(--color-bg-alt) 94%,#0000),
101
101
  radial-gradient(farthest-side,var(--color-secondary) 94%,#0000),
102
102
  radial-gradient(farthest-side,var(--color-primary) 94%,#0000),
103
- radial-gradient(farthest-side,var(--color-highlight) 94%,#0000),
103
+ radial-gradient(farthest-side,var(--color-main) 94%,#0000),
104
104
  var(--color-bg-alt);
105
105
  background-size: 105% 105%;
106
106
  background-repeat: no-repeat;
@@ -111,23 +111,12 @@
111
111
  radial-gradient(farthest-side,var(--color-bg-active) 94%,#0000),
112
112
  radial-gradient(farthest-side,var(--color-secondary) 94%,#0000),
113
113
  radial-gradient(farthest-side,var(--color-primary) 94%,#0000),
114
- radial-gradient(farthest-side,var(--color-highlight) 94%,#0000),
114
+ radial-gradient(farthest-side,var(--color-main) 94%,#0000),
115
115
  var(--color-bg-active);
116
116
  background-size: 105% 105%;
117
117
  background-repeat: no-repeat;
118
118
  }
119
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
120
  @keyframes l5 {
132
121
  0% {background-position: 50% -55px,-48px 50%, 50% calc(100% + 55px),calc(100% + 55px) 50%}
133
122
  20%,
@@ -163,7 +152,7 @@ circle.circle_outline {
163
152
  }
164
153
 
165
154
  circle.circle_line {
166
- stroke: var(--color-highlight);
155
+ stroke: var(--color-main);
167
156
  transition: all .25s ease-in-out;
168
157
  transform: rotate(-90deg);
169
158
  transform-origin: 50% 50%;
package/css/modal.css CHANGED
@@ -106,7 +106,7 @@
106
106
  .mw_snav .msn_item.sel {
107
107
  background-color: var(--color-bg-alt) !important;
108
108
  /* background-color: var(--color-bg-active) !important; */
109
- /* background-color: var(--color-highlight) !important; */
109
+ /* background-color: var(--color-main) !important; */
110
110
  color: var(--color-text) !important;
111
111
  }
112
112
 
@@ -131,7 +131,7 @@
131
131
  }
132
132
 
133
133
  .mw_tnav.sticky {
134
- top: -1.25rem;
134
+ top: -1.25rem; left: 0; right: 0;
135
135
  }
136
136
 
137
137
  /* Modal save button */
@@ -228,6 +228,6 @@
228
228
  background-color: var(--color-secondary);
229
229
  }
230
230
 
231
- .mw_content_title.highlight:before {
232
- background-color: var(--color-highlight);
231
+ .mw_content_title.main:before {
232
+ background-color: var(--color-main);
233
233
  }
package/css/popover.css CHANGED
@@ -25,88 +25,77 @@
25
25
  max-width: 225px;
26
26
  }
27
27
 
28
- /* Pop over; options */
28
+ /* Pop over; list */
29
29
 
30
- .pop_over_options {
30
+ .po_list {
31
+ border-radius: var(--radius-small-wrap);
32
+ }
33
+
34
+ .po_list .inside {
35
+ padding: .3rem;
31
36
  display: flex; flex-direction: column;
32
37
  justify-content: flex-start;
33
38
  align-items: stretch;
34
- padding: .25rem .25rem;
35
- max-width: 225px;
36
39
  }
37
40
 
38
- .po_desc {
39
- min-width: 130px;
40
- padding: .4rem .64rem .7rem;
41
- margin-bottom: .25rem;
42
- }
43
-
44
- .po_opt .saving_area {
45
- width: 24px;
46
- transform: translateX(-7px);
41
+ .po_list.bg a:hover {
42
+ background-color: var(--color-darker-light);
47
43
  }
48
44
 
49
- .po_opt {
50
- min-width: 175px;
51
- padding: .25rem 0 .25rem .64rem;
52
- white-space: nowrap;
45
+ .po_list .av_item .av.main {
46
+ box-shadow: 0 0 10px var(--color-bg);
53
47
  }
54
48
 
55
- a.po_opt {
56
- border-radius: 4px;
57
- }
49
+ /* Pop over; subtitle */
58
50
 
59
- .po_opt .av.main {
60
- transform: translateX(-5px);
51
+ .po_subtitle {
52
+ position: sticky;
53
+ top: -.3rem; left: 0; right: 0;
54
+ padding: .35rem .4rem .4rem;
55
+ margin-bottom: .3rem;
61
56
  }
62
57
 
63
- .po_opt.break:before {
64
- content: ' ';
65
- position: absolute;
66
- left: 0; right: 0;
67
- height: 1px;
68
- }
58
+ /* Pop over; list item */
69
59
 
70
- .pop_over_options.bg_contrast .po_opt.break:before {
71
- background-color: var(--color-contrast-opaque);
60
+ .po_opt.link:not(:disabled):hover,
61
+ .po_opt.link:not(.disabled):hover {
62
+ background-color: var(--color-darker-soft);
72
63
  }
73
64
 
74
- .pop_over_options.bg_contrast .po_opt.title,
75
- .pop_over_options.bg_contrast .po_desc {
76
- border-bottom: solid 1px var(--color-contrast-opaque);
65
+ .po_opt.link:not(:disabled):active,
66
+ .po_opt.link:not(.disabled):active {
67
+ background-color: var(--color-darker-light);
68
+ /* transform: translateY(0); */
77
69
  }
78
70
 
79
- .pop_over_options.bg .po_opt.title,
80
- .pop_over_options.bg .po_opt.break:before {
81
- background-color: var(--color-text-light);
71
+ .po_opt .saving_area {
72
+ width: 24px;
73
+ transform: translateX(-4px);
82
74
  }
83
75
 
84
- .pop_over_options.bg .po_desc {
85
- border-bottom: solid 1px var(--color-text-light);
76
+ .po_opt {
77
+ min-width: 150px;
78
+ padding: .35rem 0 .35rem .5rem;
79
+ white-space: nowrap;
80
+ border-radius: var(--radius-small);
86
81
  }
87
82
 
88
- .pop_over_options.bg a {
89
- color: var(--color-text);
90
- }
83
+ /* Pop over; different presets for list item */
91
84
 
92
- .pop_over_options.bg a:hover {
93
- background-color: var(--color-darker-light);
85
+ .po_opt.av_item {
86
+ padding-top: .5rem;
87
+ padding-bottom: .5rem;
94
88
  }
95
89
 
96
- .po_desc:last-child {
97
- padding-bottom: .4rem;
98
- margin-bottom: 0;
99
- border-bottom: none !important;
90
+ .po_opt.preset_small {
91
+ padding: .5rem 0 .5rem .5rem;
100
92
  }
101
93
 
102
- .po_opt.title {
103
- padding-top: .4rem;
104
- padding-bottom: .4rem;
105
- margin-bottom: .25rem;
106
- }
94
+ /* Pop over; list break */
107
95
 
108
- .po_opt .av.main {
109
- margin: 0 .3rem 0 .2rem;
96
+ .po_list_break {
97
+ margin: .3rem 0;
98
+ border-top: solid 1px var(--color-darker-light);
110
99
  }
111
100
 
112
101
  /* Pop over container */
@@ -124,174 +113,6 @@ a.po_opt {
124
113
  min-height: 200px;
125
114
  /* max-height: calc(100vh - 20px); */
126
115
  max-height: 70vh;
127
- /* background: var(--color-highlight) linear-gradient(180deg, var(--color-highlight-alt), var(--color-highlight)) fixed; */
128
- }
129
-
130
- /* Profile; header */
131
-
132
- .pf_header_area {
133
- width: 100%;
134
- padding: 30% 0 0;
135
- object-fit: cover;
136
- background-color: var(--color-darker-light);
137
- }
138
-
139
- .pf_header_area.with_img {
140
- padding: 40% 0 0;
141
- }
142
-
143
- .pf_header_content.medium {
144
- margin-top: -40px;
145
- }
146
-
147
- .pf_header_content.large {
148
- margin-top: -70px;
149
- }
150
-
151
- .pf_header_content .mpf_shadow {
152
- box-shadow: 0 0 0 5px var(--color-primary);
153
- }
154
-
155
- .pf_header_content .ib_label {
156
- transform: translateY(3px);
157
- }
158
-
159
- .pf_header_content .ib_label .icon {
160
- display: inline-block;
161
- font-size: 1.6rem;
162
- }
163
-
164
- .pf_friend_status_dropdown {
165
- position: absolute;
166
- top: 94px;
167
- left: 100%;
168
- transform: translateX(-7px);
169
- }
170
-
171
- .pf_friend_status_dropdown.has_bg {
172
- top: 123px;
173
- }
174
-
175
- .pf_content_area {
176
- padding: 1rem 0;
177
- }
178
-
179
- /* .pf_header_content .mpf_shadow:before {
180
- content: ' ';
181
- position: absolute;
182
- left: -5px; top: 0; right: -5px; bottom: -10px;
183
- border-radius: 50%;
184
- background: radial-gradient(rgba(0,0,0,1), rgba(0,0,0,0));
185
- box-shadow: 0 0 10px rgba(0,0,0,.5);
186
- } */
187
-
188
- /* Mini profile buttons */
189
-
190
- .mpf_btns_cnt {
191
- display: grid;
192
- column-gap: .5rem;
193
- border-top: .1875em dashed var(--color-darker-light);
194
- }
195
-
196
- .pf_header_content {
197
- border-bottom: .1875em dashed var(--color-darker-light);
198
- }
199
-
200
- .mpf_btns_cnt.size-1 {
201
- grid-template-columns: repeat(1, 1fr);
202
- }
203
-
204
- .mpf_btns_cnt.size-2 {
205
- grid-template-columns: repeat(2, 1fr);
206
- }
207
-
208
- .mpf_btn {
209
- align-self: stretch;
210
- padding: 6px 4px 7px 6px;
211
- background-color: var(--color-darker-light);
212
- }
213
-
214
- .mpf_btn:not(:first-child) {
215
- margin-left: 5px;
216
- }
217
-
218
- .mpf_btn.icon_only {
219
- align-items: center;
220
- padding-left: 4px;
221
- padding-right: 4px;
222
- }
223
-
224
- .mpf_btn svg:first-child {
225
- margin-right: 3px;
226
- }
227
-
228
- .mpf_btn svg:last-child {
229
- margin-left: 3px;
230
- }
231
-
232
- button.mpf_btn:hover, a.mpf_btn:hover {
233
- background-color: var(--color-darker-default);
234
- }
235
-
236
- /* Card item */
237
-
238
- .crd_item {
239
- margin-top: 4px;
240
- }
241
-
242
- /* Card header */
243
-
244
- .crd_header {
245
- /* padding: 0; */
246
- background-color: var(--color-darker-light);
247
- }
248
-
249
- .crd_header[role="button"] {
250
- cursor: pointer;
251
- }
252
-
253
- .crd_header .av.main {
254
- transform: scale(.8);
255
- }
256
-
257
- .crd_header .text {
258
- padding: 6px 0 7px;
259
- }
260
-
261
- .crd_side {
262
- width: 32px;
263
- height: var(--av-xsmall);
264
- }
265
-
266
- .crd_side.expanded {
267
- transform: rotate(45deg);
268
- }
269
-
270
- /* Card links */
271
-
272
- .crd_links_cnt {
273
- display: grid;
274
- grid-template-columns: repeat(3, 1fr);
275
- row-gap: 4px;
276
- column-gap: 4px;
277
- padding: 14px 0 10px;
278
- }
279
-
280
- .crd_link {
281
- padding: 10px 4px 8px;
282
- background-color: var(--color-darker-light);
283
- }
284
-
285
- .crd_link .av.no_img {
286
- background-color: var(--color-darker-light);
287
- }
288
-
289
- button.crd_link:hover {
290
- background-color: var(--color-darker-default);
291
- }
292
-
293
- .crd_link .av.main {
294
- margin-bottom: 2px;
295
116
  }
296
117
 
297
118
  /* Pop over image */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsb188/css",
3
- "version": "1.0.4",
3
+ "version": "1.1.3",
4
4
  "description": "Re-usable, base CSS styles for any app (NOTE: Bring your own variables).",
5
5
  "license": "ISC",
6
6
  "author": "jsb188",
@@ -8,6 +8,7 @@
8
8
  "exports": {
9
9
  "./_global.css": "./css/_global.css",
10
10
  "./alert.css": "./css/alert.css",
11
+ "./animate.css": "./css/animate.css",
11
12
  "./form.css": "./css/form.css",
12
13
  "./layout.css": "./css/layout.css",
13
14
  "./list.css": "./css/list.css",