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
f9e11dcf
Commit
f9e11dcf
authored
Sep 20, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网站导航优化
parent
c8ed9f00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
3 deletions
+84
-3
app/code/Magento/Theme/view/frontend/templates/html/topmenu.phtml
+1
-1
app/design/frontend/Joshine/breeze/web/css/_custom.less
+81
-0
vendor/swissup/module-breeze/view/frontend/web/js/components/menu.js
+2
-2
No files found.
app/code/Magento/Theme/view/frontend/templates/html/topmenu.phtml
View file @
f9e11dcf
...
...
@@ -16,7 +16,7 @@ $_menuHtml = $block->getHtml('level-top', 'submenu', $columnsLimit)
<div
class=
"nav-sections"
>
<nav
class=
"navigation"
data-action=
"navigation"
>
<ul
data-mage-init=
'{"menu":{"responsive":true,"dropdown":"div", "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'
>
<li
class=
"level0 nav-
1 first
level-top"
><a
href=
"/"
class=
"level-top"
><span>
Home
</span></a></li>
<li
class=
"level0 nav-
0
level-top"
><a
href=
"/"
class=
"level-top"
><span>
Home
</span></a></li>
<?=
/* @noEscape */
$_menuHtml
?>
<?=
$block
->
getChildHtml
()
?>
</ul>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
f9e11dcf
...
...
@@ -1030,6 +1030,87 @@ footer{
margin-top: 16px;
padding: 10px 0;
}
.navigation ul li.level0>a>span.ui-menu-icon{
top: -13px;
right: 24px;
background-color: #0cc485;
position: absolute;
text-transform: uppercase;
font: inherit;
font-size: 9px;
padding: 3px;
border-radius: 2px;
line-height: 1.2;
color: #ffffff;
min-width: 35px;
text-align: center;
}
.navigation ul li.level0>a>span.ui-menu-icon.ui-icon-1:before{
border-top-color: #0cc485;
}
.navigation ul li.level0 > a > span.ui-menu-icon:before{
left: 3px;
bottom: -6px;
}
.navigation span.ui-menu-icon:before{
content: "";
position: absolute;
width: 3px;
height: 3px;
border: 3px solid transparent;
}
//.navigation li.level0.nav-1 .ui-menu-icon{
// position: absolute;
// text-transform: uppercase;
// font: inherit;
// font-size: 9px;
// padding: 3px;
// border-radius: 2px;
// line-height: 1.2;
// color: #ffffff;
// min-width: 35px;
// text-align: center;
// background-color: #0cc485;
// top: 0;
// right: 14px;
//}
//.navigation li a:hover{
// background: none !important;
//}
//
//.navigation li.opened a:hover{
// background: none !important;
//}
//.navigation .opened > a{
// background: none !important;
//}
//
//.navigation li.level0:hover{
// content: "";
// width: 0;
// height: 2px;
// color: #000000;
// position: absolute;
// bottom: 15px;
// left: 10px;
// border-bottom: 2px solid #000000;
// transition: all 0.3s ease;
//}
//.navigation .level0:hover:after{
// content: '';
// display: block;
// position: absolute;
// top: 0;
// left: 100%;
// width: 10px;
// height: calc(100% + 3px);
// z-index: 1;
//}
}
}
...
...
vendor/swissup/module-breeze/view/frontend/web/js/components/menu.js
View file @
f9e11dcf
...
...
@@ -38,12 +38,12 @@
}
$
(
'li.parent > ul'
,
this
.
element
).
hide
();
$
(
'li.parent'
,
this
.
element
)
$
(
'li.parent
.nav-1
'
,
this
.
element
)
.
children
(
'a'
)
.
filter
(
function
()
{
return
$
(
this
).
children
(
'.ui-icon'
).
length
===
0
;
})
.
prepend
(
'<span class="ui-menu-icon ui-icon
">
</span>'
);
.
prepend
(
'<span class="ui-menu-icon ui-icon
-1">NEW
</span>'
);
$
(
'li.parent'
,
this
.
element
).
on
(
'keydown.menu'
,
function
(
e
)
{
var
dropdown
=
$
(
this
).
children
(
self
.
options
.
dropdown
),
...
...
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