Fix Mobile Version

This commit is contained in:
Thibault Richy 2017-10-31 14:54:15 +01:00
parent ceccf7a2cb
commit 7d8eee4674
12 changed files with 2111 additions and 23 deletions

View file

@ -127,11 +127,7 @@ h3 {
margin-bottom: 10px;
font-size:20px;
}
@media (max-width: 990px){
.chicken {
display:none;
}
}
/*------------------Page Histoire d'Homme---------------------*/
@ -174,14 +170,7 @@ h3 {
margin-bottom:60px;
}
@media (max-width: 768px){
.wellness, .security {
flex-direction: column;
}
.wellness .wellnessText {
margin-top:20px;
}
}
.wellness img {
max-width:700px;
@ -232,6 +221,37 @@ h3 {
text-align:center;
}
@media (max-width: 768px){
.wellness img {
max-width:700px;
width:100%;
height:auto;
}
.wellness, .security {
display:block;
flex-direction: column;
}
.wellness .wellnessText {
margin-top:20px;
max-width: 100%;
}
.imgText .securityText {
width:55%;
font-size:1.3em;
}
}
@media (max-width: 480px){
.wellness .wellnessText p {
display:block;
font-size:1.2em;
text-align: justify;
}
.security p {
text-align:justify;
}
}
/*-----------------------Savoir Faire ----------------------*/
.listSavoir {
@ -683,6 +703,9 @@ h3 {
}
}
@media (max-width: 768px){
.caption-title.specTitle h1 span {
font-size:23px;
}
#ninja_forms_field_1_div_wrap, #ninja_forms_field_6_div_wrap, #ninja_forms_field_7_div_wrap, #ninja_forms_field_2_div_wrap, #ninja_forms_field_8_div_wrap, #ninja_forms_field_9_div_wrap, #ninja_forms_field_11_div_wrap {
width:100%;
}
@ -706,10 +729,164 @@ h3 {
.mobileperf01, .mobileperf02 {
display:block;
}
#header .header-top nav {
width:175px;
}
#header .header-top nav a {
color: #FFF;
font-size:13px;
font-weight: 400;
width:100%;
}
#header .header-top nav a:hover {
color: #d0ae88;
}
#header .header-top nav a:first-child{
padding-bottom:17px;
border-bottom: 1px solid #d0ae88;
}
#header .header-top nav a:nth-child(2){
margin-top:16px;
}
.banner .caption-title h1 {
font-size: 23px;
}
.grp-ldc {
flex-direction: column;
}
.grp-ldc div {
margin:0;
margin-top:10px;
text-align: justify;
}
p {
font-size:1em;
text-align: justify;
}
.ms-nav-next {
right: 30% !important;
}
.ms-nav-prev {
left: 30% !important;
}
.image-bg .section-title {
font-size:30px;
}
.image-bg p {
font-size:1em;
}
.chicken {
right:-14px;
max-width:90px;
margin-top:22px;
}
.listSavoir ul li {
font-size:1em;
text-align: justify;
}
.title-filiere {
font-size:1.1em;
}
.marked-gold {
font-size: 1.1em;
}
.marked-gold.bigger {
font-size: 1.1em;
}
.caption-title.specTitle {
min-width:250px;
}
.caption-title.specTitle h1 span {
font-size:23px;
}
.brand img {
width:130px;
}
.international{
margin-top:15px;
}
.formSbv select {
background-color:#FFF !important;
font-size:0.8em;
}
#ninja_forms_field_4 {
background-color:#FFF !important;
}
.companies {
width:100%;
}
.companies p {
text-align:center;
}
.ornament-bg .img-text-holder .text-side p {
display:block;
}
.accelerators-block .accelerator img {
object-position: 50% 0;
}
.solution-illustration .img-box {
width:50%;
}
}
@media (max-width: 479px){
.solution-illustration .img-box {
width:100%;
}
.pictures-holder .picture-holder.picture-1 {
width:39%;
}
.text-content .illustration-block .illstr:first-child {
width:90px;
}
.text-content .illustration-block .illstr{
width:170px;
}
.text-content .illustration-block .illstr:last-child {
width:120px;
}
.w50-wrapper .w50-container {
padding: 0 15px;
}
.w50-wrapper .w50-container img {
margin-top:18px;
}
.solution-illustration .img-box {
min-height:200px;
font-size : 17px;
}
.solution-illustration .img-box:nth-child(3) {
min-height: 180px;
}
.solution-illustration .img-box img {
width:40%;
height:auto;
}
.solution-illustration .img-box:nth-child(3) img{
width:30%;
}
.products .products-carousel .owl-nav .owl-prev {
left:15px;
}
.products .products-carousel .owl-nav .owl-next {
right:15px;
}
.logos-holder img {
margin-right:10px;
}
}
.brands-carousel .owl-stage-outer {
min-height:250px !important;
}

View file

@ -0,0 +1,147 @@
<?php
/**
* Template Name: HomePageTemplate
* @package WordPress
*/
get_header(); ?>
<?php masterslider(4); ?>
<main id="main">
<div id="content">
<section class="accelerators-block">
<div class="container">
<div class="accelerators-holder">
<a href="<?=get_permalink(369);?>" class="accelerator">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/une-histoire-img1.jpg" class="grayscale grayscale-fade" alt="une-histoire">
<div class="acc-title-holder">
<div class="acc-title">
<span>UNE HISTOIRE</span>
<strong>DE TERRE</strong>
</div>
</div>
</a>
<a href="<?=get_permalink(372);?>" class="accelerator">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/une-histoire-img3.jpg" class="grayscale grayscale-fade" alt="une-histoire">
<div class="acc-title-holder">
<div class="acc-title">
<span>UNE HISTOIRE</span>
<strong>D’HOMMES</strong>
</div>
</div>
</a>
<a href="<?=get_permalink(338);?>" class="accelerator">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/une-histoire-img2.jpg" class="grayscale grayscale-fade" alt="une-histoire">
<div class="acc-title-holder">
<div class="acc-title">
<span>UNE HISTOIRE</span>
<strong>DE SAVOIR- FAIRE</strong>
</div>
</div>
</a>
</div>
</div>
</section>
<section class="ornament-bg">
<div class="container">
<div class="content-wrapper">
<h2 class="section-title
marked-red">NOS <span class="bold">ACTUALITÉS</span></h2>
<?php
$args = array( 'post_type' => 'post', 'posts_per_page' => 1 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div class="img-text-holder">
<?php the_post_thumbnail('medium-large'); ?>
<div class="text-side">
<h6><?php the_title(); ?></h6>
<span class="marked-red">Publiée le <time datetime="2015-06-05"><?php echo get_the_date(); ?></time></span>
<div class="divider"></div>
<p><?php the_excerpt(); ?></p>
<a href="<?php the_permalink(); ?>" class="bottom-r-link">Lire la suite &gt; </a>
</div>
</div>
<?php endwhile; ?>
<div class="btn-holder">
<a href="<?=get_permalink(328);?>" class="button-red">Toutes les actualités</a>
</div>
</div>
</div>
</section>
<section class="brands">
<div class="container">
<div class="carousel-holder">
<h2 class="section-title
marked-gold">NOS <span class="bold">MARQUES</span></h2>
<div class="owl-carousel brands-carousel">
<?php
$pstary = get_posts( array(
'posts_per_page' => -1,
'post_type' => 'picto',
'orderby' => 'date',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'type_picto',
'compare' => '==',
'value' => 'marque'
)
)
)
);
foreach( $pstary as $result )
{
$id = $result->ID;
$title = $result->post_title;
$content = $result->post_content;
$url_img = get_field('image_picto', $id);
?>
<img src="<?php echo $url_img; ?>" alt="<?=$title; ?>">
<?php } ?>
</div>
</div>
</div>
</section>
<section class="image-bg">
<div class="container">
<h2 class="section-title
marked-middle-gray">NOS <span class="bold">CERTIFICATIONS</span></h2>
<p>Soucieux de vous offrir le meilleur, les sites de production sont contrôlés et accrédités régulièrement par des organismes de contrôle reconnus. </p>
<div class="pictures-holder">
<?php
$count=1;
$pstary = get_posts( array(
'posts_per_page' => -1,
'post_type' => 'picto',
'orderby' => 'date',
'order' => 'ASC',
'meta_query' => array(
array(
'key' => 'type_picto',
'compare' => '==',
'value' => 'certification'
)
)
)
);
if( count($pstary) > 0 )
{
foreach( $pstary as $result )
{
?>
<div class="picture-holder picture-<?=$count?>"><img src="<?php the_field("image_picto",$result->ID); ?>" alt="<?=$result->post_title?>"></div>
<?php
$count++;
}
}
?>
</div>
</div>
</section>
</div>
</main>
<?php get_footer(); ?>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 176 KiB

View file

@ -1,7 +1,7 @@
<?php
/**
Theme Name: LDC
Description: Website designed by vineeth
* Theme Name: LDC
* Description: Website designed by vineeth
*/
get_header(); ?>

View file

@ -124,7 +124,7 @@ get_header(); ?>
</div>
</div>
<p style="margin-bottom:0;"><span class='bold'>International : </span></p>
<p class="international" style="margin-bottom:0;"><span class='bold'>International : </span></p>
<div class="brand">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/prims.png" alt="Prim's" class="specImg" />
<div class=" fixMargin">

View file

@ -56,11 +56,13 @@ get_header(); ?>
<div class="illstr"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icon-1080.png" alt="icon-1080"></div>
<div class="illstr"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo_volaille-francaise.png" alt="icon-volaille-francaise"></div>
</div>
<p>
<strong class="marked-gold">
Nous nous engageons sur l'origine des volailles nées,<br>
Nous nous engageons sur l'origine des volailles nées,
élevées, abattues et transformées en France en respectant les
normes françaises,<br> et bien plus encore.
normes françaises, et bien plus encore.
</strong>
</p>
</div>
</div>

View file

@ -13,7 +13,7 @@ get_header(); ?>
</ul>
<div class="caption-title specTitle">
<h1>
<span class="bold" style="font-size: 40px;">Nos solutions au service de nos clients</span>
<span class="bold">Nos solutions au service de nos clients</span>
</h1>
</div>
</div>
@ -26,7 +26,7 @@ get_header(); ?>
<span class="text">Nos solutions </span>
</h3>
</div>
<div class="text-holder">
<div class="text-holder container">
<p>
<span>Entières, découpées, élaborées, crues ou cuites, fraîches ou surgelées...</span>
<strong>Nous travaillons différentes espéces de volailles.</strong>

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB