@@ -50,7 +50,7 @@ describe('Tailwind component', () => {
5050 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
5151 <meta name="x-apple-disable-message-reformatting" />
5252 <style>
53- .md_p-4{ @media (width>= 48rem){padding:1rem!important}}
53+ @media (min- width: 48rem){.md_p-4 {padding:1rem!important}}
5454 </style>
5555 </head>
5656 <body>
@@ -353,7 +353,7 @@ describe('Tailwind component', () => {
353353 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
354354 <meta name="x-apple-disable-message-reformatting" />
355355 <style>
356- .sm_bg-red-50{ @media (width>= 40rem){background-color:rgb(254,242,242)!important}}.sm_text-sm{ @media (width>= 40rem){font-size:0.875rem!important;line-height:1.4285714285714286!important}}.md_text-lg{ @media (width>= 48rem){font-size:1.125rem!important;line-height:1.5555555555555556!important}}
356+ @media (min- width: 40rem){.sm_bg-red-50{ background-color:rgb(254,242,242)!important}}@media (min- width: 40rem){.sm_text-sm{ font-size:0.875rem!important;line-height:1.4285714285714286!important}}@media (min- width: 48rem){.md_text-lg {font-size:1.125rem!important;line-height:1.5555555555555556!important}}
357357 </style></head
358358 ><!--$--><!--html--><!--head--><span
359359 ><!--[if mso]><i style="letter-spacing: 10px;mso-font-width:-100%;" hidden> </i><![endif]--></span
@@ -391,7 +391,7 @@ describe('Tailwind component', () => {
391391 ) ;
392392
393393 expect ( actualOutput ) . toMatchInlineSnapshot (
394- `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta name="x-apple-disable-message-reformatting"/><style>.text-body{ @media (prefers-color-scheme:dark){color:orange!important}}</style></head><body class="text-body"><!--$--><!--html--><!--head--><!--body--><table border="0" width="100%" cellPadding="0" cellSpacing="0" role="presentation" align="center"><tbody><tr><td style="color:green">this is the body</td></tr></tbody></table><!--/$--></body></html>"` ,
394+ `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta name="x-apple-disable-message-reformatting"/><style>@media (prefers-color-scheme:dark){.text-body {color:orange!important}}</style></head><body class="text-body"><!--$--><!--html--><!--head--><!--body--><table border="0" width="100%" cellPadding="0" cellSpacing="0" role="presentation" align="center"><tbody><tr><td style="color:green">this is the body</td></tr></tbody></table><!--/$--></body></html>"` ,
395395 ) ;
396396 } ) ;
397397
@@ -425,7 +425,7 @@ describe('Tailwind component', () => {
425425 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
426426 <meta name="x-apple-disable-message-reformatting" />
427427 <style>
428- .xl_bg-green-500{ @media (width>= 1280px){background-color:rgb(0,201,80)!important}}.twoxl_bg-blue-500{ @media (width>= 1536px){background-color:rgb(43,127,255)!important}}
428+ @media (min- width: 1280px){.xl_bg-green-500{ background-color:rgb(0,201,80)!important}}@media (min- width: 1536px){.twoxl_bg-blue-500 {background-color:rgb(43,127,255)!important}}
429429 </style></head
430430 ><!--$--><!--html--><!--head-->
431431 <div class="xl_bg-green-500" style="background-color:rgb(255,226,226)">
@@ -452,7 +452,7 @@ describe('Tailwind component', () => {
452452 "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
453453 <head>
454454 <style>
455- .lg_max-h-calc50pxplus5rem{ @media (width>= 64rem){max-height:calc(50px + 5rem)!important}}
455+ @media (min- width: 64rem){.lg_max-h-calc50pxplus5rem {max-height:calc(50px + 5rem)!important}}
456456 </style></head
457457 ><!--$--><!--head-->
458458 <div
@@ -494,7 +494,7 @@ describe('Tailwind component', () => {
494494 <html lang="en">
495495 <head>
496496 <style>
497- .sm_bg-red-300{ @media (width>= 40rem){background-color:rgb(255,162,162)!important}}.md_bg-red-400{ @media (width>= 48rem){background-color:rgb(255,100,103)!important}}.lg_bg-red-500{ @media (width>= 64rem){background-color:rgb(251,44,54)!important}}
497+ @media (min- width: 40rem){.sm_bg-red-300{ background-color:rgb(255,162,162)!important}}@media (min- width: 48rem){.md_bg-red-400{ background-color:rgb(255,100,103)!important}}@media (min- width: 64rem){.lg_bg-red-500 {background-color:rgb(251,44,54)!important}}
498498 </style>
499499 </head>
500500 <body>
@@ -524,7 +524,7 @@ describe('Tailwind component', () => {
524524 </ Tailwind > ,
525525 ) ,
526526 ) . toMatchInlineSnapshot (
527- `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><style>.sm_bg-red-300{ @media (width>= 40rem){background-color:rgb(255,162,162)!important}}.md_bg-red-400{ @media (width>= 48rem){background-color:rgb(255,100,103)!important}}.lg_bg-red-500{ @media (width>= 64rem){background-color:rgb(251,44,54)!important}}</style></head><body><!--$--><!--html--><!--head--><!--body--><div class="sm_bg-red-300 md_bg-red-400 lg_bg-red-500" style="background-color:rgb(255,201,201)"></div><!--/$--></body></html>"` ,
527+ `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><style>@media (min- width: 40rem){.sm_bg-red-300{ background-color:rgb(255,162,162)!important}}@media (min- width: 48rem){.md_bg-red-400{ background-color:rgb(255,100,103)!important}}@media (min- width: 64rem){.lg_bg-red-500 {background-color:rgb(251,44,54)!important}}</style></head><body><!--$--><!--html--><!--head--><!--body--><div class="sm_bg-red-300 md_bg-red-400 lg_bg-red-500" style="background-color:rgb(255,201,201)"></div><!--/$--></body></html>"` ,
528528 ) ;
529529 } ) ;
530530
@@ -558,7 +558,7 @@ describe('Tailwind component', () => {
558558 <html lang="en">
559559 <head>
560560 <style>
561- .text-body{ @media (width>= 40rem){color:darkgreen!important}}
561+ @media (min- width: 40rem){.text-body {color:darkgreen!important}}
562562 </style>
563563 </head>
564564 <body>
@@ -588,7 +588,7 @@ describe('Tailwind component', () => {
588588 <html lang="en">
589589 <head>
590590 <style>
591- .hover_bg-red-600{&:hover{ @media (hover:hover){background-color:rgb(231,0,11)!important}}}.focus_bg-red-700{&:focus{background-color:rgb(193,0,7)!important}}.sm_bg-red-300{ @media (width>= 40rem){background-color:rgb(255,162,162)!important}}.sm_hover_bg-red-200{ @media (width>= 40rem){&:hover {@media (hover:hover){background-color:rgb(255,201,201)!important}}}}.md_bg-red-400{ @media (width>= 48rem){background-color:rgb(255,100,103)!important}}.lg_bg-red-500{ @media (width>= 64rem){background-color:rgb(251,44,54)!important}}
591+ .hover_bg-red-600{@media (hover:hover){&:hover{ background-color:rgb(231,0,11)!important}}}.focus_bg-red-700{&:focus{background-color:rgb(193,0,7)!important}}@media (min- width: 40rem){.sm_bg-red-300{ background-color:rgb(255,162,162)!important}}@media (min- width: 40rem){.sm_hover_bg-red-200 {@media (hover:hover){&:hover{ background-color:rgb(255,201,201)!important}}}}@media (min- width: 48rem){.md_bg-red-400{ background-color:rgb(255,100,103)!important}}@media (min- width: 64rem){.lg_bg-red-500 {background-color:rgb(251,44,54)!important}}
592592 </style>
593593 </head>
594594 <body>
@@ -659,7 +659,7 @@ describe('Tailwind component', () => {
659659 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
660660 <meta name="x-apple-disable-message-reformatting" />
661661 <style>
662- .max-sm_text-red-600{@media (width<40rem) {color:rgb(231,0,11)!important}}
662+ @media (max-width:40rem){ .max-sm_text-red-600{color:rgb(231,0,11)!important}}
663663 </style></head
664664 ><!--$--><!--head-->
665665 <p class="max-sm_text-red-600" style="color:rgb(20,71,230)">I am some text</p>
@@ -702,7 +702,7 @@ describe('Tailwind component', () => {
702702 <html lang="en">
703703 <head>
704704 <style>
705- .sm_bg-red-500{ @media (width>= 40rem){background-color:rgb(251,44,54)!important}}
705+ @media (min- width: 40rem){.sm_bg-red-500 {background-color:rgb(251,44,54)!important}}
706706 </style>
707707 <style></style>
708708 <link />
@@ -923,7 +923,7 @@ describe('Tailwind component', () => {
923923 <html lang="en">
924924 <head>
925925 <style>
926- .sm_border-custom{ @media (width>= 40rem){border:2px solid!important}}
926+ @media (min- width: 40rem){.sm_border-custom {border:2px solid!important}}
927927 </style>
928928 </head>
929929 <body>
0 commit comments