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
88ada62f
Commit
88ada62f
authored
Feb 11, 2023
by
halweg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 进一步扩充less类库; navigation样式微调
parent
7120fc2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
app/code/Joshine/Category/Block/Html/Topmenu.php
+4
-4
app/design/frontend/Joshine/breeze/web/css/_custom.less
+4
-4
app/design/frontend/Joshine/breeze/web/css/_joshine_col.less
+22
-0
No files found.
app/code/Joshine/Category/Block/Html/Topmenu.php
View file @
88ada62f
...
...
@@ -99,7 +99,7 @@ class Topmenu extends JoshineMenu
{
$parentSetMyColumns
=
$item
->
getParent
()
->
getSubmenuColumnsSingle
();
$selfColumns
=
$item
->
getSelfColumns
();
$defaultColumns
=
'
4
'
;
$defaultColumns
=
'
3
'
;
if
(
$item
->
getLevel
()
>
1
)
{
$defaultColumns
=
'12'
;
}
...
...
@@ -195,8 +195,8 @@ class Topmenu extends JoshineMenu
$columns
=
$sumMenuColumnsTotal
??
'12'
;
if
(
$childLevel
==
0
)
{
$html
=
"<div class=
\"
level
{
$childLevel
}
{
$childrenWrapClass
}
\"
>"
;
$html
.=
"<div class=
\"
row
\"
>
<ul class=
\"
subchildmenu mega-columns joshine-clearfix joshine-col-lg-
{
$columns
}
{
$child
->
getMenuImage
()
}
\"
>
$html
.=
"<div class=
\"
row
\"
>
<ul class=
\"
subchildmenu
joshine-col-lg-push-1
mega-columns joshine-clearfix joshine-col-lg-
{
$columns
}
{
$child
->
getMenuImage
()
}
\"
>
{
$this
->
_getHtml
(
$child
,
$childrenWrapClass
,
$limit
,
$colStops
)
}
</ul>"
;
$html
.=
$this
->
appendImage
(
$child
);
...
...
@@ -217,7 +217,7 @@ class Topmenu extends JoshineMenu
}
if
(
$child
->
getMenuImage
())
{
$html
.=
"<div class=
\"
pull-right
\"
>"
;
$html
.=
"<div class=
\"
pull-right
joshine-col-lg-3 joshine-col-lg-push-1 joshine-hidden-xs joshine-hidden-sm joshine-hidden-md
\"
>"
;
$html
.=
"<img src='
{
$child
->
getMenuImage
()
}
'/>"
;
$html
.=
"</div>"
;
}
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
88ada62f
...
...
@@ -1350,14 +1350,14 @@ footer{
.submenu{
width: 100%;
margin-top: 16px;
padding:
60
px 30px 60px 20px;
padding:
24
px 30px 60px 20px;
}
.subchildmenu.mega-columns > li{
float: left;
}
.navigation li.level0 .submenu li.level1{
border-right: 1px solid #e1e1e1;
padding: 0
20
px;
padding: 0
6
px;
}
.navigation .subchildmenu li.level1:last-child{
...
...
@@ -1369,7 +1369,7 @@ footer{
}
.navigation ul li.level0 > a > span{
text-transform: uppercase;
font-size: 1
3
px;
font-size: 1
4
px;
font-weight: 500;
}
...
...
@@ -1394,7 +1394,7 @@ footer{
}
.navigation .subchildmenu li.level1.parent>a>span{
font-size: 1
4
px;
font-size: 1
6
px;
font-weight: 500;
color: #000001;
font-family: 'Outfit-Regular', sans-serif;
...
...
app/design/frontend/Joshine/breeze/web/css/_joshine_col.less
View file @
88ada62f
...
...
@@ -763,4 +763,26 @@
display: none !important;
}
/*可见性*/
@media (max-width: 767px) {
.joshine-hidden-xs {
display: none !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.joshine-hidden-sm {
display: none !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.joshine-hidden-md {
display: none !important;
}
}
@media (min-width: 1200px) {
.joshine-hidden-lg {
display: none !important;
}
}
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