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
9c3531f4
Commit
9c3531f4
authored
Aug 22, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit ..
parent
56aa9dab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
styles.css
themes/contrib/estore/css/styles.css
+7
-0
custom.js
themes/contrib/estore/js/custom.js
+2
-2
page.html.twig
themes/contrib/estore/templates/system/page.html.twig
+3
-3
No files found.
themes/contrib/estore/css/styles.css
View file @
9c3531f4
...
...
@@ -746,6 +746,7 @@ input[type=number] {
.menu--category-menu.product
{
/* overflow:auto; */
/* max-height: 785px; */
padding-bottom
:
40px
;
}
.menu--category-menu.product
ul
.sidebar-submenu-2
{
position
:
relative
;
...
...
@@ -13416,10 +13417,15 @@ a {
.search-product
.col
{
padding
:
10px
;
}
#views-bootstrap-products-page-list
.col
{
padding-right
:
10px
;
padding-left
:
10px
;
}
.views-view-grid
article
.commerce-product.teaser
{
box-shadow
:
0px
0px
7px
0px
rgba
(
0
,
0
,
0
,
.21
);
overflow
:
hidden
;
margin-bottom
:
15px
;
padding
:
5px
;
}
.search-product
.product-wrapper
{
...
...
@@ -13460,6 +13466,7 @@ header.navbar .category-menu ul.menu li.less-category{
}
.menu--category-menu.product
ul
.sidebar-submenu-2
li
a
{
line-height
:
initial
!important
;
white-space
:
normal
;
}
.menu--category-menu
.open
ul
.sidebar-submenu-2
li
a
{
line-height
:
1.5
;
...
...
themes/contrib/estore/js/custom.js
View file @
9c3531f4
...
...
@@ -65,13 +65,13 @@ for (i = 0; i < acc.length; i++) {
if
(
current
==
"/products"
){
$
(
".menu.menu--category-menu.nav"
).
removeClass
(
'hide-block'
).
removeClass
(
'not-home'
).
addClass
(
'product'
);
$
(
".main-container"
).
height
(
$
(
".menu.menu--category-menu.nav"
).
height
()
+
7
0
);
$
(
".main-container"
).
height
(
$
(
".menu.menu--category-menu.nav"
).
height
()
+
11
0
);
}
else
if
(
current
.
length
>=
16
){
let
currentpathSlice
=
current
.
slice
(
0
,
17
);
if
(
currentpathSlice
==
"/product_category"
||
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
()
+
7
0
);
$
(
".main-container"
).
height
(
$
(
".menu.menu--category-menu.nav"
).
height
()
+
11
0
);
}
}
...
...
themes/contrib/estore/templates/system/page.html.twig
View file @
9c3531f4
...
...
@@ -226,7 +226,7 @@
{# Sidebar First #}
{%
if
page.sidebar_first
%}
{%
block
sidebar_first
%}
<aside
class=
"col-sm-3"
role=
"complementary"
>
<aside
class=
"col-sm-
12 col-md-
3"
role=
"complementary"
>
{{
page.sidebar_first
}}
</aside>
{%
endblock
%}
...
...
@@ -236,8 +236,8 @@
{%
set
content_classes
=
[
page.sidebar_first
and
page.sidebar_second
?
'col-sm-6'
,
page.sidebar_first
and
page.sidebar_second
is
empty
?
'col-sm-9'
,
page.sidebar_second
and
page.sidebar_first
is
empty
?
'col-
sm-9
'
,
page.sidebar_first
and
page.sidebar_second
is
empty
?
'col-sm-
12 col-md-
9'
,
page.sidebar_second
and
page.sidebar_first
is
empty
?
'col-
md-9 col-sm-12
'
,
page.sidebar_first
is
empty
and
page.sidebar_second
is
empty
?
'col-sm-12'
]
%}
...
...
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