@volverjs/style 0.1.2-beta-12 → 0.1.2-beta-14
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/dist/components/vv-tooltip.css +1 -0
- package/dist/components.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +3 -1
- package/src/_config.scss +1 -0
- package/src/components/index.scss +1 -0
- package/src/components/vv-tooltip.scss +12 -0
- package/src/settings/_index.scss +1 -0
- package/src/settings/components/_vv-tooltip.scss +135 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volverjs/style",
|
|
3
|
-
"version": "0.1.2-beta-
|
|
3
|
+
"version": "0.1.2-beta-14",
|
|
4
4
|
"description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
|
|
5
5
|
"main": "dist/style.css",
|
|
6
6
|
"style": "dist/style.css",
|
|
@@ -63,6 +63,8 @@
|
|
|
63
63
|
"./scss/components/vv-text": "./src/components/vv-text.scss",
|
|
64
64
|
"./components/vv-textarea": "./dist/components/vv-textarea.css",
|
|
65
65
|
"./scss/components/vv-textarea": "./src/components/vv-textarea.scss",
|
|
66
|
+
"./components/vv-tooltip": "./dist/components/vv-tooltip.css",
|
|
67
|
+
"./scss/components/vv-tooltip": "./src/components/vv-tooltip.scss",
|
|
66
68
|
"./export": "./dist/export.css",
|
|
67
69
|
"./scss/export": "./src/export.scss",
|
|
68
70
|
"./props/animation": "./dist/props/animation.css",
|
package/src/_config.scss
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../context';
|
|
3
|
+
|
|
4
|
+
$component-name: map.get($components-names, vv-tooltip);
|
|
5
|
+
$component-map: $vv-tooltip;
|
|
6
|
+
|
|
7
|
+
@include spread-map-into-bem(
|
|
8
|
+
$map: $component-map,
|
|
9
|
+
$block: $component-name,
|
|
10
|
+
$props: $use-custom-props-for-components,
|
|
11
|
+
$zero-specificity: $zero-specificity-for-compoenents
|
|
12
|
+
);
|
package/src/settings/_index.scss
CHANGED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
$vv-tooltip: (
|
|
2
|
+
position: relative,
|
|
3
|
+
display: inline-flex,
|
|
4
|
+
align-items: center,
|
|
5
|
+
element: (
|
|
6
|
+
content: (
|
|
7
|
+
opacity: 0,
|
|
8
|
+
position: absolute,
|
|
9
|
+
z-index: var(--z-tooltip),
|
|
10
|
+
display: block,
|
|
11
|
+
min-width: var(--spacing-160),
|
|
12
|
+
border-radius: var(--rounded-md),
|
|
13
|
+
border-width: 2px,
|
|
14
|
+
border-style: solid,
|
|
15
|
+
border-color: var(--color-gray-darken-4),
|
|
16
|
+
padding: var(--spacing-4) var(--spacing-sm),
|
|
17
|
+
margin: 0 0 0 var(--spacing-xs),
|
|
18
|
+
background: var(--color-gray-darken-4),
|
|
19
|
+
font-size: var(--text-12),
|
|
20
|
+
font-weight: var(--font-normal),
|
|
21
|
+
color: var(--color-gray-lighten-5),
|
|
22
|
+
text-align: center,
|
|
23
|
+
inset-inline: 100% auto,
|
|
24
|
+
inset-block: auto,
|
|
25
|
+
filter: drop-shadow(0 0 0.2rem var(--color-gray-darken-4)),
|
|
26
|
+
pseudo: (
|
|
27
|
+
after: (
|
|
28
|
+
position: absolute,
|
|
29
|
+
z-index: -1,
|
|
30
|
+
inset-inline: -10% auto,
|
|
31
|
+
inset-block: 50% auto,
|
|
32
|
+
transform: translateY(-50%),
|
|
33
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
34
|
+
border-color: transparent var(--color-gray-darken-4)
|
|
35
|
+
transparent transparent,
|
|
36
|
+
),
|
|
37
|
+
),
|
|
38
|
+
),
|
|
39
|
+
),
|
|
40
|
+
modifier: (
|
|
41
|
+
top: (
|
|
42
|
+
element: (
|
|
43
|
+
content: (
|
|
44
|
+
margin: 0 0 var(--spacing-xs) 0,
|
|
45
|
+
inset-inline: auto,
|
|
46
|
+
inset-block: auto 100%,
|
|
47
|
+
pseudo: (
|
|
48
|
+
after: (
|
|
49
|
+
position: absolute,
|
|
50
|
+
z-index: -1,
|
|
51
|
+
inset-inline: 45% auto,
|
|
52
|
+
inset-block: 130% auto,
|
|
53
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
54
|
+
border-color: var(--color-gray-darken-4) transparent
|
|
55
|
+
transparent,
|
|
56
|
+
),
|
|
57
|
+
),
|
|
58
|
+
),
|
|
59
|
+
),
|
|
60
|
+
),
|
|
61
|
+
right: (
|
|
62
|
+
element: (
|
|
63
|
+
content: (
|
|
64
|
+
margin: 0 0 0 var(--spacing-xs),
|
|
65
|
+
inset-inline: 100% auto,
|
|
66
|
+
inset-block: auto,
|
|
67
|
+
pseudo: (
|
|
68
|
+
after: (
|
|
69
|
+
position: absolute,
|
|
70
|
+
z-index: -1,
|
|
71
|
+
inset-inline: -10% auto,
|
|
72
|
+
inset-block: 50% auto,
|
|
73
|
+
transform: translateY(-50%),
|
|
74
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
75
|
+
border-color: transparent var(--color-gray-darken-4)
|
|
76
|
+
transparent transparent,
|
|
77
|
+
),
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
),
|
|
81
|
+
),
|
|
82
|
+
bottom: (
|
|
83
|
+
element: (
|
|
84
|
+
content: (
|
|
85
|
+
margin: var(--spacing-xs) 0 0 0,
|
|
86
|
+
inset-inline: auto,
|
|
87
|
+
inset-block: 100% auto,
|
|
88
|
+
pseudo: (
|
|
89
|
+
after: (
|
|
90
|
+
position: absolute,
|
|
91
|
+
z-index: -1,
|
|
92
|
+
inset-inline: 45% auto,
|
|
93
|
+
inset-block: auto 50%,
|
|
94
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
95
|
+
border-color: transparent transparent
|
|
96
|
+
var(--color-gray-darken-4) transparent,
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
),
|
|
100
|
+
),
|
|
101
|
+
),
|
|
102
|
+
left: (
|
|
103
|
+
element: (
|
|
104
|
+
content: (
|
|
105
|
+
margin: 0 var(--spacing-xs) 0 0,
|
|
106
|
+
inset-inline: auto 100%,
|
|
107
|
+
inset-block: auto,
|
|
108
|
+
pseudo: (
|
|
109
|
+
after: (
|
|
110
|
+
position: absolute,
|
|
111
|
+
z-index: -1,
|
|
112
|
+
inset-inline: auto -10%,
|
|
113
|
+
inset-block: 50% auto,
|
|
114
|
+
transform: translateY(-50%),
|
|
115
|
+
border: 10px solid var(--color-gray-darken-4),
|
|
116
|
+
border-color: transparent transparent transparent
|
|
117
|
+
var(--color-gray-darken-4),
|
|
118
|
+
),
|
|
119
|
+
),
|
|
120
|
+
),
|
|
121
|
+
),
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
state: (
|
|
125
|
+
hover: (
|
|
126
|
+
element: (
|
|
127
|
+
content: (
|
|
128
|
+
opacity: 1,
|
|
129
|
+
will-change: opacity,
|
|
130
|
+
transition: opacity 0.3s ease-in-out,
|
|
131
|
+
),
|
|
132
|
+
),
|
|
133
|
+
),
|
|
134
|
+
),
|
|
135
|
+
) !default;
|