@appscode/design-system 2.6.17 → 2.6.19-alpha
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
|
@@ -183,17 +183,41 @@ hr {
|
|
|
183
183
|
}
|
|
184
184
|
// Scrollbar mixin
|
|
185
185
|
@mixin scrollbar-styles($direction) {
|
|
186
|
-
padding:
|
|
186
|
+
padding: 16px;
|
|
187
187
|
transition: 0.3s ease-in-out;
|
|
188
|
-
overflow-#{$direction}: auto;
|
|
189
188
|
|
|
189
|
+
// Handle overflow based on direction
|
|
190
|
+
@if $direction == "x" {
|
|
191
|
+
overflow-x: auto;
|
|
192
|
+
} @else if $direction == "y" {
|
|
193
|
+
overflow-y: auto;
|
|
194
|
+
} @else if $direction == "both" {
|
|
195
|
+
overflow-x: auto;
|
|
196
|
+
overflow-y: auto;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Define scrollbar width/height based on direction
|
|
190
200
|
&::-webkit-scrollbar {
|
|
191
201
|
border-radius: 50px;
|
|
192
|
-
|
|
202
|
+
@if $direction == "x" {
|
|
203
|
+
height: 4px;
|
|
204
|
+
} @else if $direction == "y" {
|
|
205
|
+
width: 4px;
|
|
206
|
+
} @else if $direction == "both" {
|
|
207
|
+
width: 4px;
|
|
208
|
+
height: 4px;
|
|
209
|
+
}
|
|
193
210
|
}
|
|
194
211
|
|
|
195
212
|
&::-webkit-scrollbar:hover {
|
|
196
|
-
|
|
213
|
+
@if $direction == "x" {
|
|
214
|
+
height: 8px;
|
|
215
|
+
} @else if $direction == "y" {
|
|
216
|
+
width: 8px;
|
|
217
|
+
} @else if $direction == "both" {
|
|
218
|
+
width: 8px;
|
|
219
|
+
height: 8px;
|
|
220
|
+
}
|
|
197
221
|
}
|
|
198
222
|
|
|
199
223
|
&::-webkit-scrollbar-thumb {
|
|
@@ -202,10 +226,9 @@ hr {
|
|
|
202
226
|
}
|
|
203
227
|
|
|
204
228
|
&:hover::-webkit-scrollbar-corner {
|
|
205
|
-
|
|
229
|
+
width: 40px; // or adjust as needed
|
|
206
230
|
}
|
|
207
231
|
}
|
|
208
|
-
|
|
209
232
|
// Scrollbar utilities
|
|
210
233
|
.ac-vscrollbar {
|
|
211
234
|
@include scrollbar-styles("y");
|
|
@@ -20,15 +20,18 @@ withDefaults(
|
|
|
20
20
|
<div class="icon">
|
|
21
21
|
<slot name="card-logo" />
|
|
22
22
|
</div>
|
|
23
|
-
<h5
|
|
23
|
+
<h5>
|
|
24
|
+
<slot name="card-title" />
|
|
25
|
+
</h5>
|
|
24
26
|
</div>
|
|
25
27
|
<!-- <span class="tag has-background-dark-light has-text-dark is-rounded"
|
|
26
28
|
>Dark</span
|
|
27
29
|
> -->
|
|
28
30
|
<slot name="card-status" />
|
|
29
31
|
</div>
|
|
30
|
-
<div class="c-body">
|
|
32
|
+
<div class="c-body is-flex is-justify-content-space-between gap-2 mt-4">
|
|
31
33
|
<p><slot name="card-sub-title" /></p>
|
|
34
|
+
<slot name="sync-percentage" />
|
|
32
35
|
</div>
|
|
33
36
|
</div>
|
|
34
37
|
<!-- single card wrapper end -->
|