Skip to content

Commit

Permalink
Merge pull request #888 from kscdivd/main
Browse files Browse the repository at this point in the history
Update menu.scss
  • Loading branch information
MrSeccubus authored Dec 15, 2024
2 parents e593f87 + 9962d1d commit 6b0898c
Showing 1 changed file with 40 additions and 1 deletion.
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;}
}
}

0 comments on commit 6b0898c

Please sign in to comment.