@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
- ![Version](https://img.shields.io/badge/version-4.0.6-blue.svg?cacheSeconds=2592000)
2
+ ![Version](https://img.shields.io/badge/version-4.0.8-blue.svg?cacheSeconds=2592000)
3
3
  ![Prerequisite](https://img.shields.io/badge/node-%3E%3D%2012.14.0-blue.svg)
4
4
  [![License: UNLICENSED](https://img.shields.io/badge/License-UNLICENSED-yellow.svg)](#)
5
5
  [![Twitter: captain\_iris](https://img.shields.io/twitter/follow/captain\_iris.svg?style=social)](https://twitter.com/captain\_iris)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "4.0.6",
3
+ "version": "4.0.8",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
@@ -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', 'var('+backgroundColor+')');
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-color', 'var('+color+')');
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-font-size', 'var('+fontSize+')');
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
- $header: 120px; //TODO: Hérité du plugin customer ?
13
- $header-small: 80px; //TODO: Hérité du plugin customer ?
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-font-size, $font-size-small--rem);
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);