@appscode/design-system 1.0.43-alpha.8 → 1.0.43-alpha.80

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 (79) hide show
  1. package/base/utilities/_default.scss +277 -20
  2. package/base/utilities/_derived-variables.scss +0 -13
  3. package/base/utilities/_initial-variables.scss +78 -56
  4. package/base/utilities/_mixin.scss +10 -17
  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 +16 -9
  9. package/components/_ac-card.scss +54 -19
  10. package/components/_ac-code-highlight.scss +7 -1
  11. package/components/_ac-content-layout.scss +4 -4
  12. package/components/_ac-drag.scss +6 -6
  13. package/components/_ac-input.scss +68 -38
  14. package/components/_ac-modal.scss +5 -4
  15. package/components/_ac-multi-select.scss +196 -14
  16. package/components/_ac-options.scss +24 -13
  17. package/components/_ac-select-box.scss +15 -5
  18. package/components/_ac-table.scss +42 -33
  19. package/components/_ac-tabs.scss +72 -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 +53 -27
  25. package/components/_card-body-wrapper.scss +3 -3
  26. package/components/_dashboard-header.scss +1 -1
  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 +198 -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 +10 -2
  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 +23 -9
  54. package/components/ui-builder/_vue-open-api.scss +98 -0
  55. package/layouts/_404.scss +2 -1
  56. package/layouts/_code-preview.scss +14 -7
  57. package/main.scss +2 -0
  58. package/package.json +1 -1
  59. package/plugins/theme.js +142 -0
  60. package/plugins/vue-toaster.js +6 -6
  61. package/vue-components/v2/card/PaymentCards.vue +11 -2
  62. package/vue-components/v2/editor/Editor.vue +37 -17
  63. package/vue-components/v2/modal/Modal.vue +10 -1
  64. package/vue-components/v2/navbar/Appdrawer.vue +10 -9
  65. package/vue-components/v2/navbar/ThemeMode.vue +120 -0
  66. package/vue-components/v2/preloader/Preloader.vue +5 -5
  67. package/vue-components/v2/sidebar/ClusterSwitcher.vue +126 -0
  68. package/vue-components/v2/table/TableRow.vue +1 -1
  69. package/vue-components/v2/table/table-cell/CellValue.vue +10 -1
  70. package/vue-components/v2/tabs/EditorTabs.vue +1 -1
  71. package/vue-components/v3/dropdown/DropdownMenu.vue +1 -1
  72. package/vue-components/v3/editor/Editor.vue +39 -19
  73. package/vue-components/v3/modal/Modal.vue +10 -1
  74. package/vue-components/v3/navbar/Appdrawer.vue +12 -7
  75. package/vue-components/v3/navbar/ThemeMode.vue +128 -0
  76. package/vue-components/v3/sidebar/ClusterSwitcher.vue +133 -0
  77. package/vue-components/v3/table/TableRow.vue +1 -1
  78. package/vue-components/v3/table/table-cell/CellValue.vue +9 -0
  79. package/vue-components/v3/tabs/EditorTabs.vue +1 -1
@@ -4,6 +4,7 @@
4
4
  grid-gap: 0px;
5
5
  grid-template-columns: 270px calc(100% - 270px);
6
6
  padding-top: 50px;
7
+
7
8
  &.is-fullwidth {
8
9
  grid-template-columns: auto !important;
9
10
 
@@ -25,24 +26,29 @@
25
26
  &.has-ui-builder {
26
27
  grid-template-columns: 70px calc(100% - 70px);
27
28
  grid-gap: 0;
29
+
28
30
  .inner-header {
29
31
  position: sticky;
30
32
  top: 100px;
31
- background-color: #fff;
33
+ background-color: $ac-white;
32
34
  z-index: 997;
33
35
  }
36
+
34
37
  .ac-system-content {
35
38
  &.pr-15 {
36
39
  padding-right: 0 !important;
37
40
  }
41
+
38
42
  .ac-terminal {
39
43
  width: calc(100% - 290px);
40
44
  left: 289px;
41
45
  }
42
46
  }
47
+
43
48
  .ac-system-left-sidebar.is-expanded {
44
49
  z-index: 998;
45
50
  }
51
+
46
52
  &.expanded-sidebar {
47
53
  grid-gap: 0px;
48
54
  z-index: 9;
@@ -70,15 +76,18 @@
70
76
  .ac-system-body {
71
77
  padding-top: 0;
72
78
  grid-template-columns: 220px calc(100% - 440px) 220px;
79
+
73
80
  .ac-system-left-sidebar {
74
81
  border-right: none !important;
75
82
  height: calc(100vh - 60px);
83
+
76
84
  .ac-left-sidebar-wrapper {
77
85
  position: fixed;
78
86
  top: 140px;
79
87
  width: 219px;
80
- border-right: 1px solid #e7e7e7;
88
+ border-right: 1px solid $ac-white-light;
81
89
  height: 100%;
90
+
82
91
  ul.menu-list-wrapper {
83
92
  padding-top: 10px;
84
93
  }
@@ -92,9 +101,9 @@
92
101
  }
93
102
 
94
103
  .ac-system-left-sidebar {
95
- background-color: $ac-white;
96
104
  border-right: 1px solid $ac-white-light;
97
105
  box-shadow: none;
106
+
98
107
  &.is-expanded {
99
108
  z-index: 998;
100
109
 
@@ -130,10 +139,51 @@
130
139
  }
131
140
  }
132
141
  }
142
+
133
143
  .form-content {
134
144
  width: 720px;
135
145
  }
136
146
 
147
+ .dropdown-content {
148
+ background-color: $ac-white;
149
+ }
150
+
151
+ // color swatch start
152
+ input[type="color"] {
153
+ -webkit-appearance: none;
154
+ border: none;
155
+ width: 20px;
156
+ height: 20px;
157
+ border-radius: 50%;
158
+ border: 1px solid #777;
159
+ margin-left: 3px;
160
+ padding: 2px;
161
+ cursor: pointer;
162
+ }
163
+ input[type="color"]::-webkit-color-swatch-wrapper {
164
+ padding: 0;
165
+ }
166
+ // input[type="color"]::-moz-color-swatch,
167
+ input[type="color"]::-webkit-color-swatch {
168
+ border: none;
169
+ border-radius: 50%;
170
+ }
171
+ input[type="color"]::-moz-color-swatch {
172
+ border: none;
173
+ border-radius: 50%;
174
+ }
175
+ // color swatch end
176
+
177
+ .is-dark-theme {
178
+ .dropdown-content {
179
+ background-color: $dark-bg-light;
180
+ }
181
+ }
182
+
183
+ .ac-preloader {
184
+ color: $ac-color-text;
185
+ }
186
+
137
187
  .section-padding {
138
188
  padding: 100px 0;
139
189
  }
@@ -167,21 +217,27 @@
167
217
  .is-not-fixed {
168
218
  position: inherit !important;
169
219
  }
220
+
170
221
  .b-1 {
171
222
  border: 1px solid $ac-white-light;
172
223
  }
224
+
173
225
  .b-t-1 {
174
226
  border-top: 1px solid $ac-white-light;
175
227
  }
228
+
176
229
  .b-b-1 {
177
230
  border-bottom: 1px solid $ac-white-light;
178
231
  }
232
+
179
233
  .b-l-1 {
180
234
  border-left: 1px solid $ac-white-light;
181
235
  }
236
+
182
237
  .b-r-1 {
183
238
  border-right: 1px solid $ac-white-light;
184
239
  }
240
+
185
241
  // border none
186
242
  .is-border-none {
187
243
  border: none !important;
@@ -207,6 +263,7 @@
207
263
  opacity: 0.5;
208
264
  cursor: not-allowed;
209
265
  }
266
+
210
267
  .no-data-image {
211
268
  img {
212
269
  width: 250px;
@@ -268,13 +325,13 @@
268
325
  }
269
326
 
270
327
  &::-webkit-scrollbar-thumb {
271
- background-color: #929292;
328
+ background-color: $ac-gray-light;
272
329
  border-radius: 50px;
273
330
  height: 2px !important;
274
331
  }
275
332
 
276
333
  &::-webkit-scrollbar-thumb:hover {
277
- background-color: #929292;
334
+ background-color: $ac-gray-light;
278
335
  }
279
336
 
280
337
  &:hover::-webkit-scrollbar-corner {
@@ -315,33 +372,33 @@
315
372
  }
316
373
 
317
374
  &::-webkit-scrollbar-thumb {
318
- background-color: #929292;
375
+ background-color: $ac-gray-light;
319
376
  border-radius: 50px;
320
377
  height: 2px !important;
321
378
  }
322
379
 
323
380
  &::-moz-scrollbar-thumb {
324
- background-color: #929292;
381
+ background-color: $ac-gray-light;
325
382
  border-radius: 50px;
326
383
  height: 2px !important;
327
384
  }
328
385
 
329
386
  &::-ms-scrollbar-thumb {
330
- background-color: #929292;
387
+ background-color: $ac-gray-light;
331
388
  border-radius: 50px;
332
389
  height: 2px !important;
333
390
  }
334
391
 
335
392
  &::-webkit-scrollbar-thumb:hover {
336
- background-color: #929292;
393
+ background-color: $ac-gray-light;
337
394
  }
338
395
 
339
396
  &::-moz-scrollbar-thumb:hover {
340
- background-color: #929292;
397
+ background-color: $ac-gray-light;
341
398
  }
342
399
 
343
400
  &::-ms-scrollbar-thumb:hover {
344
- background-color: #929292;
401
+ background-color: $ac-gray-light;
345
402
  }
346
403
 
347
404
  &:hover::-webkit-scrollbar-corner {
@@ -372,13 +429,13 @@
372
429
  }
373
430
 
374
431
  &::-webkit-scrollbar-thumb {
375
- background-color: #929292;
432
+ background-color: $ac-gray-light;
376
433
  border-radius: 50px;
377
434
  width: 2px !important;
378
435
  }
379
436
 
380
437
  &::-webkit-scrollbar-thumb:hover {
381
- background-color: #929292;
438
+ background-color: $ac-gray-light;
382
439
  }
383
440
 
384
441
  &:hover::-webkit-scrollbar-corner {
@@ -401,7 +458,7 @@
401
458
 
402
459
  .is-transparent {
403
460
  border: none;
404
- background: transparent;
461
+ background-color: transparent;
405
462
  }
406
463
 
407
464
  .is-error {
@@ -410,9 +467,18 @@
410
467
  color: $ac-red;
411
468
  text-align: left;
412
469
  }
470
+
413
471
  code {
414
472
  color: $ac-color-heading;
415
473
  }
474
+
475
+ .is-dark-theme {
476
+ code {
477
+ background-color: $dark-bg-light;
478
+ color: $ac-full-white;
479
+ }
480
+ }
481
+
416
482
  .is-danger:not(.ac-button) {
417
483
  color: $ac-danger !important;
418
484
  }
@@ -429,42 +495,57 @@ button {
429
495
  }
430
496
 
431
497
  .tag:not(body) {
432
- background-color: #e5e9f2;
498
+ background-color: $ac-white-light;
433
499
  font-size: 11px;
434
500
  height: 18px;
435
501
  letter-spacing: 0.1px;
436
502
  color: $ac-color-heading;
503
+
504
+ a {
505
+ &:hover {
506
+ color: $ac-color-text;
507
+ }
508
+ }
509
+
437
510
  &.is-available {
438
511
  background-color: #27b064;
439
512
  color: $ac-white;
440
513
  }
514
+
441
515
  &.is-success {
442
516
  background-color: $ac-green;
443
517
  color: $ac-white;
518
+
444
519
  &.is-light {
445
520
  background-color: rgba(39, 176, 100, 0.2);
446
521
  color: $ac-green;
447
522
  }
448
523
  }
524
+
449
525
  &.is-primary {
450
526
  background-color: $ac-primary;
451
527
  color: $ac-white;
528
+
452
529
  &.is-light {
453
530
  background-color: rgba(25, 113, 189, 0.2);
454
531
  color: $ac-primary;
455
532
  }
456
533
  }
534
+
457
535
  &.is-gray {
458
536
  background-color: #e5e9f2;
459
- color: #666;
537
+ color: $ac-gray-darker;
460
538
  }
539
+
461
540
  &.is-warning {
462
541
  background-color: $ac-warning;
463
542
  color: $ac-white !important;
464
543
  }
544
+
465
545
  &.is-danger {
466
546
  background-color: $ac-red;
467
547
  color: $ac-white !important;
548
+
468
549
  &.is-light {
469
550
  background-color: rgba(234, 61, 47, 0.2);
470
551
  color: $ac-red !important;
@@ -476,6 +557,7 @@ button {
476
557
  .icon {
477
558
  margin-bottom: 0.5rem;
478
559
  }
560
+
479
561
  .tag {
480
562
  a {
481
563
  font-weight: 500;
@@ -496,12 +578,12 @@ button {
496
578
  top: 12px;
497
579
  width: 100%;
498
580
  height: 1px;
499
- background: $ac-white-light;
581
+ background-color: $ac-white-light;
500
582
  }
501
583
 
502
584
  h5 {
503
585
  color: $ac-color-text;
504
- background: $ac-white;
586
+ background-color: $ac-white;
505
587
  z-index: 2;
506
588
  display: inline-block;
507
589
  position: relative;
@@ -653,6 +735,147 @@ $border_color_4: transparent transparent #585d6e transparent;
653
735
  }
654
736
  }
655
737
  }
738
+ // tooltip in vue-open-api
739
+ .tooltip {
740
+ display: block !important;
741
+ z-index: 10000;
742
+
743
+ &.is-button-info {
744
+ .tooltip-inner {
745
+ background: $ac-white;
746
+ color: $ac-primary;
747
+ border-radius: 4px;
748
+ padding: 5px 20px 4px;
749
+ box-shadow: $ac-shadow-1;
750
+ font-weight: 500;
751
+ font-size: 13px;
752
+ }
753
+
754
+ .tooltip-arrow {
755
+ width: 0;
756
+ height: 0;
757
+ border-style: solid;
758
+ position: absolute;
759
+ margin: 5px;
760
+ border-color: $ac-white;
761
+ }
762
+ }
763
+
764
+ &.is-errors-tooltip {
765
+ .tooltip-inner {
766
+ background: $ac-white;
767
+ color: $ac-danger;
768
+ border-radius: 4px;
769
+ padding: 5px 20px 4px;
770
+ box-shadow: $ac-shadow-1;
771
+ font-weight: 500;
772
+ font-size: 13px;
773
+
774
+ .errors-wrapper {
775
+ .error-element {
776
+ padding: 5px 0;
777
+ }
778
+ }
779
+ }
780
+
781
+ .tooltip-arrow {
782
+ width: 0;
783
+ height: 0;
784
+ border-style: solid;
785
+ position: absolute;
786
+ margin: 5px;
787
+ border-color: $ac-white;
788
+ }
789
+ }
790
+
791
+ &[x-placement^="top"] {
792
+ margin-bottom: 5px;
793
+
794
+ .tooltip-arrow {
795
+ border-width: 5px 5px 0 5px;
796
+ border-left-color: transparent !important;
797
+ border-right-color: transparent !important;
798
+ border-bottom-color: transparent !important;
799
+ bottom: -5px;
800
+ left: calc(50% - 5px);
801
+ margin-top: 0;
802
+ margin-bottom: 0;
803
+ }
804
+ }
805
+
806
+ &[x-placement^="bottom"] {
807
+ margin-top: 5px;
808
+
809
+ .tooltip-arrow {
810
+ border-width: 0 5px 5px 5px;
811
+ border-left-color: transparent !important;
812
+ border-right-color: transparent !important;
813
+ border-top-color: transparent !important;
814
+ top: -5px;
815
+ left: calc(50% - 5px);
816
+ margin-top: 0;
817
+ margin-bottom: 0;
818
+ }
819
+ }
820
+
821
+ &[x-placement^="right"] {
822
+ margin-left: 5px;
823
+
824
+ .tooltip-arrow {
825
+ border-width: 5px 5px 5px 0;
826
+ border-left-color: transparent !important;
827
+ border-top-color: transparent !important;
828
+ border-bottom-color: transparent !important;
829
+ left: -5px;
830
+ top: calc(50% - 5px);
831
+ margin-left: 0;
832
+ margin-right: 0;
833
+ }
834
+ }
835
+
836
+ &[x-placement^="left"] {
837
+ margin-right: 5px;
838
+
839
+ .tooltip-arrow {
840
+ border-width: 5px 0 5px 5px;
841
+ border-top-color: transparent !important;
842
+ border-right-color: transparent !important;
843
+ border-bottom-color: transparent !important;
844
+ right: -5px;
845
+ top: calc(50% - 5px);
846
+ margin-left: 0;
847
+ margin-right: 0;
848
+ }
849
+ }
850
+
851
+ &.popover {
852
+ $color: #f9f9f9;
853
+
854
+ .popover-inner {
855
+ background: $color;
856
+ color: black;
857
+ padding: 24px;
858
+ border-radius: 4px;
859
+ box-shadow: $ac-shadow-1;
860
+ }
861
+
862
+ .popover-arrow {
863
+ border-color: $color;
864
+ }
865
+ }
866
+
867
+ &[aria-hidden="true"] {
868
+ visibility: hidden;
869
+ opacity: 0;
870
+ transition: opacity 0.15s, visibility 0.15s;
871
+ }
872
+
873
+ &[aria-hidden="false"] {
874
+ visibility: visible;
875
+ opacity: 1;
876
+ transition: opacity 0.15s;
877
+ }
878
+ }
656
879
 
657
880
  // Customize tooltip end
658
881
 
@@ -660,7 +883,7 @@ $border_color_4: transparent transparent #585d6e transparent;
660
883
  .ac-footer-action {
661
884
  margin-top: 10px;
662
885
  padding-top: 10px;
663
- background: $ac-white;
886
+ background-color: $ac-white;
664
887
  padding: 10px 20px;
665
888
  margin-left: 0;
666
889
  margin-right: 0;
@@ -686,7 +909,7 @@ $border_color_4: transparent transparent #585d6e transparent;
686
909
  height: 10px;
687
910
  width: 10px;
688
911
  border-radius: 50%;
689
- background: $ac-grey-lightest;
912
+ background-color: $ac-gray-lightest;
690
913
  border: 2px solid $ac-white;
691
914
  display: inline-flex;
692
915
 
@@ -702,6 +925,40 @@ $border_color_4: transparent transparent #585d6e transparent;
702
925
  // Status css
703
926
  // ac-footer sticky end
704
927
 
928
+ // terminal scss start
929
+ .ac-terminal {
930
+ padding: 3px;
931
+ position: fixed;
932
+ bottom: 0px;
933
+ height: 300px;
934
+ width: 100%;
935
+ background-color: $ac-white;
936
+ border: 1px solid var(--ac-white-light);
937
+
938
+ color: $ac-white;
939
+ z-index: 999;
940
+
941
+ .terminal-body {
942
+ font-family: "Inconsolata", monospace;
943
+ background-color: var(--dark-bg-light);
944
+ height: 100%;
945
+ color: $ac-white;
946
+
947
+ strong {
948
+ color: $ac-white;
949
+ }
950
+ }
951
+ }
952
+
953
+ // terminal scss end
954
+ .is-dark-theme {
955
+ a {
956
+ &:hover {
957
+ color: #485fc7;
958
+ }
959
+ }
960
+ }
961
+
705
962
  /****************************************
706
963
  Responsive Classes
707
964
  *****************************************/
@@ -1,28 +1,15 @@
1
- // Typography
2
- $ac-size-small: $ac-size-7;
3
- $ac-size-normal: $ac-size-6;
4
- $ac-size-medium: $ac-size-5;
5
- $ac-size-large: $ac-size-4;
6
-
7
1
  // color
8
2
  $ac-info: $ac-blue;
9
3
  $ac-success: $ac-primary;
10
4
  $ac-warning: $ac-yellow;
11
5
  $ac-danger: $ac-red;
12
6
 
13
- // bg-color
14
- $ac-bg-dark: #2c2e42;
15
- $ac-modal-header-bg: #e8e8e8;
16
- $ac-input-bg-color: #eceff4;
17
- $ac-bg-light-gray: #f4f6f9;
18
- $table-header: #e4e8ef;
19
7
  // Text colors
20
8
  $ac-color-text: var(--ac-text);
21
9
  $ac-color-heading: var(--ac-text-heading);
22
10
 
23
11
  // Link colors
24
12
  $ac-link: $ac-blue;
25
- $ac-link-black: #32325d;
26
13
  $ac-link-visited: $ac-purple;
27
14
 
28
15
  // Box Shadow