@imiobe/plonetheme-smartweb-base 0.0.5 → 0.1.0

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 (98) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/dist/css/theme.css +5 -0
  3. package/dist/fonts/roboto-bold..eot +0 -0
  4. package/dist/fonts/roboto-bold..ttf +0 -0
  5. package/dist/fonts/roboto-bold..woff +0 -0
  6. package/dist/fonts/roboto-bold..woff2 +0 -0
  7. package/dist/fonts/roboto-bolditalic..eot +0 -0
  8. package/dist/fonts/roboto-bolditalic..ttf +0 -0
  9. package/dist/fonts/roboto-bolditalic..woff +0 -0
  10. package/dist/fonts/roboto-bolditalic..woff2 +0 -0
  11. package/dist/fonts/roboto-italic..eot +0 -0
  12. package/dist/fonts/roboto-italic..ttf +0 -0
  13. package/dist/fonts/roboto-italic..woff +0 -0
  14. package/dist/fonts/roboto-italic..woff2 +0 -0
  15. package/dist/fonts/roboto-light..eot +0 -0
  16. package/dist/fonts/roboto-light..ttf +0 -0
  17. package/dist/fonts/roboto-light..woff +0 -0
  18. package/dist/fonts/roboto-light..woff2 +0 -0
  19. package/dist/fonts/roboto-lightitalic..eot +0 -0
  20. package/dist/fonts/roboto-lightitalic..ttf +0 -0
  21. package/dist/fonts/roboto-lightitalic..woff +0 -0
  22. package/dist/fonts/roboto-lightitalic..woff2 +0 -0
  23. package/dist/fonts/roboto-medium..eot +0 -0
  24. package/dist/fonts/roboto-medium..ttf +0 -0
  25. package/dist/fonts/roboto-medium..woff +0 -0
  26. package/dist/fonts/roboto-medium..woff2 +0 -0
  27. package/dist/fonts/roboto-mediumitalic..eot +0 -0
  28. package/dist/fonts/roboto-mediumitalic..ttf +0 -0
  29. package/dist/fonts/roboto-mediumitalic..woff +0 -0
  30. package/dist/fonts/roboto-mediumitalic..woff2 +0 -0
  31. package/dist/fonts/roboto-regular..eot +0 -0
  32. package/dist/fonts/roboto-regular..ttf +0 -0
  33. package/dist/fonts/roboto-regular..woff +0 -0
  34. package/dist/fonts/roboto-regular..woff2 +0 -0
  35. package/dist/fonts/robotocondensed-light..eot +0 -0
  36. package/dist/fonts/robotocondensed-light..ttf +0 -0
  37. package/dist/fonts/robotocondensed-light..woff +0 -0
  38. package/dist/fonts/robotocondensed-light..woff2 +0 -0
  39. package/dist/fonts/robotocondensed-lightitalic..eot +0 -0
  40. package/dist/fonts/robotocondensed-lightitalic..ttf +0 -0
  41. package/dist/fonts/robotocondensed-lightitalic..woff +0 -0
  42. package/dist/fonts/robotocondensed-lightitalic..woff2 +0 -0
  43. package/dist/images/roboto-bolde46805ee..svg +1 -0
  44. package/dist/images/roboto-bolditalic4be90c03..svg +1 -0
  45. package/dist/images/roboto-italic2332d1c3..svg +1 -0
  46. package/dist/images/roboto-light054c1c8a..svg +1 -0
  47. package/dist/images/roboto-lightitalic2df589e4..svg +1 -0
  48. package/dist/images/roboto-medium832a5157..svg +1 -0
  49. package/dist/images/roboto-mediumitalicf09fad24..svg +1 -0
  50. package/dist/images/roboto-regulare788ed65..svg +1 -0
  51. package/dist/images/robotocondensed-light04ff367e..svg +1 -0
  52. package/dist/images/robotocondensed-lightitalic97b23821..svg +1 -0
  53. package/dist/js/theme.js +1 -0
  54. package/index.html +68 -61
  55. package/manifest.cfg +5 -5
  56. package/package.json +22 -4
  57. package/src/index.js +59 -14
  58. package/src/scss/_breadcrum.scss +1 -0
  59. package/src/scss/_fonts.scss +11 -1
  60. package/src/scss/_general.scss +75 -75
  61. package/src/scss/_header.scss +38 -24
  62. package/src/scss/_mixin.scss +43 -35
  63. package/src/scss/_sitenav.scss +330 -485
  64. package/src/scss/_sub-sitenav.scss +114 -302
  65. package/src/scss/_swiper.scss +29 -12
  66. package/src/scss/_trucaverif.scss +632 -585
  67. package/src/scss/common/_com-cookies.scss +86 -75
  68. package/src/scss/common/_com-edition.scss +36 -24
  69. package/src/scss/common/_com-faceted.scss +155 -132
  70. package/src/scss/common/_com-footer.scss +9 -5
  71. package/src/scss/common/_com-list-image.scss +17 -15
  72. package/src/scss/common/_com-react.scss +63 -51
  73. package/src/scss/common/_messviewlet.scss +77 -59
  74. package/src/scss/homepage/_a-la-une.scss +30 -19
  75. package/src/scss/homepage/_actualites.scss +137 -108
  76. package/src/scss/homepage/_album.scss +88 -78
  77. package/src/scss/homepage/_banner.scss +35 -42
  78. package/src/scss/homepage/_events.scss +51 -24
  79. package/src/scss/homepage/_general-home.scss +49 -24
  80. package/src/scss/homepage/_newsletter.scss +30 -0
  81. package/src/scss/homepage/_quick-access.scss +16 -3
  82. package/src/scss/list/_list-block-img.scss +53 -49
  83. package/src/scss/list/_list-block.scss +70 -64
  84. package/src/scss/list/_list-img.scss +21 -14
  85. package/src/scss/list/_list.scss +55 -53
  86. package/src/scss/main.scss +23 -6
  87. package/src/scss/sections/_se-contact.scss +230 -138
  88. package/src/scss/sections/_se-file.scss +187 -166
  89. package/src/scss/sections/_se-gallery.scss +16 -14
  90. package/src/scss/sections/_se-link.scss +141 -135
  91. package/src/scss/sections/_se-linked-content.scss +4 -4
  92. package/src/scss/sections/_se-plan-geo.scss +101 -0
  93. package/src/scss/sections/_se-plan.scss +2 -2
  94. package/src/scss/sections/_se-postit.scss +19 -0
  95. package/src/scss/sections/_se-textes.scss +40 -54
  96. package/src/scss/variables.scss +201 -168
  97. package/theme.zip +0 -0
  98. package/theme4.2.zip +0 -0
@@ -1,12 +1,21 @@
1
1
  #portal-globalnav-wrapper {
2
2
  position: initial !important;
3
3
  padding: 0 !important;
4
- li{
5
- list-style: none!important;
4
+
5
+ li {
6
+ list-style: none !important;
6
7
  }
8
+
7
9
  @include media-breakpoint-up(lg) {
8
10
  flex: 1;
9
11
  }
12
+
13
+ @include media-breakpoint-down(lg) {
14
+ margin: 0 !important;
15
+ }
16
+ }
17
+
18
+ #portal-globalnav {
10
19
  span {
11
20
  padding: 1rem 0;
12
21
  }
@@ -15,246 +24,274 @@
15
24
  padding-left: 0;
16
25
  }
17
26
 
18
- #portal-globalnav-collapse {
19
- #portal-globalnav {
20
- width: 100%;
21
- @include media-breakpoint-up(md) {
22
- flex-direction: column;
23
- gap: 15px;
24
- }
25
- @include media-breakpoint-up(lg) {
26
- flex-direction: row;
27
- }
28
- @include media-breakpoint-up(xl) {
29
- gap: $nav-first-level-gap;
30
- }
31
- .index_html {
32
- display: none;
33
- }
34
- li {
35
- ul {
36
- left: 0;
37
- transition: ease-out 2.75s;
38
- }
27
+ width: 100%;
39
28
 
40
- a {
41
- position: relative;
42
- display: block;
43
- padding: 0.75rem 1rem;
44
- hyphens: auto;
45
- text-decoration: none;
46
- word-break: break-word;
47
- }
29
+ @include media-breakpoint-up(md) {
30
+ flex-direction: column;
31
+ gap: 15px;
32
+ }
48
33
 
49
- .opener {
50
- display: none;
51
- }
34
+ @include media-breakpoint-up(lg) {
35
+ flex-direction: row;
36
+ }
52
37
 
53
- &.show-nav>.has_subtree.dropdown {
54
- z-index: 1;
55
- opacity: 1;
56
- visibility: visible;
57
- border-radius: $nav-overlay-radius;
58
- a {
59
- pointer-events: initial !important;
60
- }
61
- }
62
- &.show-nav>.has_subtree {
63
- visibility: visible;
38
+ @include media-breakpoint-up(xl) {
39
+ gap: $nav-first-level-gap;
40
+ }
64
41
 
65
- .show-nav>.dropdown {
66
- left: 25.5em;
42
+ .nav_index_html {
43
+ display: none;
44
+ }
67
45
 
68
- .dropdown {
69
- left: 21.5em;
70
- }
71
- }
72
- }
46
+ li {
47
+ ul {
48
+ left: 0;
49
+ transition: ease-out 2.75s;
50
+ }
73
51
 
74
- &>.has_subtree {
75
- width: 21em;
76
- padding: 2em;
77
- background: #fff;
52
+ a {
53
+ position: relative;
54
+ display: block;
55
+ padding: 0.75rem 1rem;
56
+ hyphens: auto;
57
+ text-decoration: none;
58
+ word-break: break-word;
59
+ }
78
60
 
79
- &.dropdown {
80
- position: absolute;
81
- left: 0;
61
+ .opener {
62
+ display: none;
63
+ }
82
64
 
83
- .has_subtree.dropdown {
84
- top: 0;
85
- }
86
- }
65
+ &.show-nav > .has_subtree.dropdown {
66
+ z-index: 1;
67
+ opacity: 100%;
68
+ visibility: visible;
69
+ border-radius: $nav-overlay-radius;
70
+
71
+ a {
72
+ pointer-events: initial !important;
73
+ }
74
+ }
75
+
76
+ &.show-nav > .has_subtree {
77
+ visibility: visible;
78
+
79
+ .show-nav > .dropdown {
80
+ left: 25.5em;
81
+
82
+ .dropdown {
83
+ left: 21.5em;
87
84
  }
85
+ }
86
+ }
87
+
88
+ & > .has_subtree {
89
+ width: 21em;
90
+ padding: 2em;
91
+ background: #fff;
92
+
93
+ &.dropdown {
94
+ position: absolute;
95
+ left: 0;
88
96
 
89
- &.has_subtree .has_subtree ul {
90
- z-index: 0;
97
+ .has_subtree.dropdown {
91
98
  top: 0;
92
- left: 0;
93
99
  }
94
100
  }
101
+ }
102
+ }
95
103
 
96
- &>li {
97
- &>a {
98
- padding: 0;
99
- color: $nav-link-color;
100
- @if $nav-first-level-uppercase {
101
- text-transform: uppercase;
102
- }
103
- }
104
- &.has_subtree > a {
105
- display: flex;
106
- align-items: center;
107
- padding: 0;
108
- color: $nav-link-color;
109
- &:after {
110
- content: "";
111
- width: 9px;
112
- height: 6px;
113
- display: block;
114
- background-image: $nav-link-drop;
115
- @include media-breakpoint-down(lg){
116
- content: $nav-link-drop-mobile;
117
- display: block;
118
- height: auto;
119
- margin-left: 0;
120
- width: auto;
121
- background: none;
122
- }
123
- background-size: contain;
124
- background-position: center;
125
- background-repeat: no-repeat;
126
- margin-left: .4rem;
127
- }
128
- &:hover,
129
- &:focus {
130
- &:before {
131
- content: "";
132
- height: 2px;
133
- position: absolute;
134
- left: 0;
135
- background-color: $nav-link-color;
136
- bottom: 0;
137
- transition: all .3s ease;
138
- right: 0;
139
- }
140
- }
141
- }
104
+ & > li {
105
+ & > a {
106
+ padding: 0;
107
+ color: $header-nav-link-color;
108
+ font-size: $header-nav-link-font-size;
109
+ font-family: $header-nav-link-font-family;
142
110
 
143
- &>.has_subtree {
144
- width: 25em;
145
- .close-nav {
146
- position: absolute;
147
- z-index: 99;
148
- top: 0;
149
- right: 1.5em;
150
- border-bottom: none !important;
151
- .close-nav-icon {
152
- display: block;
153
- width: 20px;
154
- height: 20px;
155
- padding: 0;
156
- }
157
- }
158
- }
111
+ @if $nav-first-level-uppercase {
112
+ text-transform: uppercase;
159
113
  }
114
+ }
160
115
 
161
- div.has_subtree {
162
- &>span {
163
- color: yellow;
116
+ &.has_subtree > a {
117
+ display: flex;
118
+ align-items: center;
119
+ padding: 0;
120
+
121
+ &::after {
122
+ content: "";
123
+ width: 9px;
124
+ height: 6px;
125
+ display: block;
126
+ background-image: $nav-link-drop;
127
+
128
+ @include media-breakpoint-down(lg) {
129
+ content: $nav-link-drop-mobile;
130
+ display: block;
131
+ height: auto;
132
+ margin-left: 0;
133
+ width: auto;
134
+ background: none;
164
135
  }
165
- &.dropdown {
166
- .has_subtree .nav-link {
167
- &[aria-haspopup="true"] {
168
- &:after {
169
- content: $nav-overlay-next-icon;
170
- right: 0;
171
- }
172
- &:hover,
173
- &:focus {
174
- &:after {
175
- content: $nav-overlay-next-icon-hover;
176
- }
177
- }
178
- }
179
- }
180
- @include media-breakpoint-up(md) {
181
- display: flex;
182
- height: 800px;
183
- min-height: 350px;
184
- max-height: 85vh;
185
- flex-direction: column;
186
-
187
- &>ul {
188
- overflow-y: auto;
189
- }
190
- }
191
- @include media-breakpoint-down(lg) {
192
- overflow: hidden;
193
- overflow-y: scroll;
194
- }
136
+
137
+ background-size: contain;
138
+ background-position: center;
139
+ background-repeat: no-repeat;
140
+ margin-left: 0.4rem;
141
+ }
142
+
143
+ &::before {
144
+ content: "";
145
+ height: 2px;
146
+ position: absolute;
147
+ left: 0;
148
+ background-color: $nav-link-active-color;
149
+ bottom: 0;
150
+ transition: all 0.15s ease;
151
+ right: 0;
152
+ opacity: 0%;
153
+ }
154
+
155
+ &:hover,
156
+ &:focus {
157
+ color: $nav-link-active-color;
158
+
159
+ &::before {
160
+ content: "";
161
+ opacity: 100%;
195
162
  }
196
- .close-nav .close-nav-icon {
163
+ }
164
+ }
165
+
166
+ & > .has_subtree {
167
+ width: 25em;
168
+
169
+ .close-nav {
170
+ position: absolute;
171
+ z-index: 99;
172
+ top: 0;
173
+ right: 1.5em;
174
+ border-bottom: none !important;
175
+
176
+ .close-nav-icon {
197
177
  display: block;
198
178
  width: 20px;
199
179
  height: 20px;
200
180
  padding: 0;
201
- background-image: url("../../assets/svg/close.svg");
202
181
  }
203
182
  }
204
- .dropdown {
205
- background-color: aqua;
206
- opacity: 0;
207
- visibility: hidden;
208
- a {
209
- padding: 1rem 0;
210
- border-bottom: 1px solid #ddd;
211
- pointer-events: none;
212
- }
213
- .nav-title {
214
- padding: 0 !important;
215
- a {
216
- color: $nav-overlay-title-color;
217
- font-size: $nav-overlay-title-font-size;
218
- font-weight: $nav-overlay-title-font-weight;
183
+ }
184
+ }
185
+
186
+ div.has_subtree {
187
+ & > span {
188
+ color: yellow;
189
+ }
190
+
191
+ &.dropdown {
192
+ .has_subtree .nav-link {
193
+ &[aria-haspopup="true"] {
194
+ &::after {
195
+ content: $nav-overlay-next-icon;
196
+ right: 0;
219
197
  }
220
- }
221
- .nav-link {
222
- display: flex;
223
- align-items: center;
224
- justify-content: space-between;
225
- color: #000;
198
+
226
199
  &:hover,
227
200
  &:focus {
228
- color: $primary;
229
- }
230
-
231
- .state-private {
232
- color: #c4183c;
201
+ &::after {
202
+ content: $nav-overlay-next-icon-hover;
203
+ }
233
204
  }
234
205
  }
235
206
  }
236
207
 
237
- .quick-access {
238
- padding-top: 1.5rem;
239
- .quick-access-title{
240
- color: $nav-quick-link-color;
241
- font-size: $nav-quick-link-size;
242
- font-weight: $nav-quick-link-weight;
243
- padding:$nav-quick-link-padding;
244
- }
245
- ul {
246
- position: relative !important;
247
- width: auto !important;
248
- padding: 0 !important;
208
+ @include media-breakpoint-up(md) {
209
+ display: flex;
210
+ height: 800px;
211
+ min-height: 350px;
212
+ max-height: 85vh;
213
+ flex-direction: column;
214
+
215
+ & > ul {
216
+ overflow-y: auto;
249
217
  }
250
218
  }
219
+
220
+ @include media-breakpoint-down(lg) {
221
+ overflow: hidden;
222
+ overflow-y: scroll;
223
+ }
251
224
  }
252
225
 
253
- &.activated {
254
- &>ul>li>a {
255
- @include media-breakpoint-up(md) {
256
- color: $nav-link-open-color !important;
257
- }
226
+ .close-nav .close-nav-icon {
227
+ display: block;
228
+ width: 20px;
229
+ height: 20px;
230
+ padding: 0;
231
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' aria-hidden='true' class='css-tj5bde-Svg'%3E%3Cpath d='M14.348 14.849a1.2 1.2 0 0 1-1.697 0L10 11.819l-2.651 3.029a1.2 1.2 0 1 1-1.697-1.697l2.758-3.15-2.759-3.152a1.2 1.2 0 1 1 1.697-1.697L10 8.183l2.651-3.031a1.2 1.2 0 1 1 1.697 1.697l-2.758 3.152 2.758 3.15a1.2 1.2 0 0 1 0 1.698z'/%3E%3C/svg%3E");
232
+ }
233
+ }
234
+
235
+ .dropdown {
236
+ background-color: aqua;
237
+ opacity: 0%;
238
+ visibility: hidden;
239
+
240
+ a {
241
+ padding: 1rem 0;
242
+ border-bottom: 1px solid #ddd;
243
+ pointer-events: none;
244
+ }
245
+
246
+ .nav-title {
247
+ padding: 0 !important;
248
+
249
+ a {
250
+ color: $nav-overlay-title-color;
251
+ font-size: $nav-overlay-title-font-size;
252
+ font-weight: $nav-overlay-title-font-weight;
253
+ font-family: $nav-title-font-family;
254
+ }
255
+ }
256
+
257
+ .nav-link {
258
+ display: flex;
259
+ align-items: center;
260
+ justify-content: space-between;
261
+ color: #000;
262
+
263
+ &:hover,
264
+ &:focus {
265
+ color: $nav-overlay-next-color-hover;
266
+ }
267
+
268
+ .state-private {
269
+ color: #c4183c;
270
+ }
271
+ }
272
+ }
273
+
274
+ .quick-access {
275
+ padding-top: 1.5rem;
276
+
277
+ .quick-access-title {
278
+ color: $nav-quick-link-color;
279
+ font-size: $nav-quick-link-size;
280
+ font-weight: $nav-quick-link-weight;
281
+ padding: $nav-quick-link-padding;
282
+ }
283
+
284
+ ul {
285
+ position: relative !important;
286
+ width: auto !important;
287
+ padding: 0 !important;
288
+ }
289
+ }
290
+
291
+ &.activated {
292
+ & > li > a {
293
+ @include media-breakpoint-up(md) {
294
+ color: $nav-link-open-color !important;
258
295
  }
259
296
  }
260
297
  }
@@ -264,6 +301,16 @@
264
301
  }
265
302
  }
266
303
 
304
+ @include media-breakpoint-up(lg) {
305
+ #portal-globalnav-wrapper {
306
+ flex: 1;
307
+
308
+ .container {
309
+ padding: 0;
310
+ }
311
+ }
312
+ }
313
+
267
314
  .close-nav,
268
315
  .prev-nav {
269
316
  cursor: pointer;
@@ -273,270 +320,67 @@
273
320
  @include media-breakpoint-down(lg) {
274
321
  display: block !important;
275
322
  }
323
+
276
324
  @include media-breakpoint-up(lg) {
277
325
  display: none !important;
278
326
  }
279
327
  }
280
328
 
281
- #portal-globalnav-wrapper #portal-globalnav>li>.has_subtree,
282
- #subsite-navigation #portal-globalnav>li>.has_subtree {
329
+ #portal-globalnav-wrapper #portal-globalnav > li > .has_subtree,
330
+ #subsite-navigation #portal-globalnav > li > .has_subtree {
283
331
  @include media-breakpoint-up(lg) {
284
332
  margin-top: 2.25rem;
285
333
  }
286
334
  }
335
+
287
336
  @include media-breakpoint-down(lg) {
288
- #portal-globalnav-collapse #portal-globalnav>li>.nav-link {
337
+ #portal-globalnav-collapse #portal-globalnav > li > .nav-link {
289
338
  border-bottom: 1px solid #ddd;
290
339
  }
291
- #portal-globalnav-collapse #portal-globalnav>li>.nav-link {
340
+
341
+ #portal-globalnav-collapse #portal-globalnav > li > .nav-link {
292
342
  padding: 1rem 0;
293
343
  display: flex;
294
344
  justify-content: space-between;
295
345
  align-items: center;
296
346
  }
297
347
  }
298
- ////// A SUPPRIMER PLUSTARD
299
-
300
- // #subsite-navigation {
301
- // & > ul {
302
- // gap: 15px;
303
- // }
304
- // }
305
-
306
- // #subsite-navigation ul:first-child {
307
- // overflow-y: hidden;
308
- // }
309
- // #subsite-navigation > ul li > .has_subtree.dropdown {
310
- // box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
311
- // }
312
- // #subsite-navigation > ul li > .has_subtree.dropdown .has_subtree.dropdown {
313
- // @include media-breakpoint-down(lg){
314
- // box-shadow: none!important;
315
- // }
316
- // }
317
-
318
- // #subsite-navigation li .has_subtree.dropdown {
319
- // @include media-breakpoint-down(lg){
320
- // right: inherit;
321
- // left: 0 !important;
322
- // }
323
- // }
324
-
325
- // Align je suis je trouve right
326
- #portal-globalnav {
327
- // & > .nav-item.has_subtree:not(.je-suis):not(.en-un-clic){
328
- // & > .nav-link{
329
- // display: flex;
330
- // align-items: center;
331
- // @include media-breakpoint-up(lg){
332
- // &:after{
333
- // content:"";
334
- // width: 9px;
335
- // height: 6px;
336
- // display: block;
337
- // background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="8.444" height="5.2"><path fill="black" d="M.247.254a.831.831 0 0 1 1.2 0l2.78 2.854L7.011.254A.831.831 0 0 1 8.2.264a.882.882 0 0 1 .01 1.215L4.825 4.946a.835.835 0 0 1-.6.254 1.529 1.529 0 0 1-.6-.254L.247 1.479a.882.882 0 0 1 0-1.226Z"/></svg>');
338
- // background-size: contain;
339
- // background-position: center;
340
- // background-repeat: no-repeat;
341
- // margin-left: 0.4rem;
342
- // }
343
- // }
344
- // }
345
- // }
346
- }
347
348
 
348
- // #subsite-navigation{
349
- // & > ul{
350
- // white-space: inherit;
351
- // & > li > a{
352
- // white-space: nowrap;
353
- // }
354
- // }
355
- // & > ul > .has_subtree.nav-item{
356
- // & > .nav-link{
357
- // display: flex;
358
- // align-items: center;
359
- // &:after{
360
- // content: url("../../assets/svg/drop-down-arrow.svg");
361
- // display: flex;
362
- // align-items: center;
363
- // padding-left: 0.4rem;
364
- // }
365
- // }
366
- // }
367
- // }
368
-
369
- // #portal-globalnav-collapse, #subsite-navigation{
370
- // .dropdown{
371
- // // .show-nav{
372
- // // & > .nav-link{
373
- // // color: $primary;
374
- // // &[aria-haspopup="true"]{
375
- // // &:after{
376
- // // content: url("../../assets/svg/drop-down-arrow-blue.svg");
377
- // // right: 0;
378
-
379
- // // }
380
- // // }
381
- // // }
382
- // // }
383
- // // .nav-link{
384
- // // &[aria-haspopup="true"]{
385
- // // &:after{
386
- // // content: url("../../assets/svg/arrow-right-blue.svg");
387
- // // content: url("../../assets/svg/arrow-right.svg");
388
- // // position: relative;
389
- // // right: 11px;
390
- // // transition: all .2s ease;
391
- // // }
392
- // // &:hover,
393
- // // &:focus{
394
- // // &:after{
395
- // // content: url("../../assets/svg/arrow-right-blue.svg");
396
- // // }
397
- // // }
398
- // // }
399
- // // }
400
- // }
401
- // & > ul {
402
- // & > li{
403
- // & > a{
404
- // // First nav link hover line
405
- // // &:before{
406
- // // content: "";
407
- // // height: 2px;
408
- // // position: absolute;
409
- // // left: 0;
410
- // // background-color: $yellow;
411
- // // bottom: 0;
412
- // // transition: all .3s ease;
413
- // // right: 0;
414
- // // width: 0;
415
- // // }
416
- // // @media (hover: hover) and (pointer: fine) {
417
- // // &:focus,
418
- // // &:hover{
419
- // // &:before{
420
- // // width: 100%;
421
- // // }
422
- // // }
423
- // // }
424
- // }
425
- // }
426
- // }
427
-
428
- // }
429
-
430
- // // ARROW RIGHT
431
- // @media screen and (max-width:992px) {
432
- // #portal-globalnav-collapse{
433
- // #portal-globalnav > li > .nav-link{
434
- // border-bottom: 1px solid #ddd;
435
- // &[aria-haspopup="true"]::after {
436
- // content: url("../../assets/svg/arrow-right-blue.svg");
437
- // content: url("../../assets/svg/arrow-right.svg");
438
- // position: relative;
439
- // right: 11px;
440
- // }
441
- // }
442
- // }
443
- // // SUBSITE NAV
444
- // #subsite-navigation{
445
- // #portal-globalnav > li > .nav-link{
446
- // border-bottom: 1px solid #ddd;
447
- // &[aria-haspopup="true"]::after {
448
- // content: url("../../assets/svg/arrow-right-blue.svg");
449
- // content: url("../../assets/svg/arrow-right.svg");
450
- // position: relative;
451
- // right: 11px;
452
- // }
453
- // }
454
- // }
455
- // }
456
- // //burger button
457
- // .navbar-toggler{
458
- // display: block;
459
- // position: relative;
460
- // background: transparent!important;
461
- // width: 50px;
462
- // height: 50px;
463
- // border-radius: 50%;
464
- // text-align: center;
465
- // transition: all 0.5s ease;
466
- // border: 2px solid transparent;
467
- // .navbar-toggler-icon {
468
- // display: inline-block;
469
- // position: absolute;
470
- // background: #000;
471
- // margin: 0 auto;
472
- // width: 18px;
473
- // height: 2px;
474
- // top: 50%;
475
- // left: 0;
476
- // right: 0;
477
- // border-radius: 50px;
478
- // transition: all 0.5s ease;
479
- // transform: translateY(-1px);
480
- // &:before,
481
- // &:after{
482
- // content: "";
483
- // border-radius: 50px;
484
- // position: absolute;
485
- // margin: 0 auto;
486
- // background: #000;
487
- // height: 2px;
488
- // right: 0;
489
- // transition: all 0.5s ease;
490
- // }
491
- // &:before {
492
- // bottom: 10px;
493
- // width: 24px;
494
- // }
495
- // &:after {
496
- // top: 10px;
497
- // width: 11px;
498
-
499
- // }
500
- // }
501
- // &[aria-expanded=true] {
502
- // .navbar-toggler-icon {
503
- // background: transparent;
504
- // &:before, &:after {
505
- // transform-origin: 0 50%;
506
- // width: 28.28427125px;
507
- // }
508
- // &:before {
509
- // transform: rotateZ(0.78539816rad)
510
- // }
511
- // &:after {
512
- // transform: rotateZ(-0.78539816rad);
513
- // }
514
- // }
515
- // }
516
- // }
349
+ // Pour changer la couleur de navlink en active
350
+ #portal-globalnav-wrapper
351
+ #portal-globalnav-collapse
352
+ #portal-globalnav
353
+ > li.show-nav.has_subtree
354
+ > a {
355
+ color: $nav-link-active-color !important;
356
+ }
517
357
 
518
358
  // de core
359
+
519
360
  @media screen and (max-width: 992px) {
520
361
  #portal-globalnav-wrapper .navbar-nav li.show-nav > .has_subtree.dropdown {
521
362
  right: 0;
522
363
  left: inherit !important;
523
364
  transition: right 0.5s cubic-bezier(0.54, 0.01, 0.68, 0.64) !important;
524
365
  }
366
+
525
367
  #portal-globalnav-wrapper .navbar-nav li .has_subtree.dropdown {
526
368
  position: fixed !important;
527
369
  z-index: 1;
528
370
  right: -100vw;
529
371
  left: inherit !important;
530
372
  height: 100vh;
531
- transition: right 0.5s cubic-bezier(0.54, 0.01, 0.68, 0.64), opacity 5s ease,
373
+ transition:
374
+ right 0.5s cubic-bezier(0.54, 0.01, 0.68, 0.64),
375
+ opacity 5s ease,
532
376
  0.5s visibility ease;
533
377
  }
534
378
  }
379
+
535
380
  //sub site
536
381
  #subsite-navigation {
537
- &>ul {
382
+ & > ul {
538
383
  display: flex;
539
- flex-direction: column;
540
384
  flex-direction: row;
541
385
  padding-left: 0;
542
386
  margin-bottom: 0;
@@ -552,11 +396,11 @@
552
396
  .has_subtree {
553
397
  display: block;
554
398
 
555
- & .opener~ul {
399
+ & .opener ~ ul {
556
400
  height: auto;
557
401
  }
558
402
 
559
- >label {
403
+ > label {
560
404
  position: absolute;
561
405
  top: 0;
562
406
  right: 0;
@@ -570,29 +414,32 @@
570
414
  text-align: center;
571
415
  }
572
416
 
573
- &>input {
417
+ & > input {
574
418
  display: none;
575
419
  }
576
420
 
577
421
  &:hover {
578
- &>ul {
579
- opacity: 1;
422
+ & > ul {
423
+ opacity: 100%;
580
424
  visibility: visible;
581
425
  }
582
426
  }
583
427
 
584
- .has_subtree:hover>ul {
428
+ .has_subtree:hover > ul {
585
429
  top: 0;
586
430
  left: 16em;
587
431
  }
588
432
  }
589
433
  }
590
434
 
591
- #subsite-navigation>ul li>.has_subtree.dropdown {
435
+ #subsite-navigation > ul li > .has_subtree.dropdown {
592
436
  position: absolute;
593
437
  left: 0;
594
- box-shadow: 0 1.6px 11.5px rgb(0 0 0 / 2.4%), 0 4.5px 31.9px rgb(0 0 0 / 3.5%),
595
- 0 10.9px 76.9px rgb(0 0 0 / 4.6%), 0 36px 255px rgb(0 0 0 / 7%);
438
+ box-shadow:
439
+ 0 1.6px 11.5px rgb(0 0 0 / 2.4%),
440
+ 0 4.5px 31.9px rgb(0 0 0 / 3.5%),
441
+ 0 10.9px 76.9px rgb(0 0 0 / 4.6%),
442
+ 0 36px 255px rgb(0 0 0 / 7%);
596
443
 
597
444
  .has_subtree.dropdown {
598
445
  top: 0;
@@ -610,19 +457,23 @@
610
457
  @media screen and (max-width: 992px) {
611
458
  .open-nav-overflow {
612
459
  overflow: hidden;
460
+
613
461
  .navbar-dark .navbar-toggler {
614
462
  color: #000;
615
463
  border-color: #000;
616
464
  }
465
+
617
466
  .navbar-dark .navbar-toggler-icon {
618
- background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27%23000%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e");
467
+ background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27%23000%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e") !important;
619
468
  }
620
469
  }
470
+
621
471
  .collapse:not(.show) {
622
472
  display: block;
623
- opacity: 0;
473
+ opacity: 0%;
624
474
  visibility: hidden;
625
475
  }
476
+
626
477
  .navbar-toggler {
627
478
  z-index: 99;
628
479
  }
@@ -637,20 +488,26 @@
637
488
  padding: 6em 2em 0;
638
489
  background: #fff;
639
490
  transition: all 0.5s cubic-bezier(0.54, 0.01, 0.68, 0.64);
491
+
640
492
  #portal-globalnav {
641
- &>li>a {
493
+ & > li > a {
642
494
  color: #000 !important;
643
495
  padding: 1rem 0 !important;
644
496
  }
645
497
  }
498
+
646
499
  .has_subtree.dropdown {
647
500
  top: 0;
648
501
  width: 100vw !important;
649
- box-shadow: 0 0 6.5px rgb(0 0 0 / 4.7%), 0 0 16.9px rgb(0 0 0 / 6.7%),
650
- 0 0 33.8px rgb(0 0 0 / 8.3%), 0 0 64.5px rgb(0 0 0 / 10.3%),
502
+ box-shadow:
503
+ 0 0 6.5px rgb(0 0 0 / 4.7%),
504
+ 0 0 16.9px rgb(0 0 0 / 6.7%),
505
+ 0 0 33.8px rgb(0 0 0 / 8.3%),
506
+ 0 0 64.5px rgb(0 0 0 / 10.3%),
651
507
  0 0 139px rgb(0 0 0 / 15%);
652
508
  }
653
- #portal-globalnav>li>.nav-link {
509
+
510
+ #portal-globalnav > li > .nav-link {
654
511
  display: flex;
655
512
  align-items: center;
656
513
  justify-content: space-between;
@@ -658,11 +515,16 @@
658
515
  }
659
516
  }
660
517
 
661
- .navbar-toggler[aria-expanded="true"]+#portal-globalnav-collapse {
518
+ .navbar-toggler[aria-expanded="true"] + #portal-globalnav-collapse {
662
519
  left: 0;
663
520
  }
664
521
 
665
- #portal-globalnav-wrapper .navbar-nav li.show-nav>.has_subtree .show-nav>.dropdown {
522
+ #portal-globalnav-wrapper
523
+ .navbar-nav
524
+ li.show-nav
525
+ > .has_subtree
526
+ .show-nav
527
+ > .dropdown {
666
528
  z-index: 99;
667
529
  height: 100vh;
668
530
  background: #fff;
@@ -675,11 +537,13 @@
675
537
  right: -100vw;
676
538
  left: inherit;
677
539
  height: 100vh;
678
- transition: right 0.5s cubic-bezier(0.54, 0.01, 0.68, 0.64),
679
- opacity 5s ease, 0.5s visibility ease;
540
+ transition:
541
+ right 0.5s cubic-bezier(0.54, 0.01, 0.68, 0.64),
542
+ opacity 5s ease,
543
+ 0.5s visibility ease;
680
544
  }
681
545
 
682
- &.show-nav>.has_subtree.dropdown {
546
+ &.show-nav > .has_subtree.dropdown {
683
547
  right: 0;
684
548
  left: inherit !important;
685
549
  transition: right 0.5s cubic-bezier(0.54, 0.01, 0.68, 0.64);
@@ -694,19 +558,22 @@
694
558
  #subsite-navigation {
695
559
  .has_subtree.dropdown {
696
560
  width: 100vw !important;
697
- box-shadow: 0 0 6.5px rgb(0 0 0 / 4.7%), 0 0 16.9px rgb(0 0 0 / 6.7%),
698
- 0 0 33.8px rgb(0 0 0 / 8.3%), 0 0 64.5px rgb(0 0 0 / 10.3%),
561
+ box-shadow:
562
+ 0 0 6.5px rgb(0 0 0 / 4.7%),
563
+ 0 0 16.9px rgb(0 0 0 / 6.7%),
564
+ 0 0 33.8px rgb(0 0 0 / 8.3%),
565
+ 0 0 64.5px rgb(0 0 0 / 10.3%),
699
566
  0 0 139px rgb(0 0 0 / 15%);
700
567
  }
701
568
 
702
- #portal-globalnav>li>.nav-link {
569
+ #portal-globalnav > li > .nav-link {
703
570
  display: flex;
704
571
  align-items: center;
705
572
  justify-content: space-between;
706
573
  padding: 1rem 0;
707
574
  }
708
575
 
709
- li.show-nav>.has_subtree .show-nav>.dropdown {
576
+ li.show-nav > .has_subtree .show-nav > .dropdown {
710
577
  left: 0 !important;
711
578
  }
712
579
 
@@ -714,11 +581,10 @@
714
581
  .has_subtree.dropdown {
715
582
  position: absolute;
716
583
  z-index: 1;
717
- left: inherit;
718
584
  left: 0 !important;
719
585
  }
720
586
 
721
- &.show-nav>.has_subtree.dropdown {
587
+ &.show-nav > .has_subtree.dropdown {
722
588
  right: 0;
723
589
  left: 5% !important;
724
590
  max-width: 90%;
@@ -726,7 +592,7 @@
726
592
  }
727
593
  }
728
594
 
729
- #subsite-navigation>ul {
595
+ #subsite-navigation > ul {
730
596
  display: flex;
731
597
  width: auto;
732
598
  flex-wrap: nowrap;
@@ -739,40 +605,19 @@
739
605
  color: #c4183c;
740
606
  }
741
607
 
742
-
743
608
  .navbar-dark .navbar-toggler-icon {
744
- background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27%23000%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e");
609
+ background-image: $header-toggler-icon !important;
745
610
  }
611
+
746
612
  .navbar-toggler:focus {
747
- border: 0px;
748
- outline: 0px !important;
613
+ border: 0;
614
+ outline: 0 !important;
749
615
  background: transparent;
750
616
  box-shadow: none !important;
751
617
  }
752
618
 
753
- // mobile
754
-
755
- // // nav-mobile
756
- // .navbar-toggler{
757
- // border: 0px!important;
758
- // }
759
- // .navbar-toggler:focus{
760
- // box-shadow: none!important;
761
- // }
762
- // @media screen and (min-width:768px){
763
- // .navbar-expand-md .navbar-toggler {
764
- // display: block;
765
- // }
766
- // }
767
-
768
- // @media screen and (min-width:992px){
769
- // .navbar-expand-md .navbar-toggler {
770
- // display: none;
771
- // }
772
- // }
773
-
774
619
  // SUB
775
620
 
776
- #subsite-navigation>ul li>.has_subtree.dropdown .has_subtree.dropdown {
621
+ #subsite-navigation > ul li > .has_subtree.dropdown .has_subtree.dropdown {
777
622
  bottom: 0;
778
- }
623
+ }