Skip to content

Commit 79a174b

Browse files
committed
Inline common css
1 parent 3267a78 commit 79a174b

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

src/components/head/CommonCss.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from "react";
2+
3+
const CommonCss = () => {
4+
return (
5+
<style>
6+
{`
7+
:where(.w-full) { width: 100%; }
8+
:where(.flex) { display: flex; }
9+
:where(.items-center) { align-items: center; }
10+
:where(.justify-center) { justifiy-content: center }
11+
12+
13+
details>summary { list-style: none; }
14+
details>summary::-webkit-details-marker { display: none; }
15+
`}
16+
</style>
17+
);
18+
};
19+
20+
export default CommonCss;

src/pages/_document.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import CommonCss from "@/components/head/CommonCss";
12
import { Head, Html, Main, NextScript } from 'next/document';
23

34
export default function Document() {
45
return (
56
<Html lang="en" className="overflow-auto scroll-smooth scroll-p-4">
67
<Head>
78
<link rel="icon" href="/favicon.ico" />
9+
<CommonCss />
810
</Head>
911
<body>
1012
<Main />

src/styles/main.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ html {
1313
@apply min-h-full bg-fill text-fill-contrast;
1414
}
1515

16-
details>summary {
17-
list-style: none;
18-
}
19-
20-
details>summary::-webkit-details-marker {
21-
display: none;
22-
}
23-
2416
div.swal2-popup.swal2-toast {
2517
@apply p-3 shadow shadow-black/25 bg-white/50 backdrop-blur-sm;
2618
}

0 commit comments

Comments
 (0)