-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
103 lines (84 loc) · 2.16 KB
/
styles.css
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
@tailwind utilities;
code {
@apply text-sm;
}
html {
color-scheme: none !important;
}
body {
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 1) 300px
),
fixed 0 0 / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0),
fixed 10px 10px / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0);
}
.dark .invert-on-dark {
filter: invert(1) brightness(1.8);
}
#__next .nextra-body > main h1 {
margin-top: 0;
}
#__next article :not(pre) > code {
color: var(--shiki-token-string-expression);
background-color: transparent;
border: 0;
font-size: 90%;
}
#__next article :not(pre) > code::before,
#__next article :not(pre) > code::after {
content: "\`";
}
.dark body article pre {
background-color: transparent;
border: 1px solid rgba(224, 243, 255, 0.1);
border-radius: 5px;
}
.light body article pre {
background-color: transparent;
border: 1px solid #e5e7eb;
border-radius: 5px;
}
.light body {
--shiki-color-text: #111;
--shiki-token-constant: var(--shiki-color-text);
--shiki-token-comment: #999;
--shiki-token-keyword: #ff0078;
--shiki-token-function: #0077FF;
--shiki-token-string-expression: #028265;
--shiki-token-punctuation: var(--shiki-color-text);
}
.dark body {
--shiki-color-text: #EAEAEA;
--shiki-token-constant: var(--shiki-color-text);
--shiki-token-comment: #666;
--shiki-token-keyword: #ff0078;
--shiki-token-function: #0099FF;
--shiki-token-string-expression: #50e3c2;
--shiki-token-punctuation: var(--shiki-color-text);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #111 300px),
fixed 0 0 / 20px 20px radial-gradient(#313131 1px, transparent 0),
fixed 10px 10px / 20px 20px radial-gradient(#313131 1px, transparent 0);
}
code[data-language="sh"] {
--shiki-token-string: var(--shiki-color-text);
}
#__next article.nextra-body h1 {
font-size: 2em;
}
#__next article.nextra-body h2 {
font-size: 1.5em;
}
#__next article.nextra-body h3 {
font-size: 1.25em;
}
#__next article.nextra-body h4 {
font-size: 1em;
}
#__next article.nextra-body h5 {
font-size: .875em;
}
#__next article.nextra-body h5 {
font-size: .85em;
}