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
77
88## [ Unreleased]
99
10+ ### Added
11+
12+ - Add ` prose-picture ` modifier ([ #367 ] ( https://github.com/tailwindlabs/tailwindcss-typography/pull/367 ) )
13+
1014### Fixed
1115
1216- 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:
187187| ` prose-th:{utility} ` | ` th ` |
188188| ` prose-td:{utility} ` | ` td ` |
189189| ` prose-img:{utility} ` | ` img ` |
190+ | ` prose-picture:{utility} ` | ` picture ` |
190191| ` prose-video:{utility} ` | ` video ` |
191192| ` prose-hr:{utility} ` | ` hr ` |
192193
@@ -345,9 +346,9 @@ See our internal [style definitions](https://github.com/tailwindlabs/tailwindcss
345346If 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:
346347
347348``` css
348- @import " tailwindcss" ;
349+ @import ' tailwindcss' ;
349350@plugin "@tailwindcss/typography" {
350- className : wysiwyg;
351+ classname : wysiwyg;
351352}
352353```
353354
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ module.exports = plugin.withOptions(
9696 [ 'th' ] ,
9797 [ 'td' ] ,
9898 [ 'img' ] ,
99+ [ 'picture' ] ,
99100 [ 'video' ] ,
100101 [ 'hr' ] ,
101102 [ 'lead' , '[class~="lead"]' ] ,
@@ -132,4 +133,3 @@ module.exports = plugin.withOptions(
132133 }
133134 }
134135)
135-
Original file line number Diff line number Diff line change @@ -707,6 +707,7 @@ test('element variants', async () => {
707707 prose-th:text-left
708708 prose-td:align-center
709709 prose-img:rounded-lg
710+ prose-picture:my-8
710711 prose-video:my-12
711712 prose-hr:border-t-2
712713 "
@@ -855,6 +856,11 @@ test('element variants', async () => {
855856 : is (: where (img): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
856857 border-radius : 0.5rem ;
857858 }
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+ }
858864 .prose-video\:my-12
859865 : is (: where (video): not (: where ([class ~= 'not-prose' ], [class ~= 'not-prose' ] * ))) {
860866 margin-top : 3rem ;
You can’t perform that action at this time.
0 commit comments