@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
@@ -12,6 +12,32 @@
12
12
  }
13
13
  }
14
14
  }
15
+
16
+ &.is-close {
17
+ .ac-left-sidebar-wrapper {
18
+ .ac-lef-sidebar-inner {
19
+ .ac-left-sidebar {
20
+ .menu-list {
21
+ &.ac-menu-list {
22
+ li {
23
+ a {
24
+ &.ac-dropdown-button {
25
+ .ac-arrow-down {
26
+ right: -3px !important;
27
+ }
28
+ }
29
+
30
+ span {
31
+ margin-right: 0px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
15
41
  }
16
42
 
17
43
  .ac-left-sidebar-wrapper {
@@ -83,7 +109,7 @@
83
109
  li {
84
110
  a {
85
111
  padding-left: 25px;
86
- background: $ac-white;
112
+ background-color: $ac-white;
87
113
  }
88
114
  }
89
115
  }
@@ -109,7 +135,7 @@
109
135
  .ac-lef-sidebar-inner {
110
136
  .ac-left-sidebar {
111
137
  .ac-product-logo {
112
- background: $ac-white;
138
+ background-color: transparent;
113
139
  border-bottom: 1px solid $ac-white-light;
114
140
  height: 50px;
115
141
  display: flex;
@@ -119,7 +145,7 @@
119
145
 
120
146
  .ac-product-version {
121
147
  font-size: 12px;
122
- font-weight: $ac-weight-medium;
148
+ font-weight: 500;
123
149
  color: $ac-link-black;
124
150
  }
125
151
  }
@@ -129,12 +155,17 @@
129
155
  height: calc(100vh - 100px);
130
156
  overflow-y: auto;
131
157
  padding-top: 8px;
158
+ scrollbar-color: $ac-white $ac-white;
132
159
 
133
160
  /* width */
134
161
  &::-webkit-scrollbar {
135
162
  display: none;
136
163
  }
137
164
 
165
+ &::-webkit-scrollbar {
166
+ display: none;
167
+ }
168
+
138
169
  li {
139
170
  &.is-open {
140
171
  a {
@@ -150,7 +181,7 @@
150
181
  li {
151
182
  a {
152
183
  strong {
153
- font-weight: $ac-weight-normal;
184
+ font-weight: 400;
154
185
  }
155
186
  }
156
187
  }
@@ -159,7 +190,7 @@
159
190
 
160
191
  a {
161
192
  font-style: normal;
162
- font-weight: $ac-weight-normal;
193
+ font-weight: 400;
163
194
  font-size: $font-size-small;
164
195
  line-height: 16px;
165
196
  color: $ac-black;
@@ -177,7 +208,7 @@
177
208
  top: 0;
178
209
  width: 0;
179
210
  height: 100%;
180
- background-color: #f2f2f2;
211
+ background-color: $ac-white-lighter;
181
212
  border-radius: 0 50px 50px 0;
182
213
  z-index: -1;
183
214
  transition: 0.3s ease-in-out;
@@ -186,7 +217,7 @@
186
217
  strong {
187
218
  max-width: calc(100% - 65px);
188
219
  line-break: anywhere;
189
- font-weight: $ac-weight-normal;
220
+ font-weight: 400;
190
221
  }
191
222
 
192
223
  &.ac-dropdown-button {
@@ -223,6 +254,10 @@
223
254
  background-color: transparent;
224
255
 
225
256
  span {
257
+ i.fa {
258
+ color: $ac-primary;
259
+ }
260
+
226
261
  img {
227
262
  filter: grayscale(0);
228
263
  }
@@ -232,7 +267,12 @@
232
267
  &::before {
233
268
  background: linear-gradient(
234
269
  89.41deg,
235
- scale-color($ac-primary, $lightness: 80%),
270
+ hsla(
271
+ var(--hsl-hue),
272
+ var(--hsl-saturation),
273
+ var(--hsl-lightness),
274
+ 0.2
275
+ ),
236
276
  rgba(25, 113, 189, 0) 138.7%
237
277
  );
238
278
  position: absolute;
@@ -246,7 +286,7 @@
246
286
  }
247
287
 
248
288
  &::before {
249
- background: $ac-primary;
289
+ background-color: $ac-primary;
250
290
  height: 100%;
251
291
  width: 4px;
252
292
  z-index: 9;
@@ -290,54 +330,164 @@
290
330
  }
291
331
  }
292
332
  }
333
+ }
293
334
 
294
- &.is-dark-sidebar {
295
- background-color: $ac-bg-dark;
335
+ // widget menu end
336
+ // cluster switcher start
337
+ .ac-left-sidebar {
338
+ .ac-options.is-right {
339
+ .option-dots {
340
+ transition: 0.3s;
341
+
342
+ i.fa {
343
+ &.fa-angle-left {
344
+ font-size: 18px;
345
+ }
346
+ }
296
347
 
297
- .ac-lef-sidebar-inner {
298
- .ac-product-logo {
299
- .ac-product-version {
300
- color: $ac-primary;
348
+ &:active {
349
+ i.fa {
350
+ background-color: $ac-white-lighter;
351
+ width: 25px;
352
+ height: 25px;
353
+ text-align: center;
354
+ line-height: 25px;
355
+ border-radius: 50%;
301
356
  }
302
357
  }
303
358
 
304
- .menu-list {
305
- &.ac-menu-list {
306
- height: calc(100vh - 130px);
307
- overflow-y: auto;
308
- padding-top: 8px;
359
+ &:hover {
360
+ color: $ac-primary !important;
361
+ transform: scale(1.2);
362
+ }
363
+ }
364
+ }
309
365
 
310
- li {
311
- a {
312
- color: $ac-white !important;
313
- background-color: $ac-bg-dark;
366
+ .is-cluster-logo {
367
+ display: flex;
368
+ align-items: center;
369
+ margin-left: -8px;
370
+ padding: 5px;
371
+ }
314
372
 
315
- &:hover {
316
- color: $ac-white !important;
373
+ .multiselect {
374
+ height: 50px;
375
+ width: 234px;
376
+ left: 0px;
377
+ top: -5px;
317
378
 
318
- span {
319
- color: $ac-black;
320
- }
321
- }
379
+ .multiselect__select {
380
+ height: 50px;
381
+ top: 4px;
382
+ }
322
383
 
323
- &:after {
324
- background-color: $ac-color-text;
325
- }
326
- }
384
+ .multiselect__tags {
385
+ border: none !important;
386
+ background-color: $ac-bg-light-gray;
387
+ min-height: 54px;
388
+ border-radius: 0;
327
389
 
328
- &.is-active {
329
- color: $ac-primary !important;
390
+ .multiselect__placeholder {
391
+ padding-top: 12px !important;
392
+ font-size: 14px;
393
+ }
330
394
 
331
- &:after,
332
- &::before {
333
- background: linear-gradient(
334
- 89.41deg,
335
- rgba(25, 113, 189, 0.2) 0.06%,
336
- rgba(25, 113, 189, 0) 138.7%
337
- );
395
+ .multiselect__input {
396
+ background-color: $ac-bg-light-gray !important;
397
+ top: 13px;
338
398
 
339
- &::before {
340
- background-color: $ac-primary;
399
+ &::placeholder {
400
+ font-size: 12px;
401
+ font-weight: 500;
402
+ }
403
+ }
404
+ }
405
+
406
+ .multiselect__single {
407
+ background-color: $ac-bg-light-gray !important;
408
+ top: 14px !important;
409
+
410
+ img {
411
+ width: 20px;
412
+ margin-right: 8px;
413
+ }
414
+
415
+ span {
416
+ span {
417
+ overflow: hidden;
418
+ text-overflow: ellipsis;
419
+ display: -webkit-box;
420
+ line-clamp: 1;
421
+ -webkit-line-clamp: 1;
422
+ box-orient: vertical;
423
+ -webkit-box-orient: vertical;
424
+ }
425
+ }
426
+ }
427
+ }
428
+
429
+ .multiselect__content-wrapper {
430
+ border: 1px solid $ac-white-light;
431
+
432
+ .multiselect__content {
433
+ .multiselect__element {
434
+ .multiselect__option {
435
+ display: flex;
436
+ align-items: center;
437
+ font-size: 14px;
438
+
439
+ img {
440
+ width: 25px;
441
+ }
442
+
443
+ p {
444
+ color: $ac-color-text;
445
+ font-weight: 500;
446
+ }
447
+
448
+ .location {
449
+ color: $ac-color-text;
450
+ font-weight: 400;
451
+ opacity: 0.8;
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+
459
+ // cluster switcher end
460
+
461
+ // dark theme start
462
+ .is-dark-theme {
463
+ body {
464
+ .ac-system-body {
465
+ .ac-system-left-sidebar {
466
+ background-color: var(--dark-bg);
467
+ }
468
+ }
469
+
470
+ .ac-left-sidebar-wrapper {
471
+ .ac-lef-sidebar-inner {
472
+ .ac-left-sidebar {
473
+ .menu-list {
474
+ &.ac-menu-list {
475
+ li {
476
+ a {
477
+ &.is-active {
478
+ font-weight: 500;
479
+ color: $ac-full-white !important;
480
+
481
+ span {
482
+ i.fa {
483
+ color: $ac-primary;
484
+ }
485
+ }
486
+
487
+ &:after {
488
+ background: var(--dark-bg-light) !important;
489
+ }
490
+ }
341
491
  }
342
492
  }
343
493
  }
@@ -348,7 +498,7 @@
348
498
  }
349
499
  }
350
500
 
351
- // widget menu end
501
+ // dark theme end
352
502
  /****************************************
353
503
  Responsive Classes
354
504
  *****************************************/
@@ -1,6 +1,6 @@
1
1
  .editor {
2
2
  border: none;
3
- background: #f5f7f9 !important;
3
+ background-color: $ac-white-light !important;
4
4
  }
5
5
 
6
6
  .decorationsOverviewRuler {
@@ -1,5 +1,5 @@
1
1
  .ac-navbar-area {
2
- background: $ac-primary;
2
+ background-color: $ac-primary;
3
3
  box-shadow: $ac-shadow-3;
4
4
  position: fixed;
5
5
  width: 100%;
@@ -13,7 +13,7 @@
13
13
  color: #3a3a3a !important;
14
14
  }
15
15
  .drawer-icon svg {
16
- fill: #333 !important;
16
+ fill: $ac-color-text !important;
17
17
  }
18
18
  }
19
19
  .ac-navbar {
@@ -38,7 +38,7 @@
38
38
  .search-item {
39
39
  display: flex;
40
40
  align-items: center;
41
- background: rgba(255, 255, 255, 0.2);
41
+ background-color: rgba(255, 255, 255, 0.2);
42
42
  padding: 5px 20px;
43
43
  border-radius: 4px;
44
44
 
@@ -47,12 +47,12 @@
47
47
  }
48
48
 
49
49
  input {
50
- background: transparent;
50
+ background-color: transparent;
51
51
  border: none;
52
52
  color: $ac-white;
53
53
  font-size: $font-size-small;
54
54
  font-weight: 600;
55
- font-family: raleway;
55
+ font-family: $ac-family-heading;
56
56
  width: 100%;
57
57
  padding-left: 15px;
58
58
 
@@ -107,7 +107,7 @@
107
107
  top: 0;
108
108
  width: 100%;
109
109
  height: 100%;
110
- background-color: #000;
110
+ background-color: $ac-black;
111
111
  opacity: 0.2;
112
112
  z-index: 1;
113
113
  }
@@ -131,14 +131,41 @@
131
131
  .ac-menu-content {
132
132
  opacity: 1;
133
133
  visibility: visible;
134
- top: 45px;
134
+ top: 40px;
135
+ &.theme-choice {
136
+ transition: none;
137
+ padding: 10px 10px;
138
+ min-width: 150px !important;
139
+ max-height: 150px;
140
+ overflow-y: auto;
141
+ border-radius: 4px;
142
+ left: 0;
143
+ background-color: $ac-white;
144
+ ul {
145
+ li {
146
+ width: 40px;
147
+ height: 40px;
148
+ line-height: 42px;
149
+ border-radius: 4px;
150
+ text-align: center;
151
+ cursor: pointer;
135
152
 
153
+ &.is-active {
154
+ color: $ac-white;
155
+ background: $ac-primary;
156
+ }
157
+ }
158
+ }
159
+ // &::after {
160
+ // right: 90px;
161
+ // }
162
+ }
136
163
  &::after {
137
164
  position: absolute;
138
165
  content: "";
139
166
  right: 15px;
140
167
  top: -6px;
141
- background: $ac-white;
168
+ background-color: $ac-white;
142
169
  width: 15px;
143
170
  height: 15px;
144
171
  transform: rotate(45deg);
@@ -153,7 +180,7 @@
153
180
  }
154
181
 
155
182
  .ac-nav-button {
156
- background: transparent;
183
+ background-color: transparent;
157
184
  border: none;
158
185
  color: $ac-white-lighter;
159
186
  padding: 0 14px;
@@ -173,7 +200,7 @@
173
200
  right: 5px;
174
201
  width: 15px;
175
202
  height: 15px;
176
- background: $ac-white;
203
+ background-color: $ac-white;
177
204
  font-size: 12px;
178
205
  line-height: 15px;
179
206
  border-radius: 50%;
@@ -216,7 +243,10 @@
216
243
  min-width: 180px;
217
244
  opacity: 0;
218
245
  visibility: hidden;
219
- transition: 0.3s ease-in-out;
246
+ transition: 0.3s ease-in;
247
+ &.theme-choice {
248
+ left: 0;
249
+ }
220
250
 
221
251
  .user-profile-wrapper {
222
252
  background-color: $ac-white;
@@ -226,7 +256,7 @@
226
256
  .profile-area {
227
257
  display: flex;
228
258
  align-items: center;
229
- border-bottom: 1px solid #e5e9f2;
259
+ border-bottom: 1px solid $ac-white-light;
230
260
  padding-bottom: 10px;
231
261
  margin-bottom: 10px;
232
262
 
@@ -255,6 +285,7 @@
255
285
 
256
286
  .profile-info {
257
287
  p {
288
+ color: $ac-color-text;
258
289
  font-size: $font-size-small;
259
290
  font-weight: 500;
260
291
  line-height: 1.3;
@@ -283,7 +314,7 @@
283
314
  }
284
315
 
285
316
  &.quick-access {
286
- background: $ac-white;
317
+ background-color: $ac-white;
287
318
  padding: 20px;
288
319
  min-width: 260px !important;
289
320
  max-height: 250px;
@@ -294,19 +325,19 @@
294
325
  display: flex;
295
326
  justify-content: space-between;
296
327
  align-items: center;
297
- border-bottom: 1px solid #e5e9f2;
328
+ border-bottom: 1px solid $ac-white-light;
298
329
  padding-bottom: 20px;
299
330
 
300
331
  p {
301
332
  font-size: $font-size-small;
302
- color: #3c4858;
333
+ color: $ac-color-text;
303
334
  }
304
335
 
305
336
  button {
306
- background: transparent;
337
+ background-color: transparent;
307
338
  border: none;
308
339
  cursor: pointer;
309
- color: #8392a5;
340
+ color: $ac-color-value;
310
341
  }
311
342
  }
312
343
 
@@ -315,7 +346,7 @@
315
346
 
316
347
  p {
317
348
  font-size: $font-size-small;
318
- color: #3c4858;
349
+ color: $ac-color-text;
319
350
  }
320
351
 
321
352
  .organizations {
@@ -341,6 +372,7 @@
341
372
  padding: 0;
342
373
  font-size: $font-size-tiny;
343
374
  color: #eb5757;
375
+ background-color: transparent;
344
376
  }
345
377
  }
346
378
  }
@@ -359,22 +391,22 @@
359
391
 
360
392
  /* Handle */
361
393
  &::-webkit-scrollbar-thumb {
362
- background: #8392a5;
394
+ background-color: $ac-gray-light;
363
395
  border-radius: 10px;
364
396
  }
365
397
 
366
398
  /* Handle on hover */
367
399
  &::-webkit-scrollbar-thumb:hover {
368
- background: #8392a5;
400
+ background-color: $ac-gray-light;
369
401
  }
370
402
 
371
- &:last-child {
372
- right: 0;
373
- }
403
+ // &:last-child {
404
+ // right: 0;
405
+ // }
374
406
 
375
407
  &.is-notification {
376
408
  right: 0;
377
- background: $ac-white;
409
+ background-color: $ac-white;
378
410
  box-shadow: 0px 4px 8px rgba(84, 101, 126, 0.2);
379
411
  border-radius: 4px;
380
412
  min-width: 330px;
@@ -463,7 +495,7 @@
463
495
 
464
496
  p {
465
497
  font-size: $font-size-tiny;
466
- color: $ac-border;
498
+ color: $ac-label-text;
467
499
 
468
500
  &.is-success {
469
501
  color: $ac-success;
@@ -493,7 +525,7 @@
493
525
  }
494
526
 
495
527
  ul {
496
- background: $ac-white;
528
+ background-color: $ac-white;
497
529
  padding: 0;
498
530
  border-radius: 4px;
499
531
  overflow: hidden;
@@ -519,6 +551,51 @@
519
551
  }
520
552
  }
521
553
 
554
+ // start dark theme
555
+ .is-dark-theme {
556
+ body {
557
+ .ac-navbar-area {
558
+ background-color: var(--dark-bg-light);
559
+ --ac-white: #ffffff;
560
+ --ac-white-lighter: #f1f1f1;
561
+
562
+ .ac-navbar {
563
+ .search-item {
564
+ background-color: rgba(0, 0, 0, 0.2);
565
+ }
566
+
567
+ .ac-navbar-menu {
568
+ .ac-menu-item {
569
+ .quick-access {
570
+ --ac-white: var(--dark-bg-light);
571
+ }
572
+
573
+ .ac-menu-content {
574
+ &.theme-choice {
575
+ background-color: var(--dark-bg-light);
576
+ }
577
+ background-color: var(--dark-bg-light);
578
+
579
+ ul {
580
+ background-color: var(--dark-bg-light);
581
+ }
582
+
583
+ &::after {
584
+ --ac-white: var(--dark-bg-light);
585
+ }
586
+
587
+ .user-profile-wrapper {
588
+ --ac-white: var(--dark-bg-light);
589
+ }
590
+ }
591
+ }
592
+ }
593
+ }
594
+ }
595
+ }
596
+ }
597
+ // end dark theme code
598
+
522
599
  /****************************************
523
600
  Responsive Classes
524
601
  *****************************************/
@@ -9,7 +9,7 @@
9
9
  color: $ac-color-heading;
10
10
  font-weight: 500;
11
11
  padding: 20px;
12
- border-bottom: 1px solid $table-header;
12
+ border-bottom: 1px solid $ac-white-light;
13
13
  }
14
14
  }
15
15
 
@@ -41,13 +41,13 @@
41
41
 
42
42
  h4 {
43
43
  font-size: 12px;
44
- color: #6f6f8d;
44
+ color: $ac-color-value;
45
45
  font-weight: 500;
46
46
  opacity: 0.5;
47
47
  }
48
48
 
49
49
  .button {
50
- color: #6f6f8d;
50
+ color: $ac-color-value;
51
51
  text-decoration: underline;
52
52
  }
53
53
  }
@@ -70,7 +70,7 @@
70
70
  font-size: 16px;
71
71
  color: #f99a00;
72
72
  font-weight: 500;
73
- font-family: Raleway;
73
+ font-family: $ac-family-heading;
74
74
  }
75
75
  }
76
76
  }
@@ -25,7 +25,7 @@
25
25
  // single charge
26
26
  .single-charge-inner {
27
27
  padding: 10px 0;
28
- border-bottom: 1px solid $ac-modal-header-bg;
28
+ border-bottom: 1px solid $ac-white-light;
29
29
 
30
30
  &:last-child {
31
31
  border-bottom: none;
@@ -80,4 +80,3 @@
80
80
  padding: 20px 30px;
81
81
  max-width: 450px;
82
82
  }
83
-