Skip to content

Commit

Permalink
[style] mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 committed Feb 29, 2024
1 parent 92cf237 commit 7f2d8af
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/components/@core/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ const Layout = ({ location, children }) => {

return (
<>
<Navigation />
<div className="global-wrapper" data-is-root-path={isRootPath}>
<header className="global-header">
<Navigation />
</header>
<header className="global-header"></header>
{children}
</div>
<Footer />
Expand Down
3 changes: 2 additions & 1 deletion src/components/@layout/navigation.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.wrapper {
transform: 0;

position: fixed;
position: sticky;
top: 0;
left: 0;
right: 0;
Expand Down Expand Up @@ -41,6 +41,7 @@
}

.inner li {
list-style: none;
/* display: inline-block; */
margin: 0;

Expand Down
2 changes: 1 addition & 1 deletion src/components/@layout/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Link } from "gatsby"
import { SplitText } from "../split-text"
import clsx from "clsx"
import { ReactComponent as Github } from "/static/images/github.svg"
import throttle from "lodash/throttle"
// import throttle from "lodash/throttle"
import { StaticImage } from "gatsby-plugin-image"

const Navigation = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ a:focus {
/* background-color: var(--background-color); */
margin: var(--spacing-0) auto;
max-width: var(--maxWidth-wrapper);
padding: var(--spacing-16) 0 var(--spacing-10);
padding: var(--spacing-8) 0 var(--spacing-10);

position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/blog-post.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.blog-post {
border-radius: 20px;
border: 1px solid #2a2b31;
margin: 67px 0 50px 0;
margin: 10px 0 50px 0;
/* background: var(--background-color); */
/* margin-bottom: var(--spacing-10); */
}
Expand Down

0 comments on commit 7f2d8af

Please sign in to comment.