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
7c6cf1a2
Commit
7c6cf1a2
authored
Feb 21, 2023
by
halweg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : menu less调整
parent
82ff69b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
26 deletions
+15
-26
app/design/frontend/Joshine/breeze/Magento_Search/templates/form.mini.phtml
+1
-1
app/design/frontend/Joshine/breeze/web/css/_custom.less
+14
-25
No files found.
app/design/frontend/Joshine/breeze/Magento_Search/templates/form.mini.phtml
View file @
7c6cf1a2
...
...
@@ -16,7 +16,7 @@ $allowedSuggestion = $configProvider->isSuggestionsAllowed();
$quickSearchUrl
=
$allowedSuggestion
?
$escaper
->
escapeUrl
(
$helper
->
getSuggestUrl
())
:
''
;
?>
<div
class=
"block block-search"
>
<
div
class=
"block block-title"
><strong
style=
"display: none"
>
<?=
$escaper
->
escapeHtml
(
__
(
'Search'
))
?>
</strong></div
>
<
!--<div class="block block-title"><strong style="display: none">
<?=
$escaper
->
escapeHtml
(
__
(
'Search'
))
?>
</strong></div>--
>
<div
class=
"block block-content"
>
<form
class=
"form minisearch"
id=
"search_mini_form"
action=
"
<?=
$escaper
->
escapeUrl
(
$helper
->
getResultUrl
())
?>
"
method=
"get"
>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
7c6cf1a2
...
...
@@ -1310,9 +1310,7 @@ footer{
font-size: 12px;
font-family: sans-serif;
}
.block-search{
width: 20%;
}
: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;
}
...
...
@@ -1328,13 +1326,9 @@ footer{
font-size: 14px;
}
.navigation-wrapper{
padding-top: 10px;
padding-bottom: 10px;
//background: #f2f2f2;
//border-top: 1px solid #e1e1e1;
font-family: 'Outfit-Regular', sans-serif;
width: 79%;
margin: 0 auto;
.nav-sections{
background: transparent;
...
...
@@ -1344,10 +1338,22 @@ footer{
position: unset;
}
@media(min-width: 1024px){
& {
margin-left: auto;
}
.navigation{
margin-left: 2px;
}
+ .block-title{
padding: 0 !important;
}
+ .block-search {
margin-left: auto;
}
.navigation .active>a.level-top, .navigation .has-active>a.level-top{
background:none;
...
...
@@ -1415,22 +1421,10 @@ footer{
color: #666666;
font-family: 'Outfit-Regular', sans-serif;
}
.navigation .subchildmenu.col-sm-9 li{
position: relative;
border: none;
}
.navigation li.level0 .submenu .subchildmenu.col-sm-9 li.level1{
position: relative;
border: none;
}
.navigation li.level0.last{
position: unset;
}
.submenu.col-sm-11{
width: 13rem;
margin-top: 16px;
padding: 10px 0;
}
.navigation ul li.level0>a>span.ui-menu-icon-1{
top: -13px;
...
...
@@ -1508,11 +1502,6 @@ footer{
border: 3px solid transparent;
}
.nav-sections{
width: 77%;
margin: 0 auto;
}
}
...
...
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