responsive pages

This commit is contained in:
Caroline Girard 2019-03-15 12:19:23 +01:00
parent ef1826e92b
commit 961deef328
41 changed files with 2490 additions and 1294 deletions

File diff suppressed because it is too large Load Diff

View File

@ -51,23 +51,16 @@ body{
.bx-wrapper{ .bx-wrapper{
margin:0; margin:0;
} }
.bx-controls{ .bx-controls{
position:absolute; position:absolute;
bottom:40px; bottom:40px;
left:0; left:0;
right:0; right:0;
} }
.slide{ .slide{
.link_overlay{
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
}
position:relative; position:relative;
.description{ .description{
position:absolute; position:absolute;
@ -75,14 +68,14 @@ body{
right:50px; right:50px;
background:rgba(255,255,255,0.85); background:rgba(255,255,255,0.85);
width:590px; width:590px;
} }
.logo{ .logo{
position:absolute; position:absolute;
top:30px; top:30px;
left:30px; left:30px;
width:135px; width:135px;
} }
.content{ .content{
text-decoration:none; text-decoration:none;
@ -95,10 +88,10 @@ body{
text-transform:uppercase; text-transform:uppercase;
margin-top:0; margin-top:0;
} }
} }
} }
} }
@ -136,8 +129,8 @@ h1{
margin-top:0; margin-top:0;
text-transform:uppercase; text-transform:uppercase;
font-weight:500; font-weight:500;
} }
#main_content{ #main_content{
@ -168,44 +161,43 @@ h1{
h2{ h2{
color:white; color:white;
} }
fieldset{ fieldset{
border:0; border:0;
padding:0; padding:0;
margin:0; margin:0;
} }
table{ table{
width:600px !important;
max-width:100%; max-width:100%;
border-collapse:collapse; border-collapse:collapse;
td{ td{
padding-bottom:12px; padding-bottom:12px;
} }
} }
input, textarea{ input, textarea{
box-sizing:border-box; box-sizing:border-box;
padding:12px 15px; padding:12px 15px;
font-size:1em; font-size:1em;
width:100%; width:100%;
border:0; border:0;
} }
.error{ .error{
color:red; color:red;
} }
.submit{ .submit{
width:600px; //width:600px;
max-width:100%; max-width:100%;
text-align:right; text-align:right;
padding:14px 0; padding:14px 0;
padding-top:0px; padding-top:0px;
} }
.btn{ .btn{
border-color:white !important; border-color:white !important;
color:white; color:white;
@ -229,7 +221,7 @@ h1{
padding:0; padding:0;
margin:0; margin:0;
} }
#place,#contacts{ #place,#contacts{
display:inline-block; display:inline-block;
padding:25px 0; padding:25px 0;
@ -237,7 +229,7 @@ h1{
color:rgba(0,0,0,0.6); color:rgba(0,0,0,0.6);
line-height:19px; line-height:19px;
text-align:left; text-align:left;
} }
#contacts{ #contacts{
padding-right:50px; padding-right:50px;
@ -245,7 +237,7 @@ h1{
#place{ #place{
padding-right:35px; padding-right:35px;
} }
#logos{ #logos{
padding:15px 0; padding:15px 0;
float:left; float:left;
@ -258,7 +250,7 @@ h1{
#actus{ #actus{
padding:20px 0; padding:20px 0;
padding-bottom:50px; padding-bottom:50px;
.blog_img{ .blog_img{
display:block; display:block;
margin:auto; margin:auto;
@ -270,7 +262,7 @@ h1{
color:#2c4709; color:#2c4709;
font-weight:bold; font-weight:bold;
strong{ strong{
color:#00893f; color:#00893f;
} }
} }
@ -279,7 +271,7 @@ h1{
font-weight:500; font-weight:500;
margin-bottom:-10px; margin-bottom:-10px;
padding-bottom:0; padding-bottom:0;
} }
#left_actus{ #left_actus{
float:right; float:right;
@ -288,21 +280,26 @@ h1{
text-align:center; text-align:center;
} }
} }
#right_actus{ #right_actus{
float:left; float:left;
width:38%; width:38%;
} }
} }
td {
width: 50%;
vertical-align: top;
padding-right: 6px;
}
.actu{ .actu{
.img{ .img{
float:left; float:left;
width:260px; width:260px;
background:center center no-repeat; background:center center no-repeat;
} }
.description{ .description{
margin-left:280px; margin-left:280px;
@ -314,7 +311,7 @@ h1{
#bottom_actus{ #bottom_actus{
background:#ececec; background:#ececec;
padding:40px 0; padding:40px 0;
.breve{ .breve{
width:30%; width:30%;
margin:20px 1.5%; margin:20px 1.5%;
@ -324,7 +321,7 @@ h1{
h2{ h2{
background:no-repeat bottom left; background:no-repeat bottom left;
background-image:url('/bottom-lines.png'); background-image:url('/bottom-lines.png');
background-size: 225px; background-size: 225px;
padding-top:20px; padding-top:20px;
@ -333,8 +330,8 @@ h2{
margin-top:0; margin-top:0;
text-transform:uppercase; text-transform:uppercase;
font-weight:500; font-weight:500;
} }
@ -353,23 +350,23 @@ h2{
left:0; left:0;
right:0; right:0;
left:0; left:0;
min-height:250px; min-height:250px;
background:black; background:black;
padding-top:0px; padding-top:0px;
background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 30%,rgba(0,0,0,0) 100%);
background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 30%,rgba(0,0,0,0) 100%);
z-index:2; z-index:2;
color:white; color:white;
text-align:center; text-align:center;
a{ a{
color:white; color:white;
text-decoration:none; text-decoration:none;
@ -389,7 +386,7 @@ h2{
font-weight:500; font-weight:500;
font-size:1.2em; font-size:1.2em;
text-transform:uppercase; text-transform:uppercase;
} }
.devis{ .devis{
background:#f2930d; background:#f2930d;
@ -401,7 +398,7 @@ h2{
color:black; color:black;
text-decoration:none; text-decoration:none;
font-size:1.2em; font-size:1.2em;
.color{ .color{
height:1em; height:1em;
width:5px; width:5px;
@ -409,13 +406,13 @@ h2{
top:2px; top:2px;
background:black; background:black;
display:inline-block; display:inline-block;
} }
border-bottom:1px dashed rgba(0,0,0,0.9); border-bottom:1px dashed rgba(0,0,0,0.9);
padding-bottom:10px; padding-bottom:10px;
margin-bottom:10px; margin-bottom:10px;
} }
.product_icon{ .product_icon{
text-align:center; text-align:center;
@ -426,14 +423,14 @@ h2{
padding-bottom:30px; padding-bottom:30px;
} }
#products{ #products{
a{ a{
text-decoration:none; text-decoration:none;
} }
h2{ h2{
background-position:center bottom; background-position:center bottom;
text-align:center; text-align:center;
} }
text-align:center; text-align:center;
img{ img{
@ -456,3 +453,240 @@ img{
max-width:100%; max-width:100%;
} }
#menu_top {
.bars {
display: none;
}
}
#footer {
padding: 20px 10px !important;
}
@media screen and (max-width: 880px) {
//page d'accueil
#menu_top {
position: relative;
top: 0px;
left: 0;
right: 0;
left: 0;
min-height: 80px;
padding-top: 0px;
background: none !important;
z-index: 5;
color: white;
text-align: center;
}
#logo_fond{
position:absolute;
top:0;
left:0;
height: 90px;
z-index:3;
}
#logo_france_rurale {
width: 240px;
height: auto !important;
}
.menu {
display: none;
//display:block;
position:fixed;
top:0;
bottom: 50%;
right: 0;
left: 35%;
background: black;
opacity: 0.88;
padding: 14% !important;
a{
color: rgba(255, 255, 255, 1) !important;
display: block !important;
padding: 8px 10px !important;
font-size: 16px !important;
}
}
#menu_top {
.menu {
padding: 15% 5px !important;
text-align: left;
}
}
.article .description {
padding: 25px;
}
.bars {
display: block !important;
position: absolute;
right: 25px;
top: 12px;
font-size: 30px;
color: #8CBD3A;
z-index:3;
}
.slide_home_wrapper .description {
height: 0;
width: 80% !important;
position: absolute;
text-align: center;
#contentdescription {
display: none;
}
h3 {
font-size: 17px;
}
p {
font-size: 14px;
padding: 10px;
}
}
.content h3 {
background-color: rgba(255, 255, 255, 0.5);
position: absolute;
bottom: -30px;
padding: 20px;
font-size: 15px !important;
}
//blog
.blog_img {
float: none;
}
.actu .img {
float: none;
width: 100% !important;
padding: 10px;
}
.actu {
height: auto !important;
}
#actus h2 {
position: relative;
font-size: 12px !important;
padding: 40px;
text-align: center;
}
#left_actus {
width: 100% !important;
}
#right_actus {
width: 100% !important;
.description {
width: 100% !important;
position: absolute;
padding: 20px;
}
}
.article {
}
//nos magasins
.columns {
float: none;
}
span {
font-size: 14px;
}
.columns .span_6 {
padding-bottom: 30px;
}
.columns .span_9 {
width: auto !important;
padding: 0 30px;
}
//actu
#bottom_actus{
padding-left: 15px;
.breve {
float: none;
width: 90%;
}
}
//table
.formulairecontact {
width: 100% !important;
}
#contacts {
padding-bottom: 90px !important;
}
#sub_footer {
padding: 5px 0 !important;
text-align: center;
#logos {
padding: 20px;
}
img {
height: 70px !important;
}
}
table {
padding-left: 20px;
}
//pages
#main_content {
width: auto;
}
.span_6 {
img {
padding-bottom: 20px;
width: 100% !important;
}
}
.rea-gal {
text-align: center;
}
.columns.span_4 {
width: 100%;
}
.columns.span_3 {
width: auto !important;
margin-bottom: 5px;
}
.center_block {
.columns.span_4 {
width: 70%;
margin-top: 10px;
}
}
}

View File

@ -0,0 +1,586 @@
body{
padding:0px;
background: url('/assets/front/fond.jpg');
}
header#top{
display:block;
background: url('/assets/front/top.png') repeat-x;
img{
width:120px;
float:left;
margin:20px 50px;
}
}
navigation#first_nav{
margin-top:50px;
margin-right:20px;
float:right;
a{
display:inline-block;
padding:10px;
color:black;
}
}
#main, #sidebar{
margin-top:50px !important;
}
#main{
header{
h1{
margin-bottom:10px;
}
h2{
margin-top:0em;
margin-bottom:1em;
}
}
img{
max-width:100%;
}
article{
margin-bottom:3em;
border-top:2px solid #97bc4a;
padding-top:1em !important;
aside{
img{
display:none;
}
*{
display:inline;
}
}
}
}
#sidebar{
padding:0% 2%;
background:#97bc4a;
img{
margin:0.5em 0;
}
color:white;
h3,a{
color:white;
}
}
comment{
message{
padding:10px;
}
author{
float:left;
width:200px;
text-align:center;
p{
text-align:center;
margin:0px;
}
.img{
height:120px;
width:120px;
border-radius:50%;
overflow:hidden;
display:inline-block;
img{
height:120px;
}
}
}
}
.clear{
clear:both;
}
footer{
margin-top:100px;
}
@media only screen and (min-width: 0px) {
header#top{
img{
width:120px;
margin:20px 5%;
}
}
#main{
margin:auto;
max-width:800px;
width:90%;
}
#sidebar{
margin:auto;
padding:2% !important;
max-width:800px;
width:86%;
img{
margin:0.5em 0;
max-width:98%;
}
}
.img_with_legend{
position:relative;
figcaption{
margin-top:5px;
}
}
}
@media only screen and (min-width: 769px) {
#main{
margin-left:2%;
max-width:800px;
width:69%;
float:left;
padding:0px;
article{
padding:0px 6%;
}
}
#sidebar{
float:right;
width:23%;
padding-top:0px !important;
min-height:1000px;
img{
max-width:100%;
margin:0.5em 0;
}
}
}
@media only screen and (min-width: 950px) {
#main{
margin-left:5%;
width:64%;
}
}
@media only screen and (min-width: 1200px) {
#main{
margin-left:18%;
width:53%;
}
#sidebar{
padding-top:0em !important;
}
article{
position:relative;
aside{
display:block;
position:absolute;
left : -39%;
top:-2px;
padding-top:0em;
line-height:1.6em;
width:42%;
text-align:center;
p{
margin:0px;
display:block !important;
}
img{
display:block !important;
margin:auto;
border-radius:50%;
}
time{
display:block;
}
*{
text-align:center;
}
}
}
.img_with_legend{
position:relative;
figcaption{
display:block;
position:absolute;
left : -35%;
width:32%;
top:10px;
*{
text-align:right;
}
}
}
}
#comments{
.comment{
margin-bottom:3em;
aside{
img{
float:left;
margin:auto;
border-radius:50%;
}
}
blockquote{
text-align:justify !important;
border-color : #97bc4a;
min-height:3em;
padding-right:0px;
p{
text-align:justify !important;
}
}
.header, blockquote{
margin-left:100px;
}
.header{
font-size: 0.95em;
line-height:1.6em;
img{
display:none;
}
}
}
}
#comment_form{
background:#e4f1d5;
background-color:rgba(127,182,55,0.2);
padding:20px;
padding-bottom:35px;
margin:0px 0px 0px 0px;
h3{
margin-top:0px;
text-transform:uppercase;
}
input,textarea{
background:white;
background-color:rgba(255,255,255,0.8);
padding:1%;
}
textarea{
line-height:1.6em;
}
label{
display:inline-block;
min-width:90px;
padding:5px;
}
.submit{
float:right;
@include border-radius(10px);
margin-top:-16px;
cursor:pointer;
&:hover{
background:#97bc4a;
color:white;
}
padding:1% 2%;
}
}
//iPhone
@media only screen and (max-width: 480px) {
body{
font-size:50%;
}
}
@media only screen and (max-width: 320px) {
body{
font-size:75%;
}
}
@media only screen and (max-width: 600px) {
header#top{
text-align:center;
img{
float:none;
display:block;
margin:auto;
}
navigation{
text-align:center;
float:none;
display:block;
margin-top:10px;
}
}
#comment_form{
margin:0px !important;
}
#comments{
.comment{
aside{
img{
float:left;
margin:auto;
border-radius:50%;
width:40px;
height:40px;
}
}
.header, blockquote{
margin-left:50px;
}
blockquote{
margin-left:10px;
}
}
}
}
footer{
display:block;
padding:1em;
font-size:0.95em;
line-height:1.4em;
border-top: #202020 2px solid;
border-bottom: #97BC4A 12px solid;
text-align:center;
}
#legals_large{
background:rgba(250,250,250,0.8);
position:fixed;
top:0px;
bottom:0px;
left:0px;
right:0px;
width:100%;
height:100%;
display:none;
.content{
background:rgba(250,250,250,0.95);
padding:10px 30px;
margin:auto;
width:90%;
max-width:600px;
border:1px solid gray;
}
}

View File

@ -0,0 +1,47 @@
.menu_itemlink_content{
display:block;
height:300px;
padding:1px 0;
text-align:center;
position:relative;
.overlay{
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background:rgba(0,0,0,0.5);
opacity:0;
transition-duration:0.2s;
}
h4{
margin:0;
padding:10px;
display:inline-block;
color:white;
font-size:1.1em;
position:absolute;left:0;
right:0;
}
&:hover{
.overlay{
opacity:1;
}
h4{
color:white;
}
}
}
.admin{
.menu_itemlink_content{
margin:10px;
} }

View File

@ -18,35 +18,35 @@
margin:auto; margin:auto;
max-width:1120px !important; max-width:1120px !important;
padding:0 40px; padding:0 40px;
.bx-viewport{ .bx-viewport{
background:transparent; background:transparent;
} }
.bx-prev{ .bx-prev{
top:auto; top:auto;
left:auto; left:auto;
bottom:20px; bottom:20px;
right:80px; right:80px;
} }
.bx-next{ .bx-next{
top:auto; top:auto;
left:auto; left:auto;
bottom:20px; bottom:20px;
right:60px; right:60px;
} }
.bx-pager{ .bx-pager{
display:none; display:none;
} }
} }
.home_blog_article{ .home_blog_article{
color:inherit; color:inherit;
.image{ .image{
width:50%; width:50%;
height:340px; height:340px;
@ -54,12 +54,12 @@
background:no-repeat center center; background:no-repeat center center;
position:relative; position:relative;
z-index:2; z-index:2;
} }
.description_container{ .description_container{
margin-left:50%; margin-left:50%;
margin-top:60px; margin-top:60px;
.description{ .description{
position:relative; position:relative;
left:-20px; left:-20px;
@ -68,13 +68,13 @@
padding:40px 60px; padding:40px 60px;
padding-left:80px; padding-left:80px;
margin-right:-20px; margin-right:-20px;
h3{ h3{
color:$orange; color:$orange;
margin:0; margin:0;
padding:0; padding:0;
} }
h2{ h2{
color:$dark_orange; color:$dark_orange;
@ -85,28 +85,28 @@
line-height:0.8em; line-height:0.8em;
} }
} }
} }
} }
} }
#home_image_actus{ #home_image_actus{
background:black; background:black;
.image_actu{ .image_actu{
float:left; float:left;
width:12.5%; width:12.5%;
&.large{ &.large{
width:12.5%; width:12.5%;
} }
&.medium{ &.medium{
width:12.5%; width:12.5%;
} }
.inner{ .inner{
margin:0px; margin:0px;
@ -120,9 +120,9 @@
} }
} }
} }
.inner{ .inner{
padding:20px; padding:20px;
background:$orange; background:$orange;
box-sizing:border-box; box-sizing:border-box;
@ -141,8 +141,8 @@
.shortcut{ .shortcut{
width:50%; width:50%;
float:left; float:left;
.inner{ .inner{
background:white; background:white;
margin:auto; margin:auto;
@ -152,7 +152,7 @@
background:no-repeat center center; background:no-repeat center center;
background-size:cover; background-size:cover;
} }
.description{ .description{
padding:20px; padding:20px;
text-align:center; text-align:center;
@ -162,7 +162,7 @@
line-height:0.8em; line-height:0.8em;
margin-top:5px; margin-top:5px;
} }
} }
} }
} }
@ -172,7 +172,7 @@
#home_petitions{ #home_petitions{
.more_link{ .more_link{
color:$orange; color:$orange;
&:hover{ &:hover{
@ -180,7 +180,7 @@
cursor :pointer; cursor :pointer;
} }
} }
.sign_link{ .sign_link{
margin-top:3em; margin-top:3em;
display: inline-block; display: inline-block;
@ -191,10 +191,10 @@
color: white; color: white;
cursor :pointer; cursor :pointer;
} }
.bx-pager{ .bx-pager{
display:none; display:none;
} }
@ -205,22 +205,22 @@
.home_petition_large{ .home_petition_large{
background: center center no-repeat ; background: center center no-repeat ;
background-size:cover; background-size:cover;
.inner{ .inner{
color:black; color:black;
background:white; background:white;
max-width:750px; max-width:750px;
margin:50px auto; margin:50px auto;
.description{ .description{
padding:20px; padding:20px;
height:220px; height:220px;
.left{ .left{
width:60%; width:60%;
float:left; float:left;
box-sizing:border-box; box-sizing:border-box;
} }
.right{ .right{
padding:20px; padding:20px;
@ -230,10 +230,10 @@
float:none; float:none;
} }
} }
} }
} }
@ -256,19 +256,19 @@
.shortcut{ .shortcut{
//width:32%; //width:32%;
//float:left; //float:left;
.inner{ .inner{
background:white; background:white;
margin:auto; margin:auto;
max-width:320px; max-width:320px;
.image{ .image{
height:230px; height:230px;
background:no-repeat center center; background:no-repeat center center;
background-size:cover; background-size:cover;
} }
.description{ .description{
padding:20px; padding:20px;
text-align:center; text-align:center;
@ -279,28 +279,28 @@
line-height:0.8em; line-height:0.8em;
margin-top:5px; margin-top:5px;
} }
} }
} }
} }
} }
.bottom_container{ .bottom_container{
background:rgba(5,5,5,0.05) url('/logo_fade.png') no-repeat bottom right; background:rgba(5,5,5,0.05) url('/logo_fade.png') no-repeat bottom right;
background-size:100px; background-size:100px;
} }
.bottom, .sub_bottom{ .bottom, .sub_bottom{
padding: 50px 60px; padding: 50px 60px;
padding-bottom:50px; padding-bottom:50px;
transition-duration:0.5s; transition-duration:0.5s;
h4{ h4{
color:$orange; color:$orange;
a{ a{
@ -316,14 +316,14 @@
color:rgba(20,20,20,0.8); color:rgba(20,20,20,0.8);
margin:10px 0; margin:10px 0;
&:hover{ &:hover{
color:$orange; color:$orange;
} }
} }
} }
} }
.legals{ .legals{
position:absolute; position:absolute;
bottom:20px; bottom:20px;
left:50px; left:50px;
@ -336,22 +336,22 @@
} }
.sub_bottom_container{ .sub_bottom_container{
background:#323232; background:#323232;
} }
.sub_bottom{ .sub_bottom{
.email{ .email{
input{ input{
display:block; display:block;
padding:5px; padding:5px;
font-size:1em; font-size:1em;
color:black; color:black;
} }
} }
p{ p{
max-width:80%; max-width:80%;
@ -369,7 +369,7 @@
font-weight:bold; font-weight:bold;
} }
} }
ul{ ul{
li{ li{
margin-bottom:5px; margin-bottom:5px;
@ -378,7 +378,7 @@
} }
} }
} }
color:white; color:white;
*{ *{
color:white; color:white;
@ -386,32 +386,32 @@
} }
.bottom_block{ .bottom_block{
position:fixed; position:fixed;
bottom:0; bottom:0;
right:10px; right:10px;
} }
#new_bottom{ #new_bottom{
.newsletter_bottom{ .newsletter_bottom{
width:70%; width:70%;
float:left; float:left;
border-right:1px solid rgba(255,255,255,0.8); border-right:1px solid rgba(255,255,255,0.8);
box-sizing:border-box; box-sizing:border-box;
padding:30px 0; padding:30px 0;
} }
.socials_bottom{ .socials_bottom{
width:30%; width:30%;
float:left; float:left;
box-sizing:border-box; box-sizing:border-box;
padding:30px 0; padding:30px 0;
padding-left:20px; padding-left:20px;
} }
.span_2{ .span_2{
width:20%; width:20%;
@ -428,10 +428,10 @@
margin-bottom:0; margin-bottom:0;
color:rgba(255,255,255,0.9);; color:rgba(255,255,255,0.9);;
} }
ul{ ul{
padding:0; padding:0;
} }
li{ li{
list-style:none; list-style:none;
@ -441,38 +441,38 @@
border-top:1px solid rgba(255,255,255,0.8); border-top:1px solid rgba(255,255,255,0.8);
padding:30px 0; padding:30px 0;
} }
#contact_bottom_row{ #contact_bottom_row{
padding:30px 0; padding:30px 0;
} }
} }
.bx-wrapper{ .bx-wrapper{
.bx-next{ .bx-next{
background-image:url('/bx/controls2.png'); background-image:url('/bx/controls2.png');
} }
.bx-prev{ .bx-prev{
background-image:url('/bx/controls2.png'); background-image:url('/bx/controls2.png');
} }
} }
#home_follow_container{ #home_follow_container{
position:relative; position:relative;
.bx-wrapper{ .bx-wrapper{
position:static; position:static;
} }
.main_container{ .main_container{
position:static; position:static;
} }
} }

View File

@ -0,0 +1,325 @@
.bottom_container{
background:rgba(5,5,5,0.05) url('/logo_fade.png') no-repeat bottom right;
background-size:100px;
}
.bottom, .sub_bottom{
padding: 50px 60px;
padding-bottom:50px;
transition-duration:0.5s;
h4{
color:$orange;
a{
color:$orange;
}
margin:0px;
}
ul{
padding-left:5px;
li{
list-style:none;
a{
color:rgba(20,20,20,0.8);
margin:10px 0;
&:hover{
color:$orange;
}
}
}
}
.legals{
position:absolute;
bottom:20px;
left:50px;
a{
color:rgba(20,20,20,0.8);
font-size:0.9em;
}
opacity:0.6;
}
}
.sub_bottom_container{
background:#323232;
}
.sub_bottom{
.email{
input{
display:block;
padding:5px;
font-size:1em;
color:black;
}
}
p{
max-width:80%;
}
.btn{
color:white;
background:none;
border:1px solid white;
padding:5px 10px;
font-size:1em;
margin-top:5px;
background:$orange;
&:hover{
background:$orange;
font-weight:bold;
}
}
ul{
li{
margin-bottom:5px;
a{
color:white;
}
}
}
color:white;
*{
color:white;
}
}
.bottom_block{
position:fixed;
bottom:0;
right:10px;
}
#new_bottom{
margin-top:20px;
.newsletter_bottom{
width:70%;
float:left;
box-sizing:border-box;
padding:20px 0;
padding-bottom:0;
#newsletter_form{
#registrant_email{
display: block;
box-sizing: border-box;
width: 200px;
padding: 5px;
font-size: 1em;
display: inline-block;
}
.btn{
padding: 4px 10px;
display: inline-block;
color: white;
background: orange;
border-color: transparent;
cursor:pointer;
}
.email{
display:inline;
}
}
}
.socials_bottom{
width:30%;
float:left;
box-sizing:border-box;
padding:20px 0;
padding-left:20px;
padding-bottom:0;
}
.span_2{
width:20%;
}
background:#002C52;
padding-bottom:60px;
color:#181818;
a{
color:#181818;
}
h4{
font-size:1.2em;
margin-top:0;
margin-bottom:0;
color:$orange;
a{
color:$orange;
}
}
ul{
padding:0;
}
li{
list-style:none;
}
#menu_bottom_row{
padding:30px 0;
padding-bottom:10px;
}
#contact_bottom_row{
padding:30px 0;
padding-top:10px;
}
}
.bx-wrapper{
.bx-next{
background-image:url('/bx/controls2.png');
}
.bx-prev{
background-image:url('/bx/controls2.png');
}
}
#home_follow_container{
position:relative;
.bx-wrapper{
position:static;
}
.main_container{
position:static;
}
}
#investigation_slider{
padding:0;
}
.investigation_container{
float:left;
width:33.33%;
box-sizing:border-box;
// padding:0 15px;
position:relative;
#investigation_prev {
display:none;
}
#investigation_next {
display:none;
}
.bx-viewport{
background:transparent;
}
.investigations{
}
.investigation{
box-sizing:border-box;
background:transparent;
text-align:center;
&:first-child{
padding-bottom:30px;
}
}
.investigation_row{
display:none;
&.active{
display:block;
}
}
}
#newsletter_bandeau_home{
background:url('/bleu.jpg') no-repeat;
background-size:100%;
background-size:cover;
padding:30px 0;
.main_container{
max-width:800px;
}
table{
border-collapse:collapse;
width:100%;
}
.email{
display:inline;
input{
font-size:1em;
padding:5px 10px;
display:block;
width:100%;
box-sizing:border-box;
border:2px solid white;
}
}
.btn{
font-size:1em;
padding:5px 10px;
display:block;
width:100%;
box-sizing:border-box;
background:$orange;
color:white;
border:2px solid $orange;
text-transform:uppercase;
}
}

View File

@ -2,30 +2,30 @@ body{
padding:0px; padding:0px;
background: url('/assets/front/fond.jpg'); background: url('/assets/front/fond.jpg');
} }
header#top{ header#top{
display:block; display:block;
background: url('/assets/front/top.png') repeat-x; background: url('/assets/front/top.png') repeat-x;
img{ img{
width:120px; width:120px;
float:left; float:left;
margin:20px 50px; margin:20px 50px;
} }
} }
navigation#first_nav{ navigation#first_nav{
margin-top:50px; margin-top:50px;
margin-right:20px; margin-right:20px;
float:right; float:right;
a{ a{
display:inline-block; display:inline-block;
padding:10px; padding:10px;
@ -39,26 +39,26 @@ navigation#first_nav{
} }
#main{ #main{
header{ header{
h1{ h1{
margin-bottom:10px; margin-bottom:10px;
} }
h2{ h2{
margin-top:0em; margin-top:0em;
margin-bottom:1em; margin-bottom:1em;
} }
} }
img{ img{
max-width:100%; max-width:100%;
} }
article{ article{
margin-bottom:3em; margin-bottom:3em;
border-top:2px solid #97bc4a; border-top:2px solid #97bc4a;
@ -71,26 +71,26 @@ navigation#first_nav{
*{ *{
display:inline; display:inline;
} }
} }
} }
} }
#sidebar{ #sidebar{
padding:0% 2%; padding:0% 2%;
background:#97bc4a; background:#97bc4a;
img{ img{
margin:0.5em 0; margin:0.5em 0;
} }
color:white; color:white;
h3,a{ h3,a{
color:white; color:white;
} }
@ -101,31 +101,31 @@ comment{
message{ message{
padding:10px; padding:10px;
} }
author{ author{
float:left; float:left;
width:200px; width:200px;
text-align:center; text-align:center;
p{ p{
text-align:center; text-align:center;
margin:0px; margin:0px;
} }
.img{ .img{
height:120px; height:120px;
width:120px; width:120px;
border-radius:50%; border-radius:50%;
overflow:hidden; overflow:hidden;
display:inline-block; display:inline-block;
img{ img{
height:120px; height:120px;
} }
} }
} }
@ -139,54 +139,54 @@ comment{
footer{ footer{
margin-top:100px; margin-top:100px;
} }
@media only screen and (min-width: 0px) { @media only screen and (min-width: 0px) {
header#top{ header#top{
img{ img{
width:120px; width:120px;
margin:20px 5%; margin:20px 5%;
} }
} }
#main{ #main{
margin:auto; margin:auto;
max-width:800px; max-width:800px;
width:90%; width:90%;
} }
#sidebar{ #sidebar{
margin:auto; margin:auto;
padding:2% !important; padding:2% !important;
max-width:800px; max-width:800px;
width:86%; width:86%;
img{ img{
margin:0.5em 0; margin:0.5em 0;
max-width:98%; max-width:98%;
} }
} }
.img_with_legend{ .img_with_legend{
position:relative; position:relative;
figcaption{ figcaption{
margin-top:5px; margin-top:5px;
} }
} }
} }
@ -195,40 +195,40 @@ footer{
#main{ #main{
margin-left:2%; margin-left:2%;
max-width:800px; max-width:800px;
width:69%; width:69%;
float:left; float:left;
padding:0px; padding:0px;
article{ article{
padding:0px 6%; padding:0px 6%;
} }
} }
#sidebar{ #sidebar{
float:right; float:right;
width:23%; width:23%;
padding-top:0px !important; padding-top:0px !important;
min-height:1000px; min-height:1000px;
img{ img{
max-width:100%; max-width:100%;
margin:0.5em 0; margin:0.5em 0;
} }
} }
} }
@ -239,9 +239,9 @@ footer{
margin-left:5%; margin-left:5%;
width:64%; width:64%;
} }
} }
@ -252,12 +252,12 @@ footer{
margin-left:18%; margin-left:18%;
width:53%; width:53%;
} }
#sidebar{ #sidebar{
padding-top:0em !important; padding-top:0em !important;
} }
@ -265,11 +265,11 @@ footer{
article{ article{
position:relative; position:relative;
aside{
aside{
display:block; display:block;
position:absolute; position:absolute;
left : -39%; left : -39%;
@ -278,73 +278,73 @@ footer{
padding-top:0em; padding-top:0em;
line-height:1.6em; line-height:1.6em;
width:42%; width:42%;
text-align:center; text-align:center;
p{ p{
margin:0px; margin:0px;
display:block !important; display:block !important;
} }
img{ img{
display:block !important; display:block !important;
margin:auto; margin:auto;
border-radius:50%; border-radius:50%;
}
time{
display:block;
} }
*{ time{
display:block;
}
*{
text-align:center; text-align:center;
} }
} }
} }
.img_with_legend{ .img_with_legend{
position:relative; position:relative;
figcaption{ figcaption{
display:block; display:block;
position:absolute; position:absolute;
left : -35%; left : -35%;
width:32%; width:32%;
top:10px; top:10px;
*{ *{
text-align:right; text-align:right;
} }
} }
} }
} }
#comments{ #comments{
.comment{ .comment{
margin-bottom:3em; margin-bottom:3em;
aside{ aside{
img{ img{
float:left; float:left;
margin:auto; margin:auto;
border-radius:50%; border-radius:50%;
} }
} }
blockquote{ blockquote{
@ -353,27 +353,27 @@ footer{
border-color : #97bc4a; border-color : #97bc4a;
min-height:3em; min-height:3em;
padding-right:0px; padding-right:0px;
p{ p{
text-align:justify !important; text-align:justify !important;
} }
} }
.header, blockquote{ .header, blockquote{
margin-left:100px; margin-left:100px;
} }
.header{ .header{
font-size: 0.95em; font-size: 0.95em;
line-height:1.6em; line-height:1.6em;
img{ img{
display:none; display:none;
} }
} }
} }
@ -387,32 +387,32 @@ footer{
padding:20px; padding:20px;
padding-bottom:35px; padding-bottom:35px;
margin:0px 0px 0px 0px; margin:0px 0px 0px 0px;
h3{ h3{
margin-top:0px; margin-top:0px;
text-transform:uppercase; text-transform:uppercase;
} }
input,textarea{ input,textarea{
background:white; background:white;
background-color:rgba(255,255,255,0.8); background-color:rgba(255,255,255,0.8);
padding:1%; padding:1%;
} }
textarea{ textarea{
line-height:1.6em; line-height:1.6em;
} }
label{ label{
display:inline-block; display:inline-block;
min-width:90px; min-width:90px;
padding:5px; padding:5px;
} }
.submit{ .submit{
float:right; float:right;
@include border-radius(10px); @include border-radius(10px);
@ -422,10 +422,10 @@ footer{
&:hover{ &:hover{
background:#97bc4a; background:#97bc4a;
color:white; color:white;
} }
padding:1% 2%; padding:1% 2%;
} }
} }
@ -437,111 +437,111 @@ footer{
//iPhone //iPhone
@media only screen and (max-width: 480px) { @media only screen and (max-width: 480px) {
body{ body{
font-size:50%; font-size:50%;
} }
} }
@media only screen and (max-width: 320px) { @media only screen and (max-width: 320px) {
body{ body{
font-size:75%; font-size:75%;
} }
} }
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {
header#top{ header#top{
text-align:center; text-align:center;
img{ img{
float:none; float:none;
display:block; display:block;
margin:auto; margin:auto;
} }
navigation{ navigation{
text-align:center; text-align:center;
float:none; float:none;
display:block; display:block;
margin-top:10px; margin-top:10px;
} }
} }
#comment_form{ #comment_form{
margin:0px !important; margin:0px !important;
} }
#comments{ #comments{
.comment{ .comment{
aside{ aside{
img{ img{
float:left; float:left;
margin:auto; margin:auto;
border-radius:50%; border-radius:50%;
width:40px; width:40px;
height:40px; height:40px;
} }
} }
.header, blockquote{ .header, blockquote{
margin-left:50px; margin-left:50px;
} }
blockquote{ blockquote{
margin-left:10px; margin-left:10px;
} }
} }
} }
} }
@ -553,8 +553,8 @@ footer{
border-top: #202020 2px solid; border-top: #202020 2px solid;
border-bottom: #97BC4A 12px solid; border-bottom: #97BC4A 12px solid;
text-align:center; text-align:center;
} }
@ -571,7 +571,7 @@ footer{
width:100%; width:100%;
height:100%; height:100%;
display:none; display:none;
.content{ .content{
background:rgba(250,250,250,0.95); background:rgba(250,250,250,0.95);
padding:10px 30px; padding:10px 30px;
@ -579,8 +579,8 @@ footer{
width:90%; width:90%;
max-width:600px; max-width:600px;
border:1px solid gray; border:1px solid gray;
} }
} }

View File

@ -1,19 +1,19 @@
.bottom_container{ .bottom_container{
background:rgba(5,5,5,0.05) url('/logo_fade.png') no-repeat bottom right; background:rgba(5,5,5,0.05) url('/logo_fade.png') no-repeat bottom right;
background-size:100px; background-size:100px;
} }
.bottom, .sub_bottom{ .bottom, .sub_bottom{
padding: 50px 60px; padding: 50px 60px;
padding-bottom:50px; padding-bottom:50px;
transition-duration:0.5s; transition-duration:0.5s;
h4{ h4{
color:$orange; color:$orange;
a{ a{
@ -29,14 +29,14 @@
color:rgba(20,20,20,0.8); color:rgba(20,20,20,0.8);
margin:10px 0; margin:10px 0;
&:hover{ &:hover{
color:$orange; color:$orange;
} }
} }
} }
} }
.legals{ .legals{
position:absolute; position:absolute;
bottom:20px; bottom:20px;
left:50px; left:50px;
@ -49,22 +49,22 @@
} }
.sub_bottom_container{ .sub_bottom_container{
background:#323232; background:#323232;
} }
.sub_bottom{ .sub_bottom{
.email{ .email{
input{ input{
display:block; display:block;
padding:5px; padding:5px;
font-size:1em; font-size:1em;
color:black; color:black;
} }
} }
p{ p{
max-width:80%; max-width:80%;
@ -82,7 +82,7 @@
font-weight:bold; font-weight:bold;
} }
} }
ul{ ul{
li{ li{
margin-bottom:5px; margin-bottom:5px;
@ -91,7 +91,7 @@
} }
} }
} }
color:white; color:white;
*{ *{
color:white; color:white;
@ -99,25 +99,25 @@
} }
.bottom_block{ .bottom_block{
position:fixed; position:fixed;
bottom:0; bottom:0;
right:10px; right:10px;
} }
#new_bottom{ #new_bottom{
margin-top:20px; margin-top:20px;
.newsletter_bottom{ .newsletter_bottom{
width:70%; width:70%;
float:left; float:left;
box-sizing:border-box; box-sizing:border-box;
padding:20px 0; padding:20px 0;
padding-bottom:0; padding-bottom:0;
#newsletter_form{ #newsletter_form{
#registrant_email{ #registrant_email{
display: block; display: block;
@ -127,9 +127,9 @@
font-size: 1em; font-size: 1em;
display: inline-block; display: inline-block;
} }
.btn{ .btn{
padding: 4px 10px; padding: 4px 10px;
display: inline-block; display: inline-block;
color: white; color: white;
@ -140,20 +140,20 @@
.email{ .email{
display:inline; display:inline;
} }
} }
} }
.socials_bottom{ .socials_bottom{
width:30%; width:30%;
float:left; float:left;
box-sizing:border-box; box-sizing:border-box;
padding:20px 0; padding:20px 0;
padding-left:20px; padding-left:20px;
padding-bottom:0; padding-bottom:0;
} }
.span_2{ .span_2{
width:20%; width:20%;
@ -169,56 +169,56 @@
margin-top:0; margin-top:0;
margin-bottom:0; margin-bottom:0;
color:$orange; color:$orange;
a{ a{
color:$orange; color:$orange;
} }
} }
ul{ ul{
padding:0; padding:0;
} }
li{ li{
list-style:none; list-style:none;
} }
#menu_bottom_row{ #menu_bottom_row{
padding:30px 0; padding:30px 0;
padding-bottom:10px; padding-bottom:10px;
} }
#contact_bottom_row{ #contact_bottom_row{
padding:30px 0; padding:30px 0;
padding-top:10px; padding-top:10px;
} }
} }
.bx-wrapper{ .bx-wrapper{
.bx-next{ .bx-next{
background-image:url('/bx/controls2.png'); background-image:url('/bx/controls2.png');
} }
.bx-prev{ .bx-prev{
background-image:url('/bx/controls2.png'); background-image:url('/bx/controls2.png');
} }
} }
#home_follow_container{ #home_follow_container{
position:relative; position:relative;
.bx-wrapper{ .bx-wrapper{
position:static; position:static;
} }
.main_container{ .main_container{
position:static; position:static;
} }
@ -226,14 +226,14 @@
#investigation_slider{ #investigation_slider{
padding:0; padding:0;
} }
@ -245,7 +245,7 @@
position:relative; position:relative;
#investigation_prev { #investigation_prev {
display:none; display:none;
} }
@ -255,34 +255,34 @@
.bx-viewport{ .bx-viewport{
background:transparent; background:transparent;
} }
.investigations{ .investigations{
} }
.investigation{ .investigation{
box-sizing:border-box; box-sizing:border-box;
background:transparent; background:transparent;
text-align:center; text-align:center;
&:first-child{ &:first-child{
padding-bottom:30px; padding-bottom:30px;
} }
} }
.investigation_row{ .investigation_row{
display:none; display:none;
&.active{ &.active{
display:block; display:block;
} }
} }
} }
@ -291,7 +291,7 @@
background-size:100%; background-size:100%;
background-size:cover; background-size:cover;
padding:30px 0; padding:30px 0;
.main_container{ .main_container{
max-width:800px; max-width:800px;
} }
@ -321,5 +321,5 @@
border:2px solid $orange; border:2px solid $orange;
text-transform:uppercase; text-transform:uppercase;
} }
} }

View File

@ -36,46 +36,46 @@
<meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/mstile-144x144.png"> <meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
%meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"} %meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"}
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" } %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
%meta{ :"name" => "Description", :content => @description } %meta{ :"name" => "Description", :content => @description }
%meta{ :"name" => "Keywords", :content => @keywords } %meta{ :"name" => "Keywords", :content => @keywords }
-if @facebook_img -if @facebook_img
=raw '<meta property="og:image" content="http://payresas.fr'+@facebook_img.to_s+'"/>' =raw '<meta property="og:image" content="http://payresas.fr'+@facebook_img.to_s+'"/>'
=raw '<link rel="image_src" href="http://payresas.fr'+@facebook_img.to_s+'"/>' =raw '<link rel="image_src" href="http://payresas.fr'+@facebook_img.to_s+'"/>'
=raw '<meta name="twitter:card" content="summary_large_image">' =raw '<meta name="twitter:card" content="summary_large_image">'
=raw '<meta property="twitter:image" content="http://payresas.fr'+@facebook_img.to_s+'"/>' =raw '<meta property="twitter:image" content="http://payresas.fr'+@facebook_img.to_s+'"/>'
-@img_size = FastImage.size('http://payresas.fr'+@facebook_img.to_s) -@img_size = FastImage.size('http://payresas.fr'+@facebook_img.to_s)
-if @img_size and @img_size.size > 0 -if @img_size and @img_size.size > 0
=raw '<meta property="og:image:width" content="'+@img_size[0].to_s+'"/>' =raw '<meta property="og:image:width" content="'+@img_size[0].to_s+'"/>'
=raw '<meta property="og:image:height" content="'+@img_size[1].to_s+'"/>' =raw '<meta property="og:image:height" content="'+@img_size[1].to_s+'"/>'
= javascript_include_tag "public" = javascript_include_tag "public"
= csrf_meta_tag = csrf_meta_tag
=render :partial => "public/shared/ga" =render :partial => "public/shared/ga"
= stylesheet_link_tag 'public', :media => :all = stylesheet_link_tag 'public', :media => :all
<link href="https://fonts.googleapis.com/css?family=Galada|Lato:400,900|Roboto+Slab:400,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Galada|Lato:400,900|Roboto+Slab:400,700" rel="stylesheet">
<script src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script> <script src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script>
=javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places,geometry&amp;sensor=false" =javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places,geometry&amp;sensor=false"
%body %body
-if !current_admin -if !current_admin
@ -84,15 +84,15 @@
%br %br
#actus #actus
.center .center
#left_actus{:style => "width:100%;float:none"} #left_actus
=image_tag("/blog.png", :class => "blog_img") =image_tag("/blog.png", :class => "blog_img")
%h2 %h2
Notre nouveau site sera en ligne Notre nouveau site sera en ligne
%strong dans quelques jours %strong dans quelques jours
.clear .clear
%br %br
%br %br
<div class="center_block" style="background-image:url('/public_medias/image_file/file/7/large_e3f9bd61.jpg');background-size:100%;background-size:cover;background-position:center center;text-align:center;"> <div class="center_block" style="background-image:url('/public_medias/image_file/file/7/large_e3f9bd61.jpg');background-size:100%;background-size:cover;background-position:center center;text-align:center;">
@ -152,24 +152,19 @@
</div> </div>
-else -else
=link_to image_tag("/logo-fond.png", :id => "logo_fond"), "/" =link_to image_tag("/logo-fond.png", :id => "logo_fond"), "/"
-if @menu_item and @menu_item.id == 1 -if @menu_item and @menu_item.id == 1 #SI PAGE D'ACCUEIL
.slide_home_wrapper .slide_home_wrapper
=render :partial => "public/shared/menu_top"
#menu_top
=link_to image_tag("/logo-france-rurale-fond.png", :id => "logo_france_rurale"), "/"
.menu
=render :partial => "public/shared/first_menu"
.slide_home.slider .slide_home.slider
-@home_slider = HomeSlider.find_by_slug("home") -@home_slider = HomeSlider.find_by_slug("home")
@ -182,36 +177,37 @@
-@home_slides_simu = @home_slides_simu.joins(:lang_sites).where("lang_sites.id = ?", @lang.id) -@home_slides_simu = @home_slides_simu.joins(:lang_sites).where("lang_sites.id = ?", @lang.id)
-@home_slides_simu.each do |home_slider_slide| -@home_slides_simu.each do |home_slider_slide|
-if home_slider_slide.image_file -if home_slider_slide.image_file
%div.with_ratio.slide{:style => "background-image:url('#{home_slider_slide.image_file.file.large.url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.45}} %div.with_ratio.slide{:style => "background-image:url('#{home_slider_slide.image_file.file.large.url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.45}}
=link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do =link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do
.link_overlay .link_overlay
.description.vertical_center .description.vertical_center
=link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do =link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do
-if home_slider_slide.titre2? -if home_slider_slide.titre2?
.sub_title=home_slider_slide.titre2 .sub_title=home_slider_slide.titre2
-elsif home_slider_slide.article -elsif home_slider_slide.article
.sub_title .sub_title
-if home_slider_slide.article.category -if home_slider_slide.article.category
-cats = [] -cats = []
-home_slider_slide.article.categories.uniq.each do |cat| -home_slider_slide.article.categories.uniq.each do |cat|
-cats << cat.lang(I18n.locale.to_s).name -cats << cat.lang(I18n.locale.to_s).name
=cats.join(", ") =cats.join(", ")
%span.sep %span.sep
="|" ="|"
=l(home_slider_slide.article.published_at, :format => :human_date) =l(home_slider_slide.article.published_at, :format => :human_date)
.content .content
%h3=home_slider_slide.titre1 %h3=home_slider_slide.titre1
=home_slider_slide.description1 #contentdescription
=home_slider_slide.description1
:javascript :javascript
$(document).ready(function(){ $(document).ready(function(){
@ -221,20 +217,16 @@
prevText: '<' prevText: '<'
}); });
}); });
-else -else
.slide_home_wrapper.with_ratio{:style => "background-image:url('#{@img_url}');", :data => {:ratio => 0.35}} .slide_home_wrapper.with_ratio{:style => "background-image:url('#{@img_url}');", :data => {:ratio => 0.35}}
#menu_top =render :partial => "public/shared/menu_top"
=link_to image_tag("/logo-france-rurale-fond.png", :id => "logo_france_rurale"), "/"
.menu
=render :partial => "public/shared/first_menu"
-if @menu_item and @menu_item.id == 1 -if @menu_item and @menu_item.id == 1
-else -else
#main_content=yield #main_content=yield
-if @menu_item and @menu_item.id == 1 -if @menu_item and @menu_item.id == 1
@ -246,40 +238,40 @@
LE JARDIN AU FIL DES MOIS LE JARDIN AU FIL DES MOIS
%strong %strong
="/ Notre Blog" ="/ Notre Blog"
.article
-Article.before(Time.now).recents.limit(3).each do |article| -Article.before(Time.now).recents.limit(3).each do |article|
-lang_article = article.lang_articles.find_by_lang_site_id(@lang.id) -lang_article = article.lang_articles.find_by_lang_site_id(@lang.id)
-if article.image_file -if article.image_file
-img_url = article.image_file.file.large.medium.url -img_url = article.image_file.file.large.medium.url
%div{:class => "actu"} %div{:class => "actu"}
.img.with_ratio{:style => "background-image:url('#{img_url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.62}} .img.with_ratio{:style => "background-image:url('#{img_url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.62}}
.description .description
%h3= lang_article.title %h3= lang_article.title
=simple_format lang_article.description =simple_format lang_article.description
.cta .cta
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "btn", :target => "_blank" do =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "btn", :target => "_blank" do
=qit("Lire l'article") =qit("Lire l'article")
> >
.clear .clear
#right_actus #right_actus
.blog_img .blog_img
%h2 %h2
Lactualité de nos Lactualité de nos
%strong jardinerie %strong jardinerie
-@breves_rss[0..10].each do |article| -@breves_rss[0..10].each do |article|
=link_to "https://groupe-payre.fr"+article["url"].to_s, :target => "_blank", :style => "text-decoration:none;" do =link_to "https://groupe-payre.fr"+article["url"].to_s, :target => "_blank", :style => "text-decoration:none;" do
%div{:class =>"breve"} %div{:class =>"breve"}
@ -288,15 +280,15 @@
="-" ="-"
= article['title'] = article['title']
.clear .clear
#main=yield #main=yield
#bottom_actus #bottom_actus
.center .center
%h2 %h2
Lactualité du groupe Payre Lactualité du groupe Payre
.actus{:style => "margin:0 -1.5%"} .actus{:style => "margin:0 -1.5%"}
-@articles_rss[0..2].each do |article| -@articles_rss[0..2].each do |article|
=link_to "https://groupe-payre.fr"+article["url"].to_s, :target => "_blank", :style => "text-decoration:none;" do =link_to "https://groupe-payre.fr"+article["url"].to_s, :target => "_blank", :style => "text-decoration:none;" do
@ -306,12 +298,12 @@
="-" ="-"
= article['title'] = article['title']
.clear .clear
#footer #footer
.center .center
%h2 %h2
Nous contacter Nous contacter
-@contact = @contact || Contact.new(:provenance_id => 5) -@contact = @contact || Contact.new(:provenance_id => 5)
.contact_form.contact_militer#form .contact_form.contact_militer#form
@ -322,16 +314,16 @@
#logos #logos
=link_to "https://payreagriculture.fr", :target => "_blank" do =link_to "https://payreagriculture.fr", :target => "_blank" do
=image_tag "/payre-agriculture.png" =image_tag "/payre-agriculture.png"
=link_to "https://payreenergies.fr", :target => "_blank" do =link_to "https://payreenergies.fr", :target => "_blank" do
=image_tag "/payre-energies.png" =image_tag "/payre-energies.png"
=link_to "https://payremaintenance.fr", :target => "_blank" do =link_to "https://payremaintenance.fr", :target => "_blank" do
=image_tag "/payre-maintenance.png" =image_tag "/payre-maintenance.png"
=link_to "http://payrejardinerie.fr/", :target => "_blank" do =link_to "http://payrejardinerie.fr/", :target => "_blank" do
=image_tag "/payre-jardinerie.png" =image_tag "/payre-jardinerie.png"
#place #place
%p %p
SAS PAYRE SAS PAYRE
@ -340,7 +332,7 @@
%br %br
38430 MOIRANS 38430 MOIRANS
#contacts #contacts
%p %p
=ic :phone =ic :phone
04 76 35 31 69 04 76 35 31 69
@ -351,10 +343,10 @@
=link_to "mailto:contact@ets-payre.fr" do =link_to "mailto:contact@ets-payre.fr" do
=ic :"envelope-o" =ic :"envelope-o"
contact@ets-payre.fr contact@ets-payre.fr
.clear .clear
:javascript :javascript
resize() resize()

View File

@ -1,45 +1,45 @@
.formulairecontact
- @contact = @contact || Contact.new(:provenance_id => 5)
=semantic_form_for [:public, @contact], :remote => true do |f|
=f.inputs do
- @contact = @contact || Contact.new(:provenance_id => 5) =f.hidden_field :provenance_id
=semantic_form_for [:public, @contact], :remote => true do |f|
=f.inputs do
=f.hidden_field :provenance_id
%table{:style => "border-collapse:collapse;width:100%;"}
%tr
%td{:style => "width:50%;vertical-align:top;padding-right:6px;"}
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
%td{:style => "width:50%;vertical-align:top;padding-left:6px;"}
=f.input :firstname, :label => false, :placeholder => qit("contact prenom","Prénom*")
%tr %table
%td{:colspan => 2} %tr
=f.input :corporate, :label => false, :placeholder => qit("contact organisation","Organisation*")
%td
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
%td{:style => "width:50%;vertical-align:top;padding-left:6px;"}
=f.input :firstname, :label => false, :placeholder => qit("contact prenom","Prénom*")
%tr
%td{:colspan => 2}
=f.input :corporate, :label => false, :placeholder => qit("contact organisation","Organisation*")
%tr
%td
=f.input :email, :label => false , :placeholder =>"Email"
%td
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
%tr
%td{:colspan => 2}
=f.input :message, :label =>false , :placeholder => "Message"
.submit
=f.submit "Envoyer", :class => "btn"
.clear
%tr
%td{:style => "width:50%;vertical-align:top;padding-right:6px;"}
=f.input :email, :label => false , :placeholder =>"Email"
%td{:style => "width:50%;vertical-align:top;padding-left:6px;"}
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
%tr
%td{:colspan => 2}
=f.input :message, :label =>false , :placeholder => "Message"
.submit
=f.submit "Envoyer", :class => "btn"
.clear

View File

@ -13,7 +13,7 @@
-if home_slider_slide.image_file -if home_slider_slide.image_file
=link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do =link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do
%div.with_ratio.slide{:style => "background-image:url('#{home_slider_slide.image_file.file.large.url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.28}} %div.with_ratio.slide{:style => "background-image:url('#{home_slider_slide.image_file.file.large.url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.28}}
.description.vertical_center .description.vertical_center
%h3 %h3
-if home_slider_slide.article -if home_slider_slide.article
@ -21,31 +21,31 @@
=lang_article.title =lang_article.title
-else -else
=home_slider_slide.titre1 =home_slider_slide.titre1
-if home_slider_slide.titre2? -if home_slider_slide.titre2?
.sub_title=home_slider_slide.titre2 .sub_title=home_slider_slide.titre2
-elsif home_slider_slide.article -elsif home_slider_slide.article
.sub_title .sub_title
-if home_slider_slide.article.category -if home_slider_slide.article.category
-cats = [] -cats = []
-home_slider_slide.article.categories.uniq.each do |cat| -home_slider_slide.article.categories.uniq.each do |cat|
-cats << cat.lang(I18n.locale.to_s).name -cats << cat.lang(I18n.locale.to_s).name
=cats.join(", ") =cats.join(", ")
%span.sep %span.sep
="|" ="|"
=l(home_slider_slide.article.published_at, :format => :human_date) =l(home_slider_slide.article.published_at, :format => :human_date)
.date .date
=home_slider_slide.description1 =home_slider_slide.description1
.btn .btn
=home_slider_slide.cta_text =home_slider_slide.cta_text
:javascript :javascript
$(document).ready(function(){ $(document).ready(function(){
@ -54,7 +54,7 @@
prevText: '<' prevText: '<'
}); });
}); });
@ -74,20 +74,20 @@
.angle{:onclick => ""} .angle{:onclick => ""}
=ic :"angle-right" =ic :"angle-right"
.slider_breve .slider_breve
-@home_slides_simu.each do |home_slider_slide| -@home_slides_simu.each do |home_slider_slide|
=link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do =link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do
.inner .inner
.description .description
%h3.bclamp{:style => ""}=home_slider_slide.titre1 %h3.bclamp{:style => ""}=home_slider_slide.titre1
-@articles = Article.before(Time.now).recents.joins(:lang_articles).where("lang_articles.enabled = 1 and lang_articles.lang_site_id = ?", @lang.id).limit(6) -@articles = Article.before(Time.now).recents.joins(:lang_articles).where("lang_articles.enabled = 1 and lang_articles.lang_site_id = ?", @lang.id).limit(6)
@ -103,36 +103,36 @@
-img_url = "https://payreagri.quartz.xyz"+article.image_file.file.large.medium.url -img_url = "https://payreagri.quartz.xyz"+article.image_file.file.large.medium.url
-else -else
-img_url = "" -img_url = ""
.desktop_inline .desktop_inline
.home_article_header .home_article_header
.img.with_ratio{:style => "background: black center center;background-image:url('#{img_url}');position:relative;background-size:cover;", :data => {:ratio => 0.62}} .img.with_ratio{:style => "background: black center center;background-image:url('#{img_url}');position:relative;background-size:cover;", :data => {:ratio => 0.62}}
.description .description
%h2= lang_article.title %h2= lang_article.title
.date .date
%hr %hr
=l article.published_at, :format => "%d/%m/%Y" =l article.published_at, :format => "%d/%m/%Y"
%span.sep %span.sep
="|" ="|"
=l article.published_at, :format => "%H:%M" =l article.published_at, :format => "%H:%M"
.cat .cat
-cats = [] -cats = []
-article.categories.uniq.each do |cat| -article.categories.uniq.each do |cat|
-cats << link_to(cat.lang(I18n.locale.to_s).name, category_public_article_path(:lang => @lang.slug,:slug => cat.lang(I18n.locale.to_s).slug), :title => "Articles de la catégorie \""+cat.lang(I18n.locale.to_s).name.to_s+'"') -cats << link_to(cat.lang(I18n.locale.to_s).name, category_public_article_path(:lang => @lang.slug,:slug => cat.lang(I18n.locale.to_s).slug), :title => "Articles de la catégorie \""+cat.lang(I18n.locale.to_s).name.to_s+'"')
=raw cats.join(", ") =raw cats.join(", ")
=simple_format lang_article.description.truncate(160, separator: ' ') =simple_format lang_article.description.truncate(160, separator: ' ')
.cta .cta
=link_to qit("Lire l'article"), article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "btn" =link_to qit("Lire l'article"), article_path(:slug => lang_article.slug, :lang => @lang.slug), :class => "btn"
.clear .clear
.row.home_article_sub_headers .row.home_article_sub_headers
.mobile_inline .mobile_inline
-@articles[0..0].each do |article| -@articles[0..0].each do |article|
@ -152,26 +152,26 @@
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do
%h2= lang_article.title %h2= lang_article.title
.description .description
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do
.date .date
=l article.published_at, :format => "%d/%m/%Y" =l article.published_at, :format => "%d/%m/%Y"
%span.sep %span.sep
="|" ="|"
=l article.published_at, :format => "%H:%M" =l article.published_at, :format => "%H:%M"
.cat .cat
-cats = [] -cats = []
-article.categories.uniq.each do |cat| -article.categories.uniq.each do |cat|
-cats << link_to(cat.lang(I18n.locale.to_s).name, category_public_article_path(:lang => @lang.slug,:slug => cat.lang(I18n.locale.to_s).slug), :title => "Articles de la catégorie \""+cat.lang(I18n.locale.to_s).name.to_s+'"') -cats << link_to(cat.lang(I18n.locale.to_s).name, category_public_article_path(:lang => @lang.slug,:slug => cat.lang(I18n.locale.to_s).slug), :title => "Articles de la catégorie \""+cat.lang(I18n.locale.to_s).name.to_s+'"')
=raw cats.join(", ") =raw cats.join(", ")
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do
=simple_format lang_article.description.truncate(160, separator: ' ') =simple_format lang_article.description.truncate(160, separator: ' ')
-@articles[1..2].each do |article| -@articles[1..2].each do |article|
-lang_article = article.lang_articles.find_by_lang_site_id(@lang.id) -lang_article = article.lang_articles.find_by_lang_site_id(@lang.id)
-img_url = "" -img_url = ""
@ -189,17 +189,17 @@
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do
%h2= lang_article.title %h2= lang_article.title
.description .description
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do
.date .date
=l article.published_at, :format => "%d/%m/%Y" =l article.published_at, :format => "%d/%m/%Y"
%span.sep %span.sep
="|" ="|"
=l article.published_at, :format => "%H:%M" =l article.published_at, :format => "%H:%M"
.cat .cat
-cats = [] -cats = []
-article.categories.uniq.each do |cat| -article.categories.uniq.each do |cat|
@ -207,13 +207,13 @@
=raw cats.join(", ") =raw cats.join(", ")
=link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do =link_to article_path(:slug => lang_article.slug, :lang => @lang.slug) do
=simple_format lang_article.description.truncate(160, separator: ' ') =simple_format lang_article.description.truncate(160, separator: ' ')
.columns.span_4.last-child .columns.span_4.last-child
=link_to "/#{I18n.locale.to_s}/blog.html" do =link_to "/#{I18n.locale.to_s}/blog.html" do
.blog_encart .blog_encart
=image_tag "/logo_blog.png" =image_tag "/logo_blog.png"
%h3 Blog %h3 Blog
.home_article_more .home_article_more
=link_to "/#{I18n.locale.to_s}/blog.html" do =link_to "/#{I18n.locale.to_s}/blog.html" do
@ -226,15 +226,15 @@
%span.sep %span.sep
> >
.clear .clear
-@menu_item_combat = MenuItem.find(260) -@menu_item_combat = MenuItem.find(260)
-if @lang.slug == "fr" -if @lang.slug == "fr"
.home_nos_combats .home_nos_combats
%h1= @menu_item_combat.menu_content.lang_pages.find_by_lang_site_id(@lang.id).title %h1= @menu_item_combat.menu_content.lang_pages.find_by_lang_site_id(@lang.id).title
%p.desc %p.desc
= @menu_item_combat.menu_content.lang_pages.find_by_lang_site_id(@lang.id).description = @menu_item_combat.menu_content.lang_pages.find_by_lang_site_id(@lang.id).description
.inner_combats .inner_combats
-i = 0 -i = 0
-MenuItem.where(:parent_id => @menu_item_combat.id).order(:position).each do |menu_item| -MenuItem.where(:parent_id => @menu_item_combat.id).order(:position).each do |menu_item|
@ -244,13 +244,13 @@
-name = menu_item_lang.name -name = menu_item_lang.name
-img_url = "" -img_url = ""
-if menu_item.image_file -if menu_item.image_file
-img_url = menu_item.image_file.file.large.medium.url -img_url = menu_item.image_file.file.large.medium.url
-if menu_item.image_file and menu_item.image_file.photograph -if menu_item.image_file and menu_item.image_file.photograph
-@page_images_credits << menu_item.image_file.photograph -@page_images_credits << menu_item.image_file.photograph
@ -259,20 +259,20 @@
-css_style = "background-image:url('#{img_url}');background-size:100%;background-size:cover;background-position:center center;background-color:black;" -css_style = "background-image:url('#{img_url}');background-size:100%;background-size:cover;background-position:center center;background-color:black;"
-if menu_item_lang.enabled == true and menu_item_lang.visible == true -if menu_item_lang.enabled == true and menu_item_lang.visible == true
-if i <= 6 -if i <= 6
=link_to @one_voice_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug) ,:style => css_style, :class => "square_link "+("active" if menu_item.id == @menu_item.id).to_s do =link_to @one_voice_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug) ,:style => css_style, :class => "square_link "+("active" if menu_item.id == @menu_item.id).to_s do
.inner .inner
.vertical_center=menu_item.menu_item_langs.find_by_lang_site_id(@lang.id).name .vertical_center=menu_item.menu_item_langs.find_by_lang_site_id(@lang.id).name
-else -else
=link_to @one_voice_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug) ,:class => "line_combat_link "+("active" if menu_item.id == @menu_item.id).to_s do =link_to @one_voice_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug) ,:class => "line_combat_link "+("active" if menu_item.id == @menu_item.id).to_s do
.right .right
> >
=menu_item.menu_item_langs.find_by_lang_site_id(@lang.id).name =menu_item.menu_item_langs.find_by_lang_site_id(@lang.id).name

View File

@ -0,0 +1,10 @@
#menu_top
.bars{:onclick => "$(this).closest('#menu_top').find('.menu').toggle();"}
=ic :bars
=link_to image_tag("/logo-france-rurale-fond.png", :id => "logo_france_rurale"), "/"
.menu
=render :partial => "public/shared/first_menu"

BIN
public.zip Normal file

Binary file not shown.