0001-rouen-adjust-checkbox-markup-to-match-custom-style-2.patch
static/rouen/_custom.scss | ||
---|---|---|
168 | 168 |
} |
169 | 169 |
} |
170 | 170 | |
171 |
div.CheckboxesWidget div.content label{ |
|
171 |
div.CheckboxWidget div.content label, |
|
172 |
div.CheckboxesWidget div.content label { |
|
172 | 173 |
display: block; |
173 | 174 |
& input[type="checkbox"] { |
174 | 175 |
left: -99999999px; |
... | ... | |
183 | 184 |
} |
184 | 185 |
} |
185 | 186 | |
186 |
div.CheckboxWidget div.content input[type="checkbox"]{ |
|
187 |
height: 1.5em; |
|
188 |
visibility: hidden; |
|
189 |
&::before { |
|
190 |
@extend %icon-common; |
|
191 |
content: $icon-mars-square; |
|
192 |
visibility: visible; |
|
193 |
} |
|
194 |
&:checked { |
|
195 |
&::before { |
|
196 |
@extend %icon-common; |
|
197 |
content: $icon-mars-square-checked; |
|
198 |
} |
|
199 |
} |
|
200 |
} |
|
201 | ||
202 | 187 |
%border-style { |
203 | 188 |
border: 0.05em solid #2D2D2D; |
204 | 189 |
} |
templates/variants/rouen/qommon/forms/widgets/checkbox.html | ||
---|---|---|
1 |
{% extends "qommon/forms/widget.html" %} |
|
2 |
{% block widget-control %} |
|
3 |
{% if request.quixote_request.is_in_backoffice %}{{ block.super }}{% else %} |
|
4 |
<label>{{widget.render_content|safe}}<span></span></label>{% endif %} |
|
5 |
{% endblock %} |
|
0 |
- |