@appscode/design-system 1.0.43-alpha.9 → 1.0.43-alpha.90

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