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

View File

@ -3652,4 +3652,6 @@ a.newsletter_list{
}
@media (max-width: 600px) {
}

View File

@ -61,13 +61,6 @@ body{
}
.slide{
.link_overlay{
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
}
position:relative;
.description{
position:absolute;
@ -177,7 +170,6 @@ h1{
}
table{
width:600px !important;
max-width:100%;
border-collapse:collapse;
td{
@ -198,7 +190,7 @@ h1{
color:red;
}
.submit{
width:600px;
//width:600px;
max-width:100%;
text-align:right;
padding:14px 0;
@ -296,6 +288,11 @@ h1{
}
td {
width: 50%;
vertical-align: top;
padding-right: 6px;
}
.actu{
.img{
@ -456,3 +453,240 @@ img{
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

@ -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

@ -84,7 +84,7 @@
%br
#actus
.center
#left_actus{:style => "width:100%;float:none"}
#left_actus
=image_tag("/blog.png", :class => "blog_img")
%h2
Notre nouveau site sera en ligne
@ -157,15 +157,10 @@
-else
=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
#menu_top
=link_to image_tag("/logo-france-rurale-fond.png", :id => "logo_france_rurale"), "/"
.menu
=render :partial => "public/shared/first_menu"
=render :partial => "public/shared/menu_top"
@ -207,6 +202,7 @@
=l(home_slider_slide.article.published_at, :format => :human_date)
.content
%h3=home_slider_slide.titre1
#contentdescription
=home_slider_slide.description1
@ -226,11 +222,7 @@
.slide_home_wrapper.with_ratio{:style => "background-image:url('#{@img_url}');", :data => {:ratio => 0.35}}
#menu_top
=link_to image_tag("/logo-france-rurale-fond.png", :id => "logo_france_rurale"), "/"
.menu
=render :partial => "public/shared/first_menu"
=render :partial => "public/shared/menu_top"
-if @menu_item and @menu_item.id == 1
@ -247,7 +239,7 @@
%strong
="/ Notre Blog"
.article
-Article.before(Time.now).recents.limit(3).each do |article|
-lang_article = article.lang_articles.find_by_lang_site_id(@lang.id)
-if article.image_file

View File

@ -1,4 +1,4 @@
.formulairecontact
- @contact = @contact || Contact.new(:provenance_id => 5)
=semantic_form_for [:public, @contact], :remote => true do |f|
=f.inputs do
@ -6,10 +6,10 @@
=f.hidden_field :provenance_id
%table{:style => "border-collapse:collapse;width:100%;"}
%table
%tr
%td{:style => "width:50%;vertical-align:top;padding-right:6px;"}
%td
=f.input :name, :label => false, :placeholder => qit("contact nom","Nom*")
@ -23,9 +23,9 @@
%tr
%td{:style => "width:50%;vertical-align:top;padding-right:6px;"}
%td
=f.input :email, :label => false , :placeholder =>"Email"
%td{:style => "width:50%;vertical-align:top;padding-left:6px;"}
%td
=f.input :phone, :label => false, :placeholder => qit("contact tel","Téléphone")
%tr
%td{:colspan => 2}

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.