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
d2670596
Commit
d2670596
authored
Sep 21, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导航条功能完善
parent
3364f2ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletions
+19
-1
app/design/frontend/Joshine/breeze/Magento_Theme/layout/breeze_default.xml
+0
-0
app/design/frontend/Joshine/breeze/Magento_Theme/layout/default.xml
+5
-1
app/design/frontend/Joshine/breeze/web/css/_custom.less
+7
-0
app/design/frontend/Joshine/breeze/web/js/breeze/components/menu.js
+7
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Theme/layout/breeze_default.xml
0 → 100644
View file @
d2670596
This diff is collapsed.
Click to expand it.
app/design/frontend/Joshine/breeze/Magento_Theme/layout/default.xml
View file @
d2670596
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
<body>
<body>
<attribute
name=
"class"
value=
"breeze-theme"
/>
<attribute
name=
"class"
value=
"breeze-theme"
/>
<move
element=
"top.search"
destination=
"store.menu"
before=
"catalog.topnav"
/>
<move
element=
"top.search"
destination=
"store.menu"
before=
"catalog.topnav"
/>
<move
element=
"minicart"
destination=
"store.menu"
after=
"header.wishlist"
/>
<move
element=
"header.wishlist"
destination=
"store.menu"
after=
"header.account"
/>
<move
element=
"header.account"
destination=
"store.menu"
after=
"catalog.topnav"
/>
<move
element=
"skip_to_content"
destination=
"header.panel"
before=
"-"
/>
<move
element=
"skip_to_content"
destination=
"header.panel"
before=
"-"
/>
<referenceBlock
name=
"cookie-status-check"
remove=
"true"
/>
<referenceBlock
name=
"cookie-status-check"
remove=
"true"
/>
<referenceBlock
name=
"report.bugs"
remove=
"true"
/>
<referenceBlock
name=
"report.bugs"
remove=
"true"
/>
...
@@ -57,7 +61,7 @@
...
@@ -57,7 +61,7 @@
</block>
</block>
</referenceContainer>
</referenceContainer>
<move
element=
"minicart"
destination=
"header-wrapper"
after=
"header.wishlist"
/
>
<!-- <move element="minicart" destination="header-wrapper" after="header.wishlist"/>--
>
<!-- Navigation -->
<!-- Navigation -->
<referenceBlock
name=
"navigation.sections"
remove=
"true"
/>
<referenceBlock
name=
"navigation.sections"
remove=
"true"
/>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
d2670596
...
@@ -1020,6 +1020,7 @@ footer{
...
@@ -1020,6 +1020,7 @@ footer{
}
}
@media(min-width: 640px){
@media(min-width: 640px){
display: flex;
display: flex;
align-items: center;
.navigation .active>a.level-top, .navigation .has-active>a.level-top{
.navigation .active>a.level-top, .navigation .has-active>a.level-top{
background:none;
background:none;
}
}
...
@@ -1170,6 +1171,12 @@ footer{
...
@@ -1170,6 +1171,12 @@ footer{
:where(input:not([type=range])):focus, :where(input:not([type=range])):focus-visible, textarea:focus, textarea:focus-visible, select:focus, select:focus-visible{
:where(input:not([type=range])):focus, :where(input:not([type=range])):focus-visible, textarea:focus, textarea:focus-visible, select:focus, select:focus-visible{
--input-shadow-spread: 0;
--input-shadow-spread: 0;
}
}
.minicart-wrapper{
padding-right: 20px;
}
.dropdown.options{
padding-right: 15px;
}
//.navigation li.level0.nav-1 .ui-menu-icon{
//.navigation li.level0.nav-1 .ui-menu-icon{
// position: absolute;
// position: absolute;
// text-transform: uppercase;
// text-transform: uppercase;
...
...
app/design/frontend/Joshine/breeze/web/js/breeze/components/menu.js
View file @
d2670596
...
@@ -45,6 +45,13 @@
...
@@ -45,6 +45,13 @@
})
})
.
prepend
(
'<span class="ui-menu-icon ui-icon-1">NEW</span>'
);
.
prepend
(
'<span class="ui-menu-icon ui-icon-1">NEW</span>'
);
$
(
'li.parent.nav-3'
,
this
.
element
)
.
children
(
'a'
)
.
filter
(
function
()
{
return
$
(
this
).
children
(
'.ui-icon'
).
length
===
0
;
})
.
prepend
(
'<span class="ui-menu-icon ui-icon-1">SALE</span>'
);
$
(
'li.parent'
,
this
.
element
).
on
(
'keydown.menu'
,
function
(
e
)
{
$
(
'li.parent'
,
this
.
element
).
on
(
'keydown.menu'
,
function
(
e
)
{
var
dropdown
=
$
(
this
).
children
(
self
.
options
.
dropdown
),
var
dropdown
=
$
(
this
).
children
(
self
.
options
.
dropdown
),
visibleDropdowns
=
$
(
self
.
options
.
dropdown
+
'.shown'
);
visibleDropdowns
=
$
(
self
.
options
.
dropdown
+
'.shown'
);
...
...
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