@iris.interactive/handcook 4.0.6 → 4.0.8
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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Welcome to HandCook 👨🍳
|
|
2
|
-

|
|
3
3
|

|
|
4
4
|
[](#)
|
|
5
5
|
[](https://twitter.com/captain\_iris)
|
package/package.json
CHANGED
|
@@ -56,13 +56,13 @@ export class HcTooltip {
|
|
|
56
56
|
}
|
|
57
57
|
options.onShow = (instance) => {
|
|
58
58
|
if (backgroundColor) {
|
|
59
|
-
instance.popper.querySelector('.tippy-box').style.setProperty('--iris--tooltip--background-color',
|
|
59
|
+
instance.popper.querySelector('.tippy-box').style.setProperty('--iris--tooltip--background-color', backgroundColor);
|
|
60
60
|
}
|
|
61
61
|
if (color) {
|
|
62
|
-
instance.popper.querySelector('.tippy-box').style.setProperty('--iris--tooltip
|
|
62
|
+
instance.popper.querySelector('.tippy-box').style.setProperty('--iris--tooltip--color', color);
|
|
63
63
|
}
|
|
64
64
|
if (fontSize) {
|
|
65
|
-
instance.popper.querySelector('.tippy-box').style.setProperty('--iris--tooltip
|
|
65
|
+
instance.popper.querySelector('.tippy-box').style.setProperty('--iris--tooltip--font-size', fontSize);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
instance.reference.dispatchEvent(this.showEvent);
|
|
@@ -9,8 +9,9 @@ $container: 1220px;
|
|
|
9
9
|
$article: 800px;
|
|
10
10
|
$sidebar: 360px;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/* Header
|
|
13
|
+
/ ================================================== */
|
|
14
|
+
$header-height: var(--iris--header--height, 100px);
|
|
14
15
|
$navbar-fixed-height: var(--iris--navbar--fixed--height, 0px);
|
|
15
16
|
|
|
16
17
|
/* Gutter
|
|
@@ -386,7 +387,7 @@ $background-tag-background-color: var(--iris--tag--background--background-color)
|
|
|
386
387
|
// Tooltip
|
|
387
388
|
$tooltip-color: var(--iris--tooltip--color);
|
|
388
389
|
$tooltip-background-color: var(--iris--tooltip--background-color);
|
|
389
|
-
$tooltip-font-size: var(--iris--tooltip
|
|
390
|
+
$tooltip-font-size: var(--iris--tooltip--font-size, $font-size-small--rem);
|
|
390
391
|
|
|
391
392
|
// Popover
|
|
392
393
|
$popover-color: var(--iris--popover--color);
|