Skip to content

Commit

Permalink
fix(Header-DesktopNav): rectify frosted blur in production
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Apr 2, 2022
1 parent 078753f commit 77d2249
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/DesktopNav.tsx
Expand Up @@ -14,16 +14,16 @@ interface Props {

const DesktopNav = ({ fixed, posts }: Props): JSX.Element => (
<Menu
mode="horizontal"
className={classNames(
'fixed z-100 w-full font-extrabold bg-transparent border-transparent transition transform-gpu hidden md:visible md:flex',
{
'bg-gradient-primary': !fixed,
'bg-white/30': fixed,
'shadow-lg': fixed,
'backdrop-blur-sm': fixed,
'backdrop-blur-primary': fixed,
}
)}
mode="horizontal"
>
<Menu.Item
key="home"
Expand Down
4 changes: 4 additions & 0 deletions src/styles/tailwind.css
Expand Up @@ -30,4 +30,8 @@
.flex-container {
@apply flex flex-row flex-wrap justify-center items-center content-center !important;
}

.backdrop-blur-primary {
backdrop-filter: blur(4px) !important;
}
}

0 comments on commit 77d2249

Please sign in to comment.