modif css

This commit is contained in:
2020-01-20 11:51:20 +01:00
parent 7ca69e1549
commit b81be5ec03
178 changed files with 14005 additions and 187 deletions
@@ -0,0 +1,59 @@
{% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
{% set grid_size = theme_var('grid-size') %}
{% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% include 'partials/metadata.html.twig' %}
<link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
<link rel="canonical" href="{{ page.url(true, true) }}" />
{% block stylesheets %}
{% do assets.addCss('theme://css/hamburgers.css') %}
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
{% endblock %}
{{ assets.css()|raw }}
{% block javascripts %}
{% do assets.addJs('theme://js/jquery-3.4.1.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.lazy.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{{ assets.js()|raw }}
{% endblock head %}
</head>
<body id="top" class="{{ header.title|hyphenize }}">
{% block header %}
{% endblock %}
<section id="start">
{% block body %}
<div class="body-center" id="text_figli">
{% block content %}
{% endblock %}
</section>
{% block aside %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% endblock %}
</section>
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
</html>
@@ -0,0 +1,18 @@
<div class="content-title">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
<div>
{% include 'partials/blog/taxonomy.html.twig' %}
{% include 'partials/blog/date.html.twig' %}
</div>
</div>
<div class="e-content">
{{ page.content|raw }}
</div>
<div class="card-image">
{% for image in page.media.images %}
<img class="lazy" data-src="{{image.url}}" alt="images">
{% endfor %}
</div>
@@ -0,0 +1,42 @@
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'-', 'é':'e', ',':'',':':'','.':'','(':'',')':'','?':'', "": '','ê':'e' }) }}{% endmacro %}
{% import _self as macro %}
{% set image = page.media.images|first %}
{% if image %}
<!-- card projet -->
<div class="card">
<div id="{{ page.folder }}" class="card-image">
<a href="{{ page.url }}">
<div class="card-header">
{% if page.header.title %}
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
{% endif %}
{% if page.header.taxonomy.tag %}
{% include 'partials/blog/taxonomy.html.twig' %}
{% endif %}
{% if page.header.date %}
{% include 'partials/blog/date.html.twig' %}
{% endif %}
</div>
<img class="lazy" data-src="{{image.url}}" alt="Projet">
</a>
</div>
</div>
{% else %}
<!-- card commanditaire -->
<div class="card">
<div id="{{ page.folder }}" class="card-image">
<!-- <a href="{{ page.url }}"> -->
<div class="card-title">
{% if page.header.title %}
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
{% endif %}
</div>
<!-- </a> -->
</div>
</div>
{% endif %}
@@ -0,0 +1,6 @@
<span>&#x2022;</span>
<span class="blog-date">
<time class="dt-published" datetime="{{ page.date|date("Y") }}">
{{ page.date|date("Y") }}
</time>
</span>
@@ -0,0 +1,32 @@
<div class="other_projets">
<h3>Les autres projets <span class="{{page.parent.title|lower}}">{{page.parent.title|lower}}s</span></h3>
{% set collection_random = page.parent.collection|slice(1,4) %}
{% for item in collection_random %}
{% if item.title == page.title == false %}
<div class="card">
<div class="card-images">
<a href="{{item.url}}">
{% for image in item.media.images|slice(0,1) %}
{{ image.html }}
{% endfor %}
</a>
</div>
<div class="card-header">
{% if item.header.title %}
{% include 'partials/blog/title.html.twig' with { 'page': item } %}
{% endif %}
{% if item.header.taxonomy.tag %}
<!-- <span>&#x2022;</span> -->
{% include 'partials/blog/taxonomy.html.twig' with { 'page': item } %}
{% endif %}
{% if item.header.date %}
<!-- <span>&#x2022;</span> -->
{% include 'partials/blog/date.html.twig' with { 'page': item } %}
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
@@ -0,0 +1,8 @@
<div class="p-summary e-content">
{% if page.summary != page.content %}
{{ page.summary|raw }}
{% else %}
{{ page.content|raw }}
{% endif %}
</div>
@@ -0,0 +1,8 @@
{% if page.taxonomy.tag %}
<span>&#x2022;</span>
<span class="tags">
{% for tag in page.taxonomy.tag %}
{{ tag }}
{% endfor %}
</span>
{% endif %}
@@ -0,0 +1,12 @@
{% set title_level = title_level ?: 'h2' %}
{% if page.header.link %}
<{{ title_level }}>
{% if page.header.continue_link is not same as(false) %}
<a href="{{ page.url }}"><i></i></a>
{% endif %}
{{ page.title }}
</{{ title_level }}>
{% else %}
<{{ title_level }}>{{ page.title }}</{{ title_level }}>
{% endif %}
@@ -0,0 +1,2 @@
<footer class="section bg-gray">
</section>
@@ -0,0 +1,6 @@
{% if form.message %}
{% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
{% set status_mapping = {'success':'green', 'error': 'red', 'warning': 'yellow'} %}
{% set message = inline_errors and form.messages ? "FORM.VALIDATION_FAIL"|t : form.message %}
<div class="toast toast-{{ form.status }} {{ status_mapping[form.status] ?: 'green' }} mt-2 mb-2">{{ message|raw }}</div>
{% endif %}
@@ -0,0 +1,7 @@
<section id="{{ id }}" class="section modular-hero hero {{ page.header.hero_classes }} {{ page.header.background.parallax ? 'parallax' : '' }}" {% if hero_image %}style="background-image: url({{ hero_image.url }});"{% endif %}>
<div class="image-overlay"></div>
<section class="container {{ grid_size }}" style="text-align: {{ page.header.hero_align|default('center') }}">
{{ content|raw }}
</section>
<i id="to-start" class="pulse fa fa-angle-down"></i>
</section>
@@ -0,0 +1,11 @@
<div id="item" class="column">
{% block item %}{% endblock %}
</div>
{% block footer %}
{% include 'partials/blog/other_projets.html.twig' %}
{% endblock %}
{% block aside %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
@@ -0,0 +1,9 @@
{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
<a href="{{ home_url }}" class="navbar-brand mr-10">
{% if logo %}
{% set logo_file = (logo|first).name %}
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.name }}" />
{% else %}
{% include('@images/grav-logo.svg') %}
{% endif %}
</a>
@@ -0,0 +1,17 @@
{% set type_mapping = {'info':'success', 'error': 'error', 'warning': 'warning'} %}
{% set icon_mapping = {'info':'checkmark', 'error':'wrong', 'warning':'information'} %}
{% if grav.messages.all %}
<div id="messages">
{% for message in grav.messages.fetch %}
{% set scope = message.scope|e %}
{% set type = type_mapping[scope] %}
{% set icon = icon_mapping[scope] %}
<div class="toast toast-{{ type }} {{ scope }}">
<i class="icon dripicons-{{ icon }}"></i> {{ message.message|raw }}
</div>
{% endfor %}
</div>
{% endif %}
@@ -0,0 +1,6 @@
{% import 'macros/macros.html.twig' as macros %}
<ul {{ tree ? 'class="tree"' : '' }}>
{{ macros.nav_loop(pages) }}
</ul>
@@ -0,0 +1,15 @@
<ul class="related-pages menu">
{% for related_path, score in related_pages %}
{% set related = grav['pages'].get(related_path) %}
{% if related %}
<li class="menu-item">
{% if config.plugins.relatedpages.show_score %}
<div class="menu-badge">
<span class="label lable-primary">{{ score }}</span>
</div>
{% endif %}
<a href="{{ related.url }}" title="{{ related.title }}">{{ related.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
@@ -0,0 +1,15 @@
<div class="sidebar-right">
<div id="icone_list">
<button class="hamburger hamburger--slider" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
</div>
<div class="list-projets close">
<div class="container">
{% include 'partials/taxonomylist.html.twig' with { 'taxonomy':'category'} %}
</div>
</div>
</div>
@@ -0,0 +1,26 @@
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% macro pageLinkName(text) %}
{{ text|lower|replace({' ':'_', 'é':'e'}) }}
{% endmacro %}
{% import _self as macro %}
{% for tax,value in taxlist[taxonomy] %}
<ul>
<span class="cat">{{ tax }}</span>
{% set options = { items: {'@taxonomy': {'category': tax} } } %}
{% set my_collection = page.collection(options) %}
{% for i in my_collection %}
{% if i.media.images|first %}
<li class="{{i.parent.folder}}">
<a id="{{i.parent.folder}}" href="{{i.url}}">{{i.title}}</a>
{% set image = page.media.images|first %}
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}