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
dbad73c7
Commit
dbad73c7
authored
Aug 09, 2017
by
imac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]Responsive : container bg
parent
719e228e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
responsive.css
wp-content/themes/nap/assets/css/responsive.css
+1
-0
main.js
wp-content/themes/nap/assets/js/main.js
+9
-9
No files found.
wp-content/themes/nap/assets/css/responsive.css
View file @
dbad73c7
...
...
@@ -113,6 +113,7 @@
left
:
0
;
height
:
100%
;
width
:
100%
!important
;
z-index
:
99999
;
}
.right-container
{
width
:
100%
!important
;
...
...
wp-content/themes/nap/assets/js/main.js
View file @
dbad73c7
...
...
@@ -327,14 +327,7 @@ $.fn.getMenuBg = function(){
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
$
.
fn
.
responsive
=
function
(){
...
...
@@ -344,6 +337,7 @@ $.fn.getMenuBg = function(){
windowHeight
=
$
(
window
).
height
(),
windowWidth
=
$
(
window
).
width
(),
navMenuWidth
=
$
(
'.nav-wrapper'
).
outerWidth
(),
navHeight
=
$
(
'.nav-header'
).
outerHeight
(),
navHeader
=
$
(
'.nav-header'
).
outerHeight
(),
containerHeight
=
windowHeight
-
footerHeight
,
navPhototequeWidth
=
$
(
'.nav-phototeque'
).
outerWidth
(),
...
...
@@ -364,8 +358,14 @@ $.fn.getMenuBg = function(){
$
(
'.contact-form .inner-form'
).
outerHeight
(
windowHeight
-
footerContact
);
if
(
lastSectionHeight
<
windowHeight
-
footerHeight
)
$
(
'#catalogue .panel-content section'
).
last
().
height
(
2
*
windowHeight
/
3
-
footerHeight
);
if
(
windowWidth
>
860
){
$
(
'.container-bg'
).
css
({
'height'
:
'100%'
});
$
(
'.main'
).
css
(
'padding-top'
,
0
);
}
else
{
$
(
'.main'
).
css
(
'padding-top'
,
navHeight
);
$
(
'.container-bg'
).
css
({
'height'
:
navHeight
});
}
checkFooterNavPosition
();
$
.
fn
.
getMenuBg
();
//Animation BG Menu
}
//Wordpress js login
$
(
'#user_login'
).
attr
(
'placeholder'
,
'Identifiant'
);
...
...
@@ -532,12 +532,12 @@ $(document).ready(function(){
$
(
'.news-btn'
).
open_news
();
$
(
'.close-btn'
).
close_news
();
$
(
'.filter-wrapper'
).
open_filter
();
$
.
fn
.
responsive
();
$
.
fn
.
showSubmenu
();
//Catalog subMenu
$
(
'#fullpage'
).
fullpageSlide
();
//Stories
$
.
fn
.
responsive
();
$
(
'.list-color-filter li'
).
setBgColorList
();
$
.
fn
.
animation
();
//Global animation for entire site
$
.
fn
.
getMenuBg
();
//Animation BG Menu
//TODO
$
(
'.cover-wrapper'
).
last
().
addClass
(
'last'
);
$
(
'.cover-wrapper'
).
first
().
addClass
(
'first'
);
...
...
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