diff --git a/public/css/app.css b/public/css/app.css index 041c1da..52b655c 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -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); diff --git a/resources/sass/_custom.scss b/resources/sass/_custom.scss index 8871920..fc26fa7 100644 --- a/resources/sass/_custom.scss +++ b/resources/sass/_custom.scss @@ -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); diff --git a/resources/sass/_menu.scss b/resources/sass/_menu.scss index 99f1193..3181e4b 100644 --- a/resources/sass/_menu.scss +++ b/resources/sass/_menu.scss @@ -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; + } } } diff --git a/resources/views/layouts/app-header.blade.php b/resources/views/layouts/app-header.blade.php index 25130c3..d6ef8f5 100644 --- a/resources/views/layouts/app-header.blade.php +++ b/resources/views/layouts/app-header.blade.php @@ -11,18 +11,86 @@ Foodservice