File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+
12
+ - Add ` prose-picture ` modifier ([ #367 ] ( https://github.com/tailwindlabs/tailwindcss-typography/pull/367 ) )
13
+
10
14
### Fixed
11
15
12
16
- Include unit in ` hr ` border-width value ([ #379 ] ( https://github.com/tailwindlabs/tailwindcss-typography/pull/379 )
Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ Here's a complete list of available element modifiers:
187
187
| ` prose-th:{utility} ` | ` th ` |
188
188
| ` prose-td:{utility} ` | ` td ` |
189
189
| ` prose-img:{utility} ` | ` img ` |
190
+ | ` prose-picture:{utility} ` | ` picture ` |
190
191
| ` prose-video:{utility} ` | ` video ` |
191
192
| ` prose-hr:{utility} ` | ` hr ` |
192
193
@@ -345,9 +346,9 @@ See our internal [style definitions](https://github.com/tailwindlabs/tailwindcss
345
346
If you need to use a class name other than ` prose ` for any reason, you can do so using the ` className ` option when registering the plugin:
346
347
347
348
``` css
348
- @import " tailwindcss" ;
349
+ @import ' tailwindcss' ;
349
350
@plugin "@tailwindcss/typography" {
350
- className : wysiwyg;
351
+ classname : wysiwyg;
351
352
}
352
353
```
353
354
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ module.exports = plugin.withOptions(
96
96
[ 'th' ] ,
97
97
[ 'td' ] ,
98
98
[ 'img' ] ,
99
+ [ 'picture' ] ,
99
100
[ 'video' ] ,
100
101
[ 'hr' ] ,
101
102
[ 'lead' , '[class~="lead"]' ] ,
@@ -132,4 +133,3 @@ module.exports = plugin.withOptions(
132
133
}
133
134
}
134
135
)
135
-
Original file line number Diff line number Diff line change @@ -707,6 +707,7 @@ test('element variants', async () => {
707
707
prose-th:text-left
708
708
prose-td:align-center
709
709
prose-img:rounded-lg
710
+ prose-picture:my-8
710
711
prose-video:my-12
711
712
prose-hr:border-t-2
712
713
"
@@ -855,6 +856,11 @@ test('element variants', async () => {
855
856
: is (: where (img): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
856
857
border-radius : 0.5rem ;
857
858
}
859
+ .prose-picture\:my-8
860
+ : is (: where (picture): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
861
+ margin-top : 2rem ;
862
+ margin-bottom : 2rem ;
863
+ }
858
864
.prose-video\:my-12
859
865
: is (: where (video): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
860
866
margin-top : 3rem ;
You can’t perform that action at this time.
0 commit comments