improve menu items
This commit is contained in:
parent
5e15f6ccc6
commit
17e4f9ec13
4 changed files with 117 additions and 27 deletions
27
public/css/app.css
vendored
27
public/css/app.css
vendored
|
|
@ -4685,6 +4685,10 @@ h3:not(.item__title, .product-card__title){
|
|||
display:none;
|
||||
}
|
||||
|
||||
#menu_arrow{
|
||||
display:none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px){
|
||||
.menu{
|
||||
width:40%;
|
||||
|
|
@ -4745,18 +4749,26 @@ h3:not(.item__title, .product-card__title){
|
|||
.menu__list{
|
||||
display:none;
|
||||
}
|
||||
.menu__item{
|
||||
position:relative;
|
||||
.menu__link{
|
||||
display:flex;
|
||||
justify-content:space-between;
|
||||
padding:1em;
|
||||
border-bottom:solid 1px #0c1417;
|
||||
}
|
||||
.menu__item:last-child{
|
||||
.menu__link:last-child{
|
||||
border-bottom-width:0;
|
||||
}
|
||||
.menu__item::after{
|
||||
position:absolute;
|
||||
content:url(/assets/images/arrow-burger.png?3e1f77d8c70eabbfa541980dd2c5968c);
|
||||
right:40px;
|
||||
.menu__link #menu_arrow{
|
||||
display:block;
|
||||
width:50px;
|
||||
height:19px;
|
||||
transition:width 0.3s ease-in-out;
|
||||
}
|
||||
.menu__link:hover #menu_arrow{
|
||||
width:12px;
|
||||
}
|
||||
.menu__link:hover #menu_arrow .cnt{
|
||||
fill:#ff0400;
|
||||
}
|
||||
.menu .menu-overlay{
|
||||
position:fixed;
|
||||
|
|
@ -6176,7 +6188,6 @@ input[type=text]{
|
|||
background-image:url(/assets/images/food-service.png?0516f121d7754c28b2cb3055ce991861);
|
||||
background-repeat:no-repeat;
|
||||
background-position:center 12px;
|
||||
transition:all 0.3s ease-in-out;
|
||||
}
|
||||
.featured-link:hover{
|
||||
background-image:url(/assets/images/food-service-active.png?2e2bf7035544edbac65d65338c1fbd7c);
|
||||
|
|
|
|||
2
resources/sass/_custom.scss
vendored
2
resources/sass/_custom.scss
vendored
|
|
@ -316,7 +316,7 @@
|
|||
background-image: url(~@/images/food-service.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center 12px;
|
||||
transition: all 0.3s ease-in-out;
|
||||
// transition: background-position 0.3s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
background-image: url(~@/images/food-service-active.png);
|
||||
|
|
|
|||
23
resources/sass/_menu.scss
vendored
23
resources/sass/_menu.scss
vendored
|
|
@ -1,6 +1,9 @@
|
|||
.menu-overlay__checkbox {
|
||||
display: none;
|
||||
}
|
||||
#menu_arrow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.menu {
|
||||
|
|
@ -70,17 +73,25 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
&__item {
|
||||
position: relative;
|
||||
&__link {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 1em;
|
||||
border-bottom: solid 1px $color-dark;
|
||||
&:last-child {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: url(~@/images/arrow-burger.png);
|
||||
right: 40px;
|
||||
#menu_arrow {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 19px;
|
||||
transition: width 0.3s ease-in-out;
|
||||
}
|
||||
&:hover #menu_arrow {
|
||||
width: 12px;
|
||||
.cnt {
|
||||
fill: $color-second;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,18 +11,86 @@
|
|||
<div class="menu-overlay__icon"></div>
|
||||
</label>
|
||||
<ul class="menu__list">
|
||||
<li class="menu__item menu__item--current">
|
||||
<a href="{{ route('wasup') }}" class="scroller menu__link">Marque</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="{{ route('products') }}" class="scroller menu__link">Produits</a>
|
||||
</li>
|
||||
<li class="menu__item">
|
||||
<a href="{{ route('news') }}" class="scroller menu__link">Actualités</a>
|
||||
</li>
|
||||
<li class="menu__item only-smrt">
|
||||
<a href="{{ route('food') }}" class="scroller menu__link">Food service</a>
|
||||
</li>
|
||||
<a href="{{ route('wasup') }}" class="scroller menu__link">
|
||||
<li class="menu__item menu__item--current">
|
||||
Marque
|
||||
</li>
|
||||
<svg id="menu_arrow" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 19">
|
||||
<defs>
|
||||
<style>
|
||||
.bg {
|
||||
fill: transparent;
|
||||
}
|
||||
|
||||
.cnt {
|
||||
fill: #3e3b3b;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path class="bg" d="M12,19H0V0H12ZM.85,16.34c3,1.61,5,.19,10.16-7.19C5.86,2.13,4.21.91.82,2.07l6.52,7.1Z" />
|
||||
<path class="cnt" d="M.85,16.34,7.34,9.17.82,2.07C4.21.91,5.86,2.13,11,9.15,5.8,16.53,3.87,18,.85,16.34Z" />
|
||||
</svg>
|
||||
</a>
|
||||
<a href="{{ route('products') }}" class="scroller menu__link">
|
||||
<li class="menu__item">
|
||||
Produits
|
||||
</li>
|
||||
<svg id="menu_arrow" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 19">
|
||||
<defs>
|
||||
<style>
|
||||
.bg {
|
||||
fill: transparent;
|
||||
}
|
||||
|
||||
.cnt {
|
||||
fill: #3e3b3b;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path class="bg" d="M12,19H0V0H12ZM.85,16.34c3,1.61,5,.19,10.16-7.19C5.86,2.13,4.21.91.82,2.07l6.52,7.1Z" />
|
||||
<path class="cnt" d="M.85,16.34,7.34,9.17.82,2.07C4.21.91,5.86,2.13,11,9.15,5.8,16.53,3.87,18,.85,16.34Z" />
|
||||
</svg>
|
||||
</a>
|
||||
<a href="{{ route('news') }}" class="scroller menu__link">
|
||||
<li class="menu__item">
|
||||
Actualités
|
||||
</li>
|
||||
<svg id="menu_arrow" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 19">
|
||||
<defs>
|
||||
<style>
|
||||
.bg {
|
||||
fill: transparent;
|
||||
}
|
||||
|
||||
.cnt {
|
||||
fill: #3e3b3b;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path class="bg" d="M12,19H0V0H12ZM.85,16.34c3,1.61,5,.19,10.16-7.19C5.86,2.13,4.21.91.82,2.07l6.52,7.1Z" />
|
||||
<path class="cnt" d="M.85,16.34,7.34,9.17.82,2.07C4.21.91,5.86,2.13,11,9.15,5.8,16.53,3.87,18,.85,16.34Z" />
|
||||
</svg>
|
||||
</a>
|
||||
<a href="{{ route('food') }}" class="scroller menu__link">
|
||||
<li class="menu__item only-smrt">
|
||||
Food service
|
||||
</li>
|
||||
<svg id="menu_arrow" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 19">
|
||||
<defs>
|
||||
<style>
|
||||
.bg {
|
||||
fill: transparent;
|
||||
}
|
||||
|
||||
.cnt {
|
||||
fill: #3e3b3b;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<path class="bg" d="M12,19H0V0H12ZM.85,16.34c3,1.61,5,.19,10.16-7.19C5.86,2.13,4.21.91.82,2.07l6.52,7.1Z" />
|
||||
<path class="cnt" d="M.85,16.34,7.34,9.17.82,2.07C4.21.91,5.86,2.13,11,9.15,5.8,16.53,3.87,18,.85,16.34Z" />
|
||||
</svg>
|
||||
</a>
|
||||
</ul>
|
||||
<a href="{{ route('food') }}" class="featured-link ttu align-center p-abs">Food<span>service</span></a>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue