@linzjs/lui 21.2.0 → 21.3.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/CHANGELOG.md +14 -0
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.d.ts +2 -0
- package/dist/components/LuiTooltip/LuiTooltip.d.ts +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/lui.css +33 -15
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +13 -8
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Elements/Tooltips/tippy.scss +37 -17
- package/package.json +1 -1
|
@@ -1,45 +1,65 @@
|
|
|
1
|
+
@use '../../../scss/Core' as lui;
|
|
1
2
|
@use "../../Foundation/Variables/ColorVars.scss" as colors;
|
|
2
3
|
@use "../../Foundation/Variables/FontVars.scss" as fonts;
|
|
3
|
-
|
|
4
|
+
@use "../../Foundation/Utilities" as *;
|
|
4
5
|
|
|
5
6
|
.tippy-box {
|
|
6
|
-
|
|
7
|
-
padding:
|
|
7
|
+
@include drop-shadow(sm);
|
|
8
|
+
padding: lui.$unit-xxs lui.$unit-xs;
|
|
8
9
|
border-radius: 0;
|
|
10
|
+
text-align: left;
|
|
11
|
+
// If the tippy theme name contains '-withDelay' then add a CSS delay animation
|
|
12
|
+
&[data-theme*='-withDelay'] {
|
|
13
|
+
animation: fadeInToolTip 1.5s;
|
|
14
|
+
}
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
padding:
|
|
12
|
-
font-size: 12px;
|
|
13
|
-
@include fonts.font-
|
|
16
|
+
.tippy-content {
|
|
17
|
+
padding: 0;
|
|
18
|
+
font-size: toRem(12px);
|
|
19
|
+
@include fonts.font-semibold;
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
font-size: 12px;
|
|
21
|
+
p {
|
|
22
|
+
font-size: toRem(12px);
|
|
17
23
|
margin-top: 1em;
|
|
24
|
+
@include fonts.font-semibold;
|
|
18
25
|
}
|
|
19
26
|
|
|
20
|
-
|
|
27
|
+
p:first-child {
|
|
21
28
|
margin-top: 0;
|
|
22
29
|
}
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
|
|
26
|
-
|
|
33
|
+
@keyframes fadeInToolTip {
|
|
34
|
+
0% {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
66% {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
100% {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Using *= attribute selector to look for 'contains' so styling will be applied to both standard and delayed themes
|
|
46
|
+
.tippy-box[data-theme*='default'] {
|
|
27
47
|
background: colors.$white;
|
|
28
|
-
|
|
48
|
+
.tippy-content {
|
|
29
49
|
color: colors.$charcoal;
|
|
30
50
|
}
|
|
31
51
|
}
|
|
32
52
|
|
|
33
|
-
.tippy-box[data-theme
|
|
53
|
+
.tippy-box[data-theme*='info'] {
|
|
34
54
|
background: colors.$teal;
|
|
35
|
-
|
|
55
|
+
.tippy-content {
|
|
36
56
|
color: colors.$white;
|
|
37
57
|
}
|
|
38
58
|
}
|
|
39
59
|
|
|
40
|
-
.tippy-box[data-theme
|
|
60
|
+
.tippy-box[data-theme*='error'] {
|
|
41
61
|
background: colors.$error;
|
|
42
|
-
|
|
62
|
+
.tippy-content {
|
|
43
63
|
color: colors.$white;
|
|
44
64
|
}
|
|
45
|
-
}
|
|
65
|
+
}
|
package/package.json
CHANGED