Newer
Older
.hy-menu-sidebar--container.sidebar-open,
.hy-menu-sidepanel--container.sidepanel-open {
.hy-menu-item-sidebar:not(.is-parent):not(.is-parent--sub-level) {
.hy-menu-item-sidebar__label,
.hy-menu-item__label__icon {
background: linear-gradient(270deg, #f5f5f5 0%, #f8f8f8 100%);
}
}
.hy-menu-item-sidebar.is-parent {
.hy-menu-item-sidebar__label {
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
background-color: none !important;
}
}
.hy-menu-item-sidebar:not(.is-parent) {
.hy-menu-item-sidebar__label {
&:hover {
background: var(--hover-gray) !important;
text-decoration: underline;
}
}
.hy-menu-item__label__icon {
&:not([aria-expanded='true']):hover {
background: var(--hover-gray) !important;
cursor: pointer;
svg {
width: 22px;
height: 22px;
}
}
&[aria-expanded='true']:hover {
background: var(--brand-main);
cursor: pointer;
transition: all 0.25s ease;
.hy-menu-item__label__icon__svg {
transform: rotate(180deg) translateX(2px);
}
svg {
width: 22px;
height: 22px;
}
}
}
}
}
.hy-menu-sidebar--container:not(.sidebar-open) {
.hy-menu-item-sidebar:not(.is-parent) {
.hy-menu-item-sidebar__label {
&:hover {
border: 1px solid var(--brand-main);
margin: -1px;
text-decoration: underline;
}
}
.hy-menu-item__label__icon {
&:hover {
border: 1px solid var(--brand-main);
margin: -1px;
text-decoration: underline;
cursor: pointer;
.hy-menu-item-sidebar {
list-style-type: none;
margin-bottom: 6px;
&--label-container {
@include font-size(14px, 20px);
box-sizing: border-box;
color: var(--brand-main-light);
display: flex;
font-family: var(--main-font-family);
justify-content: space-between;
min-height: 48px;
padding: 0;
@include breakpoint($xlarge) {
@include font-size(16px, 22px);
}
}
&:focus {
outline-offset: 4px;
}
color: var(--brand-main-nearly-black);
> .hy-menu-level-container.hy-menu-level-container--sidepanel {
display: none;
}
&.hy-menu-item-sidebar--sidepanel.in-active-trail {
> .hy-menu-item-sidebar--label-container {
border: 1px solid var(--brand-main-light);
text-decoration: none;
> .hy-menu-item__label__icon {
background-color: var(--brand-main-light);
svg {
fill: var(--grayscale-white);
}
}
}
> .hy-menu-level-container--sidepanel {
display: flex;
}
}
&:not(.is-parent):not(.is-parent--sub-level).is-active-item {
> .hy-menu-item-sidebar--label-container {
background: var(--grayscale-white) !important;
text-decoration: none;
> a.hy-menu-item-sidebar__label {
border: 1px solid var(--brand-main-light);
border-right: 0;
}
> .hy-menu-item__label__icon {
background: var(--brand-main-light);
border: none;
margin-left: 4px;
svg {
fill: var(--grayscale-white);
}
}
}
}
&__label {
align-items: center;
background-color: var(--grayscale-white);
color: var(--brand-main-light);
display: flex;
hyphens: auto;
padding: 8px 10px 8px 20px;
text-decoration: none;
width: 100%;
word-break: break-word;
&:focus {
outline: none;
box-shadow: 0 0 1px 1px rgba(55, 148, 224, 0.5);
border-radius: none;
}
}
.hy-menu-item__label__icon {
border-top: 0;
border-right: 0;
border-bottom: 0;
background: var(--grayscale-white);
border-left: 1px solid var(--brand-main-light);
color: var(--brand-main-light);
display: inline-block;
position: relative;
width: 61.5px;
min-height: 48px;
svg {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
&:focus {
outline: none;
box-shadow: 0 0 1px 1px rgba(55, 148, 224, 0.5);
border-radius: none;
}
}
&.is-parent {
align-items: flex-start;
display: flex;
flex-direction: row;
justify-content: flex-start;
margin-bottom: 10px;
padding-bottom: 10px;
width: calc(100% - 25px);
.hy-menu-item-sidebar--label-container {
align-items: flex-start;
background: none;
border: none;
color: var(--brand-main-light);
display: flex;
.hy-menu-item-sidebar__label {
@include font-size(26px, 26px);
background-color: transparent !important;
font-family: var(--main-font-family);
font-weight: bold;
letter-spacing: -0.81px;
padding: 0;
text-decoration: none;
}
}
&:hover {
span {
background: none;
border: none;
margin: 0;
}
color: var(--brand-main) !important;
text-decoration: underline;
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
.hy-menu-item__parent__icon__svg {
fill: var(--brand-main-nearly-black);
}
}
.hy-menu-item__parent__icon {
align-items: center;
display: flex;
flex-direction: row;
height: 26px;
}
.hy-menu-item__parent__icon__svg svg {
fill: var(--brand-main-light);
}
&.is-parent--sub-level {
align-items: flex-end;
background: none;
border-bottom: 1px solid var(--brand-main-light);
display: flex;
margin-bottom: 12px;
padding-bottom: 18px;
position: absolute;
transform: translateY(calc(-100% - 12px));
width: calc(100% - 25px);
.hy-menu-item-parent__icon {
bottom: 20px;
left: -20px;
position: absolute;
}
* {
text-transform: uppercase;
}
svg {
fill: var(--brand-main-light);
}
.hy-menu-item-sidebar__label:hover {
background: none !important;
text-decoration: underline;
}
> .hy-menu-item-sidebar--label-container {
align-items: flex-end;
padding: 0;
}
}
}
&.is-current-page {
span.hy-menu-item-sidebar__label {
border-left: 4px solid var(--grayscale-black);
color: var(--grayscale-black);
padding: 8px 10px 8px 6px !important;
}
&.is-parent {
.hy-menu-item__parent__icon {
display: none;
}
}