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 @@ -190,6 +190,7 @@ Here's a complete list of available element modifiers:
190
190
| ` prose-th:{utility} ` | ` th ` |
191
191
| ` prose-td:{utility} ` | ` td ` |
192
192
| ` prose-img:{utility} ` | ` img ` |
193
+ | ` prose-picture:{utility} ` | ` picture ` |
193
194
| ` prose-video:{utility} ` | ` video ` |
194
195
| ` prose-hr:{utility} ` | ` hr ` |
195
196
@@ -348,9 +349,9 @@ See our internal [style definitions](https://github.com/tailwindlabs/tailwindcss
348
349
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:
349
350
350
351
``` css
351
- @import " tailwindcss" ;
352
+ @import ' tailwindcss' ;
352
353
@plugin "@tailwindcss/typography" {
353
- className : wysiwyg;
354
+ classname : wysiwyg;
354
355
}
355
356
```
356
357
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ module.exports = plugin.withOptions(
99
99
[ 'th' ] ,
100
100
[ 'td' ] ,
101
101
[ 'img' ] ,
102
+ [ 'picture' ] ,
102
103
[ 'video' ] ,
103
104
[ 'hr' ] ,
104
105
[ 'lead' , '[class~="lead"]' ] ,
@@ -135,4 +136,3 @@ module.exports = plugin.withOptions(
135
136
}
136
137
}
137
138
)
138
-
Original file line number Diff line number Diff line change @@ -710,6 +710,7 @@ test('element variants', async () => {
710
710
prose-th:text-left
711
711
prose-td:align-center
712
712
prose-img:rounded-lg
713
+ prose-picture:my-8
713
714
prose-video:my-12
714
715
prose-hr:border-t-2
715
716
"
@@ -868,6 +869,11 @@ test('element variants', async () => {
868
869
: is (: where (img): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
869
870
border-radius : 0.5rem ;
870
871
}
872
+ .prose-picture\:my-8
873
+ : is (: where (picture): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
874
+ margin-top : 2rem ;
875
+ margin-bottom : 2rem ;
876
+ }
871
877
.prose-video\:my-12
872
878
: is (: where (video): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
873
879
margin-top : 3rem ;
You can’t perform that action at this time.
0 commit comments