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
ee7adbb5
Commit
ee7adbb5
authored
Aug 30, 2017
by
Marwa Sfari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]JIRA : Nap-61 -> selected white color
parent
f71f7fbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
main.css
wp-content/themes/nap/assets/css/main.css
+3
-1
main.js
wp-content/themes/nap/assets/js/main.js
+14
-0
product.js
wp-content/themes/nap/assets/js/product.js
+1
-7
No files found.
wp-content/themes/nap/assets/css/main.css
View file @
ee7adbb5
...
...
@@ -1990,7 +1990,9 @@ label.chevron.bottom::first-letter {
margin-bottom
:
0px
;
line-height
:
14px
;
}
.filter-bloc
.list-color-filter
li
.selected.is-white
:before
{
color
:
#071D3D
;
}
.filter-bloc
.list-color-filter
li
:before
{
content
:
''
;
}
...
...
wp-content/themes/nap/assets/js/main.js
View file @
ee7adbb5
...
...
@@ -191,6 +191,19 @@ $.fn.loadPageContent = function(){
}
return
color
;
}
//checkWhiteColor = function(item) {
$
.
fn
.
setColorToWhite
=
function
(
item
){
//$('.list-wrapper .color-list')
$
(
this
).
each
(
function
(){
elem
=
item
?
$
(
this
).
find
(
item
)
:
$
(
this
),
isWhite
=
checkWhiteColor
(
elem
.
data
(
'color'
));
if
(
isWhite
!=
elem
.
data
(
'color'
)){
elem
.
addClass
(
'is-white'
);
}
});
}
$
.
fn
.
setBgColorList
=
function
(){
$
(
this
).
each
(
function
(){
$
(
this
).
css
({
...
...
@@ -688,6 +701,7 @@ $(document).ready(function(){
$
(
'.product-list article'
).
each
(
function
(){
$
(
this
).
showProductListColors
();
});
$
(
'.filter-bloc .list-color-filter li'
).
setColorToWhite
();
setTimeout
(
function
(){
onScrollCover
();
},
330
);
...
...
wp-content/themes/nap/assets/js/product.js
View file @
ee7adbb5
...
...
@@ -10,13 +10,7 @@ function loadProductContent() {
$
(
'.pa_couleur li'
).
getListColors
();
$
(
'.pa_couleur li'
).
selectColor
();
$
(
'.pa_format li'
).
selectFormat
();
$
(
'.list-wrapper .color-list'
).
each
(
function
(){
var
elem
=
$
(
this
).
find
(
'input'
),
isWhite
=
checkWhiteColor
(
elem
.
data
(
'color'
));
if
(
isWhite
!=
elem
.
data
(
'color'
)){
elem
.
addClass
(
'is-white'
);
}
});
$
(
'.list-wrapper .color-list'
).
setColorToWhite
(
'input'
);
$
(
'#zoom'
).
zoom
();
$
(
'article[data-color], .pa_couleur li'
).
click
(
function
(
e
)
{
$
(
this
).
selectSlide
(
$
(
'#slides'
));
...
...
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