Projet

Général

Profil

0001-malakoff-update-wcs-buttons.patch

Thomas Jund, 06 septembre 2021 15:54

Télécharger (1,74 ko)

Voir les différences:

Subject: [PATCH] malakoff: update wcs buttons

* change order
* change previous and cancel color
* add arrows
 static/malakoff/_custom.scss | 34 +++++++++++++++++++++++++++++++++-
 static/malakoff/_vars.scss   |  1 +
 2 files changed, 34 insertions(+), 1 deletion(-)
static/malakoff/_custom.scss
287 287
	}
288 288
}
289 289

  
290
%cancel-button {
291
	background-color: white;
292
	color: $link-color;
293
	&:hover {
294
		background-color: $link-color;
295
		color: white;
296
	}
297
}
298

  
299
div.buttons {
300
	.previous-button button {
301
		@extend %cancel-button;
302
		&:before {
303
			content: "←";
304
			font-family: "sans-serif";
305
			margin-right: .33em;
306
			vertical-align: 0.05em;
307
		}
308
	}
309
	.submit-button button {
310
		&::after {
311
			content: "→";
312
			font-family: "sans-serif";
313
			margin-left: .33em;
314
			vertical-align: 0.05em;
315

  
316
		}
317
	}
318

  
319
} 
320

  
321

  
290 322
#footer {
291 323
	min-height: 130px;
292 324
	padding: 20px 0px 10px 0px;
......
493 525
			}
494 526
		}
495 527
	}
496
}
528
}
static/malakoff/_vars.scss
35 35
$button-background: $link-color;
36 36
$button-hover-background: white;
37 37
$button-hover-color: $link-color;
38
$buttons-order: previous (grow), cancel, submit;
38 39

  
39 40
$wcs-steps-spacing: 0.7rem; 
40 41
$wcs-step-background: #fff;
41
-