Projet

Général

Profil

0001-scss-apply-styles-to-all-radio-and-checkbox-widgets-.patch

Serghei Mihai (congés, retour 15/05), 12 août 2021 17:52

Télécharger (3,95 ko)

Voir les différences:

Subject: [PATCH] scss: apply styles to all radio and checkbox widgets (#55988)

 static/dordogne-cd24/_custom.scss           | 14 +++++++++++++-
 static/grenoble-metropole-2019/_custom.scss |  3 +++
 static/includes/_forms.scss                 |  5 ++++-
 static/toulouse-metropole/_custom.scss      |  4 ++++
 static/toulouse/_custom.scss                |  4 ++++
 5 files changed, 28 insertions(+), 2 deletions(-)
static/dordogne-cd24/_custom.scss
281 281
	background: #fff;
282 282
}
283 283

  
284
.RadiobuttonsWidget, .CheckboxWidget,
284
.django-radio-select,
285
.django-checkbox-input,
286
.RadiobuttonsWidget,
287
.CheckboxWidget,
285 288
.CheckboxesWidget {
286 289
	input + span {
287 290
		padding-left: 1.75rem;
......
299 302
		}
300 303
	}
301 304
}
305

  
306
.django-radio-select {
307
	input + span {
308
		&::before, &::after {
309
			border-radius: 50%
310
		}
311
	}
312
}
313

  
302 314
.gru-content {
303 315
	div.cell, .block {
304 316
		margin-bottom: 2em;
static/grenoble-metropole-2019/_custom.scss
918 918
	background-color: #e4e4e4;
919 919
}
920 920

  
921
.django-checkbox-input,
922
.django-radio-select,
921 923
.CheckboxWidget,
922 924
.CheckboxesWidget,
923 925
.RadiobuttonsWidget {
......
945 947
	}
946 948
}
947 949

  
950
.django-radio-select,
948 951
.RadiobuttonsWidget {
949 952
	input + span {
950 953
		&::before {
static/includes/_forms.scss
424 424
}
425 425

  
426 426
@if $widget-custom-radio-checkbox == true {
427
	.django-checkbox-input,
428
	.django-radio-select,
427 429
	.CheckboxWidget,
428 430
	.CheckboxesWidget,
429 431
	.RadiobuttonsWidget {
......
498 500
			position: relative;
499 501
		}
500 502
	}
501

  
503
	.django-radio-select,
502 504
	.RadiobuttonsWidget {
503 505
		input + span {
504 506
			&::before {
......
512 514
}
513 515

  
514 516
@if $widget-unique-checkbox-position == left {
517
	div.django-checkbox-input,
515 518
	div.CheckboxWidget {
516 519
		position: relative;
517 520
		div.title {
static/toulouse-metropole/_custom.scss
1186 1186
	color: $primary-color;
1187 1187
}
1188 1188

  
1189
.django-checkbox-input input + span::before,
1190
.django-radio-select-input input + span::before,
1189 1191
.CheckboxWidget input + span::before,
1190 1192
.CheckboxesWidget input + span::before,
1191 1193
.RadiobuttonsWidget input + span::before {
......
1193 1195
	box-shadow: 0 0 6px 0px #505050;
1194 1196
}
1195 1197

  
1198
.django-checkbox-input input + span::after,
1199
.django-radio-select-input input + span::after,
1196 1200
.CheckboxWidget input + span::after,
1197 1201
.CheckboxesWidget input + span::after,
1198 1202
.RadiobuttonsWidget input + span::after {
static/toulouse/_custom.scss
1174 1174
	color: $primary-color;
1175 1175
}
1176 1176

  
1177
.django-checkbox-input input + span::before,
1178
.django-radio-select-input input + span::before,
1177 1179
.CheckboxWidget input + span::before,
1178 1180
.CheckboxesWidget input + span::before,
1179 1181
.RadiobuttonsWidget input + span::before {
......
1181 1183
	box-shadow: 0 0 6px 0px #505050;
1182 1184
}
1183 1185

  
1186
.django-checkbox-input input + span::after,
1187
.django-radio-select-input input + span::after,
1184 1188
.CheckboxWidget input + span::after,
1185 1189
.CheckboxesWidget input + span::after,
1186 1190
.RadiobuttonsWidget input + span::after {
1187
-