remove all styled-jsx from components

This commit is contained in:
2022-01-15 16:30:18 -05:00
parent 872846dbeb
commit 867ad4c977
10 changed files with 85 additions and 91 deletions
+6
View File
@@ -0,0 +1,6 @@
.wrapper :global(.giscus) {
margin-top: 2em;
padding-top: 2em;
border-top: 2px solid var(--light);
min-height: 350px;
}
+3 -4
View File
@@ -3,6 +3,8 @@ import { Giscus } from "@giscus/react";
import { giscusConfig } from "../../lib/config";
import type { GiscusProps } from "@giscus/react";
import styles from "./Comments.module.css";
type Props = {
title: string;
};
@@ -11,10 +13,7 @@ const Comments = ({ title }: Props) => {
const { resolvedTheme } = useTheme();
return (
<div
id="comments"
style={{ marginTop: "2em", paddingTop: "1em", borderTop: "2px solid var(--light)", minHeight: "350px" }}
>
<div className={styles.wrapper}>
<Giscus
{...(giscusConfig as GiscusProps)}
term={title}
+1 -1
View File
@@ -21,7 +21,7 @@
.meta > div:last-of-type {
/* fix potential layout shift when number of hits loads */
min-width: 6.5em;
min-width: 7em;
margin-right: 0;
}