@jsb188/css 1.0.2 → 1.1.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/alert.css CHANGED
@@ -57,6 +57,6 @@
57
57
  }
58
58
 
59
59
  .m_err .m_close {
60
- top: var(--rem-tiny);
61
- right: var(--rem-tiny);
60
+ top: var(--rem-xsmall);
61
+ right: var(--rem-xsmall);
62
62
  }
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
 
@@ -350,7 +353,7 @@ fieldset input[type="radio"] {
350
353
  border-radius: var(--radius-small);
351
354
  }
352
355
 
353
- .btn.df.ft_t {
356
+ .btn.df.ft_xs {
354
357
  padding: .3rem .45rem;
355
358
  }
356
359
 
@@ -421,12 +424,22 @@ fieldset input[type="radio"] {
421
424
  .ib_label {
422
425
  position: relative;
423
426
  padding: 0 5px;
424
- margin: 0 5px;
427
+ margin: 0 2px 0 3px;
428
+ line-height: 1;
425
429
  }
426
430
 
427
431
  .ib_label .icon {
428
432
  margin: -5px -4px -3px;
429
- font-size: 1.5em;
433
+ font-size: 1.6em;
434
+ }
435
+
436
+ .ib_label .indicator {
437
+ display: block;
438
+ width: 10px;
439
+ height: 1em;
440
+ margin-left: 2px;
441
+ margin-right: 5px;
442
+ border-radius: 3px;
430
443
  }
431
444
 
432
445
  .ib_label:first-child {
@@ -441,7 +454,15 @@ fieldset input[type="radio"] {
441
454
  content: ' ';
442
455
  position: absolute;
443
456
  top: 50%; left: 0; right: 0;
444
- height: 1.5rem;
445
- transform: translateY(-.75rem);
457
+ height: 1.6rem;
458
+ transform: translateY(-.85rem);
446
459
  border-radius: 5px;
447
460
  }
461
+
462
+ .ib_label.outline {
463
+ transform: translateX(-1px);
464
+ }
465
+
466
+ .ib_label.outline:before {
467
+ border: solid 1px var(--color-darker-light);
468
+ }
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,11 +112,24 @@ 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
 
120
+ /* Sidebar */
121
+
122
+ .w_lsidebar {
123
+ padding-right: var(--sidebar-wt);
124
+ }
125
+
126
+ /* Content with right <aside /> sticky sidebar */
127
+
128
+ .ra_content_aside {
129
+ width: var(--aside-wt);
130
+ top: var(--rem-medium);
131
+ }
132
+
114
133
  /* Page & content elements; page cards */
115
134
 
116
135
  .pg_card .title {
@@ -123,7 +142,7 @@ body.p_auth {
123
142
  width: 7rem; height: 7rem;
124
143
  border-radius: 3.5rem;
125
144
 
126
- background-color: var(--color-highlight);
145
+ background-color: var(--color-main);
127
146
  opacity: .125;
128
147
 
129
148
  position: absolute;
package/css/list.css CHANGED
@@ -208,7 +208,7 @@
208
208
 
209
209
  /* Line list item */
210
210
 
211
- .ln_item.normal:not(.m_t_b):not(.m_s_b) {
211
+ .ln_item.normal:not(.mb_xs):not(.mb_sm) {
212
212
  margin-bottom: .4rem;
213
213
  }
214
214
 
@@ -223,7 +223,7 @@
223
223
  margin: 0 var(--rem-default) 2px;
224
224
  }
225
225
 
226
- .ln_item.em .av_item {
226
+ .ln_item.em .av_w_df {
227
227
  margin: 0 var(--rem-small) 0 var(--rem-default);
228
228
  }
229
229
 
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
 
@@ -155,7 +155,7 @@
155
155
  /* Small modal list item */
156
156
 
157
157
  .mli_small {
158
- margin-bottom: var(--rem-tiny);
158
+ margin-bottom: var(--rem-xsmall);
159
159
  }
160
160
 
161
161
  .mli_small.bg, .mli_small.bg_alt {
@@ -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
@@ -124,7 +124,7 @@ a.po_opt {
124
124
  min-height: 200px;
125
125
  /* max-height: calc(100vh - 20px); */
126
126
  max-height: 70vh;
127
- /* background: var(--color-highlight) linear-gradient(180deg, var(--color-highlight-alt), var(--color-highlight)) fixed; */
127
+ /* background: var(--color-main) linear-gradient(180deg, var(--color-main-alt), var(--color-main)) fixed; */
128
128
  }
129
129
 
130
130
  /* Profile; header */
@@ -260,7 +260,7 @@ button.mpf_btn:hover, a.mpf_btn:hover {
260
260
 
261
261
  .crd_side {
262
262
  width: 32px;
263
- height: var(--av-tiny);
263
+ height: var(--av-xsmall);
264
264
  }
265
265
 
266
266
  .crd_side.expanded {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsb188/css",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "description": "Re-usable, base CSS styles for any app (NOTE: Bring your own variables).",
5
5
  "license": "ISC",
6
6
  "author": "jsb188",