@iris.interactive/handcook 1.0.6 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "1.0.6",
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
+ }
@@ -0,0 +1,412 @@
1
+ /*
2
+ * Created by IRIS Interactive
3
+ * User : IRIS Interactive
4
+ */
5
+ @use "sass:math";
6
+
7
+ /* Layout
8
+ / ================================================== */
9
+ $container: 1220px;
10
+ $article: 800px;
11
+ $sidebar: 360px;
12
+
13
+ $header: 120px; //TODO: Hérité du plugin customer ?
14
+ $header-small: 80px; //TODO: Hérité du plugin customer ?
15
+
16
+
17
+ /* Gutter
18
+ / ================================================== */
19
+ $gutter: 40px;
20
+ $gutter-large: $gutter*2;
21
+ $gutter-medium: 20px;
22
+ $gutter-small: 20px;
23
+
24
+
25
+ /* Margin
26
+ / ================================================== */
27
+ $section-margin-top: 100px;
28
+ $section-margin-bottom: 60px;
29
+ $section-margin-top-small: 40px;
30
+ $section-margin-bottom-small: 40px;
31
+ $text-margin-bottom: 20px;
32
+
33
+ $title-margin-top: 60px;
34
+ $title-margin-bottom: 40px;
35
+ $title-margin-top-small: 40px;
36
+ $title-margin-bottom-small: 20px;
37
+
38
+ $block-margin-top: 60px;
39
+ $block-margin-top-medium: 60px;
40
+ $block-margin-top-small: 30px;
41
+ $block-margin-bottom: 60px;
42
+ $block-margin-bottom-medium: 60px;
43
+ $block-margin-bottom-small: 30px;
44
+
45
+
46
+ /* Margin
47
+ / ================================================== */
48
+ $margin-xlarge: 8%;
49
+ $margin-large: 60px;
50
+ $margin-medium: 40px;
51
+ $margin-small: 20px;
52
+ $margin-xsmall: 20px;
53
+
54
+
55
+ /* Breakpoint
56
+ / ================================================== */
57
+ $breakpoint-desktop: $container; // min-width
58
+ $breakpoint-xlarge: math.div($container, 1 - math.div($margin-xlarge, 100%) * 2)+1; // min-width
59
+ $breakpoint-large: math.div($container, 1 - math.div($margin-xlarge, 100%) * 2); // max-width
60
+ $breakpoint-medium: 1000px; // max-width
61
+ $breakpoint-small: 650px; // max-width
62
+ $breakpoint-xsmall: 370px; // max-width
63
+
64
+
65
+ /* Global
66
+ / ================================================== */
67
+ $font-family: var(--iris--global--font-family);
68
+ $font-weight: var(--iris--global--font-weight);
69
+ $font-size: var(--iris--global--font-size-regular);
70
+ $font-size--rem: var(--iris--global--font-size-regular--rem);
71
+ $line-height: 1.75;
72
+ $color: var(--iris--global--color);
73
+ $background-color: var(--iris--global--background-color);
74
+
75
+ $border-color: var(--iris--global--border-color);
76
+ $border-radius: var(--iris--global--border-radius);
77
+ $box-shadow: var(--iris--global--box-shadow-color) var(--iris--global--box-shadow-offset-x) var(--iris--global--box-shadow-offset-y) var(--iris--global--box-shadow-blur-radius) var(--iris--global--box-shadow-spread-radius);
78
+
79
+ $font-size-xsmall: var(--iris--global--font-size-xsmall);
80
+ $font-size-xsmall--rem: var(--iris--global--font-size-xsmall--rem);
81
+ $font-size-small: var(--iris--global--font-size-small);
82
+ $font-size-small--rem: var(--iris--global--font-size-small--rem);
83
+ $font-size-regular: $font-size;
84
+ $font-size-regular--rem: $font-size--rem;
85
+ $font-size-large: var(--iris--global--font-size-large);
86
+ $font-size-large--rem: var(--iris--global--font-size-large--rem);
87
+ $font-size-large--small: var(--iris--global--font-size-large--small);
88
+ $font-size-large--small--rem: var(--iris--global--font-size-large--small--rem);
89
+ $font-size-extra-large: var(--iris--global--font-size-extra-large);
90
+ $font-size-extra-large--rem: var(--iris--global--font-size-extra-large--rem);
91
+ $font-size-extra-large--small: var(--iris--global--font-size-extra-large--small);
92
+ $font-size-extra-large--small--rem: var(--iris--global--font-size-extra-large--small--rem);
93
+
94
+
95
+ //Icon
96
+ $icon-color: var(--iris--icon--color);
97
+
98
+
99
+ //Rank
100
+ $rank-color: #ffc400; // var(--iris--rank--color)
101
+
102
+
103
+ //Meta
104
+ $meta-color: var(--iris--meta--color);
105
+ $meta-font-size: $font-size-small;
106
+ $meta-font-size--rem: $font-size-small--rem;
107
+
108
+ // Links
109
+ $link-color: var(--iris--link--color);
110
+ $link-color-hover: var(--iris--link--color-hover);
111
+ $link-text-decoration: var(--iris--link--text-decoration, none);
112
+ $link-box-shadow: var(--iris--link--box-shadow, none);
113
+ $link-underline-offset: var(--iris--link--underline-offset, 0);
114
+ $link-font-weight: var(--iris--link--font-weight);
115
+
116
+
117
+ // Advanced Links
118
+ $advanced-link-font-weight: var(--iris--advanced-link--font-weight);
119
+ $advanced-link-font-family: var(--iris--advanced-link--font-family);
120
+ $advanced-link-text-transform: var(--iris--advanced-link--text-transform);
121
+ $advanced-link-letter-spacing: var(--iris--advanced-link--letter-spacing);
122
+ $advanced-link-font-size: var(--iris--advanced-link--font-size);
123
+ $advanced-link-font-size-rem: var(--iris--advanced-link--font-size--rem);
124
+ $advanced-link-color: var(--iris--advanced-link--color);
125
+ $advanced-link-color-hover: var(--iris--advanced-link--color-hover);
126
+ $advanced-link-text-decoration: var(--iris--advanced-link--text-decoration, none);
127
+ $advanced-link-underline-offset: var(--iris--advanced-link--underline-offset, 0);
128
+
129
+
130
+ // List
131
+ $list-color: var(--iris--list--color);
132
+ $list-style-type: var(--iris--list--style-type, 50%);
133
+ $list-padding-left: calc(#{$font-size} * 1px + 10px);
134
+
135
+
136
+ //Heading
137
+ $h1-font-family: var(--iris--h1--font-family);
138
+ $h1-font-weight: var(--iris--h1--font-weight, 400);
139
+ $h1-font-size: var(--iris--h1--font-size);
140
+ $h1-font-size--rem: var(--iris--h1--font-size--rem);
141
+ $h1-font-size-medium: var(--iris--h1--font-size--medium);
142
+ $h1-font-size-medium--rem: var(--iris--h1--font-size--medium--rem);
143
+ $h1-font-size-small: var(--iris--h1--font-size--small);
144
+ $h1-font-size-small--rem: var(--iris--h1--font-size--small--rem);
145
+ $h1-color: var(--iris--h1--color);
146
+ $h1-text-align: var(--iris--h1--text-align);
147
+ $h1-text-transform: var(--iris--h1--text-transform);
148
+
149
+ $h2-font-family: var(--iris--h2--font-family);
150
+ $h2-font-weight: var(--iris--h2--font-weight, 400);
151
+ $h2-font-size: var(--iris--h2--font-size);
152
+ $h2-font-size--rem: var(--iris--h2--font-size--rem);
153
+ $h2-font-size-small: var(--iris--h2--font-size--small);
154
+ $h2-font-size-small--rem: var(--iris--h2--font-size--small--rem);
155
+ $h2-color: var(--iris--h2--color);
156
+ $h2-text-align: var(--iris--h2--text-align);
157
+ $h2-text-transform: var(--iris--h2--text-transform);
158
+
159
+ $h3-font-family: var(--iris--h3--font-family);
160
+ $h3-font-weight: var(--iris--h3--font-weight, 400);
161
+ $h3-font-size: var(--iris--h3--font-size);
162
+ $h3-font-size--rem: var(--iris--h3--font-size--rem);
163
+ $h3-font-size-medium: var(--iris--h3--font-size--medium);
164
+ $h3-font-size-medium--rem: var(--iris--h3--font-size--medium--rem);
165
+ $h3-font-size-small: var(--iris--h3--font-size--small);
166
+ $h3-font-size-small--rem: var(--iris--h3--font-size--small--rem);
167
+ $h3-color: var(--iris--h3--color);
168
+ $h3-text-align: var(--iris--h3--text-align);
169
+ $h3-text-transform: var(--iris--h3--text-transform);
170
+
171
+ $h4-font-family: var(--iris--h4--font-family);
172
+ $h4-font-weight: var(--iris--h4--font-weight, 400);
173
+ $h4-font-size: var(--iris--h4--font-size);
174
+ $h4-font-size--rem: var(--iris--h4--font-size--rem);
175
+ $h4-font-size-medium: var(--iris--h4--font-size--medium);
176
+ $h4-font-size-medium--rem: var(--iris--h4--font-size--medium--rem);
177
+ $h4-font-size-small: var(--iris--h4--font-size--small);
178
+ $h4-font-size-small--rem: var(--iris--h4--font-size--small--rem);
179
+ $h4-color: var(--iris--h4--color);
180
+ $h4-text-align: var(--iris--h4--text-align);
181
+ $h4-text-transform: var(--iris--h4--text-transform);
182
+
183
+ $h5-font-family: var(--iris--h5--font-family);
184
+ $h5-font-weight: var(--iris--h5--font-weight, 400);
185
+ $h5-font-size: var(--iris--h5--font-size);
186
+ $h5-font-size--rem: var(--iris--h5--font-size--rem);
187
+ $h5-font-size-medium: var(--iris--h5--font-size--medium);
188
+ $h5-font-size-medium--rem: var(--iris--h5--font-size--medium--rem);
189
+ $h5-font-size-small: var(--iris--h5--font-size--small);
190
+ $h5-font-size-small--rem: var(--iris--h5--font-size--small--rem);
191
+ $h5-color: var(--iris--h5--color);
192
+ $h5-text-align: var(--iris--h5--text-align);
193
+ $h5-text-transform: var(--iris--h5--text-transform);
194
+
195
+ $h6-font-family: var(--iris--h6--font-family);
196
+ $h6-font-weight: var(--iris--h6--font-weight, 400);
197
+ $h6-font-size: var(--iris--h6--font-size);
198
+ $h6-font-size--rem: var(--iris--h6--font-size--rem);
199
+ $h6-font-size-medium: var(--iris--h6--font-size--medium);
200
+ $h6-font-size-medium--rem: var(--iris--h6--font-size--medium--rem);
201
+ $h6-font-size-small: var(--iris--h6--font-size--small);
202
+ $h6-font-size-small--rem: var(--iris--h6--font-size--small--rem);
203
+ $h6-color: var(--iris--h6--color);
204
+ $h6-text-align: var(--iris--h6--text-align);
205
+ $h6-text-transform: var(--iris--h6--text-transform);
206
+
207
+
208
+ // Blockquote
209
+ $blockquote-color: var(--iris--blockquote--color);
210
+ $blockquote-font-family: var(--iris--blockquote--font-family);
211
+ $blockquote-font-weight: var(--iris--blockquote--font-weight);
212
+ $blockquote-font-style: var(--iris--blockquote--font-style);
213
+ $blockquote-font-size: var(--iris--blockquote--font-size);
214
+ $blockquote-font-size--rem: var(--iris--blockquote--font-size--rem);
215
+ $blockquote-font-size-small: var(--iris--blockquote--font-size--small);
216
+ $blockquote-font-size-small--rem: var(--iris--blockquote--font-size--small--rem);
217
+ $blockquote-padding-left: calc(#{$blockquote-font-size} * 1px + 10px);
218
+ $blockquote-text-align: var(--iris--blockquote--text-align);
219
+
220
+
221
+ // Excerpt
222
+ $excerpt-font-family: var(--iris--excerpt--font-family);
223
+ $excerpt-font-weight: var(--iris--excerpt--font-weight);
224
+ $excerpt-font-style: var(--iris--excerpt--font-style);
225
+ $excerpt-font-size: var(--iris--excerpt--font-size);
226
+ $excerpt-font-size--rem: var(--iris--excerpt--font-size--rem);
227
+ $excerpt-font-size-small: var(--iris--excerpt--font-size--small);
228
+ $excerpt-font-size-small--rem: var(--iris--excerpt--font-size--small--rem);
229
+ $excerpt-color: var(--iris--excerpt--color);
230
+ $excerpt-text-align: var(--iris--excerpt--text-align);
231
+
232
+
233
+ // Separator
234
+ $hr-height: var(--iris--hr--height);
235
+ $hr-width: var(--iris--hr--width);
236
+
237
+
238
+ // Table
239
+ $table-thead-color: var(--iris--table--thead--color);
240
+ $table-thead-background-color: var(--iris--table--thead--background-color);
241
+ $table-even-background-color: var(--iris--table--even--background-color);
242
+
243
+ // Form
244
+ $form-field-color: var(--iris--form-field--color);
245
+ $form-field-background-color: var(--iris--form-field--background-color, transparent);
246
+ $form-field-border-color: var(--iris--form-field--border-color, transparent);
247
+ $form-field-border-style: var(--iris--form-field--border-style);
248
+ $form-field-border: var(--iris--form-field--border);
249
+ $form-field-height: var(--iris--form-field--height);
250
+ $form-field-border-radius: var(--iris--form-field--border-radius);
251
+
252
+
253
+ // Button
254
+ $button-font-weight : var(--iris--button--font-weight, 400);
255
+ $button-font-family : var(--iris--button--font-family);
256
+ $button-text-transform : var(--iris--button--text-transform);
257
+ $button-letter-spacing : var(--iris--button--letter-spacing);
258
+ $button-padding-x: var(--iris--button--padding-x);
259
+ $button-padding-y: var(--iris--button--padding-y);
260
+ $button-font-size: var(--iris--button--font-size);
261
+ $button-font-size--rem: var(--iris--button--font-size--rem);
262
+ $button-border-radius: var(--iris--button--border-radius);
263
+ $button-color: var(--iris--button--color);
264
+ $button-background-color: var(--iris--button--background-color);
265
+ $button-color-hover: var(--iris--button--color-hover);
266
+ $button-background-color-hover: var(--iris--button--background-color-hover, none);
267
+ $button-background-image: var(--iris--button--background-image, none);
268
+ $button-gradient-background-image-size: var(--iris--global--gradient-background-size, (200% 100%));
269
+ $button-border: var(--iris--button--border, none);
270
+ $button-border-hover: var(--iris--button--border-hover, none);
271
+
272
+ // Tags
273
+ $tag-padding-top: var(--iris--tag--padding-top);
274
+ $tag-padding-right: var(--iris--tag--padding-right);
275
+ $tag-padding-bottom: var(--iris--tag--padding-bottom);
276
+ $tag-padding-left: var(--iris--tag--padding-left);
277
+ $tag-font-size: var(--iris--tag--font-size);
278
+ $tag-font-size--rem: var(--iris--tag--font-size--rem);
279
+
280
+ // Tags border
281
+ $border-tag-color: var(--iris--tag--border--text-color);
282
+ $border-tag-border-color: var(--iris--tag--border--border-color);
283
+
284
+ //Tags background
285
+ $background-tag-color: var(--iris--tag--background--text-color);
286
+ $background-tag-background-color: var(--iris--tag--background--background-color);
287
+
288
+ // Tooltip
289
+ $tooltip-color: var(--iris--tooltip--color);
290
+ $tooltip-background-color: var(--iris--tooltip--background-color);
291
+
292
+ // Popover
293
+ $popover-color: var(--iris--popover--color);
294
+ $popover-background-color: var(--iris--popover--background-color);
295
+
296
+
297
+ // Switch
298
+ $switch-on: var(--iris--switch--color-on);
299
+ $switch-off: var(--iris--switch--color-off);
300
+
301
+
302
+ // Highlight
303
+ $highlight-color: var(--iris--highlight--color);
304
+ $highlight-background-color: var(--iris--highlight--background-color);
305
+ $highlight-link-color: var(--iris--highlight--color-link);
306
+ $highlight-link-color-hover: var(--iris--highlight--color-link-hover);
307
+
308
+ // Highlight
309
+ $highlight-color: var(--iris--highlight--color);
310
+ $highlight-background-color: var(--iris--highlight--background-color);
311
+ $highlight-link-color: var(--iris--highlight--color-link);
312
+ $highlight-link-color-hover: var(--iris--highlight--color-link-hover);
313
+
314
+ // Single SIT highlight
315
+ $detail-sit-highlight-color: var(--iris--detail-sit-highlight--color);
316
+ $detail-sit-highlight-background-color: var(--iris--detail-sit-highlight--background-color);
317
+ $detail-sit-highlight-link-color: var(--iris--detail-sit-highlight--color-link);
318
+ $detail-sit-highlight-link-color-hover: var(--iris--detail-sit-highlight--color-link-hover);
319
+
320
+ // Strate Full
321
+ $stratefull-color: var(--iris--stratefull--color);
322
+ $stratefull-background-color: var(--iris--stratefull--background-color);
323
+ $stratefull-link-color: var(--iris--stratefull--color-link);
324
+ $stratefull-link-color-hover: var(--iris--stratefull--color-link-hover);
325
+ $stratefull-content-x: var(--iris--stratefull--content-x);
326
+ $stratefull-content-y: var(--iris--stratefull--content-y);
327
+ $stratefull-content-width: var(--iris--stratefull--content-width);
328
+
329
+
330
+ // Brochures form
331
+ $brochure-form-color: var(--iris--brochure-form--color);
332
+ $brochure-form-background-color: var(--iris--brochure-form--background-color);
333
+ $brochure-form-link-color: var(--iris--brochure-form--color-link);
334
+ $brochure-form-link-color-hover: var(--iris--brochure-form--color-link-hover);
335
+ $brochure-form-field-background-color: var(--iris--brochure-form-field--background-color);
336
+ $brochure-form-field-border-color: var(--iris--brochure-form-field--border-color);
337
+ $brochure-form-field-border: var(--iris--brochure-form-field--border);
338
+ $brochure-form-field-color: var(--iris--brochure-form-field--color);
339
+
340
+
341
+ // Alternative content
342
+ $alternative-content-color: var(--iris--alternative-content--color);
343
+ $alternative-content-background-color: var(--iris--alternative-content--background-color);
344
+ $alternative-content-link-color: var(--iris--alternative-content--color-link);
345
+ $alternative-content-link-color-hover: var(--iris--alternative-content--color-link-hover);
346
+
347
+
348
+ // Relative content
349
+ $relative-content-color: var(--iris--relative-content--color);
350
+ $relative-content-background-color: var(--iris--relative-content--background-color);
351
+ $relative-content-link-color: var(--iris--relative-content--color-link);
352
+ $relative-content-link-color-hover: var(--iris--relative-content--color-link-hover);
353
+
354
+
355
+ // Video highlight
356
+ $video-highlight-color: var(--iris--video-highlight--color);
357
+ $video-highlight-background-color: var(--iris--video-highlight--background-color);
358
+ $video-highlight-link-color: var(--iris--video-highlight--color-link);
359
+ $video-highlight-link-color-hover: var(--iris--video-highlight--color-link-hover);
360
+
361
+
362
+ // Authors
363
+ $authors-color: var(--iris--authors--color);
364
+ $authors-background-color: var(--iris--authors--background-color);
365
+ $authors-link-color: var(--iris--authors--color-link);
366
+ $authors-link-color-hover: var(--iris--authors--color-link-hover);
367
+
368
+
369
+ // Ma Plage
370
+ $ma-plage-color: var(--iris--ma-plage--color);
371
+ $ma-plage-background-color: var(--iris--ma-plage--background-color);
372
+ $ma-plage-link-color: var(--iris--ma-plage--color-link);
373
+ $ma-plage-link-color-hover: var(--iris--ma-plage--color-link-hover);
374
+
375
+
376
+ // Tides
377
+ $tides-background-color: var(--iris--tides--background-color);
378
+ $tides-color: var(--iris--tides--color);
379
+ $tides-link-color: var(--iris--tides--color-link);
380
+ $tides-link-color-hover: var(--iris--tides--color-link-hover);
381
+
382
+
383
+ // Snow
384
+ $snow-color: var(--iris--snow--color);
385
+ $snow-background-color: var(--iris--snow--background-color);
386
+ $snow-link-color: var(--iris--snow--color-link);
387
+ $snow-link-color-hover: var(--iris--snow--color-link-hover);
388
+
389
+
390
+ // How to come
391
+ $how-to-come-color: var(--iris--how-to-come--color);
392
+ $how-to-come-background-color: var(--iris--how-to-come--background-color);
393
+ $how-to-come-link-color: var(--iris--how-to-come--color-link);
394
+ $how-to-come-link-color-hover: var(--iris--how-to-come--color-link-hover);
395
+
396
+ // Trip
397
+ $trip-color: var(--iris--trip--color);
398
+ $trip-background-color: var(--iris--trip--background-color);
399
+ $trip-link-color: var(--iris--trip--color-link);
400
+ $trip-link-color-hover: var(--iris--trip--color-link-hover);
401
+
402
+ /* Notifications
403
+ / ================================================== */
404
+ $c-error: #f33;
405
+ $c-success: #009e55;
406
+ $c-warning: #ff890e;
407
+
408
+ /* Difficulty
409
+ / ================================================== */
410
+ $c-easy: #9ccc65;
411
+ $c-medium: #29b6f6;
412
+ $c-hard: #ef5350;
@@ -0,0 +1,103 @@
1
+ /*
2
+ * Created by IRIS Interactive
3
+ * User : IRIS Interactive
4
+ */
5
+ @use "sass:math";
6
+
7
+ /* Main gutter
8
+ / ================================================== */
9
+ @mixin breakpoint($point) {
10
+
11
+ @if $point == "xlarge" {
12
+ @media screen and (min-width: #{$breakpoint-xlarge}) {
13
+ @content;
14
+ }
15
+ } @else if $point == "large" {
16
+ @media screen and (max-width: #{$breakpoint-large}) {
17
+ @content;
18
+ }
19
+ } @else if $point == "medium" {
20
+ @media screen and (max-width: #{$breakpoint-medium}) {
21
+ @content;
22
+ }
23
+ } @else if $point == "small" {
24
+ @media screen and (max-width: #{$breakpoint-small}) {
25
+ @content;
26
+ }
27
+ } @else if $point == "xsmall" {
28
+ @media screen and (max-width: #{$breakpoint-xsmall}) {
29
+ @content;
30
+ }
31
+ } @else if $point == "desktop" {
32
+ @media screen and (min-width: #{$breakpoint-desktop}) {
33
+ @content;
34
+ }
35
+ } @else {
36
+ @media screen and (max-width: $point) {
37
+ @content;
38
+ }
39
+ }
40
+ }
41
+
42
+ /* display flex
43
+ /* ============================================= */
44
+ @mixin d-flex( $position-x, $position-y, $direction : row, $display : flex ) {
45
+ display: $display;
46
+ justify-content: $position-x;
47
+ align-items: $position-y;
48
+ flex-direction: $direction;
49
+ }
50
+
51
+ /* Font size
52
+ /* ============================================= */
53
+ @function rem-size( $size ) {
54
+ $remSize: math.div($size, 16);
55
+ @return #{$remSize}rem;
56
+ }
57
+
58
+ // TODO : n'est plus utilisé
59
+ @function rem-size-ratio( $size, $ratio ) {
60
+ @return calc((#{$size} / 16 * 1rem) * #{$ratio});
61
+ }
62
+
63
+ @function vw-size( $size ) {
64
+ $ceil-size: math.div(math.div($container, 1px), 1 - math.div($margin-xlarge, 100%) * 2);
65
+ @return calc(#{$size} * 100 / #{$ceil-size} * 1vw);
66
+ }
67
+
68
+ // Breakpoint large recalcule font-size
69
+ @function clamp-size( $min, $value, $max) {
70
+ $val: vw-size($value);
71
+ @return clamp(#{$min}, #{$val}, #{$max});
72
+ }
73
+
74
+ /* Hover - TODO
75
+ /* ============================================= */
76
+ @mixin hover {
77
+
78
+ .no-touchevents & {
79
+ &:hover {
80
+ @content;
81
+ }
82
+ }
83
+ }
84
+
85
+ /* Touch
86
+ /* ============================================= */
87
+ @mixin touch {
88
+
89
+ .touchevents & {
90
+ @content;
91
+ }
92
+ }
93
+
94
+ /* Clear
95
+ /* ============================================= */
96
+ @mixin clear {
97
+
98
+ &:after {
99
+ content: "";
100
+ display: block;
101
+ clear: both;
102
+ }
103
+ }
@@ -0,0 +1,133 @@
1
+ /*
2
+ * Created by IRIS Interactive
3
+ * User : IRIS Interactive
4
+ */
5
+
6
+ /* Transition
7
+ /* ============================================= */
8
+ @mixin transition($delay : 0.2s) {
9
+ transition: $delay ease;
10
+ }
11
+
12
+ /* Hover
13
+ /* ============================================= */
14
+ @mixin animate {
15
+ transform: scale(1.02);
16
+ }
17
+
18
+ /* Ellipsis
19
+ /* ============================================= */
20
+ @mixin ellipsis {
21
+ overflow: hidden;
22
+ text-overflow: ellipsis;
23
+ white-space: nowrap;
24
+ }
25
+
26
+
27
+ /* Adaptive height block
28
+ /* ============================================= */
29
+ @mixin adaptive-height($padding : 115%, $padding-medium : 0, $padding-small : 0, $padding-xsmall:0) {
30
+ position: relative;
31
+ overflow: hidden;
32
+
33
+ &:after {
34
+ content: "";
35
+ display: block;
36
+ padding-bottom: $padding;
37
+
38
+ @if $padding-medium != 0 {
39
+ @include breakpoint(medium) {
40
+ padding-bottom: $padding-medium;
41
+ }
42
+ }
43
+
44
+ @if $padding-small != 0 {
45
+ @include breakpoint(small) {
46
+ padding-bottom: $padding-small;
47
+ }
48
+ }
49
+
50
+ @if $padding-small != 0 {
51
+ @include breakpoint(xsmall) {
52
+ padding-bottom: $padding-xsmall;
53
+ }
54
+ }
55
+ }
56
+
57
+ // TODO
58
+ img:not(.emoji) {
59
+ margin: 0 auto;
60
+ @include object-fit(absolute);
61
+ @include transition(0.4s);
62
+ }
63
+ }
64
+
65
+ /* Line clamp
66
+ /* ============================================= */
67
+ @mixin line-clamp($line : 0) {
68
+ display: -webkit-box;
69
+ line-clamp: $line;
70
+ -webkit-line-clamp: $line;
71
+ -webkit-box-orient: vertical;
72
+ overflow: hidden;
73
+ }
74
+
75
+ /* Object fit
76
+ /* ============================================= */
77
+ @mixin object-fit($position : '') {
78
+ width: 100%;
79
+ height: 100%;
80
+ object-fit: cover;
81
+
82
+ @if $position == 'absolute' {
83
+ position: absolute;
84
+ top: 0;
85
+ left: 0;
86
+ }
87
+ }
88
+
89
+
90
+ /* Linear Gradient
91
+ /* ============================================= */
92
+ @mixin linear-gradient {
93
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
94
+ }
95
+
96
+ /* fit-content
97
+ /* ============================================= */
98
+ @mixin fit-content {
99
+
100
+ > *:last-child {
101
+ margin-bottom: 0;
102
+ }
103
+ }
104
+
105
+ /* stretched-link
106
+ /* ============================================= */
107
+ @mixin stretched-link {
108
+
109
+ &:before {
110
+ position: absolute;
111
+ top: 0;
112
+ right: 0;
113
+ bottom: 0;
114
+ left: 0;
115
+ z-index: 1;
116
+ pointer-events: auto;
117
+ content: "";
118
+ background-color: rgba(0, 0, 0, 0);
119
+ }
120
+ }
121
+
122
+ /* sr-only
123
+ /* ============================================= */
124
+ @mixin sr-only {
125
+ position: absolute;
126
+ width: 1px;
127
+ height: 1px;
128
+ padding: 0;
129
+ margin: -1px;
130
+ overflow: hidden;
131
+ clip: rect(0, 0, 0, 0);
132
+ border: 0;
133
+ }