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

[Feature Request]: Browse All Categories Overflowing +hover Card Ui #492 #496

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
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
36 changes: 31 additions & 5 deletions src/components/header/nav/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,24 @@
.nav nav .dropdown_menu {
position: absolute;
top: 150%;
margin-top: -8px;
left: 0;
width: 300px;
background: #fff;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
padding: 10px 0;
padding: 10px 0px;
z-index: 100;
opacity: 0;
visibility: hidden;
transition: all 0.1s ease-in-out;
}
.shpmenu{
margin-top: -15px !important;
padding: 40px 50px !important;
}
.nav nav .dropdown_menu .row{
align-items: flex-start !important;
}

.nav nav .dropdown_menu li {
list-style: none;
Expand All @@ -143,8 +151,9 @@
.nav nav .all_menu {
position: absolute;
top: 100%;
left: 0;
left: 20px;
width: 35vw;
margin-top: -9px;
background: #fff;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
padding: 10px 0;
Expand All @@ -153,7 +162,18 @@
visibility: hidden;
transition: all 0.1s ease-in-out;
}

.list_item_nav{
padding: 10px 20px ;
}
.list_item_nav a{
color: #191717 !important;
text-decoration: none !important;
font-size: 24px !important;
text-transform: capitalize;
}
.list_item_nav a:hover{
color: #267550!important;
}
.nav nav .all_menu.browse_menu {
width: 50vw;
}
Expand Down Expand Up @@ -194,13 +214,15 @@

.text-beox {
color: #191717;
font-size: 16px;
font-size: 22px !important;
margin: 0;
padding: 0;
display: flex;
align-items: center;
}

.green-icon{
width: 50px;
}
.set-box:hover .text-beox {
color: #267550;
}
Expand Down Expand Up @@ -234,4 +256,8 @@
color: rgba(0, 0, 0, 0.7);
font-size: 25px;
text-decoration: none;
transition: 0.3s ease-in-out;
}
.megaMenu .col ul li a:hover{
font-weight: 600 !important;
}
15 changes: 10 additions & 5 deletions src/components/header/nav/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,19 @@ const Nav = (props) => {
>
<ul>
{item.items.map((item_, index_) => (
<li key={index_}>
<Button
<li key={index_} onClick={() => {
props.closeNav();
setDropdownMenu(!openDropdownMenu);
setDropdownMenuIndex(null);}}
className='list_item_nav'
>
{/* <Button
onClick={() => {
props.closeNav();
setDropdownMenu(!openDropdownMenu);
setDropdownMenuIndex(null);
}}
>
> */}
<a
href={`/cat/${item.cat_name.toLowerCase()}/${item_.cat_name
.replace(/\s/g, '-')
Expand All @@ -236,7 +241,7 @@ const Nav = (props) => {
>
{item_.cat_name}
</a>
</Button>
{/* </Button> */}
</li>
))}
</ul>
Expand Down Expand Up @@ -268,7 +273,7 @@ const Nav = (props) => {
</Link>
</Button>
<div
className={`dropdown_menu megaMenu w-100 ${
className={`dropdown_menu megaMenu shpmenu w-100 ${
openMegaMenu === true && 'open'
}`}
>
Expand Down