@veritree/ui 0.76.0 → 0.76.1-1
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/nuxt.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="tag" :class="`scroll-shadows-${orientation}`">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</component>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'VTScrollShadows',
|
|
10
|
+
|
|
11
|
+
props: {
|
|
12
|
+
tag: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: 'div',
|
|
15
|
+
},
|
|
16
|
+
orientation: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'vertical', // horizontal
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped>
|
|
25
|
+
.scroll-shadows-vertical {
|
|
26
|
+
background:
|
|
27
|
+
/* Shadow Cover TOP */
|
|
28
|
+
linear-gradient(white 30%, rgba(255, 255, 255, 0)) center top,
|
|
29
|
+
/* Shadow Cover BOTTOM */ linear-gradient(rgba(255, 255, 255, 0), white 70%)
|
|
30
|
+
center bottom,
|
|
31
|
+
/* Shadow TOP */
|
|
32
|
+
radial-gradient(
|
|
33
|
+
farthest-side at 50% 0,
|
|
34
|
+
rgba(0, 0, 0, 0.1),
|
|
35
|
+
rgba(0, 0, 0, 0)
|
|
36
|
+
)
|
|
37
|
+
center top,
|
|
38
|
+
/* Shadow BOTTOM */
|
|
39
|
+
radial-gradient(
|
|
40
|
+
farthest-side at 50% 100%,
|
|
41
|
+
rgba(0, 0, 0, 0.1),
|
|
42
|
+
rgba(0, 0, 0, 0)
|
|
43
|
+
)
|
|
44
|
+
center bottom;
|
|
45
|
+
|
|
46
|
+
background-repeat: no-repeat;
|
|
47
|
+
background-size:
|
|
48
|
+
100% 30px,
|
|
49
|
+
100% 30px,
|
|
50
|
+
100% 8px,
|
|
51
|
+
100% 8px;
|
|
52
|
+
background-attachment: local, local, scroll, scroll;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.scroll-shadows-horizontal {
|
|
56
|
+
background:
|
|
57
|
+
linear-gradient(90deg, white 30%, rgba(255, 255, 255, 0)),
|
|
58
|
+
linear-gradient(90deg, rgba(255, 255, 255, 0), white 70%) 0 100%,
|
|
59
|
+
radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.2), white),
|
|
60
|
+
radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.2), white) 0 100%;
|
|
61
|
+
|
|
62
|
+
background-repeat: no-repeat;
|
|
63
|
+
background-color: white;
|
|
64
|
+
background-position:
|
|
65
|
+
top left,
|
|
66
|
+
top right,
|
|
67
|
+
top left,
|
|
68
|
+
top right;
|
|
69
|
+
background-size:
|
|
70
|
+
10px 100%,
|
|
71
|
+
10px 100%,
|
|
72
|
+
5px 100%,
|
|
73
|
+
5px 100%;
|
|
74
|
+
background-attachment: local, local, scroll, scroll;
|
|
75
|
+
}
|
|
76
|
+
</style>
|