Skip to content

Commit 76f659b

Browse files
authored
use content: none; instead of content: ''; (#125)
* use `content: none;` instead of `content: '';` Closes: #41 Closes: #77 * bump dependencies
1 parent b36a208 commit 76f659b

File tree

4 files changed

+1054
-1526
lines changed

4 files changed

+1054
-1526
lines changed

Diff for: package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@
3434
"@mdx-js/loader": "^1.0.19",
3535
"@mdx-js/mdx": "^1.6.6",
3636
"@next/mdx": "^8.1.0",
37-
"autoprefixer": "^9.6.1",
37+
"autoprefixer": "^10.2.1",
3838
"clean-css": "^4.2.1",
3939
"cssnano": "^4.1.10",
4040
"dedent": "^0.7.0",
4141
"highlight.js": "^10.4.1",
4242
"jest": "^26.6.1",
43-
"next": "^9.4.4",
44-
"postcss": "^7.0.17",
43+
"next": "10",
44+
"postcss": "^8.2.3",
4545
"prettier": "^2.1.2",
4646
"react": "^16.8.6",
4747
"react-dom": "^16.8.6",
4848
"snapshot-diff": "^0.8.1",
49-
"tailwindcss": "^2.0.0-alpha.16"
49+
"tailwindcss": "^2.0.2"
5050
},
5151
"dependencies": {
5252
"lodash.castarray": "^4.4.0",

Diff for: src/index.test.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ it('should generate the default classes for the typography components', async ()
7474
}
7575
7676
.prose ul > li::before {
77-
content: \\"\\";
77+
content: none;
7878
position: absolute;
7979
background-color: #d1d5db;
8080
border-radius: 50%;
@@ -199,11 +199,11 @@ it('should generate the default classes for the typography components', async ()
199199
}
200200
201201
.prose pre code::before {
202-
content: \\"\\";
202+
content: none;
203203
}
204204
205205
.prose pre code::after {
206-
content: \\"\\";
206+
content: none;
207207
}
208208
209209
.prose table {
@@ -1358,7 +1358,7 @@ it('should generate the default classes for the typography components', async ()
13581358
}
13591359
13601360
.sm\\\\:prose ul > li::before {
1361-
content: \\"\\";
1361+
content: none;
13621362
position: absolute;
13631363
background-color: #d1d5db;
13641364
border-radius: 50%;
@@ -1483,11 +1483,11 @@ it('should generate the default classes for the typography components', async ()
14831483
}
14841484
14851485
.sm\\\\:prose pre code::before {
1486-
content: \\"\\";
1486+
content: none;
14871487
}
14881488
14891489
.sm\\\\:prose pre code::after {
1490-
content: \\"\\";
1490+
content: none;
14911491
}
14921492
14931493
.sm\\\\:prose table {
@@ -2643,7 +2643,7 @@ it('should generate the default classes for the typography components', async ()
26432643
}
26442644
26452645
.md\\\\:prose ul > li::before {
2646-
content: \\"\\";
2646+
content: none;
26472647
position: absolute;
26482648
background-color: #d1d5db;
26492649
border-radius: 50%;
@@ -2768,11 +2768,11 @@ it('should generate the default classes for the typography components', async ()
27682768
}
27692769
27702770
.md\\\\:prose pre code::before {
2771-
content: \\"\\";
2771+
content: none;
27722772
}
27732773
27742774
.md\\\\:prose pre code::after {
2775-
content: \\"\\";
2775+
content: none;
27762776
}
27772777
27782778
.md\\\\:prose table {
@@ -3928,7 +3928,7 @@ it('should generate the default classes for the typography components', async ()
39283928
}
39293929
39303930
.lg\\\\:prose ul > li::before {
3931-
content: \\"\\";
3931+
content: none;
39323932
position: absolute;
39333933
background-color: #d1d5db;
39343934
border-radius: 50%;
@@ -4053,11 +4053,11 @@ it('should generate the default classes for the typography components', async ()
40534053
}
40544054
40554055
.lg\\\\:prose pre code::before {
4056-
content: \\"\\";
4056+
content: none;
40574057
}
40584058
40594059
.lg\\\\:prose pre code::after {
4060-
content: \\"\\";
4060+
content: none;
40614061
}
40624062
40634063
.lg\\\\:prose table {
@@ -5213,7 +5213,7 @@ it('should generate the default classes for the typography components', async ()
52135213
}
52145214
52155215
.xl\\\\:prose ul > li::before {
5216-
content: \\"\\";
5216+
content: none;
52175217
position: absolute;
52185218
background-color: #d1d5db;
52195219
border-radius: 50%;
@@ -5338,11 +5338,11 @@ it('should generate the default classes for the typography components', async ()
53385338
}
53395339
53405340
.xl\\\\:prose pre code::before {
5341-
content: \\"\\";
5341+
content: none;
53425342
}
53435343
53445344
.xl\\\\:prose pre code::after {
5345-
content: \\"\\";
5345+
content: none;
53465346
}
53475347
53485348
.xl\\\\:prose table {
@@ -6498,7 +6498,7 @@ it('should generate the default classes for the typography components', async ()
64986498
}
64996499
65006500
.\\\\32xl\\\\:prose ul > li::before {
6501-
content: \\"\\";
6501+
content: none;
65026502
position: absolute;
65036503
background-color: #d1d5db;
65046504
border-radius: 50%;
@@ -6623,11 +6623,11 @@ it('should generate the default classes for the typography components', async ()
66236623
}
66246624
66256625
.\\\\32xl\\\\:prose pre code::before {
6626-
content: \\"\\";
6626+
content: none;
66276627
}
66286628
66296629
.\\\\32xl\\\\:prose pre code::after {
6630-
content: \\"\\";
6630+
content: none;
66316631
}
66326632
66336633
.\\\\32xl\\\\:prose table {

Diff for: src/styles.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = (theme) => ({
4040
position: 'relative',
4141
},
4242
'ul > li::before': {
43-
content: '""',
43+
content: 'none',
4444
position: 'absolute',
4545
backgroundColor: theme('colors.gray.300', defaultTheme.colors.gray[300]),
4646
borderRadius: '50%',
@@ -112,10 +112,10 @@ module.exports = (theme) => ({
112112
lineHeight: 'inherit',
113113
},
114114
'pre code::before': {
115-
content: '""',
115+
content: 'none',
116116
},
117117
'pre code::after': {
118-
content: '""',
118+
content: 'none',
119119
},
120120
table: {
121121
width: '100%',

0 commit comments

Comments
 (0)