Blog styles in module

This commit is contained in:
Daniel Kluge 2022-10-15 22:21:58 +02:00
parent 46c755481a
commit 3cee6c9006
3 changed files with 14 additions and 13 deletions

View File

@ -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>

View File

@ -0,0 +1,11 @@
#blogBody {
header {
position: sticky;
top: 10px;
}
main {
max-width: 900px;
margin: 40px auto;
}
}

View File

@ -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;