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
5c31293f
Commit
5c31293f
authored
May 06, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit css
parent
1bde051d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
18 deletions
+41
-18
settings.php
sites/default/settings.php
+4
-3
styles.css
themes/contrib/estore/css/styles.css
+23
-0
custom.js
themes/contrib/estore/js/custom.js
+14
-15
No files found.
sites/default/settings.php
View file @
5c31293f
...
...
@@ -767,9 +767,10 @@
include
$app_root
.
'/'
.
$site_path
.
'/settings.local.php'
;
}
$databases
[
'default'
][
'default'
]
=
array
(
'database'
=>
'invi_ptd'
,
'username'
=>
'invi_dev'
,
'password'
=>
'Invi@123456789a@A'
,
'database'
=>
'invi_estorequ'
,
'username'
=>
'user'
,
'password'
=>
'12345'
,
'prefix'
=>
''
,
'host'
=>
'localhost'
,
'port'
=>
'3306'
,
...
...
themes/contrib/estore/css/styles.css
View file @
5c31293f
...
...
@@ -14,6 +14,18 @@ html {
}
/* invi custom */
.middle-header-wrapper
.container-fluid.fixed-top.no-toolbar
{
top
:
0
}
.middle-header-wrapper
.container-fluid.fixed-top
{
position
:
fixed
;
z-index
:
200000
;
top
:
76px
;
left
:
0
;
right
:
0
;
width
:
100%
;
background
:
rgba
(
255
,
255
,
255
,
0.95
);
}
header
.navbar
.category-menu
ul
.menu.litte-menu
{
height
:
450px
;
overflow
:
hidden
;
...
...
@@ -35,6 +47,15 @@ header.navbar .category-menu ul.menu.litte-menu{
-o-transition
:
.3s
ease
;
transition
:
.3s
ease
;
}
.more-category
::before
{
/* position: absolute;
font-family: "Font Awesome 5 Pro";
content: "\f055";
top: 0;
right: 20px;
font-size: 18px;
pointer-events: none; */
}
.block-region-top-categories
img
{
width
:
100%
;
height
:
140px
;
...
...
@@ -61,6 +82,7 @@ header.navbar .category-menu ul.menu.litte-menu{
.middle-header-wrapper
.container-fluid
{
display
:
flex
;
align-items
:
center
;
background
:
white
;
}
@keyframes
mymove
{
...
...
@@ -9697,6 +9719,7 @@ body.toolbar-loading.toolbar {
.middle-header-wrapper
{
padding
:
20px
0
;
background
:
white
;
}
.middle-header-wrapper
.region-middle-header
img
{
...
...
themes/contrib/estore/js/custom.js
View file @
5c31293f
...
...
@@ -23,24 +23,23 @@
rightMenu
.
children
(
'li'
).
eq
(
10
).
show
();
})
var
checkHome
=
$
(
".estore-homepage-first"
);
console
.
log
(
checkHome
.
length
);
if
(
$
(
".toolbar-bar"
).
length
==
0
){
$
(
".middle-header-wrapper"
).
children
(
".container-fluid"
).
addClass
(
"no-toolbar"
);
}
if
(
checkHome
.
length
==
0
)
{
$
(
".menu.menu--category-menu.nav"
).
addClass
(
'hide-block'
);
}
// var wrap = $(window);
//
// wrap.on("scroll", function(e) {
//
// if (this.scrollTop > 147) {
// console.log('bb');
// wrap.addClass("fix-search");
// } else {
// console.log('cc',this.scrollTop);
//
// wrap.removeClass("fix-search");
// }
//
// });
$
(
window
).
scroll
(
function
()
{
console
.
log
(
"scrollTop"
,
$
(
window
).
scrollTop
()
)
// custom for ie
if
(
$
(
window
).
scrollTop
()
>
130
){
$
(
".middle-header-wrapper"
).
children
(
".container-fluid"
).
addClass
(
"fixed-top"
);
}
else
{
$
(
".middle-header-wrapper"
).
children
(
".container-fluid"
).
removeClass
(
"fixed-top"
);
}
});
// if(heightMenu > 400;)
})(
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