This commit is contained in:
2019-01-29 16:37:05 +01:00
parent 1edd258ac5
commit 6d1452de31
228 changed files with 1542 additions and 982 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,17 +0,0 @@
function jcarousel() {
$('.slider').bxSlider({
// preloadImages: 'visible',
minSlides: 1,
maxSlides : 3,
// mode: 'fade',
captions: true,
pagerCustom: '#bx-pager',
adaptiveWidth: true,
// slideWidth: 600
});
}
jQuery(document).ready(function($){
jcarousel();
});
@@ -1,23 +0,0 @@
.default-animation {
transition: all 0.5s ease;
}
// Pulse Animation
.pulse {
animation-name: pulse_animation;
animation-duration: 2000ms;
transform-origin:70% 70%;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes pulse_animation {
0% { transform: scale(1); }
30% { transform: scale(1); }
40% { transform: scale(1.08); }
50% { transform: scale(1); }
60% { transform: scale(1); }
70% { transform: scale(1.05); }
80% { transform: scale(1); }
100% { transform: scale(1); }
}
@@ -1,13 +0,0 @@
.bx-wrapper{
.slider{
& > div{
// width: auto!important;
}
}
.img{
img{
width: auto;
height: 300px;
}
}
}
@@ -1,90 +0,0 @@
#start{
section{
position: relative;
margin-top: -10px;
margin-bottom: 100px;
padding-top: 5px;
& > h2, & > h3{
text-align: center;
}
h3{
width: 100%;
}
}
h2{
text-align: center;
width: 350px;
background: white;
z-index: 1;
margin: auto;
margin-top: -35px;
}
.filet{
z-index: -1;
width: auto;
height: 2px;
background: black;
}
#home{
width: 60%;
margin: 0 auto 100px auto;
}
#metier{
background: #bd9a8428;
display: inline-flex;
flex-wrap: wrap;
justify-content: space-around;
.block{
width: 35%;
min-width: 350px;
&:nth-of-type(n+3){
position: relative;
.title{
position: absolute;
z-index: 1;
transform: rotate(-35deg);
background: red;
}
.img{
height: auto;
position: relative;
.content{
position: absolute;
top: 0;
left: 0;
display: none;
height: 100%;
background: #0f265cff;
opacity: 0.9;
p,ul,li{
color: white;
}
}
&:hover{
.content{
display: block;
}
}
}
}
}
}
#référence{
background: #fff59b8c;
}
#contact{
display: inline-flex;
width: 100%;
p{
&:nth-of-type(1){
width: 60%;
}
&:nth-of-type(2){
width: 40%;
}
}
.block{
display: none;
}
}
}
@@ -1,72 +0,0 @@
{% extends 'partials/base.html.twig' %}
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% import _self as macro %}
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
{% block javascripts %}
{% if show_onpage_menu %}
{% do assets.add('theme://js/singlepagenav.min.js') %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block bottom %}
{{ parent() }}
{% if show_onpage_menu %}
<script>
// singlePageNav initialization & configuration
$('ul.navigation').singlePageNav({
offset: $('#header').outerHeight(),
filter: ':not(.external)',
updateHash: true,
currentClass: 'active'
});
</script>
{% endif %}
{% endblock %}
{% block header_navigation %}
{% if show_onpage_menu %}
<ul class="navigation">
{% for module in page.collection() if module.header.visible is not same as(false) %}
{% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
<li><a class="{{ current_module }}" href="#{{ macro.pageLinkName(module.menu) }}">{{ module.menu }}</a></li>
{% endfor %}
{% for mitem in site.menu %}
<li>
<a {% if mitem.class %}class="{{ mitem.class }}"{% endif %} href="{{ mitem.url }}">
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
{{ mitem.text }}
</a>
</li>
{% endfor %}
</ul>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block body %}
<section id="home">
{{ content }}
</section>
{% for module in page.collection() %}
<div class="filet"></div>
<h2>{{ module.title|raw }}</h2>
<section id="{{ macro.pageLinkName(module.menu) }}">
{{ module.content|raw }}
{% for children in module.collection() %}
{{children.content}}
{% endfor %}
</section>
{% endfor %}
{% endblock %}
@@ -1,58 +0,0 @@
{% set image = page.media.images|first %}
{% set tax = header.taxonomy.category %}
{% if tax %}
<div class="block">
{% if image %}
<div>
{{ content|raw }}
</div>
<div>
{% if image %}
{{ image.html|raw }}
{% endif %}
</div>
{% else %}
<h3>{{page.title}}</h3>
{{ content|raw }}
{% endif %}
<div class="slider">
{% for module in page.collection() %}
<div>
{{module.content|raw}}
</div>
{% endfor %}
</div>
</div>
{% else %}
<div class="block">
{% if image %}
<div>
{{ content|raw }}
</div>
<div>
{% if image %}
{{ image.html|raw }}
{% endif %}
</div>
{% else %}
<h3>{{page.title}}</h3>
{{ content|raw }}
{% endif %}
{% for module in page.collection() %}
{{module.content|raw}}
{% endfor %}
</div>
{% endif %}
@@ -1,16 +0,0 @@
{% set image = page.media.images|first %}
<div class="block">
<div class="title">
<h3>{{ page.title|raw }}</h3>
</div>
<div class="img">
{{ image.html|raw }}
{% if content %}
<div class="content">
{{ content|raw }}
</div>
{% endif %}
</div>
</div>
@@ -1,98 +0,0 @@
{% 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-compiled/theme'~compress) %}
{% endblock %}
{{ assets.css()|raw }}
{% block javascripts %}
{% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.bxslider.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/scritps.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{{ assets.js()|raw }}
{% endblock head %}
</head>
<body id="top">
{% block header %}
<section class="header">
<nav class="navbar">
{% block header_navigation %}
{% include 'partials/navigation.html.twig' %}
{% endblock %}
</nav>
<div class="title">
<h1><a href="{{ home_url }}">{{site.title}}</a></h1>
<div class="filet"></div>
</div>
<section class="logo">
<section id="user">
<div class="name">
<p>{{ theme_config.profile.name | default(site.author.name) }}</p>
</div>
<div class="pro">
<p>{{ site.author.profession }}</p>
</div>
</section>
{% include 'partials/logo.html.twig' %}
{% for module in page.find('/home').children.order('date', 'desc') %}
<section class="why_lsdo close">
{{module.content}}
<svg>
<path d="M 5,0 100,5 0,35 Z" style="fill:#964587" />
</svg>
</section>
{% endfor %}
</section>
<div class="mobile-menu">
<div class="button_container" id="toggle">
<span class="top"></span>
<span class="middle"></span>
<span class="bottom"></span>
</div>
</div>
</section>
{% endblock %}
<section id="start">
{% block body %}{% endblock %}
</section>
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
</html>
@@ -1,7 +0,0 @@
<section id="footer">
{% for module in page.find('/contact').children.order('date', 'desc') %}
<ul class="nav-footer">
<li><a href="#{{ macro.pageLinkName(module.menu) }}">{{module.title}}</a></li>
</ul>
{% endfor %}
</section>

Before

Width:  |  Height:  |  Size: 193 KiB

After

Width:  |  Height:  |  Size: 193 KiB

@@ -1,4 +1,4 @@
name: le_style_de_lours
name: le_style_de_lours_modif
version: 1.0
description: Theme pour le site internet Le style de l'ours
icon: microchip
@@ -14,6 +14,19 @@ form:
active: 1
fields:
content:
fields:
header.blog.config:
type: toggle
label: Gallerie
highlight: 1
options:
1: Oui
0: Non
validate:
type: bool
advanced:
fields:
overrides:
@@ -90,5 +103,3 @@ form:
import@:
type: partials/blog-bits
context: blueprints://pages
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
/**
* Owl Carousel v2.3.4
* Copyright 2013-2018 David Deutsch
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
*/
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
@@ -0,0 +1,6 @@
/**
* Owl Carousel v2.3.4
* Copyright 2013-2018 David Deutsch
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
*/
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}

Before

Width:  |  Height:  |  Size: 444 KiB

After

Width:  |  Height:  |  Size: 444 KiB

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long
@@ -0,0 +1,53 @@
function jcarousel() {
$('.owl-carousel').owlCarousel({
margin:20,
loop:true,
autoWidth:true,
nav: true
});
}
function scrollHeader() {
$(function() {
var header = $(".header");
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 500) {
header.removeClass('header').addClass("darkHeader");
} else {
header.removeClass("darkHeader").addClass('header');
}
});
});
}
function open() {
var $pk = $('.why_lsdo > h3');
var $answer = $('.why_lsdo ');
$pk.click(function() {
// $answer.toggleClass('close');
if ($('.why_lsdo').hasClass('open')){
$('.why_lsdo').removeClass('open');
$('.why_lsdo').addClass('close');
} else {
$('.why_lsdo').removeClass('close');
$('.why_lsdo').addClass('open');
}
});
}
jQuery(document).ready(function($){
jcarousel();
scrollHeader();
open();
});

Some files were not shown because too many files have changed in this diff Show More