Projet

Général

Profil

0001-core-refactorisation-of-wcs-steps-component-36765.patch

Thomas Jund, 26 novembre 2019 15:54

Télécharger (22,4 ko)

Voir les différences:

Subject: [PATCH] core: refactorisation of wcs steps component (#36765)

 help/fr/misc-scss.page                  | 155 ++++++++
 static/includes/_wcs.scss               |   3 +-
 static/includes/wcs/_bulk.scss          |  98 +----
 static/includes/wcs/_steps.scss         | 464 ++++++++++++++++++++++++
 templates/theme.html                    |   2 +-
 templates/wcs/front/formdata_steps.html |  30 ++
 6 files changed, 653 insertions(+), 99 deletions(-)
 create mode 100644 static/includes/wcs/_steps.scss
 create mode 100644 templates/wcs/front/formdata_steps.html
help/fr/misc-scss.page
519 519
</table>
520 520
</section>
521 521

  
522
<section>
523
  <title>Bloc étapes d'une démarche</title>
524

  
525
  <p>
526
    Ces paramètres contrôlent le rendu du bloc présentant les étapes ou pages d'une démarche.
527
  </p>
528
  <p>
529
    Le rendu de ce bloc diffère automatiquement en fonction de la taille de l'écran et de la position de la <em>sidebar</em> <code>$form-sidebar-position</code> pour s'adapter aux différents terminaux :
530
  </p>
531
  <ul>
532
    <li><em>rendu mobile :</em> seul l'étape courante est affichée avec une indication du nombre totale d'étapes ;</li>
533
    <li><em>rendu horizontal :</em>Les marqueurs d'étapes (chiffres) s'affichent côte à côte et sur plusieurs lignes s'il le faut. Seul le label de l'étape en cours s'affiche ;</li>
534
    <li><em>rendu vertical :</em> (s'affiche uniquement si la variable <code>$form-sidebar-position</code> a la valeur <var>left</var> ou <var>right</var>) dispose les étapes les unes au dessous des autres avec chacune leur numéro et leur label</li>. 
535
  </ul>
536
  <p>
537
    Plusieurs options sont également disponibles pour gérer le rendu du <em>marqueur d'étape</em> (chiffre).
538
  </p>
539

  
540
  <table shade="row">
541
    <tr>
542
      <td><p><code>$wcs-steps-background</code></p></td>
543
      <td><p>Couleur de fond du bloc</p></td>
544
      <td><var>transparent</var></td>
545
    </tr>
546
    <tr>
547
      <td><p><code>$wcs-steps-spacing</code></p></td>
548
      <td>
549
        <p>Fixe la taille des espacements entre les différents blocs, mais également entre les marqueurs chiffres et leur label</p>
550
      </td>
551
      <td><var>0.35rem</var></td>
552
    </tr>
553
    <tr>
554
      <td><p><code>$wcs-step-color</code></p></td>
555
      <td><p>Couleur du texte des étapes non courantes</p></td>
556
      <td><var>#868686</var></td>
557
    </tr>
558
    <tr>
559
      <td><p><code>$wcs-step-current-color</code></p></td>
560
      <td><p>Couleur du texte de l'étape courantes</p></td>
561
      <td><var>$primary-color</var></td>
562
    </tr>
563
    <tr>
564
      <td><p><code>$wcs-step-background</code></p></td>
565
      <td><p>Couleur de fond des étapes</p></td>
566
      <td><var>transparent</var></td>
567
    </tr>
568
    <tr>
569
      <td><p><code>$wcs-step-current-background</code></p></td>
570
      <td><p>Couleur de fond de l'étape courante</p></td>
571
      <td><var>$wcs-step-background</var></td>
572
    </tr>
573
    <tr>
574
      <td><p><code>$wcs-step-border-bottom</code></p></td>
575
      <td>
576
        <p>
577
          Épaisseur et couleur du filet qui sépare les étapes en mode vertical et du filet présent sous les marqueurs en mode horizontal.
578
          la valeur <var>none</var> supprimera les filets.
579
        </p>
580
      </td>
581
      <td><var>1px solid $wcs-step-color</var></td>
582
    </tr>
583
    <tr>
584
      <td><p><code>$wcs-step-current-border-bottom</code></p></td>
585
      <td>
586
        <p>
587
          Épaisseur et couleur du filet de l'étape courante.
588
          Si <code>$wcs-step-border-bottom</code> est à <var>none</var>, ce filet sera automatiquement <var>none</var> également.
589
        </p>
590
      </td>
591
      <td><var>3px solid $wcs-step-current-color</var></td>
592
    </tr>
593
    <tr>
594
      <td><p><code>$wsc-step-before-piled</code></p></td>
595
      <td>
596
        <p>
597
          Cette option n'est valable qu'en mode vertical et si <code>$wcs-step-background</code> a une valeur différente de <var>transparent</var>.
598
          Avec la valeur <var>true</var>, elle va superposer les étapes passée les unes sur les autres pour gagner de la place.
599
        </p>
600
      </td>
601
      <td><var>false</var></td>
602
    </tr>
603
    <tr>
604
      <td><p><code>$wcs-step-marker-color</code></p></td>
605
      <td><p>Couleur du chiffre des marqueurs d'étapes non courantes</p></td>
606
      <td><var>$wcs-step-color</var></td>
607
    </tr>
608
    <tr>
609
      <td><p><code>$wcs-step-current-marker-color</code></p></td>
610
      <td><p>Couleur du chiffre du marqueur d'étape courante</p></td>
611
      <td><var>$wcs-step-current-color</var></td>
612
    </tr>
613
    <tr>
614
      <td><p><code>$wcs-step-marker-background</code></p></td>
615
      <td><p>Couleur de fond des marqueurs d'étapes non courantes</p></td>
616
      <td><var>$wcs-step-background</var></td>
617
    </tr>
618
    <tr>
619
      <td><p><code>$wcs-step-current-marker-background</code></p></td>
620
      <td><p>Couleur de fond du marqueur d'étape courante</p></td>
621
      <td><var>$wcs-step-current-background</var></td>
622
    </tr>
623
    <tr>
624
      <td><p><code>$wcs-step-marker-size</code></p></td>
625
      <td><p>Taille du marqueur. La taille du marquer n'influe pas sur la taille du chiffre</p></td>
626
      <td><var>2.1em</var></td>
627
    </tr>
628
    <tr>
629
      <td><p><code>$wcs-step-current-marker-enlarge</code></p></td>
630
      <td><p>Facteur d'agrandissement de la taille du marqueur courant. Une valeur de <var>1.1</var> agrandira le marqueur de 110%</p></td>
631
      <td><var>1</var></td>
632
    </tr>
633
    <tr>
634
      <td><p><code>$wcs-step-marker-type</code></p></td>
635
      <td>
636
        <p>
637
          Défini le style des marqueurs. Les marqueurs peuvent être sous forme de carrés (par défaut), de cercles mais également liés entre eux (par une ligne).
638
          Valeurs possibles: <var>tied</var>, <var>disc</var>, <var>disc tied</var>.
639
          Il est possible de gérer le rendu de la ligne avec les variables <code>$wcs-step-marker-tie-color</code> et <code>$wcs-step-marker-tie-width</code>
640
        </p>
641
      </td>
642
      <td><var>square</var></td>
643
    </tr>
644
    <tr>
645
      <td><p><code>$wcs-step-marker-background-type</code></p></td>
646
      <td>
647
        <p>
648
          Cette option ne fonctionnera que si <code>$wcs-step-marker-background</code> est une couleur pleine.
649
          Avec la valeur <var>gradient</var>, elle permet de générer un dégradé en fond des marqueurs non courant permettant de souligner visuellement la progression.
650
        </p>
651
      </td>
652
      <td><var>solid</var></td>
653
    </tr>
654
    <tr>
655
      <td><p><code>$wcs-step-current-label-color</code></p></td>
656
      <td>
657
        <p>
658
          Cette option ne fonctionnera que si <code>$wcs-step-marker-background</code> est une couleur pleine.
659
          Avec la valeur <var>gradient</var>, elle permet de générer un dégradé en fond des marqueurs non courant permettant de souligner visuellement la progression.
660
        </p>
661
      </td>
662
      <td><var>$wcs-step-current-color</var></td>
663
    </tr>
664
    <tr>
665
      <td><var>$wcs-step-current-color</var></td>
666
      <td><p>Couleur du label de l'étape courante</p></td>
667
      <td><var>solid</var></td>
668
    </tr>
669
    <tr>
670
      <td><code>$wcs-steps-small-layout-limit</code></td>
671
      <td><p>Fixe la valeur du point de rupture entre le rendu mobile et horizontal</p></td>
672
      <td><var>$very-small-limit</var></td>
673
    </tr>
674
  </table>
675
</section>
676

  
522 677
<section>
523 678
 <title>Cellules</title>
524 679

  
static/includes/_wcs.scss
1 1
@import 'grid';
2 2
@import 'wcs/bulk';
3
@import 'wcs/nearby-form';
3
@import 'wcs/steps';
4
@import 'wcs/nearby-form';
static/includes/wcs/_bulk.scss
2 2
// possible values are: left, right, top
3 3
$form-sidebar-position: left !default;
4 4

  
5
$responsive-steps: horizontal !default;
6

  
7 5
// hide a bunch of elements
8 6
div#droite,
9 7
div#services > h3,
10
div#steps h2,
11 8
div#sidebox div#links {
12 9
	display: none;
13 10
}
......
133 130
	margin: 1em;
134 131
}
135 132

  
136
// steps
137
div#steps ol {
138
	margin: 0;
139
	padding: 0;
140
	list-style: none;
141
	color: #868686;
142

  
143
	& li {
144
		border: 0;
145
		border-bottom: 1px solid #ccc;
146
		margin-bottom: 1.5em;
147
		border-radius: $border-radius;
148
		padding: 0.7em;
149
		letter-spacing: 1px;
150
	}
151
	& li.current {
152
		border: 0;
153
		background: $title-background;
154
		color: $title-color;
155
		& span.label {
156
			font-weight: bold;
157
		}
158
	}
159
	& li span.marker {
160
		font-size: 250%;
161
		display: block;
162
	}
163
}
164 133

  
165 134

  
166
@if ($form-sidebar-position == top) {
167
	div#steps ol {
168
		text-align: center;
169
		li {
170
			display: inline-block;
171
			min-width: 7rem;
172
			max-width: 11rem;
173
			vertical-align: top;
174
			border-bottom: none;
175
		}
176
	}
177
}
178

  
179
@if ($responsive-steps == horizontal) {
180 135
@media screen and (max-width: $mobile-limit) {
136
	// move #gauche on top and tracking code after steps
181 137
	div#gauche {
182 138
		float: none;
183 139
		width: 100%;
......
193 149
		h3 { display: inline-block; }
194 150
		.text-tracking-code-short-text { display: none; }
195 151
	}
196
	div#steps {
197
		position: static;
198
		margin: 0;
199
		color: #aaa;
200
		white-space: nowrap;
201
		overflow: hidden;
202
		width: 100%;
203
		& ol {
204
			list-style: none;
205
			padding: 0 0;
206
			margin: 0;
207
			text-align: left;
208
			& li {
209
				border: none;
210
				display: inline-block;
211
				margin: 0;
212
				padding: 0 1em 0.7em 0;
213
				list-style: none;
214
				min-width: auto;
215
				border-radius: 0;
216
				& span.marker {
217
					float: none;
218
					display: inline;
219
					font-size: 26px;
220
					position: static;
221
					padding: 2px 9px;
222
					font-weight: bold;
223
					color: white;
224
					text-align: center;
225
					background: #ddd;
226
					border-radius: $border-radius;
227
					border: 1px solid #ddd;
228
				}
229
			}
230
			& li.current {
231
				background: inherit;
232
				color: inherit;
233
				& span.label {
234
					font-weight: normal;
235
				}
236
				& span.marker {
237
					background: $title-background;
238
					color: $title-color;
239
					border-radius: $border-radius;
240
				}
241
			}
242
			& li.step-before .label {
243
				display: none;
244
			}
245
		}
246
	}
247 152
}
248
}  // @endif ($responsive-steps == horizontal)
249 153

  
250 154
@media screen and (max-width: $mobile-limit) {
251 155
	div#gauche + div#rub_service,
static/includes/wcs/_steps.scss
1
/*
2
 *	WCS Steps
3
 *
4
 *	Affiche les étapes/pages d'un formulaire
5
 *
6
 *	Template : wcs/front/formdata_steps.html
7
 *
8
 *	$form-sidebar-position define Steps orientation
9
 *
10
 */
11

  
12
//
13
//	 Config
14
//
15

  
16
// Steps Bloc
17
$wcs-steps-background: transparent !default;
18
$wcs-steps-spacing: 0.35rem !default; // half of default 0.7rem used in publik
19

  
20
// Step
21
$wcs-step-color: #868686 !default; // color for default marker & label
22
$wcs-step-current-color: $primary-color !default;
23
$wcs-step-background: transparent !default;
24
$wcs-step-current-background: $wcs-step-background !default;
25
$wcs-step-border-bottom: 1px solid $wcs-step-color !default;
26
$wcs-step-current-border-bottom: 3px solid $wcs-step-current-color !default;
27
@if ($wcs-step-border-bottom == none) {
28
	$wcs-step-current-border-bottom: none;
29
}
30
// Step option
31
$wsc-step-before-piled: false !default;
32

  
33
// marker
34
$wcs-step-marker-color: $wcs-step-color !default;
35
$wcs-step-current-marker-color: $wcs-step-current-color !default;
36
$wcs-step-marker-background: $wcs-step-background !default;
37
$wcs-step-current-marker-background: $wcs-step-current-background !default;
38
// marker options
39
$wcs-step-marker-size: 2.1em !default;
40
$wcs-step-current-marker-enlarge: 1 !default;
41
$wcs-step-marker-type: square !default; // square || tied || disc || disc tied
42
$wcs-step-marker-tie-color: $wcs-step-color !default;
43
$wcs-step-marker-tie-width: 5px !default;
44
$wcs-step-marker-background-type: solid !default;
45

  
46
// Label
47
$wcs-step-current-label-color: $wcs-step-current-color !default;
48

  
49
// Breakpoints between small & horizontal layout
50
$wcs-steps-small-layout-limit: $very-small-limit !default;
51

  
52
// UTILS for custom code
53
// media queries between small & horizontal layout
54
$mq-max--wcs-steps-small-layout: "max-width: #{$wcs-steps-small-layout-limit}";
55
$mq-min--wcs-steps-horizontal-layout: "min-width: #{$wcs-steps-small-layout-limit+1}";
56
//  Desktop Steps orientation sass mixins
57
//	Steps orientations depend on media-queries & $form-sidebar-position
58
@mixin desktop-horizontal-steps() {
59
	@if ($form-sidebar-position == top) {
60
		@media (min-width: $mobile-limit + 1) {
61
			@content;
62
		}
63
	}
64
}
65
@mixin desktop-vertical-steps() {
66
	@if ($form-sidebar-position == left or $form-sidebar-position == right) {
67
		@media (min-width: $mobile-limit + 1) {
68
			@content;
69
		}
70
	}
71
}
72

  
73

  
74

  
75
/*
76
 *	Default Steps (with SQUARES markers)
77
 */
78

  
79
/* Steps bloc */
80
.wcs-steps {
81
	background: $wcs-steps-background;
82
	margin-bottom: 0.7rem;
83
	border-radius: $border-radius;
84

  
85
	@if $wcs-steps-background != transparent {
86
		padding: $wcs-steps-spacing;
87
	}
88

  
89
	// hide injected h2
90
	h2 {
91
		display: none;
92
	}
93

  
94
	// hide if only one step
95
	&.steps-1 {
96
		display: none;
97
	}
98

  
99
	&--list {
100
		margin: 0;
101
		padding: 0;
102
		list-style: none;
103
		color: $wcs-step-color;
104
	}
105
}
106

  
107
/* Step item */
108
.wcs-step {
109
	border-radius: $border-radius;
110
	background-color: $wcs-step-background;
111
	display: -ms-flexbox;
112
	display: flex;
113

  
114
	&--marker {
115
		// marker is abbr tag
116
		text-decoration: none;
117
		box-sizing: border-box;
118

  
119
		font-size: 1em;
120
		line-height: nomal;
121
		text-align: center;
122

  
123
		display: -ms-flexbox;
124
		display: flex;
125

  
126
		color: $wcs-step-marker-color;
127
		background: $wcs-step-marker-background;
128
		border-radius: $border-radius;
129

  
130
		width: $wcs-step-marker-size;
131
		height: $wcs-step-marker-size;
132
		-ms-flex: 0 0 $wcs-step-marker-size;
133
		flex: 0 0 $wcs-step-marker-size;
134
		
135
		&-nb {
136
			margin: auto;
137
		}
138

  
139
		&-total {
140
			display: none;
141
		}
142
	}
143

  
144
	&--label {
145
		display: block;
146
		-ms-grid-row-align: center;
147
		align-self: center;
148
		letter-spacing: 1px;
149
		line-height: 1.25;
150
	}
151

  
152

  
153
	// If step is current
154
	&.current {
155
		font-weight: bold;
156
		background: $wcs-step-current-background;
157
	}
158

  
159
	&.current & {
160
		&--marker {
161
			background: $wcs-step-current-marker-background;
162
			color: $wcs-step-current-marker-color;
163
			@if ($wcs-step-current-marker-enlarge != 1) {
164
				transform: scale($wcs-step-current-marker-enlarge);		
165
			}
166
		}
167
		&--label {
168
			color: $wcs-step-current-label-color;
169
		}
170
	}
171

  
172
	// If step is NOT current
173
	&:not(.current) & {
174
		&--label {
175
			display: none;
176
		}
177
	}
178
}
179

  
180
/*	Sidebar on TOP, SMALL LAYOUT (very-small viewport)
181
 *	Display only current step with nb and total in marker
182
 */
183
@media ($mq-max--wcs-steps-small-layout) {
184
	.wcs-step {
185
		@if ($wcs-step-background != transparent or $wcs-step-current-background != transparent) {
186
			padding: $wcs-steps-spacing;
187
		}
188

  
189
		&--marker {
190

  
191
			$size: $wcs-step-marker-size + 0.8;
192

  
193
			width: $size;
194
			height: $size;
195
			-ms-flex: 0 0 auto;
196
			flex: 0 0 auto;
197
			-ms-flex-align: center;
198
			align-items: center;
199
			-ms-flex-pack: center;
200
			justify-content: center;
201

  
202
			&-nb {
203
				margin: 0;
204
				transform: translateY(-0.5em);
205
				-ms-flex-order: 1;
206
				order: 1;
207
			}
208

  
209
			&-total {
210
				display: block;
211
				transform: translateY(0.5em);
212
				font-size: 0.75em;
213
				font-weight: normal;
214
				-ms-flex-order: 3;
215
				order: 3;
216
			}
217

  
218
			// add slash
219
			&::before {
220
				content: "";
221
				display: block;
222
				-ms-flex: 0 0 0.1em;
223
				flex: 0 0 0.1em;
224
				height: 2em;
225
				margin: 0 0.1em;
226
				background: currentColor;
227
				transform: rotate(30deg);
228
				-ms-flex-order: 2;
229
				order: 2;
230
			}
231
		}
232

  
233
		&--label {
234
			margin-left: $wcs-steps-spacing*2;
235
		}
236

  
237
		// If step is NOT current
238
		&:not(.current) {
239
			display: none;
240
		}
241
	}
242
}
243

  
244
/*	Horizontal Layout
245
 *	Sidebar on TOP, SMALL and more viewport
246
 *	Diplay all marker, but only current Label
247
 */
248
@media ($mq-min--wcs-steps-horizontal-layout) {
249

  
250
	.wcs-steps {
251
		&--list {
252
			position: relative;
253
			display: -ms-flexbox;
254
			display: flex;
255
			-ms-flex-wrap: wrap;
256
			flex-wrap: wrap;
257

  
258
			// keep space for label
259
			margin-bottom: 2em;
260
		}
261
	}
262

  
263
	.wcs-step {
264
		margin-bottom: $wcs-steps-spacing;
265
		margin-right: $wcs-steps-spacing*2;
266
		border-bottom: $wcs-step-border-bottom;
267

  
268
		&--label {
269
			position: absolute;
270
			top: 100%;
271
			left: 0;
272
			width: 100%;
273
			padding-bottom: $wcs-steps-spacing;
274
			text-align: left;
275
		}
276

  
277
		&.current {
278
			border-bottom: $wcs-step-current-border-bottom;
279
		}
280
	}
281
}
282

  
283

  
284
@include desktop-horizontal-steps() {
285
	.wcs-steps {	
286
		font-size: 1.25em;
287
	}
288
	.wcs-step {
289
		margin-bottom: $wcs-steps-spacing*3;
290
		margin-right: $wcs-steps-spacing*3;
291
	}
292
}
293

  
294
/*	Vertical Steps
295
 *	Sidebar on LEFT or RIGHT, DESKTOP only
296
 *	Display All steps with marker and label. One below the other.
297
 */
298
@include desktop-vertical-steps() {
299
	.wcs-steps {
300
		font-size: 1.25em;
301

  
302
		// display even if only one step
303
		&.steps-1 {
304
			display: block;
305
		}
306

  
307
		&--list {
308
			-ms-flex-wrap: nowrap;
309
			flex-wrap: nowrap;
310
			-ms-flex-direction: column;
311
			flex-direction: column;
312
			// remove keep space for label
313
			padding-bottom: 0;
314
		}
315
	}
316

  
317
	.wcs-step {
318
		margin-bottom: $wcs-steps-spacing;
319
		
320
		@if $wcs-step-border-bottom != none {
321
			padding-bottom: $wcs-steps-spacing;
322
		}
323
		@if ($wcs-step-background != transparent or $wcs-step-current-background != transparent) {
324
			padding: $wcs-steps-spacing;
325
		}
326

  
327
		margin-right: 0;
328

  
329
		&--label {
330
			position: static;
331
			font-size: 0.7em;
332
			margin-left: $wcs-steps-spacing;
333
			padding-bottom: 0;
334
		}
335

  
336
		// If step is NOT current
337
		&:not(.current) & {
338
			&--label {
339
				display: block;
340
			}
341
		}
342
	}
343
}
344

  
345

  
346
/*
347
 *	OPTION marker-background-type: gradient.
348
 *	Generate automatically a gradient based on background-color
349
 */
350

  
351
@if $wcs-step-marker-background-type == gradient {
352
	.wcs-step {
353
		&--marker {
354
			background-attachment: fixed;
355
			@media (min-width: $very-small-limit + 1) {			
356
				background-image: linear-gradient(to right, lighten($wcs-step-marker-background, 10%), darken($wcs-step-marker-background, 10%));
357
			}
358

  
359
			@include desktop-vertical-steps() {
360
				background-image: linear-gradient(to bottom, lighten($wcs-step_marker-background, 10%), darken($wcs-step_marker-background, 10%));
361
			}
362
		}
363
	}
364
}
365

  
366
/*
367
 *	OPTION Pile Step Before
368
 *	Work only for
369
 *		* horizontal mode: desktop breakpoint and sidebar on left or right
370
 *		* with background-color on step
371
 */
372
@if ($wsc-step-before-piled ) {
373
	@include desktop-vertical-steps() {
374
		.wcs-step {	
375
			&:not(:first-child) {
376
				&.step-before, 
377
				&.current {
378
					box-shadow: 0 -4px 4px -4px darken($wcs-step-background, 40%);
379
				}
380
			}
381

  
382
			&.step-before, 
383
			&.current {
384
				z-index: 1;
385
				transition: margin 400ms, box-shadow 400ms;
386
			}
387
			
388
			&.step-before {
389
				margin-bottom: calc( (#{$wcs-step-marker-size} + #{$wcs-steps-spacing * 2}) / 2 * -1);
390

  
391
				&:hover {
392
					margin-bottom: $wcs-steps-spacing;
393

  
394
					& + .wcs-step {
395
						box-shadow: 0 0 0 0 darken($wcs-step-background, 40%);
396
					}
397
				}
398
			}
399
		}
400
	}
401
}
402

  
403

  
404
/*
405
 *	OPTION marker type DISC
406
 */
407
@if (str-index(quote($wcs-step-marker-type), 'disc')) {
408
	.wcs-step {
409
		&--marker {
410
			border-radius: 50% !important;
411

  
412
			@media ($mq-max--wcs-steps-small-layout) {
413
				$size: $wcs-step-marker-size + 1.4;
414
				width: $size;
415
				height: $size;
416
			}
417
		}
418
	}
419
}
420

  
421
/*
422
 *	OPTION marker type TIED
423
 */
424
@if (str-index(quote($wcs-step-marker-type), 'tied')) {
425
	
426
	.wcs-step {
427
		&:not(:last-child) {
428
			@media ($mq-min--wcs-steps-horizontal-layout) {
429
				&::after {
430
					content: "";
431
					display: block;
432
					height: $wcs-step-marker-tie-width;
433
					-ms-flex: 0 0 calc(100% + #{$wcs-steps-spacing});
434
					flex: 0 0 calc(100% + #{$wcs-steps-spacing});
435
					background-color: $wcs-step-marker-tie-color;
436
					margin: auto;
437
				}
438
			}
439

  
440
			@include desktop-vertical-steps() {
441
				position: relative;
442

  
443
				&::after {
444
					height: calc(100% + #{$wcs-steps-spacing});
445
					width: $wcs-step-marker-tie-width;
446

  
447
					position: absolute;
448
					z-index: 1;
449
					top: $wcs-steps-spacing;
450
					left: calc( (#{$wcs-step-marker-size} - #{$wcs-step-marker-tie-width}) / 2 );
451

  
452
					@if $wcs-step-background != transparent {
453
						left: calc( (#{$wcs-step-marker-size} - #{$wcs-step-marker-tie-width}) / 2 + #{$wcs-steps-spacing});
454
					} 
455
				}
456
			}	
457
		}
458

  
459
		&--marker {
460
			position: relative;
461
			z-index: 2;
462
		}
463
	}
464
}
templates/theme.html
49 49
   </div>
50 50

  
51 51
   <div id="page" {% block page-args %}{% endblock %}>
52
    <header role="banner">
52
    <header role="banner" class="site-header">
53 53
    <div id="header-wrapper" >
54 54
    {% block header-pre %}{% endblock %}
55 55
    <div id="header">
templates/wcs/front/formdata_steps.html
1
<header id="steps" class="wcs-steps steps-{{page_labels|length}}">
2
<ol class="wcs-steps--list">
3
{% for page_label in page_labels %}
4
{% spaceless %}
5
<li {% if forloop.counter != current_page_no %}aria-hidden="true"{% endif %}
6
	class="wcs-step
7
           {% if forloop.first %}first{% endif %}
8
           {% if forloop.last %}last{% endif %}
9
           {% if forloop.counter == current_page_no %}current{% endif %}
10
           {% if forloop.counter < current_page_no %}step-before{% endif %}
11
           {% if forloop.counter > current_page_no %}step-after{% endif %}" >
12
	<abbr 
13
		{% if forloop.counter == current_page_no %}
14
			aria-label="Étape {{ forloop.counter }} sur {{ page_labels|length }}:"
15
			title="Étape {{ forloop.counter }} sur {{ page_labels|length }}"
16
		{% endif %}
17
			class="marker wcs-step--marker">
18
		<span class="wcs-step--marker-nb">
19
			{{ forloop.counter }}			
20
		</span>
21
		<span class="wcs-step--marker-total">
22
			{{ page_labels|length }}
23
		</span>
24
	</abbr>
25
	<span class="label wcs-step--label">{{ page_label }}</span>
26
</li>
27
{% endspaceless %}
28
{% endfor %}
29
</ol>
30
</header>
0
-