Commit 719e228e authored by imac's avatar imac

[Responsive]Page Personnalisation

parent bde1169d
...@@ -192,6 +192,7 @@ select,option{ ...@@ -192,6 +192,7 @@ select,option{
position: relative; position: relative;
line-height: 0px; line-height: 0px;
margin-bottom: 21px; margin-bottom: 21px;
width: 69%;
} }
.file-p{ .file-p{
position: absolute !important; position: absolute !important;
...@@ -2053,6 +2054,7 @@ label.chevron.bottom::first-letter { ...@@ -2053,6 +2054,7 @@ label.chevron.bottom::first-letter {
max-width: 358px; max-width: 358px;
top: 67px; top: 67px;
left: 40px; left: 40px;
z-index: 99;
} }
.floated-bloc h2{ .floated-bloc h2{
font-family: 'Crete Round'; font-family: 'Crete Round';
......
...@@ -68,7 +68,11 @@ ...@@ -68,7 +68,11 @@
.product-info { .product-info {
width: 65%; width: 65%;
} }
/*Home*/ /*Uniqpaper*/
.form-wrapper {
padding: 80px 20px 20px;
}
} }
/* ------------------------*/ /* ---------->>> 1024 <<<-----------*/ /* ------------------------*/ /* ------------------------*/ /* ---------->>> 1024 <<<-----------*/ /* ------------------------*/
...@@ -78,6 +82,21 @@ ...@@ -78,6 +82,21 @@
width: 40%; width: 40%;
padding: 65px 20px; padding: 65px 20px;
} }
/*Uniqpaper*/
#uniqpaper .right-container .left-panel {
width: 34%;
}
.floated-bloc{
left: 20px;
max-width: 80%;
}
.floated-bloc h2{
font-size: 30px;
line-height: 36px;
}
.floated-bloc .text-content{
padding: 28px 16px;
}
} }
/* ------------------------*/ /* ---------->>> 860 <<<-----------*/ /* ------------------------*/ /* ------------------------*/ /* ---------->>> 860 <<<-----------*/ /* ------------------------*/
@media screen and (min-width: 861px) { @media screen and (min-width: 861px) {
...@@ -86,10 +105,26 @@ ...@@ -86,10 +105,26 @@
} }
} }
@media screen and (max-width: 860px) { @media screen and (max-width: 860px) {
/* general */
.display--only-mobile{ .display--only-mobile{
display: block; display: block;
} }
/*Helper*/ .container-bg{
left: 0;
height: 100%;
width: 100% !important;
}
.right-container{
width: 100% !important;
}
.right-panel{
width: 100% !important;
float: none;
}
.rounded{
padding: 8px 22px 11px;
}
/* Helper */
.close-btn{ .close-btn{
top: 15px; top: 15px;
width: 37px; width: 37px;
...@@ -102,7 +137,7 @@ ...@@ -102,7 +137,7 @@
height: 15px; height: 15px;
top: 11px; top: 11px;
} }
/*Header*/ /* Header */
.nav-content{ .nav-content{
display: none; display: none;
padding-left:40px; padding-left:40px;
...@@ -154,6 +189,66 @@ ...@@ -154,6 +189,66 @@
line-height: 21px; line-height: 21px;
letter-spacing: 0px; letter-spacing: 0px;
} }
/*Uniqpaper*/
#uniqpaper .right-container .left-panel {
position: relative;
width: 100%;
left: initial !important;
}
.floated-bloc{
position: relative !important;
left: initial;
top: initial;
margin: 0 auto;
padding: 51px 0px;
max-width: 65%;
}
.floated-bloc .text-content{
margin-top: 6px;
padding: 20px 16px;
}
/* form */
.form-wrapper{
padding: 23px 20px 20px;
}
.half-col{
width: 100%;
}
.coord {
width: 76%;
margin: 0 auto;
padding-bottom: 20px;
}
.files{
width: 64%;
margin-left: 7px;
}
.file-wrapper{
margin-top: 24px;
}
.image-icon {
height: 86px;
width: 86px;
background-size: 86px;
}
.form-wrapper h2{
padding-bottom: 21px;
}
select, input[type ="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea{
line-height: 25px;
padding: 0 14px 3px;
}
textarea{
width: 80%;
display: block;
margin: 0 auto;
line-height: 13px;
padding-top: 9px;
}
/*footer*/ /*footer*/
footer .footer{ footer .footer{
display: none; display: none;
...@@ -162,7 +257,9 @@ ...@@ -162,7 +257,9 @@
/*END (max-width: 860px) */ /*END (max-width: 860px) */
/* ------------------------*/ /* ---------->>> 620 <<<-----------*/ /* ------------------------*/ /* ------------------------*/ /* ---------->>> 620 <<<-----------*/ /* ------------------------*/
@media screen and (max-width: 620px) { @media screen and (max-width: 620px) {
.floated-bloc{
max-width: 85%;
}
} }
/* ------------------------*/ /* ---------->>> 420 <<<-----------*/ /* ------------------------*/ /* ------------------------*/ /* ---------->>> 420 <<<-----------*/ /* ------------------------*/
@media screen and (max-width: 420px) { @media screen and (max-width: 420px) {
......
...@@ -314,16 +314,27 @@ $(document).on('click', '.moveDown', function(){ ...@@ -314,16 +314,27 @@ $(document).on('click', '.moveDown', function(){
}); });
} }
$.fn.getMenuBg = function(){ $.fn.getMenuBg = function(){
var imgSrc = $('header .nav-content > ul').find(' > li.current').data('img'); var imgSrc = $('header .nav-content > ul').find(' > li.current').data('img'),
navwWidth = $('.nav-wrapper').width(); windowWidth = $(window).width(),
navwWidth = $('.nav-wrapper').width(),
navHeight = $('.nav-header').outerHeight();
$('.container-bg').css({ $('.container-bg').css({
'background-image': "url("+ imgSrc +")", 'background-image': "url("+ imgSrc +")",
'opacity' : 0, 'opacity' : 0,
}) })
tlBg = new TimelineMax(); tlBg = new TimelineMax();
tlBg.to('.container-bg',0.9,{opacity:1},0.5); tlBg.to('.container-bg',0.9,{opacity:1},0.5);
tlBg.to('.container-bg',1.2,{width:navwWidth},0.4);
tlBg.from('.full-slides',1.2,{opacity:0, width:0},0.4); tlBg.from('.full-slides',1.2,{opacity:0, width:0},0.4);
if (windowWidth > 860){
tlBg.to('.container-bg',1.2,{width:navwWidth},0.4);
tlBg.to('.container-bg',0,{height:'100%'},0);
$('.main').css('padding-top',0);
}else{
$('.main').css('padding-top',navHeight);
tlBg.to('.container-bg',0,{height:navHeight},0);
}
} }
//Responsive function //Responsive function
$.fn.responsive = function(){ $.fn.responsive = function(){
...@@ -354,6 +365,7 @@ $.fn.getMenuBg = function(){ ...@@ -354,6 +365,7 @@ $.fn.getMenuBg = function(){
if (lastSectionHeight < windowHeight - footerHeight) if (lastSectionHeight < windowHeight - footerHeight)
$('#catalogue .panel-content section').last().height(2 * windowHeight/3 - footerHeight ); $('#catalogue .panel-content section').last().height(2 * windowHeight/3 - footerHeight );
checkFooterNavPosition(); checkFooterNavPosition();
$.fn.getMenuBg(); //Animation BG Menu
} }
//Wordpress js login //Wordpress js login
$('#user_login').attr('placeholder', 'Identifiant'); $('#user_login').attr('placeholder', 'Identifiant');
...@@ -488,6 +500,8 @@ $(window).load( function() { ...@@ -488,6 +500,8 @@ $(window).load( function() {
var timer; var timer;
$(window).scroll(function(e) { $(window).scroll(function(e) {
onScroll(e); onScroll(e);
var elem = $('.home-down-wrapper');
if (elem.length){
var downBTN = $('.home-down-wrapper').offset().top; var downBTN = $('.home-down-wrapper').offset().top;
if ($(window).scrollTop() > downBTN - $('.nav-header').outerHeight()) { if ($(window).scrollTop() > downBTN - $('.nav-header').outerHeight()) {
$('.home-footer-nav .nav-wrapper').addClass('fixed'); $('.home-footer-nav .nav-wrapper').addClass('fixed');
...@@ -495,6 +509,8 @@ $(window).scroll(function(e) { ...@@ -495,6 +509,8 @@ $(window).scroll(function(e) {
else { else {
$('.home-footer-nav .nav-wrapper').removeClass('fixed'); $('.home-footer-nav .nav-wrapper').removeClass('fixed');
} }
}
}); });
//$(window).bind("scrollStop",onScroll) //$(window).bind("scrollStop",onScroll)
$(document).ready(function(){ $(document).ready(function(){
...@@ -518,7 +534,6 @@ $(document).ready(function(){ ...@@ -518,7 +534,6 @@ $(document).ready(function(){
$('.filter-wrapper').open_filter(); $('.filter-wrapper').open_filter();
$.fn.responsive(); $.fn.responsive();
$.fn.showSubmenu(); //Catalog subMenu $.fn.showSubmenu(); //Catalog subMenu
$.fn.getMenuBg(); //Animation BG Menu
$('#fullpage').fullpageSlide(); //Stories $('#fullpage').fullpageSlide(); //Stories
$.fn.responsive(); $.fn.responsive();
$('.list-color-filter li').setBgColorList(); $('.list-color-filter li').setBgColorList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment