Commit 23d4e802 authored by imac's avatar imac

[Bugfix]JIRA : Nap-33 -> Responsive contact page

parent b8743017
...@@ -380,16 +380,17 @@ ...@@ -380,16 +380,17 @@
.header-filter-contact .open-filter{ .header-filter-contact .open-filter{
cursor: pointer; cursor: pointer;
} }
.contact-wrapper .form-wrapper h2:after{ .header-filter-contact:after {
content: '+'; content: '+';
display: inline-block; display: inline-block;
float: right;
font-size: 30px; font-size: 30px;
line-height: 14px; line-height: 14px;
display: inline-block; display: inline-block;
float: right; position: absolute;
right: 22px;
top: 3px;
} }
.contact-wrapper .form-wrapper h2.on:after{ .header-filter-contact.on:after{
content: ''; content: '';
height: 2px; height: 2px;
width: 16px; width: 16px;
...@@ -419,6 +420,7 @@ ...@@ -419,6 +420,7 @@
.contact-wrapper .form-wrapper h2{ .contact-wrapper .form-wrapper h2{
padding-left: 25px; padding-left: 25px;
padding-right: 21px; padding-right: 21px;
width: calc(100% - 20px);
} }
.form-wrapper h2{ .form-wrapper h2{
padding-bottom: 24px; padding-bottom: 24px;
......
...@@ -8,7 +8,7 @@ $(function(){ ...@@ -8,7 +8,7 @@ $(function(){
}); });
$(document).find('.contact-form .open-filter').on('click', function(){ $(document).find('.contact-form .open-filter').on('click', function(){
$('.contact-form form').slideToggle(); $('.contact-form form').slideToggle();
$(this).parent().find('h2').toggleClass('on'); $(this).parent().toggleClass('on');
checkFilterContactWrapper(); checkFilterContactWrapper();
}) })
...@@ -434,12 +434,12 @@ $(function(){ ...@@ -434,12 +434,12 @@ $(function(){
if ($('body #home').length){ if ($('body #home').length){
$('.main').css('padding-top',0); $('.main').css('padding-top',0);
} }
if ($('.filter-wrapper .header-filter-contact h2').hasClass('on')){ if ($('.filter-wrapper .header-filter-contact').hasClass('on')){
$('.filter, .left-panel .map, .details').show(); $('.filter, .left-panel .map, .details').show();
}else{ }else{
$('.filter, .left-panel .map, .details').hide(); $('.filter, .left-panel .map, .details').hide();
} }
if($('.contact-form h2').hasClass('on')){ if($('.contact-form .header-filter-contact').hasClass('on')){
$('.contact-form form').show(); $('.contact-form form').show();
}else{ }else{
$('.contact-form form').hide(); $('.contact-form form').hide();
......
...@@ -69,7 +69,7 @@ function selectZone(zone, initialClassDep, initialClassNum) { ...@@ -69,7 +69,7 @@ function selectZone(zone, initialClassDep, initialClassNum) {
} }
function showMap(){ function showMap(){
jQuery(document).find('.filter-wrapper .header-filter-contact .open-filter').on('click', function(){ jQuery(document).find('.filter-wrapper .header-filter-contact .open-filter').on('click', function(){
var toggleButton = $(this).parent().find('h2'); var toggleButton = $(this).parent();
toggleButton.toggleClass('on'); toggleButton.toggleClass('on');
$('.filter').appendMap(); $('.filter').appendMap();
if (toggleButton.hasClass('on')){ if (toggleButton.hasClass('on')){
......
...@@ -100,8 +100,8 @@ $post_ID = 157; ...@@ -100,8 +100,8 @@ $post_ID = 157;
</div> </div>
<div class="contact-form right border-l row gray-bg"> <div class="contact-form right border-l row gray-bg">
<div class="form-wrapper inner-form"> <div class="form-wrapper inner-form">
<div class="header-filter-contact"> <div class="header-filter-contact on">
<h2 class="on">Je souhaite être <br> contacté</h2> <h2>Je souhaite être <br> contacté</h2>
<span class="open-filter abs-full display--only-mobile"></span> <span class="open-filter abs-full display--only-mobile"></span>
</div> </div>
<!--<form method="POST"> <!--<form method="POST">
......
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