0001-scss-add-option-to-control-unique-checkbox-position-.patch
help/fr/misc-scss.page | ||
---|---|---|
399 | 399 |
personnalisé.</p></td> |
400 | 400 |
<td><p><var>$button-background</var></p></td> |
401 | 401 |
</tr> |
402 |
<tr> |
|
403 |
<td><p><code>$widget-unique-checkbox-position</code></p></td> |
|
404 |
<td><p>Positionnement de la case à cocher d'un champ de type « Case à |
|
405 |
cocher (choix unique); soit « bottom » pour un rendu sous le libellé du |
|
406 |
champ (option par défaut), soit « left » pour un rendu à la gauche du |
|
407 |
libellé.</p></td> |
|
408 |
<td><p><var>bottom</var></p></td> |
|
409 |
</tr> |
|
402 | 410 |
</table> |
403 | 411 |
</section> |
404 | 412 |
static/includes/_forms.scss | ||
---|---|---|
16 | 16 | |
17 | 17 |
$widget-custom-radio-checkbox: false !default; |
18 | 18 |
$widget-custom-radio-checkbox-color: $button-background !default; |
19 |
$widget-unique-checkbox-position: bottom !default; // also possible: left |
|
19 | 20 | |
20 | 21 |
/* $form-style: global style of form elements; possible values |
21 | 22 |
* are: |
... | ... | |
358 | 359 |
} |
359 | 360 |
} |
360 | 361 | |
362 |
@if $widget-unique-checkbox-position == left { |
|
363 |
div.CheckboxWidget { |
|
364 |
display: -ms-flexbox; |
|
365 |
display: flex; |
|
366 |
div.title { |
|
367 |
-ms-order: 1; |
|
368 |
order: 1; |
|
369 |
} |
|
370 |
div.content label { |
|
371 |
margin-right: 0; |
|
372 |
} |
|
373 |
} |
|
374 |
} |
|
375 | ||
361 | 376 |
@if $form-style == light { |
362 | 377 |
form p label, |
363 | 378 |
label { |
364 |
- |