Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
23d4e802
Commit
23d4e802
authored
Aug 28, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]JIRA : Nap-33 -> Responsive contact page
parent
b8743017
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
responsive.css
wp-content/themes/nap/assets/css/responsive.css
+6
-4
main.js
wp-content/themes/nap/assets/js/main.js
+3
-3
map.js
wp-content/themes/nap/assets/js/map.js
+1
-1
contact.php
wp-content/themes/nap/contact.php
+2
-2
No files found.
wp-content/themes/nap/assets/css/responsive.css
View file @
23d4e802
...
@@ -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
;
...
...
wp-content/themes/nap/assets/js/main.js
View file @
23d4e802
...
@@ -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
();
...
...
wp-content/themes/nap/assets/js/map.js
View file @
23d4e802
...
@@ -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'
)){
...
...
wp-content/themes/nap/contact.php
View file @
23d4e802
...
@@ -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">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment