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

fix: nav bar dropdown styling fixes #34

Merged
merged 3 commits into from
Oct 28, 2020
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
7 changes: 4 additions & 3 deletions src/components/Common/caret.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
@apply lil-h-2 lil-w-2 lil-border-xl lil-border-transparent lil-items-center;
}

.lil-caret-down {
.lil-caret-up {
border-right:none;
border-bottom: none;
@apply lil-border-t-md lil-border-l-md lil-border-font-500 lil-transform lil-rotate-45;
}

.lil-caret-up {
.lil-caret-down {
border-top: none;
border-left: none;
@apply lil-border-b-md lil-border-r-md lil-border-font-500 lil-transform lil-rotate-45;
top: -2px;
@apply lil-relative lil-border-b-md lil-border-r-md lil-border-font-500 lil-transform lil-rotate-45;
}

18 changes: 9 additions & 9 deletions src/components/Common/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.lil-dropdown {
@apply lil-relative lil-inline-block;
}
.lil-dropdown:hover:after {
.lil-dropdown-open:before {
content: '';
transform: rotate(45deg);
/* for IE */
Expand All @@ -20,7 +20,6 @@
/* */
border-top: 2px solid var(--grey-400);
border-left: 2px solid var(--grey-400);
bottom: -10px;
left: 20px;
@apply lil-block lil-absolute lil-bg-white lil-z-40 lil-h-4 lil-w-4;
}
Expand All @@ -30,26 +29,27 @@
/* */
box-shadow: 0px 1px 2px 3px var(--grey-400);
width: 350px;
@apply lil-absolute lil-hidden lil-pt-1 lil-rounded-lg lil-mt-1 lil-p-4;
@apply lil-fixed lil-hidden lil-pt-1 lil-rounded-lg lil-mt-1;
}
.lil-dropdown:hover .lil-dropdown-menu {
.lil-dropdown-open .lil-dropdown-menu {
@apply lil-block lil-z-30 lil-bg-white;
}
.lil-dropdown:hover .lil-dropdown-full-menu {
.lil-dropdown-open .lil-dropdown-full-menu {
/* for IE */
box-shadow: 0px 1px 2px 3px #CFD4DD;
/* */
box-shadow: 0px 1px 2px 3px var(--grey-400);
left: 0.5rem;
right: 0.5rem;
left: 0;
right: 0;
height: 90vh;
@apply lil-fixed lil-p-12 lil-w-auto;
border-radius: 0;
@apply lil-fixed lil-w-auto;
}
.lil-dropdown-submenu:hover .lil-dropdown-submenu-header {
@apply lil-bg-blue-150;
}
.lil-dropdown-menu .lil-dropdown-menu-item {
@apply lil-cursor-pointer lil-rounded-lg lil-my-4;
@apply lil-cursor-pointer lil-rounded-lg lil-my-5;
}
.lil-dropdown-menu .lil-dropdown-menu-item:hover {
@apply lil-bg-blue-150;
Expand Down