@iris.interactive/handcook 1.0.5 → 1.0.9

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 +214 -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 -5
  22. package/public/styles/scss/lib/_info-neige-font.scss +5 -5
  23. package/public/styles/scss/lib/_iris-tides-font.scss +5 -5
  24. package/public/styles/scss/lib/_iris-weather-font.scss +5 -5
  25. package/public/styles/scss/lib/_theme-font.scss +6 -5
  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 +369 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "1.0.5",
3
+ "version": "1.0.9",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
@@ -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,214 @@
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
+ /* Container
147
+ / ================================================== */
148
+ .container {
149
+ max-width: $container;
150
+ margin-left: auto;
151
+ margin-right: auto;
152
+
153
+ @include breakpoint(large) {
154
+ width: calc(100% - #{$margin-xlarge} * 2);
155
+ }
156
+
157
+ @include breakpoint(medium) {
158
+ width: calc(100% - #{$margin-large} * 2);
159
+ }
160
+
161
+ @include breakpoint(small) {
162
+ width: calc(100% - #{$margin-small} * 2);
163
+ }
164
+
165
+ @include breakpoint(xsmall) {
166
+ width: calc(100% - #{$margin-xsmall} * 2);
167
+ }
168
+ }
169
+
170
+ /* Margin element
171
+ / ================================================== */
172
+ .hentry {
173
+
174
+ // On définie les marges sur les titres uniquement sur ceux de 1er niveau
175
+ // Pour les titres dans les blocs (colonne, mise en avant...) les marges sont définies dans le bloc
176
+ > h1,
177
+ > h2,
178
+ > h3,
179
+ > h4,
180
+ > h5,
181
+ > h6 {
182
+ margin-top: $title-margin-top;
183
+ margin-bottom: $title-margin-bottom;
184
+
185
+ @include breakpoint(small) {
186
+ margin-top: $title-margin-top-small;
187
+ margin-bottom: $title-margin-bottom-small;
188
+ }
189
+ }
190
+
191
+ // TODO no style liste
192
+ ul:not(.not-list-style),
193
+ ol:not(.not-list-style),
194
+ p {
195
+ margin-bottom: $text-margin-bottom;
196
+ }
197
+
198
+ > *[class] {
199
+ margin-top: $block-margin-top;
200
+ margin-bottom: $block-margin-bottom;
201
+
202
+ @include breakpoint(small) {
203
+ margin-top: $block-margin-top-small;
204
+ margin-bottom: $block-margin-bottom-small;
205
+ }
206
+ }
207
+ }
208
+
209
+
210
+ /* TODO
211
+ / ================================================== */
212
+ //.wp-block {
213
+ // position: relative;
214
+ //}
@@ -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
+ }