-
Notifications
You must be signed in to change notification settings - Fork 669
Expand file tree
/
Copy pathmain.css
More file actions
65 lines (57 loc) · 1.44 KB
/
main.css
File metadata and controls
65 lines (57 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
---
/* Import CSS variables */
@import '_variables.css';
/* Custom fonts if needed */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');
/* Import component styles */
@import '_components/base.css';
@import '_components/pagination.css';
@import '_components/toc.css';
@import '_components/tables.css';
@import '_components/icons.css';
@import '_components/print.css';
@import '_components/syntax-highlighting.css';
/* Tailwind layers */
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
body {
@apply bg-white text-stone-900 text-base leading-5 font-default;
@apply dark:bg-stone-900 dark:text-stone-50;
}
[lang] {
@apply font-default;
}
/* CJK fonts */
html:lang(ja),
body:lang(ja),
.font-default:lang(ja),
.font-sans:lang(ja),
[lang="ja"],
html:lang(ko),
body:lang(ko),
.font-default:lang(ko),
.font-sans:lang(ko),
[lang="ko"],
html:lang(zh-CN),
body:lang(zh-CN),
.font-default:lang(zh-CN),
.font-sans:lang(zh-CN),
[lang="zh-CN"],
html:lang(zh-TW),
body:lang(zh-TW),
.font-default:lang(zh-TW),
.font-sans:lang(zh-TW),
[lang="zh-TW"] {
font-family: "Plus Jakarta Sans", var(--noto-sans-subset), -apple-system, BlinkMacSystemFont, sans-serif;
}
/* Ensure syntax highlighting colors are not overridden by body color */
.highlight code {
color: inherit;
}
.highlight pre {
color: var(--color-text-default);
}
}