@appscode/design-system 1.0.43-alpha.7 → 1.0.43-alpha.73

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 (74) 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 +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 +73 -38
  14. package/components/_ac-modal.scss +5 -4
  15. package/components/_ac-multi-select.scss +220 -18
  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 +78 -32
  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 +201 -47
  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 +22 -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 +120 -0
  64. package/vue-components/v2/preloader/Preloader.vue +5 -5
  65. package/vue-components/v2/table/TableRow.vue +1 -1
  66. package/vue-components/v2/table/table-cell/CellValue.vue +10 -1
  67. package/vue-components/v2/tabs/EditorTabs.vue +1 -1
  68. package/vue-components/v3/dropdown/DropdownMenu.vue +1 -1
  69. package/vue-components/v3/editor/Editor.vue +33 -19
  70. package/vue-components/v3/navbar/Appdrawer.vue +12 -7
  71. package/vue-components/v3/navbar/ThemeMode.vue +128 -0
  72. package/vue-components/v3/table/TableRow.vue +1 -1
  73. package/vue-components/v3/table/table-cell/CellValue.vue +9 -0
  74. package/vue-components/v3/tabs/EditorTabs.vue +1 -1
@@ -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: 0px !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-light transparent;
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;
@@ -185,8 +216,12 @@
185
216
 
186
217
  strong {
187
218
  max-width: calc(100% - 65px);
188
- line-break: anywhere;
189
- font-weight: $ac-weight-normal;
219
+ // line-break: anywhere;
220
+ white-space: break-spaces;
221
+ display: flex;
222
+ align-items: center;
223
+ overflow: hidden;
224
+ font-weight: 400;
190
225
  }
191
226
 
192
227
  &.ac-dropdown-button {
@@ -223,6 +258,10 @@
223
258
  background-color: transparent;
224
259
 
225
260
  span {
261
+ i.fa {
262
+ color: $ac-primary;
263
+ }
264
+
226
265
  img {
227
266
  filter: grayscale(0);
228
267
  }
@@ -232,7 +271,12 @@
232
271
  &::before {
233
272
  background: linear-gradient(
234
273
  89.41deg,
235
- scale-color($ac-primary, $lightness: 80%),
274
+ hsla(
275
+ var(--hsl-hue),
276
+ var(--hsl-saturation),
277
+ var(--hsl-lightness),
278
+ 0.2
279
+ ),
236
280
  rgba(25, 113, 189, 0) 138.7%
237
281
  );
238
282
  position: absolute;
@@ -246,7 +290,7 @@
246
290
  }
247
291
 
248
292
  &::before {
249
- background: $ac-primary;
293
+ background-color: $ac-primary;
250
294
  height: 100%;
251
295
  width: 4px;
252
296
  z-index: 9;
@@ -290,54 +334,164 @@
290
334
  }
291
335
  }
292
336
  }
337
+ }
293
338
 
294
- &.is-dark-sidebar {
295
- background-color: $ac-bg-dark;
339
+ // widget menu end
340
+ // cluster switcher start
341
+ .ac-left-sidebar {
342
+ .ac-options.is-right {
343
+ .option-dots {
344
+ transition: 0.3s;
345
+
346
+ i.fa {
347
+ &.fa-angle-left {
348
+ font-size: 18px;
349
+ }
350
+ }
296
351
 
297
- .ac-lef-sidebar-inner {
298
- .ac-product-logo {
299
- .ac-product-version {
300
- color: $ac-primary;
352
+ &:active {
353
+ i.fa {
354
+ background-color: $ac-white-lighter;
355
+ width: 25px;
356
+ height: 25px;
357
+ text-align: center;
358
+ line-height: 25px;
359
+ border-radius: 50%;
301
360
  }
302
361
  }
303
362
 
304
- .menu-list {
305
- &.ac-menu-list {
306
- height: calc(100vh - 130px);
307
- overflow-y: auto;
308
- padding-top: 8px;
363
+ &:hover {
364
+ color: $ac-primary !important;
365
+ transform: scale(1.2);
366
+ }
367
+ }
368
+ }
309
369
 
310
- li {
311
- a {
312
- color: $ac-white !important;
313
- background-color: $ac-bg-dark;
370
+ .is-cluster-logo {
371
+ display: flex;
372
+ align-items: center;
373
+ margin-left: -8px;
374
+ padding: 5px;
375
+ }
314
376
 
315
- &:hover {
316
- color: $ac-white !important;
377
+ .multiselect {
378
+ height: 50px;
379
+ width: 234px;
380
+ left: 0px;
381
+ top: -5px;
317
382
 
318
- span {
319
- color: $ac-black;
320
- }
321
- }
383
+ .multiselect__select {
384
+ height: 50px;
385
+ top: 4px;
386
+ }
322
387
 
323
- &:after {
324
- background-color: $ac-color-text;
325
- }
326
- }
388
+ .multiselect__tags {
389
+ border: none !important;
390
+ background-color: $ac-bg-light-gray;
391
+ min-height: 54px;
392
+ border-radius: 0;
327
393
 
328
- &.is-active {
329
- color: $ac-primary !important;
394
+ .multiselect__placeholder {
395
+ padding-top: 12px !important;
396
+ font-size: 14px;
397
+ }
330
398
 
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
- );
399
+ .multiselect__input {
400
+ background-color: $ac-bg-light-gray !important;
401
+ top: 13px;
338
402
 
339
- &::before {
340
- background-color: $ac-primary;
403
+ &::placeholder {
404
+ font-size: 12px;
405
+ font-weight: 500;
406
+ }
407
+ }
408
+ }
409
+
410
+ .multiselect__single {
411
+ background-color: $ac-bg-light-gray !important;
412
+ top: 14px !important;
413
+
414
+ img {
415
+ width: 20px;
416
+ margin-right: 8px;
417
+ }
418
+
419
+ span {
420
+ span {
421
+ overflow: hidden;
422
+ text-overflow: ellipsis;
423
+ display: -webkit-box;
424
+ line-clamp: 1;
425
+ -webkit-line-clamp: 1;
426
+ box-orient: vertical;
427
+ -webkit-box-orient: vertical;
428
+ }
429
+ }
430
+ }
431
+ }
432
+
433
+ .multiselect__content-wrapper {
434
+ border: 1px solid $ac-white-light;
435
+
436
+ .multiselect__content {
437
+ .multiselect__element {
438
+ .multiselect__option {
439
+ display: flex;
440
+ align-items: center;
441
+ font-size: 14px;
442
+
443
+ img {
444
+ width: 25px;
445
+ }
446
+
447
+ p {
448
+ color: $ac-color-text;
449
+ font-weight: 500;
450
+ }
451
+
452
+ .location {
453
+ color: $ac-color-text;
454
+ font-weight: 400;
455
+ opacity: 0.8;
456
+ }
457
+ }
458
+ }
459
+ }
460
+ }
461
+ }
462
+
463
+ // cluster switcher end
464
+
465
+ // dark theme start
466
+ .is-dark-theme {
467
+ body {
468
+ .ac-system-body {
469
+ .ac-system-left-sidebar {
470
+ background-color: var(--dark-bg);
471
+ }
472
+ }
473
+
474
+ .ac-left-sidebar-wrapper {
475
+ .ac-lef-sidebar-inner {
476
+ .ac-left-sidebar {
477
+ .menu-list {
478
+ &.ac-menu-list {
479
+ li {
480
+ a {
481
+ &.is-active {
482
+ font-weight: 500;
483
+ color: $ac-full-white !important;
484
+
485
+ span {
486
+ i.fa {
487
+ color: $ac-primary;
488
+ }
489
+ }
490
+
491
+ &:after {
492
+ background: var(--dark-bg-light) !important;
493
+ }
494
+ }
341
495
  }
342
496
  }
343
497
  }
@@ -348,7 +502,7 @@
348
502
  }
349
503
  }
350
504
 
351
- // widget menu end
505
+ // dark theme end
352
506
  /****************************************
353
507
  Responsive Classes
354
508
  *****************************************/
@@ -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
-