@nulllogic/scssleon 1.0.3 → 1.0.4

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.
Files changed (40) hide show
  1. package/README.md +3 -3
  2. package/package.json +12 -10
  3. package/scss/_base.scss +7 -19
  4. package/scss/_config.scss +4 -10
  5. package/scss/_content.scss +4 -3
  6. package/scss/_functions.scss +12 -25
  7. package/scss/_reset.scss +20 -7
  8. package/scss/_root.scss +9 -11
  9. package/scss/components/_accordion.scss +4 -4
  10. package/scss/components/_alert.scss +4 -4
  11. package/scss/components/_badge.scss +4 -4
  12. package/scss/components/_breadcrumb.scss +4 -4
  13. package/scss/components/_button.scss +4 -4
  14. package/scss/components/_button_group.scss +4 -4
  15. package/scss/components/_card.scss +4 -4
  16. package/scss/components/_container.scss +3 -3
  17. package/scss/components/_dropdown.scss +11 -1
  18. package/scss/components/_loader.scss +4 -4
  19. package/scss/components/_modal.scss +4 -4
  20. package/scss/components/_nav.scss +4 -3
  21. package/scss/components/_navbar.scss +4 -4
  22. package/scss/components/_overlay.scss +4 -4
  23. package/scss/components/_pagination.scss +4 -4
  24. package/scss/components/_placeholder.scss +4 -9
  25. package/scss/components/_sidecap.scss +4 -4
  26. package/scss/components/_table.scss +3 -3
  27. package/scss/forms/_checkbox.scss +5 -5
  28. package/scss/forms/_input-group.scss +4 -4
  29. package/scss/forms/_input.scss +4 -4
  30. package/scss/forms/_label.scss +4 -4
  31. package/scss/forms/_radio.scss +4 -4
  32. package/scss/forms/_range.scss +4 -4
  33. package/scss/forms/_select.scss +4 -4
  34. package/scss/forms/_switch.scss +4 -4
  35. package/scss/forms/_validation.scss +4 -4
  36. package/scss/mixins/_utilities.scss +1 -1
  37. package/scss/mixins/generators/_components.scss +16 -11
  38. package/scss/mixins/generators/_properties.scss +50 -36
  39. package/scss/scssleon.scss +10 -6
  40. package/scss/themes/_default.scss +381 -150
@@ -1,28 +1,37 @@
1
1
  @use 'sass:map';
2
2
  @use "sass:string";
3
3
 
4
- // Main theme colors
4
+ // Main theme _colors
5
5
  $theme: () !default;
6
- $updated-theme : () !default;
6
+ $updated-theme: () !default;
7
7
 
8
8
  $html-config: (
9
9
  root: (
10
+
10
11
  --font-family-default : string.unquote("system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"),
11
12
  --font-family-monospace : string.unquote("ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"),
13
+
12
14
  ),
15
+
13
16
  html : (
17
+
14
18
  body : (
15
- margin: 0,
16
19
  -webkit-text-size-adjust: 100%,
17
- font-size : 1rem,
20
+ -webkit-font-smoothing: antialiased,
21
+
22
+ margin: 0,
23
+
24
+ font-size : 1em,
18
25
  font-weight: normal,
19
- line-height : 1,
20
26
  font-family: var(global(--font-family-default)),
27
+ line-height : 1,
28
+ text-rendering: optimizelegibility,
29
+ font-synthesis-weight: none,
30
+
21
31
  color: var(--color),
22
32
  background: var(--background),
23
- text-rendering: optimizelegibility,
24
- -webkit-font-smoothing: antialiased,
25
- colors: (
33
+
34
+ _colors: (
26
35
  light : (
27
36
  background: '#fff',
28
37
  color: '#ccc',
@@ -31,12 +40,20 @@ $html-config: (
31
40
  background : rgba(18, 20, 23, 1),
32
41
  color: '#ccc'
33
42
  )
43
+ ),
44
+
45
+ _subclasses : (
46
+ '&[scroll-lock]' : (
47
+ overflow: hidden
48
+ )
34
49
  )
35
50
  ),
51
+
36
52
  a : (
37
- text-decoration : underline,
38
- color: var(--a-color),
39
- colors: (
53
+ text-decoration : none,
54
+ color: var(--color),
55
+
56
+ _colors: (
40
57
  light : (
41
58
  color: '#ccc',
42
59
  ),
@@ -44,9 +61,13 @@ $html-config: (
44
61
  color: '#ccc'
45
62
  )
46
63
  ),
47
- subclasses : (
64
+
65
+ _subclasses : (
66
+ "&:hover": (
67
+ text-decoration: none
68
+ ),
48
69
  "&[target='_blank']" : (
49
- subclasses : (
70
+ _subclasses : (
50
71
  "&:after" : (
51
72
  background: red,
52
73
  display: inline-flex,
@@ -57,6 +78,7 @@ $html-config: (
57
78
  ),
58
79
  )
59
80
  )
81
+
60
82
  ),
61
83
  ol: (
62
84
  margin: 0,
@@ -78,9 +100,6 @@ $html-config: (
78
100
  width: auto,
79
101
  height: auto,
80
102
  max-width: 100%,
81
- ),
82
- p : (
83
- margin: 0
84
103
  )
85
104
  )
86
105
  );
@@ -89,51 +108,60 @@ $updated-theme: map.deep-merge($updated-theme, $html-config);
89
108
 
90
109
  $content-config: (
91
110
  content : (
111
+ a : (
112
+ text-decoration: underline,
113
+ _subclasses : (
114
+ '&:hover' : (
115
+ text-decoration: none,
116
+ )
117
+ )
118
+ ),
92
119
  h1 : (
93
- font-size: 3.5rem,
94
- line-height : inherit,
120
+ font-size: 3.75rem,
121
+ line-height: 1,
95
122
  font-weight: 500,
96
123
  margin: 0,
97
124
  padding: 0 0 15px 0
98
125
  ),
99
126
  h2 : (
100
- font-size: 2.8rem,
101
- line-height : inherit,
127
+ font-size: 3rem,
128
+ line-height: 1,
102
129
  font-weight: 500,
103
130
  margin: 0,
104
131
  padding: 0 0 15px 0
105
132
  ),
106
133
  h3 : (
107
- font-size: 2.4rem,
108
- line-height : inherit,
134
+ font-size: 2.25rem,
135
+ line-height: 1.3,
109
136
  font-weight: 500,
110
137
  margin: 0,
111
138
  padding: 0 0 15px 0
112
139
  ),
113
140
  h4 : (
114
- font-size: 2rem,
115
- line-height : inherit,
141
+ font-size: 1.875rem,
142
+ line-height: 1.2,
116
143
  font-weight: 500,
117
144
  margin: 0,
118
145
  padding: 0 0 15px 0
119
146
  ),
120
147
  h5 : (
121
- font-size: 1.8rem,
122
- line-height : inherit,
148
+ font-size: 1.5rem,
149
+ line-height: 1.4,
123
150
  font-weight: 500,
124
151
  margin: 0,
125
152
  padding: 0 0 15px 0
126
153
  ),
127
154
  h6 : (
128
- font-size: 1.625rem,
129
- line-height : inherit,
155
+ font-size: 1.25rem,
156
+ line-height: 1.5,
130
157
  font-weight: 500,
131
158
  margin: 0,
132
159
  padding: 0 0 15px 0
133
160
  ),
134
161
  p : (
135
162
  margin: 0,
136
- padding: 0 0 15px 0
163
+ padding: 0 0 15px 0,
164
+ line-height: clamp(1.25em, 4vw, 1.5em),
137
165
  ),
138
166
  abbr: (
139
167
  attributes : (
@@ -187,19 +215,20 @@ $content-config: (
187
215
  font-family: var(global(--font-family-monospace)),
188
216
  ),
189
217
  code: (
190
- color: var(--color),
191
- background: var(--background),
192
- padding: 0 5px,
193
- colors: (
194
- light : (
195
- background: '#fff',
196
- color: '#ccc',
197
- ),
198
- dark : (
199
- background : rgba(38,69,116,1),
200
- color: '#fff'
201
- )
202
- )
218
+ //box-shadow: rgb(253, 224, 71) 0px -26.529121px 0px 0px inset,
219
+ //color: var(--color),
220
+ //background: var(--background),
221
+ //padding: 2px 5px,
222
+ //_colors: (
223
+ // light : (
224
+ // background: '#fff',
225
+ // color: '#ccc',
226
+ // ),
227
+ // dark : (
228
+ // background : rgb(53, 56, 65),
229
+ // color: '#fff'
230
+ // )
231
+ //)
203
232
  ),
204
233
  kbd: (
205
234
  ),
@@ -268,7 +297,7 @@ $content-config: (
268
297
  border-top-width: 1px,
269
298
  border-top-style: solid,
270
299
  border-top-color: var(--border-top-color),
271
- colors: (
300
+ _colors: (
272
301
  light: (
273
302
  border-top-color: #ccc
274
303
  ),
@@ -284,29 +313,59 @@ $updated-theme: map.deep-merge($updated-theme, $content-config);
284
313
 
285
314
  $components-config: (
286
315
  components: (
287
-
288
316
  alert: (
289
317
 
290
- --border-radius: .25rem,
291
- --padding: 1.25rem,
318
+ --border-radius: .5rem,
319
+ --grid-template-columns: auto auto 1fr,
320
+ --gap : 0.5rem,
321
+ --padding: 0.825rem,
322
+ --left-column-justify-self: start,
323
+ --left-column-align-self: start,
324
+ --center-column-justify-self: center,
325
+ --center-column-align-self: center,
326
+ --right-column-justify-self: end,
327
+ --right-column-align-self: start,
292
328
 
293
329
  box-shadow: var(--shadow),
294
330
  background: var(--background),
295
-
331
+ border-radius: var(--border-radius),
332
+ border: var(--border),
296
333
  outline: 1px solid transparent,
297
334
  position: relative,
298
- display: flex,
335
+ display: grid,
336
+ width: 100%,
337
+ max-width: 100%,
338
+ align-items: center,
339
+ line-height: 1rem,
340
+ grid-template-columns: var(--grid-template-columns),
341
+ grid-gap: var(--gap),
342
+ padding: var(--padding),
299
343
 
300
- colors: (
344
+ _colors: (
301
345
  light : (
302
346
  background: rgba(246, 246, 247, 1),
303
347
  shadow: string.unquote("inset 0 0.0625rem 0 0 rgba(186, 191, 195, 1), inset 0 0 0 0.0625rem rgba(186, 191, 195, 1)"),
304
348
  ),
305
349
  dark : (
306
- background: rgb(48, 56, 66),
307
- border: 1px solid rgba(182, 199, 216, .35),
308
- shadow: string.unquote("inset 0 0.0625rem 0 0 rgba(186, 191, 195, 1), inset 0 0 0 0.0625rem rgba(186, 191, 195, 1)"),
350
+ background: rgb(18, 18, 24),
351
+ border: 1px solid rgba(48, 54, 61, 0.75),
352
+ shadow: string.unquote("rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px"),
309
353
  )
354
+ ),
355
+
356
+ _subclasses : (
357
+ '.left' : (
358
+ justify-self: var(--left-column-justify-self),
359
+ align-self: var(--left-column-align-self),
360
+ ),
361
+ '.center' : (
362
+ justify-self: var(--center-column-justify-self),
363
+ align-self: var(--center-column-align-self),
364
+ ),
365
+ '.right' : (
366
+ justify-self: var(--right-column-justify-self),
367
+ align-self: var(--right-column-align-self),
368
+ ),
310
369
  )
311
370
 
312
371
  ),
@@ -314,20 +373,78 @@ $components-config: (
314
373
  accordion : (
315
374
 
316
375
  --border-radius: .25rem,
317
- --padding: 1.25rem,
376
+ --padding: 0.5rem,
377
+ --item-padding: 0 0 .5rem 0,
318
378
 
379
+ border-radius: var(--border-radius),
319
380
  position: relative,
320
381
  width: 100%,
321
382
 
322
- colors: (
383
+ padding: var(--padding),
384
+
385
+ _colors: (
323
386
  light : (
324
387
  ),
325
388
  dark : (
326
389
  border: 1px solid rgba(182, 199, 216, .35),
327
390
  background: rgb(46, 56, 66),
328
391
  )
329
- )
392
+ ),
393
+
394
+ _subclasses : (
330
395
 
396
+ '.item' : (
397
+ padding: var(--item-padding),
398
+
399
+ _subclasses : (
400
+ '.question' : (
401
+
402
+ display: flex,
403
+ border-bottom: 1px solid #ccc,
404
+ justify-content: space-between,
405
+
406
+ _subclasses : (
407
+ '> button' : (
408
+ color: inherit,
409
+ background: none,
410
+ border: none,
411
+ cursor: pointer,
412
+ display: flex,
413
+ padding: 0,
414
+ font-size: inherit,
415
+ width: 100%,
416
+ align-items: center,
417
+ justify-content: space-between
418
+ ),
419
+ '&.open' : (
420
+ _subclasses : (
421
+ '.icon' : (
422
+ transform: rotate(180deg)
423
+ )
424
+ )
425
+ ),
426
+ '.icon' : (
427
+
428
+ )
429
+ )
430
+ ),
431
+
432
+ '.answer' : (
433
+ display: block,
434
+ padding: 0.5rem 0,
435
+ _subclasses : (
436
+ '&[hidden]' : (
437
+ display: none,
438
+ )
439
+ )
440
+ ),
441
+
442
+ '&:last-child' : (
443
+ padding-bottom: 0,
444
+ )
445
+ )
446
+ )
447
+ )
331
448
  ),
332
449
 
333
450
  badge : (
@@ -338,12 +455,10 @@ $components-config: (
338
455
  font-size: .75rem,
339
456
  line-height: 1rem,
340
457
  font-weight: 500,
341
-
342
458
  white-space: nowrap,
343
459
  vertical-align: middle,
344
460
  align-items: center,
345
461
  display: inline-flex,
346
-
347
462
  padding: var(--padding),
348
463
  border-radius: var(--border-radius),
349
464
  color: var(--color),
@@ -351,7 +466,7 @@ $components-config: (
351
466
  box-shadow: var(--box-shadow),
352
467
  border: var(--border),
353
468
 
354
- colors: (
469
+ _colors: (
355
470
  light : (
356
471
  color: #ccc,
357
472
  box-shadow: none
@@ -363,28 +478,31 @@ $components-config: (
363
478
  border: 1px solid #ccc,
364
479
  )
365
480
  )
366
- ),
367
481
 
482
+ ),
368
483
  breadcrumb : (
484
+
369
485
  --padding: 0 0 0 5px,
486
+
370
487
  list-style: none,
371
488
  align-items: center,
372
489
  display: flex,
373
490
  flex-wrap: wrap,
374
491
  padding: var(--padding),
375
492
  margin: 0,
376
- colors: (
493
+
494
+ _colors: (
377
495
  light : (
378
496
  ),
379
497
  dark : (
380
498
  )
381
499
  ),
382
- subclasses : (
500
+
501
+ _subclasses : (
383
502
  ".item" : (
384
503
  display: inline-flex,
385
- subclasses : (
504
+ _subclasses : (
386
505
  ".link" : (
387
-
388
506
  )
389
507
  )
390
508
  )
@@ -392,33 +510,29 @@ $components-config: (
392
510
  ),
393
511
 
394
512
  button : (
513
+
514
+ --padding: .5rem .75rem,
395
515
  --border-radius: .25rem,
396
516
  --box-shadow : (
397
517
  inset 0 0 0 1px rgba(0, 0, 0, 0.05),
398
- inset 0 1px 2px 0 rgba(78, 83, 90, 0.1)
399
- // inset -0.0625rem 0 0 #e3e3e3,
518
+ inset 0 1px 2px 0 rgba(78, 83, 90, 0.1) // inset -0.0625rem 0 0 #e3e3e3,
400
519
  // inset 0.0625rem 0 0 #e3e3e3,
401
520
  // inset 0 0.0625rem 0 #e3e3e3
402
521
  ),
403
- --padding: .5rem .75rem,
404
522
 
405
523
  display: inline-flex,
406
524
  align-items: center,
407
525
  align-content: center,
408
526
  white-space: nowrap,
409
- user-select: none,
410
527
  text-decoration: none,
411
528
  cursor: pointer,
412
-
413
529
  vertical-align: middle,
414
530
  font-size: 1em,
415
-
416
531
  padding: var(--padding),
417
532
  border: var(--border),
418
533
  background: var(--background),
419
534
  color: var(--color),
420
535
  border-radius: var(--border-radius),
421
-
422
536
  // This one is required for button group use
423
537
  position: relative,
424
538
 
@@ -429,38 +543,33 @@ $components-config: (
429
543
  box-shadow .15s ease-in-out
430
544
  ),
431
545
 
432
- colors: (
546
+ _colors: (
433
547
  light: (
434
548
  color: #fff,
435
549
  background: #fff
436
550
  ),
437
551
  dark: (
438
-
439
552
  // Default
440
553
  color: #fff,
441
554
  background: rgb(48, 56, 66),
442
555
  border: 1px solid rgba(240, 246, 252, .25),
443
-
444
556
  // Hover state
445
557
  hover-color: #fff,
446
558
  hover-background: rgb(59, 68, 81),
447
559
  hover-border: 1px solid rgba(229, 235, 240, .55),
448
-
449
560
  // Disabled state
450
561
  disabled-color: #484f58,
451
562
  disabled-background: #21262d,
452
563
  disabled-border: 1px solid rgba(240, 246, 252, 0.1),
453
-
454
564
  // Active state
455
565
  active-color: #fff,
456
566
  active-background: rgb(39, 45, 53),
457
567
  active-border: 1px solid rgba(240, 246, 252, .25),
458
568
  active-shadow: string.unquote("-0.0625rem 0rem 0.0625rem 0rem rgba(26,26,26,0.122) inset,0.0625rem 0rem 0.0625rem 0rem rgba(26,26,26,0.122) inset, 0rem 0.125rem 0.0625rem 0rem rgba(26,26,26,0.2) inset")
459
-
460
569
  )
461
570
  ),
462
571
 
463
- subclasses : (
572
+ _subclasses : (
464
573
  "&:hover:not(.loading, [disabled], .btn-link)" : (
465
574
  color: var(--hover-color),
466
575
  background: var(--hover-background),
@@ -476,9 +585,10 @@ $components-config: (
476
585
  background: transparent,
477
586
  border: none,
478
587
  box-shadow: none,
479
- subclasses: (
588
+ text-decoration: underline,
589
+ _subclasses: (
480
590
  "&:hover": (
481
- text-decoration: underline,
591
+ text-decoration: none,
482
592
  )
483
593
  )
484
594
  ),
@@ -497,42 +607,32 @@ $components-config: (
497
607
 
498
608
  button-group: (
499
609
  --gap: 10px,
500
-
501
610
  display: flex,
502
611
  flex-wrap: wrap,
503
-
504
- subclasses : (
612
+ _subclasses : (
505
613
  ".btn:first-child" : (
506
614
  border-start-end-radius: 0,
507
615
  border-end-end-radius: 0,
508
616
  ),
509
-
510
617
  ".btn:last-child" : (
511
618
  border-start-start-radius: 0,
512
619
  border-end-start-radius: 0,
513
620
  ),
514
-
515
621
  ".btn:not(:first-child)" : (
516
622
  margin-left: - 1px
517
623
  ),
518
-
519
624
  ".btn:not(:first-child, :last-child)" : (
520
625
  border-radius: 0
521
626
  ),
522
-
523
627
  ".btn:only-child" : (
524
-
525
628
  ),
526
-
527
629
  ".btn:hover, .btn:focus" : (
528
630
  z-index: 1
529
631
  ),
530
-
531
632
  "&.separated" : (
532
633
  gap: var(--gap),
533
634
  --border-radius: 5px,
534
-
535
- subclasses : (
635
+ _subclasses : (
536
636
  ".btn" : (
537
637
  margin: 0,
538
638
  border-radius: var(--border-radius)
@@ -542,25 +642,51 @@ $components-config: (
542
642
  )
543
643
  ),
544
644
 
645
+ dropdown: (
646
+ position: absolute,
647
+ top: 100%,
648
+ left: 0,
649
+ border: var(--border),
650
+ border-radius: 0.25rem,
651
+ padding: 4px 0,
652
+ width: 200px,
653
+ height: auto,
654
+ background: var(--background),
655
+
656
+ _colors: (
657
+ light : (
658
+ border: 1px solid #dddee0,
659
+ background: rgb(200, 200, 200),
660
+ ),
661
+ dark : (
662
+ border: 1px solid rgba(48, 54, 61, .75),
663
+ background: rgb(22, 27, 34),
664
+ shadow: rgba(1, 4, 9, 0.4) 0 1px 0 0
665
+ )
666
+ )
667
+ ),
668
+
545
669
  card : (
670
+
546
671
  --border-radius: .25rem,
547
- --padding: 10px,
672
+ --padding: .5rem,
548
673
 
549
674
  background: var(--background),
550
675
  padding: var(--padding),
551
676
  border-radius: var(--border-radius),
552
677
  box-shadow: var(--shadow),
553
678
  border: var(--border),
554
-
555
679
  height: 100%,
556
680
  margin: 0,
557
681
 
558
- colors: (
682
+ _colors: (
559
683
  light : (
560
- background: rgb(200, 200, 200)
684
+ background: rgb(242, 242, 242),
685
+ border : 1px solid rgb(235, 235, 235),
686
+ box-shadow: 0 1px 8px -2px rgba(0, 0, 0, 0.12),
561
687
  ),
562
688
  dark : (
563
- border: 1px solid rgba(48, 54, 61, .75),
689
+ border: 1px solid #3d444d,
564
690
  background: rgb(22, 27, 34),
565
691
  shadow: rgba(1, 4, 9, 0.4) 0 1px 0 0
566
692
  )
@@ -570,11 +696,10 @@ $components-config: (
570
696
  container : (
571
697
  margin: 0 auto,
572
698
  width: 100%,
573
- colors: (
699
+ _colors: (
574
700
  light : (),
575
701
  dark : ()
576
702
  ),
577
-
578
703
  ),
579
704
 
580
705
  form : (
@@ -583,10 +708,12 @@ $components-config: (
583
708
  margin-bottom: 10px,
584
709
  ),
585
710
  input : (
711
+
586
712
  --border-radius: .25rem,
587
713
  --padding: .5rem .75rem,
714
+
588
715
  display: block,
589
- colors: (
716
+ _colors: (
590
717
  light : (
591
718
  ),
592
719
  dark : (
@@ -600,7 +727,7 @@ $components-config: (
600
727
  --border-radius: .25rem,
601
728
  --padding: .5rem .75rem,
602
729
  display: block,
603
- colors: (
730
+ _colors: (
604
731
  light : (
605
732
  ),
606
733
  dark : (
@@ -613,7 +740,7 @@ $components-config: (
613
740
  checkbox : (
614
741
  --border-radius: .25rem,
615
742
  --padding: .5rem .75rem,
616
- colors: (
743
+ _colors: (
617
744
  light : (
618
745
  ),
619
746
  dark : (
@@ -626,7 +753,7 @@ $components-config: (
626
753
  radio : (
627
754
  --border-radius: .25rem,
628
755
  --padding: .5rem .75rem,
629
- colors: (
756
+ _colors: (
630
757
  light : (
631
758
  ),
632
759
  dark : (
@@ -645,19 +772,32 @@ $components-config: (
645
772
 
646
773
  overlay : (
647
774
 
775
+ background : var(--background),
776
+
648
777
  position: absolute,
649
778
  top: 0,
650
779
  bottom: 0,
651
780
  left: 0,
652
781
  right: 0,
782
+
653
783
  width: 100%,
654
784
  height: 100%,
655
785
 
656
- colors: (
786
+ display: none,
787
+ align-items: center,
788
+ justify-content: center,
789
+
790
+ _colors: (
657
791
  light : (
658
792
  ),
659
793
  dark : (
660
- background: rgba(15, 23, 42, .25),
794
+ background: rgba(20, 20, 20, .85),
795
+ )
796
+ ),
797
+
798
+ _subclasses : (
799
+ '&.show' : (
800
+ display: flex
661
801
  )
662
802
  )
663
803
  ),
@@ -666,7 +806,6 @@ $components-config: (
666
806
 
667
807
  --grid-template-columns: auto auto 1fr,
668
808
  --gap : 10px,
669
-
670
809
  --left-column-aligment: start,
671
810
  --center-column-alignment: center,
672
811
  --right-column-alignment: end,
@@ -676,11 +815,10 @@ $components-config: (
676
815
  width: 100%,
677
816
  max-width: 100%,
678
817
  align-items: center,
679
-
680
818
  grid-template-columns: var(--grid-template-columns),
681
819
  grid-gap: var(--gap),
682
820
 
683
- subclasses : (
821
+ _subclasses : (
684
822
  ".left" : (
685
823
  justify-self: var(--left-column-alignment),
686
824
  ),
@@ -702,10 +840,9 @@ $components-config: (
702
840
  cursor: wait,
703
841
  display: flex,
704
842
  flex-direction: column,
705
-
706
843
  gap: var(--gap),
707
844
 
708
- colors: (
845
+ _colors: (
709
846
  light : (
710
847
  background: #ccc
711
848
  ),
@@ -714,23 +851,21 @@ $components-config: (
714
851
  )
715
852
  ),
716
853
 
717
- subclasses : (
854
+ _subclasses : (
718
855
  ".el" : (
719
- min-height: var(--min-height),
720
- border-radius: var(--border-radius),
721
- background: var(--background)
856
+ min-height: var(--min-height),
857
+ border-radius: var(--border-radius),
858
+ background: var(--background)
722
859
  ),
723
-
724
860
  "&.glow" : (
725
- subclasses : (
861
+ _subclasses : (
726
862
  ".el" : (
727
863
  animation: placeholder-glow 2s ease-in-out infinite,
728
864
  )
729
865
  )
730
866
  ),
731
-
732
867
  "&.wave" : (
733
- subclasses : (
868
+ _subclasses : (
734
869
  ".el" : (
735
870
  mask-size: 200% 100%,
736
871
  -webkit-mask-size: 200% 100%,
@@ -743,10 +878,75 @@ $components-config: (
743
878
  )
744
879
  ),
745
880
 
881
+ modal : (
882
+
883
+ display: none,
884
+ height: auto,
885
+
886
+ align-items: center,
887
+
888
+ //background: var(--background),
889
+ //box-shadow: var(--box-shadow),
890
+ //border-left: 1px solid rgb(4, 90, 195),
891
+
892
+ //will-change: transform,
893
+ //transition: transform 300ms cubic-bezier(0.25,0.1,0.25,1),
894
+ //transform-origin: right,
895
+ //transform: translateX(100%),
896
+
897
+ padding: 0.5rem,
898
+ background: rgb(13, 17, 23),
899
+ max-width: 42rem,
900
+ width: 100%,
901
+ margin: 0 auto,
902
+ border: 1px solid #3d444d,
903
+ border-radius: 7px,
904
+ transition-behavior: allow-discrete,
905
+ transition: opacity 0.2s linear,
906
+ opacity: 0,
907
+
908
+ box-shadow: string.unquote('rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;'),
909
+
910
+ _colors: (
911
+ light : (
912
+ //background : #ccc,
913
+ box-shadow: string.unquote('0rem 1.25rem 1.25rem -0.5rem rgba(26,26,26,.28)'),
914
+ ),
915
+ dark: (
916
+ //background: rgb(13, 17, 23),
917
+ box-shadow: string.unquote('rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;'),
918
+ )
919
+ ),
920
+
921
+ _subclasses : (
922
+ '&[open]' : (
923
+ display: flex,
924
+ opacity: 1,
925
+ _atrule : (
926
+ '@starting-style' : (
927
+ opacity: 1,
928
+ )
929
+ )
930
+ ),
931
+ '.top' : (
932
+ display: flex,
933
+ justify-content: space-between,
934
+ ),
935
+ '.middle' : (
936
+ height: 100%,
937
+ padding: 1rem 0,
938
+ ),
939
+ '.bottom' : (
940
+ display: flex,
941
+ justify-content: flex-end,
942
+ )
943
+ )
944
+ ),
945
+
746
946
  nav : (
747
947
 
748
948
  --flex-direction: row,
749
- --align-items: auto,
949
+ --align-items: center,
750
950
  --gap: 0,
751
951
 
752
952
  display: flex,
@@ -757,55 +957,51 @@ $components-config: (
757
957
  padding: 0,
758
958
  list-style-type: none,
759
959
 
760
- colors: (
960
+ _colors: (
761
961
  light : (
762
962
  ),
763
963
  dark: (
764
964
  )
765
965
  ),
766
966
 
767
- subclasses : (
967
+ _subclasses : (
768
968
  '&.horizontal' : (
769
969
  --align-items: center,
770
970
  --flex-direction : row,
971
+ --gap : 12.5px,
771
972
  ),
772
973
  '&.vertical' : (
773
974
  --flex-direction : column,
975
+ --align-items: auto,
976
+ --gap : 0.5rem,
774
977
  ),
775
978
  '&.tabs' : (
776
-
777
979
  ),
778
980
  '&.pills' : (
779
-
780
981
  ),
781
982
  '.item' : (
782
983
  width: auto,
783
-
784
- subclasses : (
984
+ _subclasses : (
785
985
  '.link' : (
786
- display: inline-flex,
787
- padding: 10px,
788
- color: var(--color),
789
-
790
- colors: (
791
- light : (
792
- color: '#333',
793
- ),
794
- dark : (
795
- color: '#fff'
796
- )
986
+ display: inline-flex,
987
+ color: var(--color),
988
+ _colors: (
989
+ light : (
990
+ color: rgba(255, 255, 255, 1),
797
991
  ),
798
-
799
- subclasses: (
800
- '&:hover' : (
801
- text-decoration : none
992
+ dark : (
993
+ color: rgba(255, 255, 255, 1),
994
+ )
995
+ ),
996
+ _subclasses: (
997
+ '&:hover' : (
998
+ text-decoration : none
802
999
  )
803
1000
  )
804
1001
  ),
805
1002
  )
806
1003
  )
807
1004
  )
808
-
809
1005
  ),
810
1006
 
811
1007
  navbar : (
@@ -827,14 +1023,16 @@ $components-config: (
827
1023
  grid-template-columns: var(--grid-template-columns),
828
1024
  grid-gap: var(--gap),
829
1025
 
830
- colors: (
1026
+ z-index: 5,
1027
+
1028
+ _colors: (
831
1029
  light : (
832
1030
  ),
833
1031
  dark: (
834
1032
  )
835
1033
  ),
836
1034
 
837
- subclasses : (
1035
+ _subclasses : (
838
1036
  ".left" : (
839
1037
  justify-self: var(--left-column-alignment),
840
1038
  ),
@@ -848,21 +1046,54 @@ $components-config: (
848
1046
  ),
849
1047
 
850
1048
  sidecap : (
851
- position: absolute,
1049
+
1050
+ --width : 20.75rem,
1051
+
1052
+ display: flex,
1053
+ flex-direction: column,
1054
+
1055
+ position: fixed,
852
1056
  top: 0,
853
1057
  right: 0,
854
1058
  height: 100%,
855
1059
 
856
- display: flex,
857
- flex-direction: column,
1060
+ width: var(--width),
1061
+ background: var(--background),
1062
+ box-shadow: var(--box-shadow),
1063
+ //border-left: 1px solid rgb(4, 90, 195),
1064
+
1065
+ will-change: transform,
1066
+ transition: transform 300ms cubic-bezier(0.25,0.1,0.25,1),
1067
+ transform-origin: right,
1068
+ transform: translateX(100%),
858
1069
 
859
- colors: (
1070
+ _colors: (
860
1071
  light : (
861
- background : #ccc
1072
+ background : #ccc,
1073
+ box-shadow: string.unquote('0rem 1.25rem 1.25rem -0.5rem rgba(26,26,26,.28)'),
862
1074
  ),
863
1075
  dark: (
864
- background: rgb(45, 56, 66),
865
- box-shadow: 0rem 1.25rem 1.25rem -0.5rem rgba(26,26,26, .28)
1076
+ background: rgb(13, 17, 23),
1077
+ box-shadow: string.unquote('rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;'),
1078
+ )
1079
+ ),
1080
+
1081
+ _subclasses : (
1082
+ '&.open' : (
1083
+ transform: translateX(0),
1084
+ ),
1085
+ '.top' : (
1086
+ display: flex,
1087
+ padding: 0.25rem,
1088
+ justify-content: space-between,
1089
+ ),
1090
+ '.middle' : (
1091
+ height: 100%,
1092
+ padding: 0.25rem,
1093
+ ),
1094
+ '.bottom' : (
1095
+ display: flex,
1096
+ padding: 0.25rem,
866
1097
  )
867
1098
  )
868
1099
  )
@@ -871,4 +1102,4 @@ $components-config: (
871
1102
 
872
1103
  $updated-theme: map.deep-merge($updated-theme, $components-config);
873
1104
 
874
- $theme: map.deep-merge($updated-theme, $theme);
1105
+ $theme: map.deep-merge($updated-theme, $theme);