@iris.interactive/handcook 1.0.4 → 1.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.
Files changed (29) 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/styles/scss/_init.scss +24 -0
  18. package/public/styles/scss/_layout.scss +190 -0
  19. package/public/styles/scss/_utils.scss +102 -0
  20. package/public/styles/scss/_variables.scss +412 -0
  21. package/public/styles/scss/lib/_etourisme-font.scss +6 -6
  22. package/public/styles/scss/lib/_info-neige-font.scss +5 -6
  23. package/public/styles/scss/lib/_iris-tides-font.scss +5 -6
  24. package/public/styles/scss/lib/_iris-weather-font.scss +5 -6
  25. package/public/styles/scss/lib/_theme-font.scss +6 -6
  26. package/public/styles/scss/{_mixin-font.scss → mixins/_mixin-font.scss} +1 -0
  27. package/public/styles/scss/mixins/_mixin-layout.scss +103 -0
  28. package/public/styles/scss/mixins/_mixin-style.scss +133 -0
  29. package/public/styles/style.css +363 -34
@@ -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
+ }
@@ -2,6 +2,26 @@
2
2
  * Created by IRIS Interactive
3
3
  * User : IRIS Interactive
4
4
  */
5
+ /* Layout
6
+ / ================================================== */
7
+ /* Gutter
8
+ / ================================================== */
9
+ /* Margin
10
+ / ================================================== */
11
+ /* Margin
12
+ / ================================================== */
13
+ /* Breakpoint
14
+ / ================================================== */
15
+ /* Global
16
+ / ================================================== */
17
+ /* Notifications
18
+ / ================================================== */
19
+ /* Difficulty
20
+ / ================================================== */
21
+ /*
22
+ * Created by IRIS Interactive
23
+ * User : IRIS Interactive
24
+ */
5
25
  /* Import
6
26
  /* ============================================= */
7
27
  /* Fonticon
@@ -10,10 +30,349 @@
10
30
  * Created by IRIS Interactive
11
31
  * User : IRIS Interactive
12
32
  */
13
- /* Import
33
+ /* Main gutter
34
+ / ================================================== */
35
+ /* display flex
14
36
  /* ============================================= */
15
- /* Fonticon
37
+ /* Font size
38
+ /* ============================================= */
39
+ /* Hover - TODO
40
+ /* ============================================= */
41
+ /* Touch
42
+ /* ============================================= */
43
+ /* Clear
44
+ /* ============================================= */
45
+ /*
46
+ * Created by IRIS Interactive
47
+ * User : IRIS Interactive
48
+ */
49
+ /* Transition
50
+ /* ============================================= */
51
+ /* Hover
52
+ /* ============================================= */
53
+ /* Ellipsis
54
+ /* ============================================= */
55
+ /* Adaptive height block
56
+ /* ============================================= */
57
+ /* Line clamp
58
+ /* ============================================= */
59
+ /* Object fit
60
+ /* ============================================= */
61
+ /* Linear Gradient
62
+ /* ============================================= */
63
+ /* fit-content
64
+ /* ============================================= */
65
+ /* stretched-link
66
+ /* ============================================= */
67
+ /* sr-only
68
+ /* ============================================= */
69
+ /*
70
+ * Created by IRIS Interactive
71
+ * User : IRIS Interactive
72
+ */
73
+ *,
74
+ *:after,
75
+ *:before {
76
+ -moz-osx-font-smoothing: grayscale;
77
+ -webkit-font-smoothing: antialiased;
78
+ text-rendering: optimizeLegibility;
79
+ box-sizing: border-box;
80
+ margin: 0;
81
+ padding: 0;
82
+ }
83
+
84
+ body {
85
+ background: var(--iris--global--background-color);
86
+ color: var(--iris--global--color);
87
+ font-family: var(--iris--global--font-family);
88
+ line-height: 1.75;
89
+ font-weight: var(--iris--global--font-weight);
90
+ font-size: var(--iris--global--font-size-regular--rem);
91
+ }
92
+
93
+ /*
94
+ * Created by IRIS Interactive
95
+ * User : IRIS Interactive
96
+ */
97
+ body.fullscreen .header {
98
+ height: 120px;
99
+ }
100
+ @media screen and (max-width: 1000px) {
101
+ body.fullscreen .header {
102
+ height: 80px;
103
+ }
104
+ }
105
+ body.fullscreen .alignheight {
106
+ height: calc(100vh - 120px);
107
+ }
108
+ @media screen and (max-width: 1000px) {
109
+ body.fullscreen .alignheight {
110
+ height: calc(100vh - 80px);
111
+ }
112
+ }
113
+ body.fullscreen .header .banner,
114
+ body.fullscreen .footer,
115
+ body.fullscreen .prefooter {
116
+ display: none;
117
+ }
118
+
119
+ /* Margin section
120
+ / ================================================== */
121
+ .section {
122
+ position: relative;
123
+ margin-top: 100px;
124
+ margin-bottom: 60px;
125
+ }
126
+ @media screen and (max-width: 1000px) {
127
+ .section {
128
+ margin-top: 40px;
129
+ margin-bottom: 40px;
130
+ }
131
+ }
132
+ .fullscreen .section {
133
+ margin-top: 0;
134
+ margin-bottom: 0;
135
+ }
136
+
137
+ .section-tools {
138
+ position: absolute;
139
+ z-index: 1;
140
+ top: 0;
141
+ left: 0;
142
+ margin-left: 30px;
143
+ }
144
+ @media screen and (max-width: 1452.380952381px) {
145
+ .section-tools {
146
+ display: none;
147
+ }
148
+ }
149
+
150
+ .section-tools__item {
151
+ display: flex;
152
+ justify-content: center;
153
+ align-items: center;
154
+ flex-direction: column;
155
+ margin-bottom: 20px;
156
+ }
157
+ @media screen and (max-width: 1452.380952381px) {
158
+ .section-tools__item {
159
+ font-size: var(--iris--global--font-size-small);
160
+ }
161
+ }
162
+ @media screen and (max-width: 1000px) {
163
+ .section-tools__item {
164
+ display: flex;
165
+ justify-content: center;
166
+ align-items: center;
167
+ flex-direction: row;
168
+ }
169
+ .section-tools__item > * {
170
+ margin: 0 3px;
171
+ }
172
+ .section-tools__item > *:first-child {
173
+ margin-left: 0;
174
+ }
175
+ }
176
+ @media screen and (max-width: 650px) {
177
+ .section-tools__item {
178
+ margin: 0 20px;
179
+ display: flex;
180
+ justify-content: flex-start;
181
+ align-items: center;
182
+ flex-direction: row;
183
+ width: calc(100% - 20px * 2);
184
+ }
185
+ }
186
+ @media screen and (max-width: 370px) {
187
+ .section-tools__item {
188
+ margin: 0 20px;
189
+ width: calc(100% - 20px * 2);
190
+ }
191
+ }
192
+
193
+ /* Width element
194
+ / ================================================== */
195
+ .article > *:not(.alignwide):not(.alignfull) {
196
+ max-width: 800px;
197
+ margin-left: auto;
198
+ margin-right: auto;
199
+ }
200
+ @media screen and (max-width: 1452.380952381px) {
201
+ .article > *:not(.alignfull) {
202
+ width: calc(100% - 8% * 2);
203
+ }
204
+ }
205
+ @media screen and (max-width: 1000px) {
206
+ .article > *:not(.alignfull) {
207
+ width: calc(100% - 60px * 2);
208
+ }
209
+ }
210
+ @media screen and (max-width: 650px) {
211
+ .article > *:not(.alignfull) {
212
+ width: calc(100% - 20px * 2);
213
+ }
214
+ }
215
+ @media screen and (max-width: 370px) {
216
+ .article > *:not(.alignfull) {
217
+ width: calc(100% - 20px * 2);
218
+ }
219
+ }
220
+
221
+ .alignwide {
222
+ max-width: 1220px;
223
+ margin: 0 auto;
224
+ }
225
+
226
+ .alignheight {
227
+ height: 100vh;
228
+ }
229
+
230
+ .full-width {
231
+ margin-left: calc(50% - 50vw);
232
+ margin-right: calc(50% - 50vw);
233
+ }
234
+
235
+ /* Margin element
236
+ / ================================================== */
237
+ .hentry > h1,
238
+ .hentry > h2,
239
+ .hentry > h3,
240
+ .hentry > h4,
241
+ .hentry > h5,
242
+ .hentry > h6 {
243
+ margin-top: 60px;
244
+ margin-bottom: 40px;
245
+ }
246
+ @media screen and (max-width: 650px) {
247
+ .hentry > h1,
248
+ .hentry > h2,
249
+ .hentry > h3,
250
+ .hentry > h4,
251
+ .hentry > h5,
252
+ .hentry > h6 {
253
+ margin-top: 40px;
254
+ margin-bottom: 20px;
255
+ }
256
+ }
257
+ .hentry ul:not(.not-list-style),
258
+ .hentry ol:not(.not-list-style),
259
+ .hentry p {
260
+ margin-bottom: 20px;
261
+ }
262
+ .hentry > *[class] {
263
+ margin-top: 60px;
264
+ margin-bottom: 60px;
265
+ }
266
+ @media screen and (max-width: 650px) {
267
+ .hentry > *[class] {
268
+ margin-top: 30px;
269
+ margin-bottom: 30px;
270
+ }
271
+ }
272
+
273
+ /* TODO
274
+ / ================================================== */
275
+ /*
276
+ * Created by IRIS Interactive
277
+ * User : IRIS Interactive
278
+ */
279
+ /* Utils classes
280
+ /* ============================================= */
281
+ .stretched-link:before {
282
+ position: absolute;
283
+ top: 0;
284
+ right: 0;
285
+ bottom: 0;
286
+ left: 0;
287
+ z-index: 1;
288
+ pointer-events: auto;
289
+ content: "";
290
+ background-color: rgba(0, 0, 0, 0);
291
+ }
292
+
293
+ /* ============================================= */
294
+ .list-flex {
295
+ display: flex;
296
+ flex-wrap: wrap;
297
+ margin-bottom: 0;
298
+ }
299
+ .list-flex > * {
300
+ list-style-type: none;
301
+ margin: 0 10px 10px 0;
302
+ }
303
+ .list-flex > *:last-child {
304
+ margin-right: 0;
305
+ }
306
+
307
+ /* Animations
308
+ /* ============================================= */
309
+ @-webkit-keyframes loader {
310
+ 100% {
311
+ transform: rotate(360deg);
312
+ }
313
+ }
314
+ @keyframes loader {
315
+ 100% {
316
+ transform: rotate(360deg);
317
+ }
318
+ }
319
+ /* Sr-only
320
+ /* ============================================= */
321
+ .sr-only {
322
+ clip: rect(0, 0, 0, 0);
323
+ border-width: 0;
324
+ height: 1px;
325
+ margin: -1px;
326
+ overflow: hidden;
327
+ padding: 0;
328
+ position: absolute;
329
+ white-space: nowrap;
330
+ width: 1px;
331
+ }
332
+
333
+ /* Text with icon before
16
334
  /* ============================================= */
335
+ .text-icon {
336
+ display: inline-flex;
337
+ align-items: center;
338
+ }
339
+ .text-icon:before {
340
+ margin-right: 5px;
341
+ }
342
+ .text-icon:after {
343
+ margin-left: 5px;
344
+ }
345
+
346
+ /* Block with img animated on hover
347
+ /* ============================================= */
348
+ .hover-item img {
349
+ transition: 0.2s ease;
350
+ will-change: transform;
351
+ }
352
+ .hover-item:hover img {
353
+ transform: scale(1.02);
354
+ }
355
+
356
+ /* Masquer un element
357
+ /* ============================================= */
358
+ .hide {
359
+ display: none;
360
+ }
361
+
362
+ /* Opening
363
+ /* ============================================= */
364
+ .is-opened {
365
+ color: #009e55;
366
+ }
367
+
368
+ .soon-closed {
369
+ color: #ff890e;
370
+ }
371
+
372
+ .is-closed {
373
+ color: #f33;
374
+ }
375
+
17
376
  @font-face {
18
377
  font-family: "etourisme-font";
19
378
  font-weight: normal;
@@ -23,6 +382,7 @@
23
382
  }
24
383
  .ei:before,
25
384
  .ei:after {
385
+ color: var(--iris--icon--color);
26
386
  display: inline-block;
27
387
  vertical-align: middle;
28
388
  font-family: "etourisme-font", sans-serif;
@@ -133,14 +493,6 @@
133
493
  content: "\ea0d";
134
494
  }
135
495
 
136
- /*
137
- * Created by IRIS Interactive
138
- * User : IRIS Interactive
139
- */
140
- /* Import
141
- /* ============================================= */
142
- /* Fonticon
143
- /* ============================================= */
144
496
  @font-face {
145
497
  font-family: "info-neige-font";
146
498
  font-weight: normal;
@@ -157,14 +509,6 @@
157
509
  content: "\ea01";
158
510
  }
159
511
 
160
- /*
161
- * Created by IRIS Interactive
162
- * User : IRIS Interactive
163
- */
164
- /* Import
165
- /* ============================================= */
166
- /* Fonticon
167
- /* ============================================= */
168
512
  @font-face {
169
513
  font-family: "iris-tides-font";
170
514
  font-weight: normal;
@@ -189,14 +533,6 @@
189
533
  content: "\ea03";
190
534
  }
191
535
 
192
- /*
193
- * Created by IRIS Interactive
194
- * User : IRIS Interactive
195
- */
196
- /* Import
197
- /* ============================================= */
198
- /* Fonticon
199
- /* ============================================= */
200
536
  @font-face {
201
537
  font-family: "iris-weather-font";
202
538
  font-weight: normal;
@@ -257,14 +593,6 @@
257
593
  content: "\ea0c";
258
594
  }
259
595
 
260
- /*
261
- * Created by IRIS Interactive
262
- * User : IRIS Interactive
263
- */
264
- /* Import
265
- /* ============================================= */
266
- /* Fonticon
267
- /* ============================================= */
268
596
  @font-face {
269
597
  font-family: "theme-font";
270
598
  font-weight: normal;
@@ -274,6 +602,7 @@
274
602
  }
275
603
  .fi:before,
276
604
  .fi:after {
605
+ color: var(--iris--icon--color);
277
606
  display: inline-block;
278
607
  vertical-align: middle;
279
608
  font-family: "theme-font", sans-serif;