@appscode/design-system 1.1.0-beta.2 → 1.1.0-beta.3

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 (42) hide show
  1. package/base/_video-player.scss +65 -0
  2. package/base/utilities/_all.scss +5 -4
  3. package/base/utilities/_colors.scss +446 -0
  4. package/base/utilities/_customize-bulma.scss +23 -27
  5. package/base/utilities/_extended.scss +3 -2
  6. package/base/utilities/{_default.scss → _global.scss} +146 -298
  7. package/base/utilities/_layouts.scss +157 -0
  8. package/base/utilities/_spacing.scss +96 -0
  9. package/base/utilities/_typography.scss +34 -2
  10. package/components/_ac-accordion.scss +117 -117
  11. package/components/_ac-alert-box.scss +205 -262
  12. package/components/_ac-card.scss +72 -80
  13. package/components/_ac-input.scss +0 -482
  14. package/components/_ac-modal.scss +212 -212
  15. package/components/_ac-multi-select.scss +83 -54
  16. package/components/_ac-options.scss +122 -122
  17. package/components/_ac-table.scss +503 -502
  18. package/components/_ac-tabs.scss +4 -3
  19. package/components/_ac-tags.scss +116 -116
  20. package/components/_ac-terminal.scss +275 -231
  21. package/components/_all.scss +31 -28
  22. package/components/_app-drawer.scss +0 -134
  23. package/components/_breadcumb.scss +0 -71
  24. package/components/_buttons.scss +779 -779
  25. package/components/_dashboard-header.scss +0 -115
  26. package/components/_left-sidebar-menu.scss +346 -475
  27. package/components/_navbar.scss +786 -752
  28. package/components/_pagination.scss +9 -27
  29. package/components/_payment-card.scss +1 -1
  30. package/components/_widget-menu.scss +247 -247
  31. package/components/ui-builder/_ui-builder.scss +1 -1
  32. package/components/ui-builder/_vue-open-api.scss +512 -0
  33. package/main.scss +26 -10
  34. package/package.json +1 -1
  35. package/vue-components/v2/card/Card.vue +1 -1
  36. package/vue-components/v3/cards/Card.vue +1 -1
  37. package/vue-components/v3/cards/Vendor.vue +1 -1
  38. package/vue-components/v3/footer/FooterItem.vue +4 -1
  39. package/vue-components/v3/sidebar/Sidebar.vue +2 -2
  40. package/base/utilities/_derived-variables.scss +0 -24
  41. package/base/utilities/_initial-variables.scss +0 -217
  42. package/components/_basic-card.scss +0 -118
@@ -28,6 +28,7 @@
28
28
 
29
29
  .vue-openapi-form {
30
30
  margin-left: -20px;
31
+
31
32
  .is-warning {
32
33
  font-size: 12px;
33
34
  color: #ea3d2f;
@@ -89,6 +90,7 @@
89
90
  }
90
91
 
91
92
  .is-collapsed {
93
+
92
94
  &.ac-nested-elements::before,
93
95
  &.ac-nested-elements::after {
94
96
  display: none;
@@ -102,3 +104,513 @@
102
104
  }
103
105
 
104
106
  // for vue-tooltip
107
+
108
+ .vue-openapi-form {
109
+ .ac-single-input {
110
+ position: relative;
111
+ z-index: 1;
112
+ margin-bottom: 15px;
113
+
114
+ &.is-disable {
115
+ opacity: 0.5;
116
+
117
+ input,
118
+ .button.is-information,
119
+ .eye i.fa {
120
+ cursor: not-allowed;
121
+ }
122
+ }
123
+
124
+ &.is-information {
125
+ input {
126
+ padding-right: 45px;
127
+
128
+ &[type="password"] {
129
+ padding-right: 80px;
130
+ }
131
+ }
132
+
133
+ span.eye i.fa {
134
+ right: 35px;
135
+ }
136
+ }
137
+
138
+ &.is-success {
139
+
140
+ input,
141
+ .ac-card,
142
+ textarea {
143
+ border: 1px solid $primary !important;
144
+ }
145
+
146
+ p {
147
+ color: $primary;
148
+ }
149
+ }
150
+
151
+ &.is-danger {
152
+
153
+ input,
154
+ .ac-card,
155
+ textarea {
156
+ border: 1px solid $danger;
157
+ }
158
+
159
+ p {
160
+ color: $danger;
161
+ }
162
+ }
163
+
164
+ &.is-loading {
165
+
166
+ input,
167
+ .ac-card,
168
+ textarea {
169
+ border: 1px solid $info;
170
+ opacity: 0.5;
171
+ }
172
+
173
+ p {
174
+ color: $info;
175
+ opacity: 0.5;
176
+ }
177
+ }
178
+
179
+ &.borderless-input {
180
+ input {
181
+ border: none;
182
+ font-size: 13px;
183
+ padding: 4px 7px;
184
+ height: 30px;
185
+ background-color: $white-100;
186
+ padding-right: 30px;
187
+
188
+ &[type="password"] {
189
+ padding-right: 30px;
190
+ }
191
+
192
+ &:focus {
193
+ outline: none;
194
+ border: none;
195
+ }
196
+ }
197
+
198
+ span.eye {
199
+ i.fa {
200
+ padding: 9px;
201
+ font-size: 12px;
202
+ }
203
+ }
204
+ }
205
+
206
+ &.is-normal {
207
+ input {
208
+ height: 45px;
209
+ font-size: 15px;
210
+ font-weight: 400;
211
+ }
212
+
213
+ .button {
214
+ &.is-information {
215
+ height: 45px;
216
+ width: 45px;
217
+ margin-top: 0;
218
+ }
219
+ }
220
+
221
+ span.eye i.fa {
222
+ padding: 14px 10px;
223
+ }
224
+
225
+ .ac-search-button {
226
+ margin-top: -22.5px;
227
+ }
228
+
229
+ label {
230
+ top: 13px;
231
+ font-size: 13px;
232
+
233
+ &.show-label {
234
+ font-size: 12px;
235
+ color: $black-40;
236
+ top: -9px;
237
+ font-weight: 500;
238
+ background-color: $white-100;
239
+ }
240
+ }
241
+
242
+ .control {
243
+ &.has-icons-right {
244
+ .icon {
245
+ height: 45px;
246
+ width: 30px;
247
+ font-size: 13px;
248
+ }
249
+ }
250
+ }
251
+ }
252
+
253
+ &.is-small {
254
+ input {
255
+ height: 36px;
256
+ font-size: 13px;
257
+ font-weight: 400;
258
+ }
259
+
260
+ .button {
261
+ &.is-information {
262
+ height: 36px;
263
+ width: 36px;
264
+ margin-top: 0;
265
+ padding: 10px;
266
+ }
267
+ }
268
+
269
+ span.eye i.fa {
270
+ padding: 10px;
271
+ }
272
+
273
+ .ac-search-button {
274
+ margin-top: -18px;
275
+ }
276
+
277
+ label {
278
+ top: 8px;
279
+ font-size: 13px;
280
+
281
+ &.switch-label {
282
+ top: 0;
283
+ }
284
+
285
+ &.show-label {
286
+ font-size: 12px;
287
+ top: -9px;
288
+ font-weight: 500;
289
+ color: $black-40;
290
+
291
+ &.is-required {
292
+ &:after {
293
+ width: calc(100% + 10px);
294
+ }
295
+ }
296
+ }
297
+ }
298
+
299
+ .control {
300
+ &.has-icons-right {
301
+ .icon {
302
+ height: 36px;
303
+ width: 25px;
304
+ font-size: 13px;
305
+ }
306
+ }
307
+ }
308
+ }
309
+
310
+ &.is-extra-small {
311
+ input {
312
+ height: 32px;
313
+ font-size: 13px;
314
+ font-weight: 400;
315
+ }
316
+
317
+ .button {
318
+ &.is-information {
319
+ height: 32px;
320
+ width: 32px;
321
+ margin-top: 0;
322
+ }
323
+ }
324
+
325
+ span.eye i.fa {
326
+ padding: 10px;
327
+ }
328
+
329
+ .ac-search-button {
330
+ margin-top: 0px;
331
+ top: 0;
332
+ display: flex;
333
+ align-items: center;
334
+ width: 40px;
335
+ justify-content: center;
336
+
337
+ svg {
338
+ width: 18px;
339
+ }
340
+ }
341
+
342
+ label {
343
+ top: 8px;
344
+ font-size: 13px;
345
+
346
+ &.switch-label {
347
+ top: 0;
348
+ }
349
+
350
+ &.show-label {
351
+ font-size: 12px;
352
+ top: -9px;
353
+ }
354
+ }
355
+
356
+ .control {
357
+ &.has-icons-right {
358
+ .icon {
359
+ height: 32px;
360
+ width: 25px;
361
+ font-size: 13px;
362
+ }
363
+ }
364
+ }
365
+ }
366
+
367
+ &:last-child {
368
+ margin-bottom: 0;
369
+ }
370
+
371
+ &.is-dark {
372
+ input {
373
+ background-color: $primary-10;
374
+ border-color: transparent;
375
+ color: $white-100;
376
+
377
+ &::placeholder {
378
+ color: $primary-10;
379
+ }
380
+
381
+ button {
382
+ i.fa {
383
+ color: $white-100;
384
+ }
385
+ }
386
+ }
387
+ }
388
+
389
+ label {
390
+ font-size: 13px;
391
+ left: 15px;
392
+ top: 11px;
393
+ cursor: text;
394
+ color: $primary-10;
395
+ position: absolute;
396
+ z-index: 2;
397
+ transition: 0.3s ease-in-out;
398
+
399
+ .is-required {
400
+ color: $danger;
401
+
402
+ img {
403
+ position: absolute;
404
+ top: 7px;
405
+ padding-left: 3px;
406
+ }
407
+ }
408
+
409
+ &.show-label {
410
+ top: -9px;
411
+ left: 10px;
412
+ padding: 0 5px;
413
+ font-size: 13px;
414
+ color: $black-40;
415
+
416
+ &:after {
417
+ position: absolute;
418
+ content: "";
419
+ left: 0;
420
+ top: 50%;
421
+ background-color: $white-100;
422
+ width: 100%;
423
+ height: 2px;
424
+ margin-top: -1px;
425
+ z-index: -1;
426
+ }
427
+
428
+ // &.is-required {
429
+ // &:after {
430
+ // width: calc(100% + 10px);
431
+ // }
432
+ // }
433
+ }
434
+ }
435
+
436
+ .button {
437
+ &.is-information {
438
+ background-color: transparent;
439
+ border: none;
440
+ position: absolute;
441
+ right: 0;
442
+ height: 32px;
443
+ width: 32px;
444
+ margin-top: 0;
445
+
446
+ &:focus {
447
+ outline: none;
448
+ box-shadow: none;
449
+ background-color: #e4e8ef;
450
+ transform: scale(0.8);
451
+ }
452
+ }
453
+ }
454
+
455
+ .ac-search-button {
456
+ background-color: transparent;
457
+ border: none;
458
+ position: absolute;
459
+ left: 0;
460
+ top: 50%;
461
+ width: 32px;
462
+ height: 100%;
463
+ margin-top: -15px;
464
+ color: $primary-20;
465
+ cursor: pointer;
466
+ }
467
+
468
+ .ac-dropdown-content {
469
+ position: absolute;
470
+ background-color: $primary-90;
471
+ width: 100%;
472
+ height: auto;
473
+ box-shadow: 0px 4px 16px rgba(132, 147, 168, 0.6);
474
+ border-radius: 4px;
475
+ overflow: hidden;
476
+
477
+ ul {
478
+ li {
479
+ a {
480
+ color: $primary-10;
481
+ display: block;
482
+ font-size: 13px;
483
+ padding: 8px 20px;
484
+ transition: 0.3s;
485
+
486
+ &:hover {
487
+ background-color: hsla(var(--hsl-hue),
488
+ var(--hsl-saturation),
489
+ var(--hsl-lightness),
490
+ 0.2);
491
+ color: $primary;
492
+ }
493
+ }
494
+ }
495
+ }
496
+ }
497
+
498
+ .ac-textarea {
499
+ .ac-label {
500
+ &.is-required {
501
+ &:after {
502
+ width: calc(100% + 10px);
503
+ }
504
+ }
505
+ }
506
+
507
+ textarea {
508
+ border: 1px solid $primary-80;
509
+ background-color: transparent;
510
+ padding: 10px 15px;
511
+ min-height: 50px;
512
+
513
+ &.bg-white {
514
+ background-color: transparent;
515
+ }
516
+
517
+ &:focus {
518
+ outline: none;
519
+ border: 1px solid $primary;
520
+ }
521
+ }
522
+ }
523
+
524
+ input,
525
+ .ac-card,
526
+ textarea {
527
+ background-color: $white-100;
528
+ color: $primary-10;
529
+ height: 45px;
530
+ font-weight: 400;
531
+ width: 100%;
532
+ border-radius: 4px;
533
+ border: 1px solid $primary-80;
534
+ padding: 8px 15px;
535
+ font-size: 13px;
536
+
537
+ &:hover {
538
+ border-color: $black-70;
539
+ }
540
+
541
+ &.bg-white {
542
+ background-color: $white-100;
543
+ }
544
+
545
+ &.StripeElement--focus {
546
+ border: 1px solid $primary;
547
+ }
548
+
549
+ &:focus {
550
+ border: 1px solid $primary;
551
+ outline: none;
552
+ background-color: $white-100;
553
+ }
554
+
555
+ &[type="password"] {
556
+ padding-right: 40px;
557
+ }
558
+
559
+ &[type="search"] {
560
+ padding-left: 30px;
561
+ }
562
+
563
+ transition: background-color 0.3s ease-in-out;
564
+ }
565
+
566
+ .ac-card {
567
+ height: 36px;
568
+ padding: 10px 20px;
569
+ }
570
+
571
+ textarea {
572
+ height: 55px;
573
+ }
574
+
575
+ b.isRequired {
576
+ color: $danger;
577
+ font-size: 13px;
578
+ position: absolute;
579
+ right: 5px;
580
+ z-index: 9;
581
+ }
582
+
583
+ span.eye {
584
+ i.fa {
585
+ color: $primary-80;
586
+ position: absolute;
587
+ cursor: pointer;
588
+ padding: 15px;
589
+ right: 0;
590
+ top: 0;
591
+ }
592
+ }
593
+
594
+ .is-error {
595
+ font-size: 12px;
596
+ line-height: 22px;
597
+ color: $danger;
598
+ text-align: left;
599
+
600
+ i.fa {
601
+ padding-right: 10px;
602
+ }
603
+ }
604
+ }
605
+
606
+ .ac-input.ac-search {
607
+ width: 42px;
608
+ transition: 0.3s ease-in-out;
609
+ padding: 0;
610
+ }
611
+
612
+ .ac-search:focus {
613
+ width: 200px !important;
614
+ padding-right: 10px;
615
+ }
616
+ }
package/main.scss CHANGED
@@ -1,18 +1,34 @@
1
+ @charset "utf-8";
2
+ // customize bulma css
3
+ @import "@/assets/design-system/base/utilities/_customize-bulma.scss";
1
4
 
2
- @import "~assets/design-system/base/utilities/customize-bulma";
3
5
  // Third party CSS
4
- @import "~bulma";
5
- @import "~bulma-checkradio";
6
- @import "~bulma-switch";
7
- @import "~bulma-tooltip";
8
- @import url("https://fonts.googleapis.com/css2?family=Material+Icons&display=swap");
9
- @import "vue-multiselect/dist/vue-multiselect.min.css";
6
+ @import "../node_modules/bulma/bulma.sass";
7
+ // @import "bulma-checkradio";
8
+ // @import "bulma-switch";
9
+ // @import "bulma-tooltip";
10
+ // @import "font-awesome/css/font-awesome.min.css";
11
+ @import "vue-multiselect/dist/vue-multiselect.css";
10
12
 
11
13
  // BASE
12
- @import "~assets/design-system/base/utilities/all";
14
+ @import "./base/utilities/all";
13
15
 
14
16
  // LAYOUTS
15
- @import "~assets/design-system/layouts/all";
17
+ @import "./layouts/all";
16
18
 
17
19
  // COMPONENTS
18
- @import "~assets/design-system/components/all";
20
+ @import "./components/all";
21
+
22
+ // //BASE - Base styles, variables, mixins
23
+ // @import "base/video-player";
24
+
25
+ // COMPONENTS
26
+ // @import "./cluster/resourceViewer";
27
+ // @import "./cluster/app-drawer";
28
+
29
+ // LAYOUTS - Page layout styles
30
+ // @import "layouts/_clusterListPage";
31
+
32
+ // KUBEDB COMPONENTS
33
+ // @import "./kubedb/styles/scss/custom.scss";
34
+ // @import "./kubedb/styles/scss/transitions.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-beta.2",
3
+ "version": "1.1.0-beta.3",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="ac-single-card has-text-centered style-three"
3
+ class="ac-single-card has-text-centered vendor-card"
4
4
  :class="{ 'is-selected': isSelected }"
5
5
  @click="$emit('click', $event)"
6
6
  data-testid="card-list-item"
@@ -14,7 +14,7 @@ withDefaults(defineProps<Props>(), {
14
14
 
15
15
  <template>
16
16
  <div
17
- class="ac-single-card has-text-centered style-three"
17
+ class="ac-single-card has-text-centered vendor-card"
18
18
  :class="{ 'is-selected': isSelected }"
19
19
  @click="$emit('click', $event)"
20
20
  data-testid="card-list-item"
@@ -8,7 +8,7 @@ withDefaults(defineProps<Props>(), {
8
8
  });
9
9
  </script>
10
10
  <template>
11
- <a class="ac-single-card has-text-centered style-three">
11
+ <a class="ac-single-card has-text-centered vendor-card">
12
12
  <div class="ac-card-logo">
13
13
  <div class="card-status"></div>
14
14
  <img
@@ -23,7 +23,10 @@ withDefaults(defineProps<Props>(), {
23
23
  color: $primary-90;
24
24
  font-size: 12px;
25
25
  &.has-text-danger {
26
- color: $red-70 !important;
26
+ color: $red-80 !important;
27
+ }
28
+ &.has-text-success {
29
+ color: $green-50 !important;
27
30
  }
28
31
  }
29
32
  </style>
@@ -107,7 +107,7 @@ withDefaults(defineProps<Props>(), {
107
107
  top: 0;
108
108
  width: calc(100% - 20px);
109
109
  height: 100%;
110
- background: rgba(255, 255, 255, 0.1);
110
+ background: $primary;
111
111
  border-radius: 4px;
112
112
  z-index: -1;
113
113
  transition: 0.3s ease-in-out;
@@ -144,7 +144,7 @@ withDefaults(defineProps<Props>(), {
144
144
 
145
145
  &:after {
146
146
  color: $primary;
147
- opacity: 0.5;
147
+ opacity: 0.2;
148
148
  visibility: visible;
149
149
  }
150
150
 
@@ -1,24 +0,0 @@
1
- // color
2
- $info: $blue;
3
- $success: $primary;
4
- $warning: $yellow;
5
- $danger: $danger
6
-
7
- // Text colors
8
- $primary-10: var(--ac-text);
9
- $primary-5: var(--ac-text-heading);
10
-
11
- // Link colors
12
- $ac-link: $blue;
13
- $ac-link-visited: $purple;
14
-
15
- // Box Shadow
16
- $ac-shadow-1: 0 1px 4px rgba(26, 80, 151, 0.16);
17
- $ac-shadow-2: 0px 8px 57px rgba(0, 0, 0, 0.16);
18
- $ac-shadow-3: 0 3px 4px 0 rgba(0, 0, 0, 0.18),
19
- 0 3px 3px -2px rgba(0, 0, 0, 0.16), 0 1px 6px 0 rgba(0, 0, 0, 0.12);
20
-
21
- $ac-shadow-sm: 0 1px 4px rgba(26, 80, 151, 0.16);
22
- $ac-shadow-xl: 0px 8px 57px rgba(0, 0, 0, 0.16);
23
- $ac-shadow-lg: 0 3px 4px 0 rgba(0, 0, 0, 0.18),
24
- 0 3px 3px -2px rgba(0, 0, 0, 0.16), 0 1px 6px 0 rgba(0, 0, 0, 0.12);