Skip to content
Snippets Groups Projects
Commit 451a55e7 authored by shamalainen's avatar shamalainen
Browse files

Update mobile menu items appearance and spacings

parent 6d3a8a48
No related branches found
No related tags found
No related merge requests found
// Mobile. // Mobile.
:host(.hy-menu-item--mobile) { :host(.hy-menu-item--mobile) {
background-color: var(--grayscale-white);
border-top: 1px dashed var(--grayscale-medium-dark);
display: flex;
--menu-item-display: flex; --menu-item-display: flex;
background: linear-gradient(270deg, var(--grayscale-background-box) 0%, var(--grayscale-light) 100%);
display: flex;
margin-left: 12px;
margin-right: 12px;
margin: 0 12px 5px;
@include breakpoint($narrow) {
margin: 0 28px 6px;
}
} }
:host(.hy-menu-item--mobile:first-of-type) { :host(.hy-menu-item--mobile:first-of-type) {
border-top: 3px solid var(--brand-main-nearly-black); // border-top: 3px solid var(--brand-main-light);
} }
:host(.hy-menu-item--mobile.hy-menu-item--alternative) { :host(.hy-menu-item--mobile.hy-menu-item--alternative) {
...@@ -110,18 +116,24 @@ a { ...@@ -110,18 +116,24 @@ a {
outline-offset: -2px; outline-offset: -2px;
} }
&.is-active, &.hy-menu-item--mobile {
&.in-active-trail { color: var(--brand-main-light);
.hy-menu-item__label { padding: 12px 0 12px 20px;
border-bottom: 2px solid var(--additional-orange);
padding-bottom: 5px;
}
}
&.is-active, &.is-active,
&.is-heading { &.in-active-trail {
.hy-menu-item__label { color: var(--grayscale-black);
@include font-weight($bold); position: relative;
&:before {
border-left: 3px solid var(--grayscale-black);
content: '';
height: 75%;
left: 10px;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
}
} }
} }
...@@ -261,23 +273,17 @@ a { ...@@ -261,23 +273,17 @@ a {
.hy-menu-item__button { .hy-menu-item__button {
align-items: center; align-items: center;
background: transparent; background: transparent;
border: 0 none; border-bottom: 0;
border-left: 1px dashed var(--brand-main-light);
border-right: 0;
border-top: 0;
cursor: pointer; cursor: pointer;
display: var(--menu-item-display); display: var(--menu-item-display);
justify-content: center; justify-content: center;
width: 70px; padding: 0;
width: 50px;
&:focus {
outline: solid 2px var(--additional-yellow);
outline-offset: 2px;
}
&::before { svg {
border-left: 1px dashed var(--brand-main-nearly-black); fill: var(--brand-main-light);
content: '';
display: block;
height: 16px;
margin-right: 16px;
width: 1px;
} }
} }
...@@ -35,11 +35,13 @@ ...@@ -35,11 +35,13 @@
.hy-menu { .hy-menu {
&--mobile { &--mobile {
-webkit-overflow-scrolling: touch;
flex-flow: column; flex-flow: column;
min-height: calc(100vh - 60px); min-height: calc(100vh - 60px);
-webkit-overflow-scrolling: touch;
overflow-x: hidden; overflow-x: hidden;
overflow-y: visible; overflow-y: visible;
padding-left: 12px;
padding-right: 12px;
transform: translateX(100%); transform: translateX(100%);
transition: 0.45s; transition: 0.45s;
width: 100%; width: 100%;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment