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
d6820112
Commit
d6820112
authored
May 07, 2020
by
Chi Bui
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add top button
parent
fc5edbad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
9 deletions
+83
-9
styles.css
themes/contrib/estore/css/styles.css
+70
-7
custom.js
themes/contrib/estore/js/custom.js
+7
-0
homepage--first.html.twig
...emplates/layouts/homepage/first/homepage--first.html.twig
+3
-1
page.html.twig
themes/contrib/estore/templates/system/page.html.twig
+3
-1
No files found.
themes/contrib/estore/css/styles.css
View file @
d6820112
...
@@ -5,10 +5,17 @@
...
@@ -5,10 +5,17 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
@import
url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,700i&subset=cyrillic")
;
/* @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,700i&subset=cyrillic"); */
@import
url('https://fonts.googleapis.com/css2?family=Roboto&display=swap')
;
@font-face
{
font-family
:
"Roboto"
;
src
:
url('https://fonts.googleapis.com/css2?family=Roboto&display=swap')
format
(
"truetype"
);
font-weight
:
normal
;
font-style
:
normal
;
}
html
{
body
{
font-family
:
sans-serif
;
font-family
:
'Roboto'
,
sans-serif
!important
;
-webkit-text-size-adjust
:
100%
;
-webkit-text-size-adjust
:
100%
;
-ms-text-size-adjust
:
100%
;
-ms-text-size-adjust
:
100%
;
}
}
...
@@ -95,6 +102,53 @@ header.navbar .category-menu ul.menu.litte-menu {
...
@@ -95,6 +102,53 @@ header.navbar .category-menu ul.menu.litte-menu {
height
:
455px
;
height
:
455px
;
/* // overflow: hidden; */
/* // overflow: hidden; */
}
}
#scrollUp
{
background
:
#c40316
none
repeat
scroll
0
0
;
bottom
:
85px
;
color
:
#ffffff
;
overflow
:
hidden
;
cursor
:
pointer
;
display
:
none
;
font-size
:
20px
;
height
:
45px
;
line-height
:
39px
;
position
:
fixed
;
right
:
12px
;
text-align
:
center
;
width
:
45px
;
z-index
:
9999
;
border-radius
:
50%
;
border
:
2px
solid
#fff
;
-webkit-transition
:
0.3s
;
transition
:
0.3s
;
}
#scrollUp
:hover
i
{
animation-name
:
fadeInUp
;
animation-duration
:
1s
;
animation-fill-mode
:
both
;
animation-iteration-count
:
infinite
;
}
@keyframes
fadeInUp
{
from
{
transform
:
translate3d
(
0
,
40px
,
0
)
}
to
{
transform
:
translate3d
(
0
,
0
,
0
);
opacity
:
1
}
}
@-webkit-keyframes
fadeInUp
{
from
{
transform
:
translate3d
(
0
,
40px
,
0
)
}
to
{
transform
:
translate3d
(
0
,
0
,
0
);
opacity
:
1
}
}
.menu--category-menu
.dropdown-toggle
i
{
.menu--category-menu
.dropdown-toggle
i
{
font-size
:
14px
;
font-size
:
14px
;
...
@@ -103,8 +157,17 @@ header.navbar .category-menu ul.menu.litte-menu {
...
@@ -103,8 +157,17 @@ header.navbar .category-menu ul.menu.litte-menu {
/* float: right; */
/* float: right; */
top
:
15px
;
top
:
15px
;
position
:
absolute
;
position
:
absolute
;
right
:
38
px
;
right
:
15
px
;
}
}
/* .top-region{
background: white;
}
.region.region-content{
background: #f5f5f9
}
.layout__region--first-collection--inner .row{
background: white
} */
.more-category
,
.less-category
{
.more-category
,
.less-category
{
/* text-align: center; */
/* text-align: center; */
text-transform
:
uppercase
;
text-transform
:
uppercase
;
...
@@ -114,7 +177,7 @@ header.navbar .category-menu ul.menu.litte-menu {
...
@@ -114,7 +177,7 @@ header.navbar .category-menu ul.menu.litte-menu {
font-family
:
Rubik
,
Arial
,
Helvetica
,
sans-serif
;
font-family
:
Rubik
,
Arial
,
Helvetica
,
sans-serif
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
500
;
font-weight
:
500
;
padding
:
15px
0
10px
0
;
padding
:
0
20px
;
text-decoration
:
none
;
text-decoration
:
none
;
-webkit-transition
:
.3s
ease
;
-webkit-transition
:
.3s
ease
;
-moz-transition
:
.3s
ease
;
-moz-transition
:
.3s
ease
;
...
@@ -265,7 +328,7 @@ header .link_content a:hover {
...
@@ -265,7 +328,7 @@ header .link_content a:hover {
border
:
1px
solid
#e94337
;
border
:
1px
solid
#e94337
;
border-radius
:
4px
;
border-radius
:
4px
;
padding
:
5px
20px
;
padding
:
5px
20px
;
background
:
#e86c6c26
;
background
:
#F6E8EA
;
}
}
.pin_be
{
.pin_be
{
...
@@ -10477,7 +10540,7 @@ header.navbar .block-search-navigation .search-icon.active {
...
@@ -10477,7 +10540,7 @@ header.navbar .block-search-navigation .search-icon.active {
.footer
{
.footer
{
padding
:
50px
0
0
0
;
padding
:
50px
0
0
0
;
background-color
:
#
f6f7f7
;
background-color
:
#
F6E8EA
;
}
}
.footer
.block
.block-title
{
.footer
.block
.block-title
{
...
...
themes/contrib/estore/js/custom.js
View file @
d6820112
...
@@ -39,9 +39,16 @@
...
@@ -39,9 +39,16 @@
$
(
".menu.menu--category-menu.nav"
).
addClass
(
'hide-block'
);
$
(
".menu.menu--category-menu.nav"
).
addClass
(
'hide-block'
);
}
}
$
(
window
).
scroll
(
function
()
{
$
(
window
).
scroll
(
function
()
{
// console.log($(window).scrollTop() )
if
(
$
(
window
).
scrollTop
()
>
130
){
if
(
$
(
window
).
scrollTop
()
>
130
){
$
(
".middle-header-wrapper"
).
children
(
".container-fluid"
).
addClass
(
"fixed-top"
);
$
(
".middle-header-wrapper"
).
children
(
".container-fluid"
).
addClass
(
"fixed-top"
);
}
}
if
(
$
(
window
).
scrollTop
()
<
380
){
$
(
"#scrollUp"
).
hide
();
}
if
(
$
(
window
).
scrollTop
()
>
380
){
$
(
"#scrollUp"
).
show
();
}
else
{
else
{
$
(
".middle-header-wrapper"
).
children
(
".container-fluid"
).
removeClass
(
"fixed-top"
);
$
(
".middle-header-wrapper"
).
children
(
".container-fluid"
).
removeClass
(
"fixed-top"
);
}
}
...
...
themes/contrib/estore/templates/layouts/homepage/first/homepage--first.html.twig
View file @
d6820112
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<div
{{
attributes
.
addClass
(
'estore-homepage-first'
)
}}
>
<div
{{
attributes
.
addClass
(
'estore-homepage-first'
)
}}
>
{%
if
content.top_slideshow
or
content.top_categories
%}
{%
if
content.top_slideshow
or
content.top_categories
%}
<div
class=
"top-region container-fluid"
>
<div
class=
"top-region"
>
<div
class=
" container-fluid"
>
<div
class=
"top-region-inner"
>
<div
class=
"top-region-inner"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-3 hidden-xs hidden-sm"
>
</div>
<div
class=
"col-lg-3 hidden-xs hidden-sm"
>
</div>
...
@@ -28,6 +29,7 @@
...
@@ -28,6 +29,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{%
endif
%}
{%
endif
%}
...
...
themes/contrib/estore/templates/system/page.html.twig
View file @
d6820112
...
@@ -231,7 +231,9 @@
...
@@ -231,7 +231,9 @@
</div>
</div>
</div>
</div>
{%
endblock
%}
{%
endblock
%}
<a
id=
"scrollUp"
href=
"#top"
style=
"position: fixed; z-index: 2147483647; display: block;"
>
<i
class=
"fa fa-angle-double-up"
></i>
</a>
{%
block
footer
%}
{%
block
footer
%}
<footer
class=
"footer"
role=
"contentinfo"
>
<footer
class=
"footer"
role=
"contentinfo"
>
<div
class=
"footer-top clearfix"
>
<div
class=
"footer-top clearfix"
>
...
...
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