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
a2b45967
Commit
a2b45967
authored
Sep 19, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网站导航条优化
parent
14a97364
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
app/code/Magento/Theme/Block/Html/Topmenu.php
+9
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+6
-0
No files found.
app/code/Magento/Theme/Block/Html/Topmenu.php
View file @
a2b45967
...
@@ -216,6 +216,15 @@ class Topmenu extends Template implements IdentityInterface
...
@@ -216,6 +216,15 @@ class Topmenu extends Template implements IdentityInterface
$html
.=
'<ul class="subchildmenu col-sm-8 mega-columns columns4">'
;
$html
.=
'<ul class="subchildmenu col-sm-8 mega-columns columns4">'
;
$html
.=
$this
->
_getHtmlStyle2
(
$child
,
$childrenWrapClass
,
$limit
,
$colStops
);
$html
.=
$this
->
_getHtmlStyle2
(
$child
,
$childrenWrapClass
,
$limit
,
$colStops
);
$html
.=
'</ul>'
;
$html
.=
'</ul>'
;
$html
.=
'<div class="menu-right-block col-sm-4">'
;
$html
.=
$this
->
getLayout
()
->
createBlock
(
\Magento\Cms\Block\Block
::
class
)
->
setBlockId
(
'catpic'
)
//replace my_cmsblock_identifier with real CMS bock identifier
->
toHtml
();
$html
.=
'</div>'
;
$html
.=
'</div>'
;
$html
.=
'</div>'
;
$html
.=
'</div>'
;
$html
.=
'</div>'
;
}
else
{
}
else
{
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
a2b45967
...
@@ -956,6 +956,9 @@ footer{
...
@@ -956,6 +956,9 @@ footer{
border-right: 1px solid #e1e1e1;
border-right: 1px solid #e1e1e1;
padding: 0 20px;
padding: 0 20px;
}
}
.navigation .subchildmenu.col-sm-8.mega-columns.columns4 li.level1:last-child{
border: none;
}
.navigation .subchildmenu.mega-columns.columns4 > li{
.navigation .subchildmenu.mega-columns.columns4 > li{
width: 25%;
width: 25%;
}
}
...
@@ -965,6 +968,9 @@ footer{
...
@@ -965,6 +968,9 @@ footer{
.navigation .subchildmenu.mega-columns.columns4 > li:nth-child(4n+1){
.navigation .subchildmenu.mega-columns.columns4 > li:nth-child(4n+1){
clear: both;
clear: both;
}
}
.navigation .menu-right-block.col-sm-4{
float: right;
}
.navigation ul li.level0{
.navigation ul li.level0{
padding: 0 10px;
padding: 0 10px;
}
}
...
...
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