64 lines
1.2 KiB
CSS
64 lines
1.2 KiB
CSS
.navigationMenuItem {
|
|
color: var(--Text-Interactive-Default);
|
|
}
|
|
|
|
.chevron {
|
|
transition: transform 0.3s;
|
|
|
|
&.isExpanded {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
.dropdown {
|
|
background-color: var(--Surface-Primary-Default);
|
|
z-index: var(--menu-overlay-z-index);
|
|
overflow: hidden;
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
.navigationMenuItem {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: var(--Space-x2) 0;
|
|
}
|
|
|
|
.dropdown {
|
|
position: fixed;
|
|
width: 100%;
|
|
top: calc(
|
|
var(--main-menu-mobile-height) + var(--alert-and-banner-height) + 1px
|
|
);
|
|
right: -100vw;
|
|
bottom: 0;
|
|
transition: right 0.3s;
|
|
overflow-y: auto;
|
|
|
|
&.isExpanded {
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.navigationMenuItem.link {
|
|
padding: var(--Space-x05) 0;
|
|
}
|
|
|
|
.dropdown {
|
|
display: none;
|
|
position: absolute;
|
|
top: calc(
|
|
3.5rem - 2px
|
|
); /* 3.5rem is the height of the main menu + bottom padding. */
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border-radius: var(--Corner-Radius-lg);
|
|
box-shadow: var(--popup-box-shadow);
|
|
|
|
&.isExpanded {
|
|
display: grid;
|
|
}
|
|
}
|
|
}
|