variants: add cell--title class to cell titles (#74052)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Corentin Sechet 2023-02-01 11:30:28 +01:00 committed by Corentin Sechet
parent afbd8a7c0e
commit 1ffc0b7105
30 changed files with 36 additions and 30 deletions

View File

@ -1,6 +1,6 @@
<!-- Titre -->
{% if json %}
<h2>{{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}</h2>
<h2 class="cell--title">{{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}</h2>
{% endif %}
<!-- Fin Titre -->

View File

@ -1,6 +1,6 @@
<!-- Titre -->
{% if json %}
<h2>{{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}</h2>
<h2 class="cell--title">{{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}</h2>
{% endif %}
<!-- Fin Titre -->

View File

@ -1,6 +1,6 @@
{% if cell.link_page %}
<div class="demarche-link">
<h2>{{ cell.link_page.title }}</h2>
<h2 class="cell--title">{{ cell.link_page.title }}</h2>
<p class="demarche-link--description">{{ cell.link_page.description }}</p>
<div class="demarche-link--arrow-container">
<a href="{{ url }}" class="demarche-link--arrow">{{ title }}</a>

View File

@ -1,6 +1,6 @@
{% if cell.link_page and cell.link_page.picture %}
<div class="internal-page-link" style="background-image: url({{cell.link_page.picture.url}})">
<h2><a href="{{ url }}">{{ title }}</a></h2>
<h2 class="cell--title"><a href="{{ url }}">{{ title }}</a></h2>
<p class="internal-page-link--description">{{ cell.link_page.description }}</p>
<div class="internal-page-link--arrow-container">
<a href="{{ url }}" class="internal-page-link--arrow"><span class="sr-only">{{ title }}</span></a>

View File

@ -2,7 +2,7 @@
{% load assets %}
{% block cell-header %}
<h2 style="background-image: url({% asset_url "wcs:category:logo:"|add:cell.category_reference size="65x65" %})">
<h2 class="cell--title" style="background-image: url({% asset_url "wcs:category:logo:"|add:cell.category_reference size="65x65" %})">
<span>{{ title }}</span>
</h2>
{% include "combo/asset_picture_fragment.html" %}

View File

@ -1,7 +1,7 @@
{% load i18n %}
{% block cell-content %}
{% if cell.title %}
<h2>{{ cell.title }}</h2>
<h2 class="cell--title">{{ cell.title }}</h2>
{% endif %}
<div class="feed-content links-list">
<ul>

View File

@ -1,2 +1,2 @@
<h2>{{ title }}{% if items %} ({{ items|length }}){% endif %}</h2>
<h2 class="cell--title">{{ title }}{% if items %} ({{ items|length }}){% endif %}</h2>
{% include "combo/asset_picture_fragment.html" %}

View File

@ -1,5 +1,5 @@
{% block cell-content %}
<h2 class="commune--title">{{ title }}</h2>
<h2 class="commune--title cell--title">{{ title }}</h2>
<div class="cell--body">
<form>
<select id="commune--select-{{ cell.id }}" class="commune--select">

View File

@ -3,7 +3,10 @@
{% block cell-header %}
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
<h2{% if asset %} class="with-asset" style="background-image: url({% asset_url asset crop="center" %})"{% endif %}><span>{{ title }}</span></h2>
<h2 class="cell--title {% if asset %} with-asset{% endif %}"
{% if asset %} style="background-image: url({% asset_url asset crop="center" %})"{% endif %}>
<span>{{ title }}</span>
</h2>
{% if category_description %}
<div class="intro">
{{ category_description|safe }}

View File

@ -1,6 +1,6 @@
{% load i18n %}
<div class="wcs-forms-of-category-{{slug}}">
<h2>{{ title }}</h2>
<h2 class="cell--title">{{ title }}</h2>
{% if category_description %}
<div class="intro">
{{ category_description|safe }}

View File

@ -1,7 +1,7 @@
{% extends 'combo/link-list-cell.html' %}
{% block cell-header %}
{% if title %}<h2>{{ title }}</h2>{% endif %}
{% if title %}<h2 class="cell--title">{{ title }}</h2>{% endif %}
{% if links|length == 1 %}
<a href={{ links.0.url }}>
{% endif %}

View File

@ -1,6 +1,6 @@
{% block cell-content %}
{% spaceless %}
{% if title %}<h2>{{ title }}</h2>{% endif %}
{% if title %}<h2 class="cell--title">{{ title }}</h2>{% endif %}
<div>
{% include "combo/asset_picture_fragment.html" %}
<form id="form-cell-choix-commune">

View File

@ -3,5 +3,5 @@
{% block cell-header %}
{% get_asset cell=cell type='picture' as asset %}
<h2>{% if asset %}<div style="background-image: url('{% asset_url asset size=cell_picture_size|default:"660x360" crop=cell_picture_crop|default:"center" upscale=cell_picture_upscale|default:False %}')"></div>{% endif %}{{ title }}</h2>
<h2 class="cell--title">{% if asset %}<div style="background-image: url('{% asset_url asset size=cell_picture_size|default:"660x360" crop=cell_picture_crop|default:"center" upscale=cell_picture_upscale|default:False %}')"></div>{% endif %}{{ title }}</h2>
{% endblock %}

View File

@ -3,7 +3,10 @@
{% block cell-header %}
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
<h2 {% if asset %}class="has-picture" style="background-image: url({% asset_url asset size="160x160" crop="center" %})"{% endif %}>{{ title }}</h2>
<h2 class="cell--title{% if asset %} has-picture{% endif %}"
{% if asset %}style="background-image: url({% asset_url asset size="160x160" crop="center" %})"{% endif %}>
{{ title }}
</h2>
{% if category_description %}
<div class="intro">
{{ category_description|safe }}

View File

@ -1,5 +1,5 @@
{% block cell-content %}
<h2>{{ title }}</h2>
<h2 class="cell--title">{{ title }}</h2>
<div class="cell--body">
<form>
<select id="commune--select-{{ cell.id }}">

View File

@ -1,6 +1,6 @@
{% load assets %}
{% block cell-content %}
<h2 class="choix-collectivite--title">
<h2 class="choix-collectivite--title cell--title">
{{ title }}
</h2>
<div class="cell--body">

View File

@ -1,4 +1,4 @@
<h2>{{ parameters.title }}</h2>
<h2 class="cell--title">{{ parameters.title }}</h2>
<ul class="actus--list tiles--list">
{% for fiche in json.data %}

View File

@ -1,4 +1,4 @@
<h2>{{ parameters.title }}</h2>
<h2 class="cell--title">{{ parameters.title }}</h2>
{% if parameters.layout == "grande" %}

View File

@ -1,4 +1,4 @@
<h2>{{ parameters.title }}</h2>
<h2 class="cell--title">{{ parameters.title }}</h2>
<ul class="peoples--list tiles--list">
{% for fiche in json.data %}

View File

@ -6,7 +6,7 @@
<div class="tile-picture" style="background-image: {% asset_css_url picture size="300x300" crop="center" format="JPEG" %}"></div>
<div class="tile-head">
<div class="tile-title">
<h2>{{title}}</h2>
<h2 class="cell--title">{{title}}</h2>
<h3>{{ producer.label }}</h3>
{% if description %}<div class="description">{{ description|safe }}</div>{% endif %}
<span class="producer" style="background-image: {% asset_css_url logo producer_logo %}">{{ producer.label }}</span>

View File

@ -6,7 +6,7 @@
<div class="tile-picture" style="background-image: {% asset_css_url cell.link_page.picture picture size="300x300" crop="center" format="JPEG" %}"></div>
<div class="tile-head">
<div class="tile-title">
<h2>{{title}}</h2>
<h2 class="cell--title">{{title}}</h2>
<h3>{{ producer.label }}</h3>
{% if cell.link_page.description %}<div class="description"><p>{{ cell.link_page.description }}</p></div>{% endif %}
<span class="producer" style="background-image: {% asset_css_url logo %}">{{ producer.label }}</span>

View File

@ -2,7 +2,7 @@
{% block cell-content %}
{% if cell.title %}
<h2>{{ cell.title }}</h2>
<h2 class="cell--title">{{ cell.title }}</h2>
{% endif %}
<div class="gallery" id="gallery-{{cell.id}}">
{% with cell.image_set.all as images %}

View File

@ -4,7 +4,7 @@
<div class="tile airquality">
<div class="tile-head">
<div class="tile-title">
<h2><a href="{% firstof alerte.links.0.href "http://www.air-rhonealpes.fr/" %}">{{alerte.title}}</a></h2>
<h2 class="cell--title"><a href="{% firstof alerte.links.0.href "http://www.air-rhonealpes.fr/" %}">{{alerte.title}}</a></h2>
</div>
</div>
<div class="tile-content">

View File

@ -11,7 +11,7 @@
{% endif %}
<div class="tile-head">
<div class="tile-title">
<h2>{{commerce.properties.nom}}<br><span class="subtitle">{{commerce.properties.categorie}}</span></h2>
<h2 class="cell--title">{{commerce.properties.nom}}<br><span class="subtitle">{{commerce.properties.categorie}}</span></h2>
<span class="producer" style="background-image: url({% asset_url "logo:toodego" %})">Grand Lyon</span>
</div>
</div>

View File

@ -11,7 +11,7 @@
{% endif %}
<div class="tile-head">
<div class="tile-title">
<h2>{{urgence_sanitaire.properties.nom}}<br><span class="subtitle">{{urgence_sanitaire.properties.sscategorie}}</span></h2>
<h2 class="cell--title">{{urgence_sanitaire.properties.nom}}<br><span class="subtitle">{{urgence_sanitaire.properties.sscategorie}}</span></h2>
<span class="producer" style="background-image: url({% asset_url "logo:toodego" %})">Grand Lyon</span>
</div>
</div>

View File

@ -1,6 +1,6 @@
{% load i18n %}{% comment %}overload to show an unique sorted list of forms {% endcomment %}
{% block cell-content %}
<h2>{{ cell.custom_title|default:_('Current Forms') }}</h2>
<h2 class="cell--title">{{ cell.custom_title|default:_('Current Forms') }}</h2>
{% if forms %}
<div class="links-list current-forms current-forms list-of-forms">
{% include "combo/wcs/list_of_forms.html" %}

View File

@ -1,6 +1,6 @@
{% load i18n %}{% comment %}overload to show an unique sorted list of forms {% endcomment %}
{% block cell-content %}
<h2>{{ cell.custom_title|default:_('All Forms') }}</h2>
<h2 class="cell--title">{{ cell.custom_title|default:_('All Forms') }}</h2>
{% if forms %}
<div class="links-list user-all-forms list-of-forms">
{% include "combo/wcs/list_of_forms.html" %}

View File

@ -1,6 +1,6 @@
{% load i18n %}{% comment %}overload to show an unique sorted list of forms {% endcomment %}
{% block cell-content %}
<h2>{{ cell.custom_title|default:_('Done Forms') }}</h2>
<h2 class="cell--title">{{ cell.custom_title|default:_('Done Forms') }}</h2>
{% if forms %}
<div class="links-list list-of-forms">
{% include "combo/wcs/list_of_forms.html" %}

View File

@ -3,5 +3,5 @@
{% block cell-header %}{% endblock cell-header %}
{% block cell-top-content %}
<h2><span><span>{{ title }}</span></span><i class="opener"></i></h2>
<h2 class="cell--title"><span><span>{{ title }}</span></span><i class="opener"></i></h2>
{% endblock cell-top-content %}

View File

@ -3,5 +3,5 @@
{% block cell-header %}{% endblock cell-header %}
{% block cell-top-content %}
<h2><span><span>{{ title }}</span></span><i class="opener"></i></h2>
<h2 class="cell--title"><span><span>{{ title }}</span></span><i class="opener"></i></h2>
{% endblock cell-top-content %}