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
55a2ac58
Commit
55a2ac58
authored
Sep 12, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit frontend 12/09
parent
d98c3bb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
7 deletions
+32
-7
styles.css
themes/contrib/estore/css/styles.css
+26
-5
custom.js
themes/contrib/estore/js/custom.js
+6
-2
No files found.
themes/contrib/estore/css/styles.css
View file @
55a2ac58
...
...
@@ -1372,6 +1372,10 @@ header.navbar .block-search-navigation .search-icon {
transition
:
0.3s
;
max-height
:
48px
;
}
.iti--allow-dropdown
input
[
type
=
tel
],
.iti--allow-dropdown
{
width
:
100%
}
.cart-form
.order-total-line.noti
h4
{
font-size
:
15px
;
}
...
...
@@ -5933,7 +5937,7 @@ select[multiple].input-lg,
}
.form-inline
.control-label
{
margin-bottom
:
0
;
/* margin-bottom: 0; */
vertical-align
:
middle
;
}
...
...
@@ -11525,12 +11529,12 @@ body.toolbar-loading.toolbar {
position
:
absolute
;
z-index
:
200
;
top
:
130%
;
lef
t
:
0
;
righ
t
:
0
;
visibility
:
hidden
;
width
:
420px
;
padding
:
20px
15px
;
transition
:
all
0.5s
ease
;
transform
:
translateX
(
-50%
);
/* transform: translateX(-50%); */
opacity
:
0
;
border
:
1px
solid
#f1f1f1
;
border-top
:
3px
solid
#e94337
;
...
...
@@ -11538,12 +11542,21 @@ body.toolbar-loading.toolbar {
background
:
#fff
none
repeat
scroll
0
0
;
box-shadow
:
1px
1px
7px
rgba
(
0
,
0
,
0
,
0.05
);
}
.menu--category-menu.product.product-item
.dropdown-menu
{
display
:
none
!important
;
}
}
.menu--category-menu.product.product-item
.open
.dropdown-menu
{
display
:
flex
!important
;
margin-top
:
3px
;
}
.middle-header-wrapper
.region-right-middle-header
.cart-block-wrapper
.cart-contents
:before
{
position
:
absolute
;
top
:
-10px
;
left
:
63%
;
content
:
""
;
/* content: ""; */
transform
:
translateX
(
-50%
);
border-right
:
10px
solid
transparent
;
border-bottom
:
10px
solid
#e94337
;
...
...
@@ -11665,7 +11678,7 @@ header.navbar .category-menu .block-title:hover {}
header
.navbar
.category-menu
ul
.menu
{
position
:
absolute
;
z-index
:
999
;
top
:
7
8
px
;
top
:
7
6
px
;
left
:
0
;
display
:
block
;
width
:
100%
;
...
...
@@ -11751,6 +11764,14 @@ header.navbar .main-menu {
header
.navbar
.main-menu
.toggle-wrap
{
display
:
none
;
}
@media
(
max-width
:
320px
)
{
.middle-header-wrapper
.region-left-middle-header
.branding-block
.site-title
a
.name.navbar-brand
{
font-size
:
17px
!important
;
}
.mobile-top
{
width
:
280px
!important
;
}
}
@media
(
max-width
:
767px
)
{
header
.navbar
.main-menu
{
...
...
themes/contrib/estore/js/custom.js
View file @
55a2ac58
...
...
@@ -69,10 +69,14 @@ for (i = 0; i < acc.length; i++) {
}
else
if
(
current
.
length
>=
16
){
let
currentpathSlice
=
current
.
slice
(
0
,
17
);
if
(
currentpathSlice
==
"/product_category"
||
currentpathSlice
==
"/search-products"
){
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'
);
$
(
".main-container"
).
height
(
$
(
".menu.menu--category-menu.nav"
).
height
()
+
110
);
}
if
(
currentpathSlice
==
"/search-products"
){
$
(
".menu.menu--category-menu.nav"
).
removeClass
(
'hide-block'
).
removeClass
(
'not-home'
).
addClass
(
'product'
);
$
(
".main-container"
).
height
(
$
(
".menu.menu--category-menu.nav"
).
height
()
+
110
);
}
}
else
{
...
...
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