@appscode/design-system 2.17.46 → 2.17.48

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.17.46",
3
+ "version": "2.17.48",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ @import "./form-animation.scss";
@@ -0,0 +1,100 @@
1
+ // Shared Keyframes
2
+ @keyframes slideInFromBottom {
3
+ 0% {
4
+ opacity: 0;
5
+ transform: translateY(30px) scale(0.95);
6
+ }
7
+ 60% {
8
+ opacity: 1;
9
+ transform: translateY(-5px) scale(1.02);
10
+ }
11
+ 100% {
12
+ opacity: 1;
13
+ transform: translateY(0) scale(1);
14
+ }
15
+ }
16
+
17
+ @keyframes fadeOutCollapse {
18
+ 0% {
19
+ opacity: 1;
20
+ transform: scale(1);
21
+ max-height: 1000px;
22
+ margin-bottom: 16px;
23
+ }
24
+ 40% {
25
+ opacity: 0;
26
+ transform: scale(0.95);
27
+ max-height: 1000px;
28
+ margin-bottom: 16px;
29
+ }
30
+ 100% {
31
+ opacity: 0;
32
+ transform: scale(0.9);
33
+ max-height: 0;
34
+ margin-bottom: 0;
35
+ padding-top: 0;
36
+ padding-bottom: 0;
37
+ }
38
+ }
39
+
40
+ @keyframes fadeIn {
41
+ from {
42
+ opacity: 0;
43
+ }
44
+ to {
45
+ opacity: 1;
46
+ }
47
+ }
48
+
49
+ // Reusable Mixins
50
+ @mixin item-enter-active {
51
+ animation: slideInFromBottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
52
+ }
53
+
54
+ @mixin item-leave-active {
55
+ overflow: hidden;
56
+ animation: fadeOutCollapse 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
57
+ }
58
+
59
+ @mixin item-move {
60
+ transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
61
+ }
62
+
63
+ @mixin newest-item-highlight {
64
+ background: linear-gradient(135deg, hsl(var(--primary-hue), 15%, 99%) 0%, hsl(var(--secondary-hue), 15%, 99%) 100%);
65
+ border: 2px solid hsl(var(--primary-hue), var(--primary-saturation), var(--primary-light));
66
+ }
67
+
68
+ // Form Animation Classes
69
+
70
+ // Apply highlight to newest items in different contexts
71
+ .mixed-object-item.newest-item,
72
+ .each-object-card.newest-item {
73
+ @include newest-item-highlight;
74
+ }
75
+
76
+ // Array Item Transitions (used in ArrayOfArrayObject.vue, ArrayItem.vue)
77
+ .array-item-enter-active {
78
+ @include item-enter-active;
79
+ }
80
+
81
+ .array-item-leave-active {
82
+ @include item-leave-active;
83
+ }
84
+
85
+ .array-item-move {
86
+ @include item-move;
87
+ }
88
+
89
+ // Object Item Transitions (used in TheObject.vue)
90
+ .object-item-enter-active {
91
+ @include item-enter-active;
92
+ }
93
+
94
+ .object-item-leave-active {
95
+ @include item-leave-active;
96
+ }
97
+
98
+ .object-item-move {
99
+ @include item-move;
100
+ }
@@ -183,8 +183,18 @@
183
183
  display: flex;
184
184
  justify-content: space-between;
185
185
  border: 1px solid $color-border;
186
+ transition: 0.2s ease-in-out;
187
+ cursor: pointer;
188
+ &:hover {
189
+ border-color: $ac-primary;
190
+ .slider {
191
+ box-shadow: 0 0 3px $ac-primary;
192
+ // animation: shake 0.3s;
193
+ }
194
+ }
186
195
  label {
187
196
  color: $color-heading;
197
+ font-weight: 500;
188
198
  }
189
199
  }
190
200
  .switch {