Projet

Général

Profil

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

Thomas Jund, 18 novembre 2019 17:37

Télécharger (21,7 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         | 436 ++++++++++++++++++++++++
 templates/theme.html                    |   2 +-
 templates/wcs/front/formdata_steps.html |  30 ++
 6 files changed, 625 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>$bq-max--wcs-steps-small-layout</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
//
14
//	 Config
15
//
16

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

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

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

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

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

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

  
74

  
75

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

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

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

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

  
95

  
96
	&--list {
97
		margin: 0;
98
		padding: 0;
99
		list-style: none;
100
		color: $wcs-step-color;
101
	}
102
}
103

  
104
/* Step item */
105
.wcs-step {
106
	border-radius: $border-radius;
107
	background-color: $wcs-step-background;
108
	display: flex;
109

  
110
	&--marker {
111
		// marker is abbr tag
112
		text-decoration: none;
113
		box-sizing: border-box;
114

  
115
		font-size: 1em;
116
		line-height: nomal;
117
		text-align: center;
118
		
119
		display: flex;
120

  
121
		color: $wcs-step-marker-color;
122
		background: $wcs-step-marker-background;
123
		border-radius: $border-radius;
124

  
125
		width: $wcs-step-marker-size;
126
		height: $wcs-step-marker-size;
127
		flex: 0 0 $wcs-step-marker-size;
128
		
129
		&-nb {
130
			margin: auto;
131
		}
132

  
133
		&-total {
134
			display: none;
135
		}
136
	}
137

  
138
	&--label {
139
		display: block;
140
		align-self: center;
141
		letter-spacing: 1px;
142
		line-height: 1.25;
143
	}
144

  
145

  
146
	// If step is current
147
	&.current {
148
		font-weight: bold;
149
		background: $wcs-step-current-background;
150
	}
151

  
152
	&.current & {
153
		&--marker {
154
			background: $wcs-step-current-marker-background;
155
			color: $wcs-step-current-marker-color;
156

  
157
			transform: scale($wcs-step-current-marker-enlarge);		
158
		}
159
		&--label {
160
			color: $wcs-step-current-label-color;
161
		}
162
	}
163

  
164
	// If step is NOT current
165
	&:not(.current) & {
166
		&--label {
167
			display: none;
168
		}
169
	}
170
}
171

  
172
/*	Sidebar on TOP, SMALL LAYOUT (very-small viewport)
173
 *	Display only current step with nb and total in marker
174
 */
175
@media ($mq-max--wcs-steps-small-layout) {
176
	.wcs-step {
177
		@if ($wcs-step-background != transparent or $wcs-step-current-background != transparent) {
178
			padding: $wcs-steps-spacing;
179
		}
180

  
181
		&--marker {
182

  
183
			$size: $wcs-step-marker-size + 0.8;
184

  
185
			width: $size;
186
			height: $size;
187
			flex: 0 0 auto;
188
			align-items: center;
189
			justify-content: center;
190

  
191
			&-nb {
192
				margin: 0;
193
				transform: translateY(-0.5em);
194
				order: 1;
195
			}
196

  
197
			&-total {
198
				display: block;
199
				transform: translateY(0.5em);
200
				font-size: 0.75em;
201
				font-weight: normal;
202
				order: 3;
203
			}
204

  
205
			// add slash
206
			&::before {
207
				content: "";
208
				display: block;
209
				flex: 0 0 0.1em;
210
				height: 2em;
211
				margin: 0 0.1em;
212
				background: $wcs-step-current-marker-color;
213
				transform: rotate(30deg);
214
				order: 2;
215
			}
216
		}
217

  
218
		&--label {
219
			margin-left: $wcs-steps-spacing*2;
220
		}
221

  
222
		// If step is NOT current
223
		&:not(.current) {
224
			display: none;
225
		}
226
	}
227
}
228

  
229
/*	Horizontal Layout
230
 *	Sidebar on TOP, SMALL and more viewport
231
 *	Diplay all marker, but only current Label
232
 */
233
@media ($mq-min--wcs-steps-horizontal-layout) {
234

  
235
	.wcs-steps {
236
		&--list {
237
			position: relative;		
238
			display: flex;
239
			flex-wrap: wrap;
240

  
241
			// keep space for label
242
			margin-bottom: 2em;
243
		}
244
	}
245

  
246
	.wcs-step {
247
		margin-bottom: $wcs-steps-spacing;
248
		margin-right: $wcs-steps-spacing;
249
		border-bottom: $wcs-step-border-bottom;
250

  
251
		&--label {
252
			position: absolute;
253
			top: 100%;
254
			left: 0;
255
			width: 100%;
256
			padding-bottom: $wcs-steps-spacing;
257
		}
258

  
259
		&.current {
260
			border-bottom: $wcs-step-current-border-bottom;
261
		}
262
	}
263
}
264

  
265

  
266
@include desktop-horizontal-steps() {
267
	.wcs-steps {	
268
		font-size: 1.25em;
269
	}
270
	.wcs-step {
271
		margin-bottom: $wcs-steps-spacing*2;
272
		margin-right: $wcs-steps-spacing*2;
273
	}
274
}
275

  
276
/*	Vertical Steps
277
 *	Sidebar on LEFT or RIGHT, DESKTOP only
278
 *	Display All steps with marker and label. One below the other.
279
 */
280
@include desktop-vertical-steps() {
281
	.wcs-steps {
282
		font-size: 1.25em;
283

  
284
		&--list {
285
			flex-wrap: nowrap;
286
			flex-direction: column;
287
			// remove keep space for label
288
			padding-bottom: 0;
289
		}
290
	}
291

  
292
	.wcs-step {
293
		@if $wcs-step-border-bottom != none {
294
			padding-bottom: $wcs-steps-spacing;
295
		}
296
		@if ($wcs-step-background != transparent or $wcs-step-current-background != transparent) {
297
			padding: $wcs-steps-spacing;
298
		}
299

  
300
		margin-right: 0;
301

  
302
		&--label {
303
			position: static;
304
			font-size: 0.7em;
305
			margin-left: $wcs-steps-spacing;
306
			padding-bottom: 0;
307
		}
308

  
309
		// If step is NOT current
310
		&:not(.current) & {
311
			&--label {
312
				display: block;
313
			}
314
		}
315
	}
316
}
317

  
318

  
319
/*
320
 *	OPTION marker-background-type: gradient.
321
 *	Generate automatically a gradient based on background-color
322
 */
323

  
324
@if $wcs-step-marker-background-type == gradient {
325
	.wcs-step {
326
		&--marker {
327
			background-attachment: fixed;
328
			@media (min-width: $very-small-limit + 1) {			
329
				background-image: linear-gradient(to right, lighten($wcs-step-marker-background, 10%), darken($wcs-step-marker-background, 10%));
330
			}
331

  
332
			@include desktop-vertical-steps() {
333
				background-image: linear-gradient(to bottom, lighten($wcs-step_marker-background, 10%), darken($wcs-step_marker-background, 10%));
334
			}
335
		}
336
	}
337
}
338

  
339
/*
340
 *	OPTION Pile Step Before
341
 *	Work only for
342
 *		* horizontal mode: desktop breakpoint and sidebar on left or right
343
 *		* with background-color on step
344
 */
345
@if ($wsc-step-before-piled ) {
346
	@include desktop-vertical-steps() {
347
		.wcs-step {	
348
			&:not(:first-child) {
349
				&.step-before, 
350
				&.current {
351
					box-shadow: 0 -4px 4px -4px darken($wcs-step-background, 40%);
352
				}
353
			}
354

  
355
			&.step-before, 
356
			&.current {
357
				z-index: 1;
358
				transition: margin 400ms, box-shadow 400ms;
359
			}
360
			
361
			&.step-before {
362
				margin-bottom: calc( (#{$wcs-step-marker-size} + #{$wcs-steps-spacing * 2}) / 2 * -1);
363

  
364
				&:hover {
365
					margin-bottom: $wcs-steps-spacing;
366

  
367
					& + .wcs-step {
368
						box-shadow: 0 0 0 0 darken($wcs-step-background, 40%);
369
					}
370
				}
371
			}
372
		}
373
	}
374
}
375

  
376

  
377
/*
378
 *	OPTION marker type DISC
379
 */
380
@if (str-index(quote($wcs-step-marker-type), 'disc')) {
381
	.wcs-step {
382
		&--marker {
383
			border-radius: 50% !important;
384

  
385
			@media ($mq-max--wcs-steps-small-layout) {
386
				$size: $wcs-step-marker-size + 1.4;
387
				width: $size;
388
				height: $size;
389
			}
390
		}
391
	}
392
}
393

  
394
/*
395
 *	OPTION marker type TIED
396
 */
397
@if (str-index(quote($wcs-step-marker-type), 'tied')) {
398
	
399
	.wcs-step {
400
		&:not(:last-child) {
401
			@media ($mq-min--wcs-steps-horizontal-layout) {
402
				&::after {
403
					content: "";
404
					display: block;
405
					height: $wcs-step-marker-tie-width;
406
					flex: 0 0 100%;
407
					background-color: $wcs-step-marker-tie-color;
408
					margin: auto;
409
				}
410
			}
411

  
412
			@include desktop-vertical-steps() {
413
				position: relative;
414

  
415
				&::after {
416
					height: calc(100% + #{$wcs-steps-spacing});
417
					width: $wcs-step-marker-tie-width;
418

  
419
					position: absolute;
420
					z-index: 1;
421
					top: $wcs-steps-spacing;
422
					left: calc( (#{$wcs-step-marker-size} - #{$wcs-step-marker-tie-width}) / 2 );
423

  
424
					@if $wcs-step-background != transparent {
425
						left: calc( (#{$wcs-step-marker-size} - #{$wcs-step-marker-tie-width}) / 2 + #{$wcs-steps-spacing});
426
					} 
427
				}
428
			}	
429
		}
430

  
431
		&--marker {
432
			position: relative;
433
			z-index: 2;
434
		}
435
	}
436
}
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
-