Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update menu.scss #888

Merged
merged 2 commits into from
Dec 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion assets/css/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,45 @@ $menu-bg-hover: #267CB9;
//$menu-bg-image: linear-gradient(120deg, #155799, #159957);
$menu-bg-image: none;

@media only screen and (min-width: 736px) {
.nav {
width: 100%;
max-width: 100vw;
display: flex;
justify-content: center;
padding: 0 20px;
box-sizing: border-box;
}
.nav .menu {
display: flex;
flex-flow: row wrap;
width: 100%;
max-width: 1200px;
margin: 0;
padding: 0;
justify-content: space-between;

.menu-item {
position: relative;
white-space: nowrap;

.sub-menu {
position: absolute;
z-index: 3000;
top: 100%;
left: 0;
max-width: min(700px, calc(100vw - 40px));
white-space: normal;
}
}

& > .menu-item:nth-last-child(-n+3) .sub-menu {
left: auto;
right: 0;
}
}
}

// 2 //
$menu-co: #267CB9;
$menu-co-hover: #fff;
Expand Down Expand Up @@ -469,4 +508,4 @@ Show the link that contains should open and close the topnav (.icon) */
/* The "responsive" class is added to the menu with JavaScript when the user clicks on the icon. */
@media screen and (max-width: 736px) {
.menu.responsive {display: block;}
}
}
Loading