@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.
@@ -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
- box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25), 0 1px 6px rgba(0, 0, 0, 0.15);
7
- padding: 4px 8px;
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
- & > .tippy-content {
11
- padding: 5px 9px;
12
- font-size: 12px;
13
- @include fonts.font-regular;
16
+ .tippy-content {
17
+ padding: 0;
18
+ font-size: toRem(12px);
19
+ @include fonts.font-semibold;
14
20
 
15
- & p {
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
- & p:first-child {
27
+ p:first-child {
21
28
  margin-top: 0;
22
29
  }
23
30
  }
24
31
  }
25
32
 
26
- .tippy-box[data-theme~='default'] {
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
- & > .tippy-content {
48
+ .tippy-content {
29
49
  color: colors.$charcoal;
30
50
  }
31
51
  }
32
52
 
33
- .tippy-box[data-theme~='info'] {
53
+ .tippy-box[data-theme*='info'] {
34
54
  background: colors.$teal;
35
- & > .tippy-content {
55
+ .tippy-content {
36
56
  color: colors.$white;
37
57
  }
38
58
  }
39
59
 
40
- .tippy-box[data-theme~='error'] {
60
+ .tippy-box[data-theme*='error'] {
41
61
  background: colors.$error;
42
- & > .tippy-content {
62
+ .tippy-content {
43
63
  color: colors.$white;
44
64
  }
45
- }
65
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "21.2.0",
2
+ "version": "21.3.1",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",