-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
278bceb
commit 092ba8d
Showing
2 changed files
with
95 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* General dropdown link styling */ | ||
.fh5co-sub-ddown { | ||
text-decoration: none; | ||
color: #2d4059; | ||
font-size: 1.2rem; | ||
padding: 1em .75em; | ||
display: block; | ||
position: relative; | ||
font-weight: 700; | ||
font-family: inherit; | ||
} | ||
|
||
/* General submenu styling */ | ||
.fh5co-sub-menu { | ||
list-style: none; | ||
padding: 10px 7px; | ||
background: #fff; | ||
border-radius: 5px; | ||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); | ||
display: none; /* Hidden by default */ | ||
position: absolute; | ||
left: 0; | ||
z-index: 1; | ||
} | ||
|
||
/* Show submenu on hover */ | ||
.fh5co-sub-ddown:hover + .fh5co-sub-menu, | ||
.has-sub-menu:hover > .fh5co-sub-menu { | ||
display: block; | ||
} | ||
|
||
/* Styling for submenu items */ | ||
.fh5co-sub-menu li { | ||
padding: 0.5rem 1rem; | ||
color: #2d4059; | ||
position: relative; | ||
} | ||
|
||
/* Nested submenu */ | ||
.fh5co-sub-menu ul { | ||
list-style: none; | ||
padding-left: 1rem; | ||
margin-top: 0.5rem; | ||
position: absolute; | ||
left: 100%; /* Aligning nested dropdown to the right */ | ||
top: 0; | ||
display: none; | ||
background: #fff; | ||
border-radius: 5px; | ||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
/* Show nested submenu on hover */ | ||
.fh5co-sub-menu li:hover > .fh5co-sub-menu { | ||
display: block; | ||
} | ||
|
||
/* Styling for BGDB, AI and Deep Learning, and Bioinformatics */ | ||
.fh5co-sub-menu ul li { | ||
padding: 0.3rem 0; | ||
color: #666; | ||
} | ||
|
||
/* Hover effect | ||
/* Hover effect for nested items */ | ||
.fh5co-sub-menu ul li:hover { | ||
color: #2d4059; /* Hover color */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters