Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
19bfa5cb
Commit
19bfa5cb
authored
Feb 11, 2023
by
wd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复手机模式下顶部header头部高度,以及调整顶部包邮图片信息的样式
parent
b7b446b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
app/design/frontend/Joshine/breeze/Magento_Theme/templates/html/header/logo.phtml
+31
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+2
-2
No files found.
app/design/frontend/Joshine/breeze/Magento_Theme/templates/html/header/logo.phtml
View file @
19bfa5cb
...
...
@@ -19,6 +19,37 @@ $logoHeight = $logoSizeResolver !== null && $logoSizeResolver->getHeight()
?
$logoSizeResolver
->
getHeight
()
:
$block
->
getLogoHeight
();
?>
<script>
window
.
onscroll
=
function
(){
var
top
=
document
.
getElementById
(
"topBtn"
);
if
(
document
.
documentElement
.
scrollTop
>
200
||
document
.
body
.
scrollTop
>
200
){
top
.
style
.
display
=
"block"
;
}
else
{
top
.
style
.
display
=
"none"
;
}
}
var
userAgentInfo
=
navigator
.
userAgent
;
var
Agents
=
new
Array
(
"Android"
,
"iPhone"
,
"SymbianOS"
,
"Windows Phone"
,
"iPad"
,
"iPod"
);
var
flag
=
true
;
for
(
var
v
=
0
;
v
<
Agents
.
length
;
v
++
)
{
if
(
userAgentInfo
.
indexOf
(
Agents
[
v
])
>
0
)
{
flag
=
false
;
break
;
}
}
require
([
'jquery'
],
function
(
$
){
if
(
flag
){
var
imgH
=
$
(
'.logo'
).
height
();
imgH
=
Math
.
ceil
(
imgH
/
3
);
$
(
'.header '
).
css
(
'margin-bottom'
,
imgH
);
}
else
{
var
headerH
=
$
(
'.page-header'
).
outerHeight
(
true
);
console
.
log
(
headerH
);
$
(
'.columns'
).
css
(
'margin-top'
,
headerH
);
}
});
</script>
<span
data-action=
"toggle-nav"
class=
"action nav-toggle"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Toggle Nav'
))
?>
</span></span>
<a
class=
"logo"
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
19bfa5cb
...
...
@@ -321,7 +321,7 @@ footer .footer_link{
z-index: 11;
}
.page-wrapper .page-header
,.sparsh-free-shipping-bar-goal-message
{
.page-wrapper .page-header{
background: #f2f2f2;
width: 100%;
padding-top: 0px;
...
...
@@ -2203,7 +2203,7 @@ background-color: #000;
}
.header-top.header-fixed{
height: 60px !important
;
//height: 60px
;
}
.page-with-filter .toolbar .modes{
...
...
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