Skip to content

Commit

Permalink
Fix navigation menu styles
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jan 9, 2024
1 parent 0ba3414 commit 2eaa476
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/website/src/components/Default.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useState } from 'react';
import Helmet from 'react-helmet';
import LogoIcon from '../svg/logo.svg';
import GitHub from './GitHub';
import * as styles from './Default.module.scss';

const Default = ({ children, pageType }) => {
const [isNavOpen, setIsNavOpen] = useState(false);
Expand Down Expand Up @@ -50,7 +51,7 @@ const Default = ({ children, pageType }) => {
Blog
</a>
</li>
<li className="navbar-item">
<li className={classNames('navbar-item', styles.githubMenuItem)}>
<GitHub dark />
</li>
</ul>
Expand Down Expand Up @@ -99,7 +100,7 @@ const Default = ({ children, pageType }) => {
Blog
</a>
</li>
<li className="navbar-link">
<li className="download-item">
<a className="action" href="/docs/download/">
Download
</a>
Expand Down
5 changes: 5 additions & 0 deletions packages/website/src/components/Default.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.githubMenuItem {
display: flex;
align-items: center;
justify-content: center;
}
6 changes: 3 additions & 3 deletions packages/website/static/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ header:not(.home) .logo path {
list-style: none;
padding: 5em 0 1em;
position: absolute;
transition: margin-bottom 1s ease-out 0s;
transition: margin-bottom 0.4s ease-out 0s;
width: 100%;
z-index: 10;
}
Expand Down Expand Up @@ -1270,8 +1270,8 @@ body:not(.home) .navbar-link:before {
display: inline-block;
}
.navbar-drop.active {
margin-bottom: -25em;
transition: margin-bottom 1s ease-out 0s;
margin-bottom: -22em;
transition: margin-bottom 0.4s ease-out 0s;
}
.navbar-list .navbar-item,
.navbar-list .download-item {
Expand Down

0 comments on commit 2eaa476

Please sign in to comment.