0011-tours-metropole-adapt-style-of-new-more-items-markup.patch
static/tours-metropole/_custom.scss | ||
---|---|---|
265 | 265 |
} |
266 | 266 |
ul { |
267 | 267 |
border: 1px solid $cell-entry-border-color; |
268 |
border-bottom: 3px solid $primary-color; |
|
269 | 268 |
border-top: 0; |
269 | ||
270 |
&:last-child { |
|
271 |
border-bottom: 3px solid $primary-color; |
|
272 |
} |
|
270 | 273 |
a { |
271 | 274 |
font-weight: bold; |
272 | 275 |
padding: .5rem 1.5rem .5rem 1rem; |
273 | 276 |
position: relative; |
274 | 277 |
align-items: center; |
275 |
&::after { |
|
278 |
&:not(.add-more-items--button)::after {
|
|
276 | 279 |
content: '\f287'; /* arrow-round-forward */ |
277 | 280 |
font-family: Ionicons; |
278 | 281 |
color: #094da8; |
... | ... | |
286 | 289 |
border-bottom: 0; |
287 | 290 |
} |
288 | 291 |
} |
289 |
&.more-items a::after { |
|
290 |
display: none; |
|
291 |
} |
|
292 | 292 |
} |
293 | 293 |
} |
294 | 294 |
} |
templates/variants/tours-metropole/combo/wcs/forms_of_category.html | ||
---|---|---|
1 |
{% extends 'combo/wcs/forms_of_category.html' %} |
|
1 | 2 |
{% load assets i18n %} |
2 |
{% block cell-content %} |
|
3 | ||
3 | 4 |
{% block cell-header %} |
4 | 5 |
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %} |
5 | 6 |
<h2{% if asset %} style="background-image: url('{% asset_url asset %}')"{% endif %}><span>{{ title }}</span></h2> |
... | ... | |
9 | 10 |
</div> |
10 | 11 |
{% endif %} |
11 | 12 |
{% endblock %} |
12 |
<div class="wcs-forms-of-category-{{slug}}"> |
|
13 |
<ul> |
|
14 |
{% for form in forms %} |
|
15 |
<li class="{% if form.authentication_required %}required-authentication{% endif %} |
|
16 |
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %} |
|
17 |
{% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %} |
|
18 |
{% if form.redirection %}is-redirection{% endif %}" |
|
19 |
><a href="{{ form.url }}tryauth">{{ form.title }}</a> |
|
20 |
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %} |
|
21 |
</li> |
|
22 |
{% endfor %} |
|
23 | ||
24 |
{% if more_forms %} |
|
25 |
<li class="more-items"><a>+</a></li> |
|
26 |
{% for form in more_forms %} |
|
27 |
<li style="display: none" class="additional-form {% if form.authentication_required %}required-authentication{% endif %} |
|
28 |
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %} |
|
29 |
{% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %} |
|
30 |
{% if form.redirection %}is-redirection{% endif %}" |
|
31 |
><a href="{{ form.url }}tryauth">{{ form.title }}</a> |
|
32 |
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %} |
|
33 |
</li> |
|
34 |
{% endfor %} |
|
35 |
{% endif %} |
|
36 | ||
37 |
</ul> |
|
38 |
</div> |
|
39 |
{% endblock %} |
|
40 |
- |