Projet

Général

Profil

0001-scss-add-style-for-multi-choices-select2-64320.patch

Frédéric Péters, 19 avril 2022 15:30

Télécharger (1,66 ko)

Voir les différences:

Subject: [PATCH] scss: add style for multi-choices select2 (#64320)

 static/includes/_forms.scss | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
static/includes/_forms.scss
406 406
		padding: 0.1em 0.7em;
407 407
	}
408 408
	span.select2-selection--single,
409
	span.select2-selection--multiple,
409 410
	a.select2-choice,
410 411
	a.select2-choice div {
411 412
		box-sizing: border-box;
......
415 416
		border-radius: $widget-border-radius;
416 417
		border: $widget-border;
417 418
		height: auto;
419
		.select2-selection__choice {
420
			margin: 0 0.5rem 0 0;
421
			border: none;
422
		}
423
	}
424
	span.select2-selection--multiple {
425
		min-height: 0;
426
	}
427
	.select2-search--inline .select2-search__field {
428
		margin-top: 0;
429
		margin-bottom: 0;
430
		border: none;
418 431
	}
419 432
	&.select2-container--focus,
420 433
	&.select2-container--open {
421 434
		span.select2-selection--single,
435
		span.select2-selection--multiple,
422 436
		a.select2-choice,
423 437
		a.select2-choice div {
424 438
			background: $widget-focus-background;
......
429 443
			}
430 444
		}
431 445
	}
432
	&.select2-container--focus span.select2-selection--single {
446
	&.select2-container--focus span.select2-selection--single,
447
	&.select2-container--focus span.select2-selection--multiple {
433 448
		outline: $widget-focus-outline;
434 449
		outline-offset: $widget-focus-outline-offset;
435 450
	}
436
-