Skip to content

Commit 3156ca2

Browse files
fix
1 parent 7750d14 commit 3156ca2

File tree

3 files changed

+30
-110
lines changed

3 files changed

+30
-110
lines changed

biome.jsonc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "./node_modules/biome/biome.schema.json",
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"assist": {
44
"actions": {
55
"source": {
@@ -28,6 +28,9 @@
2828
},
2929
"linter": {
3030
"enabled": true
31+
},
32+
"parser": {
33+
"tailwindDirectives": true
3134
}
3235
},
3336
"files": {
@@ -37,7 +40,7 @@
3740
"**/*.js",
3841
"**/*.css",
3942
"**/*.json",
40-
"!out/**",
43+
"!out",
4144
"!.next"
4245
]
4346
},

styles/globals.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,9 @@
3636
}
3737

3838
html {
39-
@apply motion-safe:scroll-smooth
40-
antialiased
41-
dark:antialiased;
39+
@apply motion-safe:scroll-smooth antialiased dark:antialiased;
4240
}
4341

4442
body {
45-
@apply bg-white
46-
dark:bg-gray-950
47-
text-gray-900
48-
dark:text-gray-100;
43+
@apply bg-white dark:bg-gray-950 text-gray-900 dark:text-gray-100;
4944
}

styles/markdown.css

Lines changed: 23 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -2,85 +2,54 @@
22

33
.md-content {
44
h1 {
5-
@apply text-4xl
6-
font-bold
7-
mb-2;
5+
@apply text-4xl font-bold mb-2;
86
}
97

108
h2 {
11-
@apply text-3xl
12-
font-bold
13-
mb-2;
9+
@apply text-3xl font-bold mb-2;
1410
}
1511

1612
h3 {
17-
@apply text-2xl
18-
font-bold
19-
mb-2;
13+
@apply text-2xl font-bold mb-2;
2014
}
2115

2216
h4 {
23-
@apply text-xl
24-
font-bold
25-
mb-2;
17+
@apply text-xl font-bold mb-2;
2618
}
2719

2820
h5 {
29-
@apply text-lg
30-
font-bold
31-
mb-2;
21+
@apply text-lg font-bold mb-2;
3222
}
3323

3424
h6 {
35-
@apply text-base
36-
font-bold
37-
mb-2;
25+
@apply text-base font-bold mb-2;
3826
}
3927

4028
p {
41-
@apply text-base
42-
mb-4;
29+
@apply text-base mb-4;
4330
}
4431

4532
a {
46-
@apply text-green-600
47-
underline
48-
dark:text-green-400;
33+
@apply text-green-600 underline dark:text-green-400;
4934

5035
&:hover {
51-
@apply text-green-800
52-
dark:text-green-200
53-
no-underline;
36+
@apply text-green-800 dark:text-green-200 no-underline;
5437
}
5538
}
5639

5740
ul {
58-
@apply list-disc
59-
pl-4;
41+
@apply list-disc pl-4;
6042
}
6143

6244
ol {
63-
@apply list-decimal
64-
pl-4
65-
pb-4
66-
ml-4;
45+
@apply list-decimal pl-4 pb-4 ml-4;
6746
}
6847

6948
blockquote {
70-
@apply border-l-4
71-
border-green-400
72-
italic
73-
pl-4
74-
py-2
75-
my-4
76-
dark:border-green-600;
49+
@apply border-l-4 border-green-400 italic pl-4 py-2 my-4 dark:border-green-600;
7750

7851
cite {
79-
@apply block
80-
text-sm
81-
font-bold
82-
text-green-600
83-
dark:text-green-400;
52+
@apply block text-sm font-bold text-green-600 dark:text-green-400;
8453

8554
&:before {
8655
@apply content-['-'];
@@ -93,89 +62,42 @@
9362
}
9463

9564
code {
96-
@apply text-sm
97-
text-black
98-
bg-gray-200
99-
rounded-sm
100-
p-1
101-
dark:bg-gray-800
102-
dark:text-gray-200;
65+
@apply text-sm text-black bg-gray-200 rounded-sm p-1 dark:bg-gray-800 dark:text-gray-200;
10366
}
10467

10568
pre {
106-
@apply bg-gray-200
107-
rounded-sm
108-
p-4
109-
my-4
110-
border
111-
border-gray-400
112-
overflow-x-auto
113-
dark:bg-gray-800
114-
dark:border-gray-600;
69+
@apply bg-gray-200 rounded-sm p-4 my-4 border border-gray-400 overflow-x-auto dark:bg-gray-800 dark:border-gray-600;
11570
}
11671

11772
img {
118-
@apply mx-auto
119-
my-4
120-
rounded-sm
121-
shadow-lg;
73+
@apply mx-auto my-4 rounded-sm shadow-lg;
12274
}
12375

12476
table {
125-
@apply w-full
126-
border-collapse
127-
border
128-
border-green-400
129-
dark:border-green-600;
77+
@apply w-full border-collapse border border-green-400 dark:border-green-600;
13078

13179
th {
132-
@apply bg-green-400
133-
text-white
134-
font-bold
135-
text-sm
136-
p-2
137-
dark:bg-green-600;
80+
@apply bg-green-400 text-white font-bold text-sm p-2 dark:bg-green-600;
13881
}
13982

14083
td {
141-
@apply border
142-
border-green-400
143-
text-sm
144-
p-2
145-
dark:border-green-600;
84+
@apply border border-green-400 text-sm p-2 dark:border-green-600;
14685
}
14786
}
14887

14988
figure {
150-
@apply mx-auto
151-
my-4
152-
rounded-sm
153-
shadow-lg;
89+
@apply mx-auto my-4 rounded-sm shadow-lg;
15490
}
15591

15692
figcaption {
157-
@apply text-center
158-
text-sm
159-
p-2;
93+
@apply text-center text-sm p-2;
16094
}
16195

16296
details {
163-
@apply bg-gray-200
164-
rounded-sm
165-
p-2
166-
my-4
167-
dark:bg-gray-800;
97+
@apply bg-gray-200 rounded-sm p-2 my-4 dark:bg-gray-800;
16898

16999
summary {
170-
@apply bg-green-400
171-
text-white
172-
font-bold
173-
text-sm
174-
rounded-t
175-
p-2
176-
-mt-4
177-
-mx-2
178-
dark:bg-green-600;
100+
@apply bg-green-400 text-white font-bold text-sm rounded-t p-2 -mt-4 -mx-2 dark:bg-green-600;
179101
}
180102
}
181103
}

0 commit comments

Comments
 (0)