Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
ptd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quan Nguyen
ptd
Commits
77c818ab
Commit
77c818ab
authored
Sep 22, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quick fix bug click product category
parent
3134b050
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
styles.css
themes/contrib/estore/css/styles.css
+9
-9
custom.js
themes/contrib/estore/js/custom.js
+5
-3
No files found.
themes/contrib/estore/css/styles.css
View file @
77c818ab
...
...
@@ -1055,13 +1055,13 @@ header.navbar .category-menu ul.menu.litte-menu {
}
.hl-link-img
{
background
:
white
;
z-index
:
53
;
position
:
absolute
;
top
:
2
px
;
right
:
19
px
;
border-radius
:
50%
;
padding
:
8
px
;
background
:
white
;
z-index
:
53
;
position
:
absolute
;
top
:
5
px
;
right
:
21
px
;
border-radius
:
5px
;
padding
:
4
px
;
}
.cart-form
.table-responsive
.views-field-edit-quantity
.form-group
input
[
type
=
number
]
{
...
...
@@ -1094,7 +1094,7 @@ header.navbar .category-menu ul.menu.litte-menu {
}
header
.link_content
{
background
:
#e94537
;
background
:
#2196F3
;
height
:
57px
;
display
:
block
;
font-size
:
14px
;
...
...
@@ -11555,7 +11555,7 @@ body.toolbar-loading.toolbar {
display
:
none
!important
;
}
.menu--category-menu.product.product-item
.open
.dropdown-menu
{
.menu--category-menu.product.product-item
.open
-item
.dropdown-menu
{
display
:
flex
!important
;
margin-top
:
3px
;
}
...
...
themes/contrib/estore/js/custom.js
View file @
77c818ab
...
...
@@ -71,7 +71,7 @@ for (i = 0; i < acc.length; i++) {
let
currentpathSlice
=
current
.
slice
(
0
,
17
);
if
(
currentpathSlice
==
"/product_category"
)
{
$
(
".menu.menu--category-menu.nav"
).
removeClass
(
'hide-block'
).
removeClass
(
'not-home'
).
addClass
(
'product product-item'
);
$
(
".menu.menu--category-menu.nav li.active-trail"
).
addClass
(
'open'
);
$
(
".menu.menu--category-menu.nav li.active-trail"
).
addClass
(
'open
-item
'
);
$
(
".main-container"
).
css
({
"min-height"
:
$
(
".menu.menu--category-menu.nav"
).
height
()
+
50
,
"margin-bottom"
:
"50px"
})
;
}
if
(
currentpathSlice
==
"/search-products"
)
{
...
...
@@ -121,7 +121,9 @@ for (i = 0; i < acc.length; i++) {
}
menuSidebar
();
$
(
".menu--category-menu.product-item .expanded"
).
click
(
function
(){
$
(
this
).
toggleClass
(
"open-item"
);
})
if
(
$
(
window
).
width
()
<=
991
)
{
$
(
".view-manufacturer-list .view-content"
).
children
().
slice
(
0
,
5
).
wrapAll
(
"<div class = 'menu-wrap'></div>"
);
...
...
@@ -134,7 +136,6 @@ for (i = 0; i < acc.length; i++) {
if
(
cartText
.
text
()
===
"0,00 USD"
){
cartText
.
text
(
"0 VNĐ"
)
}
console
.
log
(
cartText
);
var
textPrice
=
$
(
".field--name-price"
);
for
(
let
i
=
0
;
i
<
textPrice
.
length
;
i
++
)
{
let
price
=
textPrice
.
eq
(
i
).
text
();
...
...
@@ -209,4 +210,5 @@ for (i = 0; i < acc.length; i++) {
$
(
".mobile-top"
).
removeClass
(
"menu-toggle"
);
$
(
".mobile-modal"
).
hide
();
})
})(
window
.
jQuery
,
window
.
Drupal
);
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