Projet

Général

Profil

0001-scss-use-placeholder-selector-for-custom-radio-check.patch

Frédéric Péters, 25 octobre 2021 19:03

Télécharger (3,52 ko)

Voir les différences:

Subject: [PATCH] scss: use placeholder selector (%) for custom
 radio/checkboxes (#58178)

 static/dordogne-cd24/_custom.scss           | 2 +-
 static/grandlyon-glc/_custom.scss           | 2 +-
 static/grenoble-metropole-2019/_custom.scss | 2 +-
 static/includes/_forms.scss                 | 8 ++++----
 static/toulouse-metropole/_custom.scss      | 2 +-
 static/toulouse/_custom.scss                | 2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)
static/dordogne-cd24/_custom.scss
40 40
	background: #fff;
41 41
}
42 42

  
43
.custom-radio-checkbox-widget {
43
%custom-radio-checkbox-widget {
44 44
	input + span {
45 45
		padding-left: 1.75rem;
46 46
		&::before {
static/grandlyon-glc/_custom.scss
1 1
@import '../includes/fonts/roboto';
2 2

  
3
.custom-radio-checkbox-widget {
3
%custom-radio-checkbox-widget {
4 4
	input + span {
5 5
		&::before {
6 6
			height: 15px;
static/grenoble-metropole-2019/_custom.scss
70 70
	background-position: 10px center;
71 71
}
72 72

  
73
.custom-radio-checkbox-widget {
73
%custom-radio-checkbox-widget {
74 74
	input + span {
75 75
		&::before {
76 76
			height: 0.86rem;
static/includes/_forms.scss
43 43
$buttons-alignment: null !default; // any flexbox justify-content value;
44 44

  
45 45

  
46
.custom-radio-checkbox-widget {
46
%custom-radio-checkbox-widget {
47 47
	label {
48 48
		position: relative;
49 49
	}
......
112 112
	}
113 113
}
114 114

  
115
.custom-radio-widget {
115
%custom-radio-widget {
116 116
	input + span {
117 117
		&::before {
118 118
			border-radius: 16px;
......
506 506
	.CheckboxWidget,
507 507
	.CheckboxesWidget,
508 508
	.RadiobuttonsWidget {
509
		@extend .custom-radio-checkbox-widget;
509
		@extend %custom-radio-checkbox-widget;
510 510
	}
511 511

  
512 512
	.CheckboxWidget {
......
516 516
	}
517 517
	.django-radio-select,
518 518
	.RadiobuttonsWidget {
519
		@extend .custom-radio-widget;
519
		@extend %custom-radio-widget;
520 520
	}
521 521
}
522 522

  
static/toulouse-metropole/_custom.scss
44 44
	}
45 45
}
46 46

  
47
.custom-radio-checkbox-widget {
47
%custom-radio-checkbox-widget {
48 48
	input + span {
49 49
		&::before {
50 50
			border: none;
static/toulouse/_custom.scss
52 52
	}
53 53
}
54 54

  
55
.custom-radio-checkbox-widget {
55
%custom-radio-checkbox-widget {
56 56
	input + span {
57 57
		&::before {
58 58
			border: none;
59
-