@appscode/design-system 1.0.43-alpha.6 → 1.0.43-alpha.63

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 (70) hide show
  1. package/base/utilities/_default.scss +136 -20
  2. package/base/utilities/_derived-variables.scss +2 -15
  3. package/base/utilities/_initial-variables.scss +99 -64
  4. package/base/utilities/_mixin.scss +90 -10
  5. package/base/utilities/_typography.scss +20 -7
  6. package/base/utilities/dark-theme.scss +25 -0
  7. package/components/_ac-accordion.scss +1 -0
  8. package/components/_ac-alert-box.scss +45 -10
  9. package/components/_ac-card.scss +54 -19
  10. package/components/_ac-code-highlight.scss +6 -0
  11. package/components/_ac-content-layout.scss +4 -4
  12. package/components/_ac-drag.scss +6 -6
  13. package/components/_ac-input.scss +72 -38
  14. package/components/_ac-modal.scss +5 -4
  15. package/components/_ac-multi-select.scss +220 -18
  16. package/components/_ac-options.scss +18 -8
  17. package/components/_ac-select-box.scss +5 -5
  18. package/components/_ac-table.scss +40 -33
  19. package/components/_ac-tabs.scss +64 -23
  20. package/components/_ac-tags.scss +2 -2
  21. package/components/_ac-terminal.scss +248 -0
  22. package/components/_app-drawer.scss +6 -6
  23. package/components/_breadcumb.scss +7 -2
  24. package/components/_buttons.scss +78 -32
  25. package/components/_card-body-wrapper.scss +3 -3
  26. package/components/_dashboard-header.scss +3 -3
  27. package/components/_direct-deploy.scss +69 -0
  28. package/components/_go-to-top.scss +1 -1
  29. package/components/_image-upload.scss +6 -4
  30. package/components/_left-sidebar-menu.scss +196 -46
  31. package/components/_monaco-editor.scss +1 -1
  32. package/components/_navbar.scss +103 -26
  33. package/components/_overview-info.scss +4 -4
  34. package/components/_overview-page.scss +1 -2
  35. package/components/_pagination.scss +45 -7
  36. package/components/_payment-card.scss +28 -12
  37. package/components/_preview-modal.scss +8 -8
  38. package/components/_pricing-table.scss +1 -1
  39. package/components/_progress-bar.scss +5 -5
  40. package/components/_subscription-card.scss +15 -8
  41. package/components/_table-of-content.scss +1 -1
  42. package/components/_tfa.scss +69 -0
  43. package/components/_widget-menu.scss +9 -9
  44. package/components/_wizard.scss +32 -20
  45. package/components/ac-toaster/_ac-toasted.scss +40 -8
  46. package/components/bbum/_card-team.scss +17 -9
  47. package/components/bbum/_information-center.scss +19 -5
  48. package/components/bbum/_mobile-desktop.scss +6 -6
  49. package/components/bbum/_post.scss +5 -4
  50. package/components/bbum/_sign-up-notification.scss +6 -6
  51. package/components/bbum/_single-post-preview.scss +9 -9
  52. package/components/bbum/_user-profile.scss +98 -90
  53. package/components/ui-builder/_ui-builder.scss +19 -8
  54. package/layouts/_404.scss +2 -1
  55. package/layouts/_code-preview.scss +14 -7
  56. package/main.scss +2 -0
  57. package/package.json +1 -1
  58. package/plugins/theme.js +142 -0
  59. package/plugins/vue-toaster.js +6 -6
  60. package/vue-components/v2/card/PaymentCards.vue +11 -2
  61. package/vue-components/v2/editor/Editor.vue +31 -17
  62. package/vue-components/v2/navbar/Appdrawer.vue +10 -9
  63. package/vue-components/v2/navbar/ThemeMode.vue +124 -0
  64. package/vue-components/v2/preloader/Preloader.vue +5 -5
  65. package/vue-components/v2/table/table-cell/CellValue.vue +10 -1
  66. package/vue-components/v3/dropdown/DropdownMenu.vue +1 -1
  67. package/vue-components/v3/editor/Editor.vue +33 -19
  68. package/vue-components/v3/navbar/Appdrawer.vue +12 -7
  69. package/vue-components/v3/navbar/ThemeMode.vue +118 -0
  70. package/vue-components/v3/table/table-cell/CellValue.vue +9 -0
@@ -2,7 +2,7 @@
2
2
  // margin-top: 3px;
3
3
  &.cluster-select {
4
4
  .multiselect__tags {
5
- border: 1px solid $ac-grey-lightest;
5
+ border: 1px solid $ac-gray-lightest;
6
6
  background-color: $table-header;
7
7
 
8
8
  .multiselect__input {
@@ -17,7 +17,7 @@
17
17
  font-weight: 500;
18
18
  width: 100%;
19
19
  border-radius: 4px;
20
- border: 1px solid $ac-border;
20
+ border: 1px solid $ac-label-text;
21
21
  padding: 6px 30px 8px 20px;
22
22
  font-size: $font-size-small;
23
23
 
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  .multiselect__tag {
38
- background-color: $ac-border-hover;
38
+ background-color: $dark-bg-light;
39
39
  margin-top: 4px;
40
40
  margin-bottom: 0;
41
41
 
@@ -47,7 +47,12 @@
47
47
  }
48
48
 
49
49
  &:hover {
50
- background-color: darken($color: $ac-primary, $amount: 9);
50
+ background-color: hsla(
51
+ var(--hsl-hue),
52
+ var(--hsl-saturation),
53
+ calc(var(--hsl-lightness) - 9%),
54
+ 1
55
+ );
51
56
  }
52
57
  }
53
58
  }
@@ -80,6 +85,7 @@
80
85
  font-size: $font-size-small;
81
86
  p {
82
87
  font-size: 13px;
88
+ color: $ac-color-text;
83
89
  }
84
90
  a {
85
91
  display: block;
@@ -91,16 +97,31 @@
91
97
  }
92
98
 
93
99
  &:hover {
94
- background-color: scale-color($color: $ac-primary, $lightness: 80%);
100
+ background-color: hsla(
101
+ var(--hsl-hue),
102
+ var(--hsl-saturation),
103
+ var(--hsl-lightness),
104
+ 0.2
105
+ );
95
106
  color: $ac-primary;
96
107
  }
97
108
 
98
109
  &.multiselect__option--highlight {
99
- background-color: scale-color($color: $ac-primary, $lightness: 80%);
110
+ background-color: hsla(
111
+ var(--hsl-hue),
112
+ var(--hsl-saturation),
113
+ var(--hsl-lightness),
114
+ 0.2
115
+ );
100
116
  color: $ac-primary;
101
117
 
102
118
  &:after {
103
- background-color: scale-color($color: $ac-primary, $lightness: 80%);
119
+ background-color: hsla(
120
+ var(--hsl-hue),
121
+ var(--hsl-saturation),
122
+ var(--hsl-lightness),
123
+ 0.2
124
+ );
104
125
  color: $ac-primary;
105
126
  }
106
127
  }
@@ -130,12 +151,12 @@
130
151
  label {
131
152
  padding-left: 15px !important;
132
153
  font-size: $font-size-small !important;
133
- color: #323232 !important;
154
+ color: $ac-color-text !important;
134
155
 
135
156
  &:after {
136
157
  position: inherit !important;
137
158
  content: "" !important;
138
- background: transparent;
159
+ background-color: transparent;
139
160
  }
140
161
  }
141
162
  }
@@ -143,7 +164,7 @@
143
164
 
144
165
  .multiselect__input {
145
166
  &::placeholder {
146
- color: #9b7575;
167
+ color: $ac-color-value;
147
168
  font-weight: 400;
148
169
  line-height: 1.6;
149
170
  font-size: $font-size-small;
@@ -196,7 +217,7 @@
196
217
  font-size: $font-size-extra-small;
197
218
  top: -9px;
198
219
  font-weight: 500;
199
- color: #000;
220
+ color: $ac-black;
200
221
  }
201
222
  }
202
223
 
@@ -364,7 +385,7 @@
364
385
  .multiselect__select {
365
386
  height: calc(100% - 2px);
366
387
  border-radius: 0 4px 4px 0;
367
- background: transparent !important;
388
+ background-color: transparent !important;
368
389
  }
369
390
 
370
391
  label {
@@ -372,7 +393,7 @@
372
393
  left: 20px;
373
394
  top: 11px;
374
395
  cursor: text;
375
- color: $ac-border;
396
+ color: $ac-label-text;
376
397
  position: absolute;
377
398
  z-index: 99;
378
399
  transition: 0.3s ease-in-out;
@@ -390,10 +411,10 @@
390
411
  left: 15px;
391
412
  padding: 0 5px;
392
413
  font-size: $font-size-small;
393
- color: #000;
414
+ color: $ac-black;
394
415
 
395
416
  &::after {
396
- background: $ac-white;
417
+ background-color: $ac-white;
397
418
  }
398
419
  }
399
420
 
@@ -402,7 +423,7 @@
402
423
  content: "";
403
424
  left: 0;
404
425
  top: 50%;
405
- background: $ac-white;
426
+ background-color: $ac-white;
406
427
  width: 100%;
407
428
  height: 2px;
408
429
  margin-top: -1px;
@@ -419,6 +440,7 @@
419
440
  li {
420
441
  .multiselect__option {
421
442
  font-size: 13px;
443
+ color: $ac-color-text;
422
444
  }
423
445
  }
424
446
  .multiselect__option--selected {
@@ -448,7 +470,7 @@ li {
448
470
 
449
471
  .button {
450
472
  &.is-information {
451
- background: transparent;
473
+ background-color: transparent;
452
474
  border: none;
453
475
  position: absolute;
454
476
  right: 0;
@@ -460,7 +482,7 @@ li {
460
482
  &:focus {
461
483
  outline: none;
462
484
  box-shadow: none;
463
- background: #e4e8ef;
485
+ background-color: #e4e8ef;
464
486
  transform: scale(0.8);
465
487
  }
466
488
  }
@@ -469,6 +491,186 @@ li {
469
491
 
470
492
  // has info button end
471
493
 
494
+ // dark theme start
495
+ .is-dark-theme {
496
+ .multiselect__content-wrapper {
497
+ background: var(--dark-bg-light);
498
+ border: 1px solid $ac-white-light;
499
+
500
+ // scroll
501
+ &::-webkit-scrollbar {
502
+ border-radius: 50px;
503
+ width: 3px;
504
+ }
505
+
506
+ &::-moz-scrollbar {
507
+ border-radius: 50px;
508
+ width: 3px;
509
+ }
510
+
511
+ &::-ms-scrollbar {
512
+ border-radius: 50px;
513
+ width: 3px;
514
+ }
515
+
516
+ &::-webkit-scrollbar:hover {
517
+ width: 7px;
518
+ }
519
+
520
+ &::-moz-scrollbar:hover {
521
+ width: 7px;
522
+ }
523
+
524
+ &::-ms-scrollbar:hover {
525
+ width: 7px;
526
+ }
527
+
528
+ &::-webkit-scrollbar-thumb {
529
+ background-color: $dark-bg-light;
530
+ border-radius: 50px;
531
+ height: 2px !important;
532
+ }
533
+
534
+ &::-moz-scrollbar-thumb {
535
+ background-color: $dark-bg-light;
536
+ border-radius: 50px;
537
+ height: 2px !important;
538
+ }
539
+
540
+ &::-ms-scrollbar-thumb {
541
+ background-color: $dark-bg-light;
542
+ border-radius: 50px;
543
+ height: 2px !important;
544
+ }
545
+
546
+ &::-webkit-scrollbar-thumb:hover {
547
+ background-color: $dark-bg-light;
548
+ }
549
+
550
+ &::-moz-scrollbar-thumb:hover {
551
+ background-color: $dark-bg-light;
552
+ }
553
+
554
+ &::-ms-scrollbar-thumb:hover {
555
+ background-color: $dark-bg-light;
556
+ }
557
+
558
+ &:hover::-webkit-scrollbar-corner {
559
+ height: 40px;
560
+ }
561
+
562
+ &:hover::-moz-scrollbar-corner {
563
+ height: 40px;
564
+ }
565
+
566
+ &:hover::-ms-scrollbar-corner {
567
+ height: 40px;
568
+ }
569
+
570
+ // scroll
571
+
572
+ .multiselect__option--selected {
573
+ background: var(--dark-bg);
574
+ color: var(--ac-white-text);
575
+ }
576
+ }
577
+
578
+ .multi-select-wrapper {
579
+ background: var(--dark-bg-light);
580
+
581
+ .multiselect__content-wrapper {
582
+ background-color: var(--dark-bg-light);
583
+ background: var(--dark-bg-light);
584
+
585
+ // scroll
586
+ &::-webkit-scrollbar {
587
+ border-radius: 50px;
588
+ width: 3px;
589
+ }
590
+
591
+ &::-moz-scrollbar {
592
+ border-radius: 50px;
593
+ width: 3px;
594
+ }
595
+
596
+ &::-ms-scrollbar {
597
+ border-radius: 50px;
598
+ width: 3px;
599
+ }
600
+
601
+ &::-webkit-scrollbar:hover {
602
+ width: 7px;
603
+ }
604
+
605
+ &::-moz-scrollbar:hover {
606
+ width: 7px;
607
+ }
608
+
609
+ &::-ms-scrollbar:hover {
610
+ width: 7px;
611
+ }
612
+
613
+ &::-webkit-scrollbar-thumb {
614
+ background-color: $dark-bg-light;
615
+ border-radius: 50px;
616
+ height: 2px !important;
617
+ }
618
+
619
+ &::-moz-scrollbar-thumb {
620
+ background-color: $dark-bg-light;
621
+ border-radius: 50px;
622
+ height: 2px !important;
623
+ }
624
+
625
+ &::-ms-scrollbar-thumb {
626
+ background-color: $dark-bg-light;
627
+ border-radius: 50px;
628
+ height: 2px !important;
629
+ }
630
+
631
+ &::-webkit-scrollbar-thumb:hover {
632
+ background-color: $dark-bg-light;
633
+ }
634
+
635
+ &::-moz-scrollbar-thumb:hover {
636
+ background-color: $dark-bg-light;
637
+ }
638
+
639
+ &::-ms-scrollbar-thumb:hover {
640
+ background-color: $dark-bg-light;
641
+ }
642
+
643
+ &:hover::-webkit-scrollbar-corner {
644
+ height: 40px;
645
+ }
646
+
647
+ &:hover::-moz-scrollbar-corner {
648
+ height: 40px;
649
+ }
650
+
651
+ &:hover::-ms-scrollbar-corner {
652
+ height: 40px;
653
+ }
654
+
655
+ // scroll
656
+
657
+ .multiselect__content .multiselect__element .multiselect__option {
658
+ color: var(--ac-white-text);
659
+ }
660
+
661
+ .multiselect__option--group {
662
+ color: var(--ac-white-text);
663
+ background-color: var(--dark-bg-light);
664
+ }
665
+
666
+ .multiselect__option--selected {
667
+ color: var(--ac-white-text);
668
+ background-color: var(--dark-bg-light);
669
+ }
670
+ }
671
+ }
672
+ }
673
+ // dark theme end
472
674
  /****************************************
473
675
  Responsive Classes
474
676
  *****************************************/
@@ -39,7 +39,7 @@
39
39
  cursor: pointer;
40
40
  align-items: flex-start;
41
41
  border: none;
42
- background: transparent;
42
+ background-color: transparent;
43
43
  transition: 0.3 ease-in-out;
44
44
 
45
45
  &:hover {
@@ -49,7 +49,7 @@
49
49
  span {
50
50
  width: 5px;
51
51
  height: 5px;
52
- background: #333;
52
+ background-color: $ac-color-value;
53
53
  border-radius: 50%;
54
54
  margin-bottom: 2px;
55
55
  }
@@ -60,30 +60,30 @@
60
60
  border-radius: 4px;
61
61
  position: absolute;
62
62
  z-index: 99;
63
- background: $ac-white;
63
+ background-color: $ac-white;
64
64
  min-width: 160px;
65
65
  top: 30px;
66
66
 
67
67
  li {
68
68
  .list-button {
69
69
  width: 100%;
70
- background: transparent;
70
+ background-color: transparent;
71
71
  border: none;
72
72
  cursor: pointer;
73
73
  font-weight: 400;
74
74
  text-align: left;
75
- color: #333;
75
+ color: $ac-color-value;
76
76
  font-size: $font-size-small;
77
77
  padding: 10px 30px;
78
78
  display: block;
79
79
 
80
80
  &:hover {
81
- background: $ac-primary;
81
+ background-color: $ac-primary;
82
82
  color: $ac-white;
83
83
  }
84
84
 
85
85
  span {
86
- background: transparent;
86
+ background-color: transparent;
87
87
 
88
88
  &.icon {
89
89
  margin-right: 5px;
@@ -96,7 +96,7 @@
96
96
  padding: 10px 30px;
97
97
  display: block;
98
98
  text-decoration: none !important;
99
- color: #333 !important;
99
+ color: $ac-color-text !important;
100
100
 
101
101
  &:hover {
102
102
  background-color: $ac-primary;
@@ -106,3 +106,13 @@
106
106
  }
107
107
  }
108
108
  }
109
+
110
+ // dark theme start
111
+ .is-dark-theme {
112
+ .ac-options {
113
+ .options-items {
114
+ --ac-white: var(--dark-bg-light);
115
+ }
116
+ }
117
+ }
118
+ // dark theme end
@@ -1,7 +1,7 @@
1
1
  .ac-select-box {
2
2
  select {
3
- background: $ac-input-bg-color;
4
- border: 1px solid $ac-border;
3
+ background-color: $ac-blue-light;
4
+ border: 1px solid $ac-label-text;
5
5
  font-size: $font-size-small;
6
6
  height: 42px;
7
7
  padding-left: 20px;
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  &:hover {
14
- border: 1px solid $ac-border-hover;
14
+ border: 1px solid $ac-gray-lightest;
15
15
  }
16
16
 
17
17
  &:focus {
@@ -29,11 +29,11 @@
29
29
 
30
30
  &.select:not(.is-multiple):not(.is-loading)::after {
31
31
  top: 50%;
32
- margin-top: -2px;
32
+ margin-top: 0px;
33
33
  }
34
34
  }
35
35
 
36
36
  &.select:not(.is-multiple):not(.is-loading)::after {
37
- border-color: $ac-border;
37
+ border-color: $ac-label-text;
38
38
  }
39
39
  }