@iris.interactive/handcook 1.0.3 → 1.0.7

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/public/fonts/svgfont/etourisme/etourisme-font.eot +0 -0
  3. package/public/fonts/svgfont/etourisme/etourisme-font.ttf +0 -0
  4. package/public/fonts/svgfont/etourisme/etourisme-font.woff +0 -0
  5. package/public/fonts/svgfont/info-neige/info-neige-font.eot +0 -0
  6. package/public/fonts/svgfont/info-neige/info-neige-font.ttf +0 -0
  7. package/public/fonts/svgfont/info-neige/info-neige-font.woff +0 -0
  8. package/public/fonts/svgfont/iris-tides/iris-tides-font.eot +0 -0
  9. package/public/fonts/svgfont/iris-tides/iris-tides-font.ttf +0 -0
  10. package/public/fonts/svgfont/iris-tides/iris-tides-font.woff +0 -0
  11. package/public/fonts/svgfont/iris-weather/iris-weather-font.eot +0 -0
  12. package/public/fonts/svgfont/iris-weather/iris-weather-font.ttf +0 -0
  13. package/public/fonts/svgfont/iris-weather/iris-weather-font.woff +0 -0
  14. package/public/fonts/svgfont/theme/theme-font.eot +0 -0
  15. package/public/fonts/svgfont/theme/theme-font.ttf +0 -0
  16. package/public/fonts/svgfont/theme/theme-font.woff +0 -0
  17. package/public/scripts/index.js +7 -98
  18. package/public/styles/scss/_init.scss +24 -0
  19. package/public/styles/scss/_layout.scss +190 -0
  20. package/public/styles/scss/_utils.scss +102 -0
  21. package/public/styles/scss/_variables.scss +412 -0
  22. package/public/styles/scss/lib/_etourisme-font.scss +54 -0
  23. package/public/styles/scss/lib/_info-neige-font.scss +36 -0
  24. package/public/styles/scss/lib/_iris-tides-font.scss +38 -0
  25. package/public/styles/scss/lib/_iris-weather-font.scss +47 -0
  26. package/public/styles/scss/lib/_theme-font.scss +134 -0
  27. package/public/styles/scss/mixins/_mixin-font.scss +31 -0
  28. package/public/styles/scss/mixins/_mixin-layout.scss +103 -0
  29. package/public/styles/scss/mixins/_mixin-style.scss +133 -0
  30. package/public/styles/style.css +219 -135
  31. package/public/scripts/index.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
@@ -1,5 +1,4 @@
1
1
  /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
2
  /******/ var __webpack_modules__ = ({
4
3
 
5
4
  /***/ "./resources/assets/scripts/SmoothScroll.js":
@@ -8,6 +7,7 @@
8
7
  \**************************************************/
9
8
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
9
 
10
+ "use strict";
11
11
  __webpack_require__.r(__webpack_exports__);
12
12
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
13
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
@@ -60,6 +60,7 @@ var SmoothScroll = function SmoothScroll(triggerAttribute) {
60
60
  \****************************/
61
61
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
62
62
 
63
+ "use strict";
63
64
  __webpack_require__.r(__webpack_exports__);
64
65
  /* harmony import */ var _package_script_SmoothScroll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @package_script/SmoothScroll */ "./resources/assets/scripts/SmoothScroll.js");
65
66
 
@@ -71,11 +72,9 @@ exports.SmoothScroll = _package_script_SmoothScroll__WEBPACK_IMPORTED_MODULE_0__
71
72
  /*!******************************!*\
72
73
  !*** ./resources/style.scss ***!
73
74
  \******************************/
74
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75
-
76
- __webpack_require__.r(__webpack_exports__);
77
- // extracted by mini-css-extract-plugin
75
+ /***/ (() => {
78
76
 
77
+ throw new Error("Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):\nModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):\nSassError: Can't find stylesheet to import.\n ╷\n2 │ @use \"@package_style/_mixin-font\" as *;\n │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ╵\n resources/style.scss 2:1 root stylesheet\n at processResult (/Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/webpack/lib/NormalModule.js:721:19)\n at /Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/webpack/lib/NormalModule.js:827:5\n at /Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/loader-runner/lib/LoaderRunner.js:399:11\n at /Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/loader-runner/lib/LoaderRunner.js:251:18\n at context.callback (/Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/loader-runner/lib/LoaderRunner.js:124:13)\n at /Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/sass-loader/dist/index.js:54:7\n at Function.call$2 (/Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/sass/sass.dart.js:95825:16)\n at _render_closure1.call$2 (/Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/sass/sass.dart.js:83882:12)\n at _RootZone.runBinary$3$3 (/Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/sass/sass.dart.js:28060:18)\n at _FutureListener.handleError$1 (/Users/camille.charel/Documents/IRIS/Projects/handcook/node_modules/sass/sass.dart.js:26590:21)");
79
78
 
80
79
  /***/ })
81
80
 
@@ -105,42 +104,7 @@ __webpack_require__.r(__webpack_exports__);
105
104
  /******/ return module.exports;
106
105
  /******/ }
107
106
  /******/
108
- /******/ // expose the modules object (__webpack_modules__)
109
- /******/ __webpack_require__.m = __webpack_modules__;
110
- /******/
111
107
  /************************************************************************/
112
- /******/ /* webpack/runtime/chunk loaded */
113
- /******/ (() => {
114
- /******/ var deferred = [];
115
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
116
- /******/ if(chunkIds) {
117
- /******/ priority = priority || 0;
118
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
119
- /******/ deferred[i] = [chunkIds, fn, priority];
120
- /******/ return;
121
- /******/ }
122
- /******/ var notFulfilled = Infinity;
123
- /******/ for (var i = 0; i < deferred.length; i++) {
124
- /******/ var [chunkIds, fn, priority] = deferred[i];
125
- /******/ var fulfilled = true;
126
- /******/ for (var j = 0; j < chunkIds.length; j++) {
127
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
128
- /******/ chunkIds.splice(j--, 1);
129
- /******/ } else {
130
- /******/ fulfilled = false;
131
- /******/ if(priority < notFulfilled) notFulfilled = priority;
132
- /******/ }
133
- /******/ }
134
- /******/ if(fulfilled) {
135
- /******/ deferred.splice(i--, 1)
136
- /******/ var r = fn();
137
- /******/ if (r !== undefined) result = r;
138
- /******/ }
139
- /******/ }
140
- /******/ return result;
141
- /******/ };
142
- /******/ })();
143
- /******/
144
108
  /******/ /* webpack/runtime/define property getters */
145
109
  /******/ (() => {
146
110
  /******/ // define getter functions for harmony exports
@@ -169,68 +133,13 @@ __webpack_require__.r(__webpack_exports__);
169
133
  /******/ };
170
134
  /******/ })();
171
135
  /******/
172
- /******/ /* webpack/runtime/jsonp chunk loading */
173
- /******/ (() => {
174
- /******/ // no baseURI
175
- /******/
176
- /******/ // object to store loaded and loading chunks
177
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
178
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
179
- /******/ var installedChunks = {
180
- /******/ "/scripts/index": 0,
181
- /******/ "styles/style": 0
182
- /******/ };
183
- /******/
184
- /******/ // no chunk on demand loading
185
- /******/
186
- /******/ // no prefetching
187
- /******/
188
- /******/ // no preloaded
189
- /******/
190
- /******/ // no HMR
191
- /******/
192
- /******/ // no HMR manifest
193
- /******/
194
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
195
- /******/
196
- /******/ // install a JSONP callback for chunk loading
197
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
198
- /******/ var [chunkIds, moreModules, runtime] = data;
199
- /******/ // add "moreModules" to the modules object,
200
- /******/ // then flag all "chunkIds" as loaded and fire callback
201
- /******/ var moduleId, chunkId, i = 0;
202
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
203
- /******/ for(moduleId in moreModules) {
204
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
205
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
206
- /******/ }
207
- /******/ }
208
- /******/ if(runtime) var result = runtime(__webpack_require__);
209
- /******/ }
210
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
211
- /******/ for(;i < chunkIds.length; i++) {
212
- /******/ chunkId = chunkIds[i];
213
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
214
- /******/ installedChunks[chunkId][0]();
215
- /******/ }
216
- /******/ installedChunks[chunkIds[i]] = 0;
217
- /******/ }
218
- /******/ return __webpack_require__.O(result);
219
- /******/ }
220
- /******/
221
- /******/ var chunkLoadingGlobal = self["webpackChunk_iris_interactive_handcook"] = self["webpackChunk_iris_interactive_handcook"] || [];
222
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
223
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
224
- /******/ })();
225
- /******/
226
136
  /************************************************************************/
227
137
  /******/
228
138
  /******/ // startup
229
139
  /******/ // Load entry module and return exports
230
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
231
- /******/ __webpack_require__.O(undefined, ["styles/style"], () => (__webpack_require__("./resources/index.js")))
232
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["styles/style"], () => (__webpack_require__("./resources/style.scss")))
233
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
140
+ /******/ __webpack_require__("./resources/index.js");
141
+ /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
142
+ /******/ var __webpack_exports__ = __webpack_require__("./resources/style.scss");
234
143
  /******/
235
144
  /******/ })()
236
145
  ;
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Created by IRIS Interactive
3
+ * User : IRIS Interactive
4
+ */
5
+
6
+ *,
7
+ *:after,
8
+ *:before {
9
+ -moz-osx-font-smoothing: grayscale;
10
+ -webkit-font-smoothing: antialiased;
11
+ text-rendering: optimizeLegibility;
12
+ box-sizing: border-box;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ body {
18
+ background: $background-color;
19
+ color: $color;
20
+ font-family: $font-family;
21
+ line-height: $line-height;
22
+ font-weight: $font-weight;
23
+ font-size: $font-size--rem;
24
+ }
@@ -0,0 +1,190 @@
1
+ /*
2
+ * Created by IRIS Interactive
3
+ * User : IRIS Interactive
4
+ */
5
+
6
+ // Body layout
7
+ body.fullscreen {
8
+ .header {
9
+ height: $header;
10
+
11
+ @include breakpoint(medium) {
12
+ height: $header-small;
13
+ }
14
+ }
15
+
16
+ .alignheight {
17
+ height: calc(100vh - #{$header});
18
+
19
+ @include breakpoint(medium) {
20
+ height: calc(100vh - #{$header-small});
21
+ }
22
+ }
23
+
24
+ .header .banner,
25
+ .footer,
26
+ .prefooter {
27
+ display: none;
28
+ }
29
+ }
30
+
31
+ /* Margin section
32
+ / ================================================== */
33
+ .section {
34
+ position: relative;
35
+ margin-top: $section-margin-top;
36
+ margin-bottom: $section-margin-bottom;
37
+
38
+ @include breakpoint(medium) {
39
+ margin-top: $section-margin-top-small;
40
+ margin-bottom: $section-margin-bottom-small;
41
+ }
42
+
43
+ .fullscreen & {
44
+ margin-top: 0;
45
+ margin-bottom: 0;
46
+ }
47
+ }
48
+
49
+ .section-tools {
50
+ position: absolute;
51
+ z-index: 1;
52
+ top: 0;
53
+ left: 0;
54
+ margin-left: 30px;
55
+
56
+ @include breakpoint(large) {
57
+ display: none;
58
+ }
59
+ }
60
+
61
+ .section-tools__item {
62
+ @include d-flex(center, center, column);
63
+ margin-bottom: 20px;
64
+
65
+ @include breakpoint(large) {
66
+ font-size: $font-size-small;
67
+ }
68
+
69
+ @include breakpoint(medium) {
70
+ @include d-flex(center, center, row);
71
+
72
+ > * {
73
+ margin: 0 3px;
74
+
75
+ &:first-child {
76
+ margin-left: 0;
77
+ }
78
+ }
79
+ }
80
+
81
+ @include breakpoint(small) {
82
+ margin: 0 $margin-small;
83
+ @include d-flex(flex-start, center, row);
84
+ width: calc(100% - #{$margin-small} * 2);
85
+ }
86
+
87
+ @include breakpoint(xsmall) {
88
+ margin: 0 $margin-xsmall;
89
+ width: calc(100% - #{$margin-xsmall} * 2);
90
+ }
91
+ }
92
+
93
+
94
+ /* Width element
95
+ / ================================================== */
96
+ .article > * {
97
+
98
+ &:not(.alignwide):not(.alignfull) {
99
+ max-width: $article;
100
+ margin-left: auto;
101
+ margin-right: auto;
102
+ }
103
+
104
+ &:not(.alignfull) {
105
+
106
+ @include breakpoint(large) {
107
+ width: calc(100% - #{$margin-xlarge} * 2);
108
+ }
109
+
110
+ @include breakpoint(medium) {
111
+ width: calc(100% - #{$margin-large} * 2);
112
+ }
113
+
114
+ @include breakpoint(small) {
115
+ width: calc(100% - #{$margin-small} * 2);
116
+ }
117
+
118
+ @include breakpoint(xsmall) {
119
+ width: calc(100% - #{$margin-xsmall} * 2);
120
+ }
121
+ }
122
+ }
123
+
124
+ .alignwide {
125
+ max-width: $container;
126
+ margin: 0 auto;
127
+
128
+ // TODO : gestion des marges dans le cas des strates full (ex. Blog > post-video, carousels)
129
+ // TODO then : supprimer les paddinf left&right des strates carousel + vérifs des sliders sur les différentes réso (marges, visibilité des items etc)
130
+ //.alignfull > & {
131
+ // margin-left: 40px;
132
+ // margin-right: 40px;
133
+ //}
134
+ }
135
+
136
+ .alignheight {
137
+ height: 100vh;
138
+ }
139
+
140
+ // Full width inside containers
141
+ .full-width {
142
+ margin-left: calc(50% - 50vw);
143
+ margin-right: calc(50% - 50vw);
144
+ }
145
+
146
+ /* Margin element
147
+ / ================================================== */
148
+ .hentry {
149
+
150
+ // On définie les marges sur les titres uniquement sur ceux de 1er niveau
151
+ // Pour les titres dans les blocs (colonne, mise en avant...) les marges sont définies dans le bloc
152
+ > h1,
153
+ > h2,
154
+ > h3,
155
+ > h4,
156
+ > h5,
157
+ > h6 {
158
+ margin-top: $title-margin-top;
159
+ margin-bottom: $title-margin-bottom;
160
+
161
+ @include breakpoint(small) {
162
+ margin-top: $title-margin-top-small;
163
+ margin-bottom: $title-margin-bottom-small;
164
+ }
165
+ }
166
+
167
+ // TODO no style liste
168
+ ul:not(.not-list-style),
169
+ ol:not(.not-list-style),
170
+ p {
171
+ margin-bottom: $text-margin-bottom;
172
+ }
173
+
174
+ > *[class] {
175
+ margin-top: $block-margin-top;
176
+ margin-bottom: $block-margin-bottom;
177
+
178
+ @include breakpoint(small) {
179
+ margin-top: $block-margin-top-small;
180
+ margin-bottom: $block-margin-bottom-small;
181
+ }
182
+ }
183
+ }
184
+
185
+
186
+ /* TODO
187
+ / ================================================== */
188
+ //.wp-block {
189
+ // position: relative;
190
+ //}
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Created by IRIS Interactive
3
+ * User : IRIS Interactive
4
+ */
5
+
6
+ /* Utils classes
7
+ /* ============================================= */
8
+ .stretched-link {
9
+ @include stretched-link;
10
+ }
11
+
12
+
13
+ /* ============================================= */
14
+ .list-flex {
15
+ display: flex;
16
+ flex-wrap: wrap;
17
+ margin-bottom: 0;
18
+
19
+ > * {
20
+ list-style-type: none;
21
+ margin: 0 10px 10px 0;
22
+
23
+ &:last-child {
24
+ margin-right: 0;
25
+ }
26
+ }
27
+ }
28
+
29
+ /* Animations
30
+ /* ============================================= */
31
+ @keyframes loader {
32
+
33
+ 100% {
34
+ transform: rotate(360deg);
35
+ }
36
+ }
37
+
38
+ /* Sr-only
39
+ /* ============================================= */
40
+ .sr-only {
41
+ clip: rect(0, 0, 0, 0);
42
+ border-width: 0;
43
+ height: 1px;
44
+ margin: -1px;
45
+ overflow: hidden;
46
+ padding: 0;
47
+ position: absolute;
48
+ white-space: nowrap;
49
+ width: 1px;
50
+ }
51
+
52
+ /* Text with icon before
53
+ /* ============================================= */
54
+ .text-icon {
55
+ display: inline-flex;
56
+ align-items: center;
57
+
58
+ &:before {
59
+ margin-right: 5px;
60
+ }
61
+
62
+ // If icon after
63
+ &:after {
64
+ margin-left: 5px;
65
+ }
66
+ }
67
+
68
+ /* Block with img animated on hover
69
+ /* ============================================= */
70
+ .hover-item {
71
+
72
+ img {
73
+ @include transition;
74
+ will-change: transform;
75
+ }
76
+
77
+ &:hover {
78
+ img {
79
+ @include animate;
80
+ }
81
+ }
82
+ }
83
+
84
+ /* Masquer un element
85
+ /* ============================================= */
86
+ .hide {
87
+ display: none;
88
+ }
89
+
90
+ /* Opening
91
+ /* ============================================= */
92
+ .is-opened {
93
+ color: $c-success;
94
+ }
95
+
96
+ .soon-closed {
97
+ color: $c-warning;
98
+ }
99
+
100
+ .is-closed {
101
+ color: $c-error;
102
+ }