Blog styles in module
This commit is contained in:
parent
46c755481a
commit
3cee6c9006
@ -2,6 +2,8 @@ import type { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import Navigation from "./Navigation";
|
||||
|
||||
import styles from "../../styles/Blog/Blog.module.scss";
|
||||
|
||||
interface ILayoutProps {
|
||||
title?: string;
|
||||
}
|
||||
@ -11,7 +13,7 @@ const Layout: NextPage<ILayoutProps> = ({ title, children }) => {
|
||||
<Head>
|
||||
<title>{title ?? "c0ntroller.de"}</title>
|
||||
</Head>
|
||||
<div id={"blogBody"}>
|
||||
<div id={styles.blogBody}>
|
||||
<header>
|
||||
<Navigation />
|
||||
</header>
|
||||
|
11
styles/Blog/Blog.module.scss
Normal file
11
styles/Blog/Blog.module.scss
Normal file
@ -0,0 +1,11 @@
|
||||
#blogBody {
|
||||
header {
|
||||
position: sticky;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 900px;
|
||||
margin: 40px auto;
|
||||
}
|
||||
}
|
@ -18,18 +18,6 @@ body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#blogBody {
|
||||
header {
|
||||
position: sticky;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
a.nostyle {
|
||||
text-decoration: inherit;
|
||||
color: inherit;
|
||||
|
Loading…
Reference in New Issue
Block a user