@@ -41,33 +41,35 @@ export class MyElement extends LitElement {
41
41
42
42
render ( ) {
43
43
return html `
44
- < span class ="logo "> </ span >
45
- < h1 class ="mt-2em animate-jack-in-the-box animate-duration-2s " text-green-600 > Hello, ${ this . name } !</ h1 >
46
- < br />
47
- ${ this . span ? html ` < div class ="bg-red-400 "> BG Color should change</ div > ` : html ` < div > BG Color should change</ div > ` }
48
- < br />
49
- < br />
50
- < button class ="shadow-2xl bg-white p-4 rounded-lg border-none " part ="button ">
51
- prefligths: shadow-2xl
52
- </ button >
53
- < br />
54
- < br />
55
- < button class ="bg-red-100 " @click =${ this . _onClick } part ="button">
56
- Click Count: ${ this . count }
57
- </ button >
58
- < button @click =${ this . _toggleSpan } part ="button">
59
- Change BG Color:: ${ this . span ? 'Normal' : 'Red' }
60
- </ button >
61
- < my-another-element class ="part-[cool-part]:cool-green part-[another-cool-part]:cool-green "> Testing css part</ my-another-element >
62
- < my-another-element class ="part-[cool-part]:cool-green part-[another-cool-part]:cool-blue "> Testing css part</ my-another-element >
63
- < my-another-element class ="part-[cool-part]:cool-blue part-[another-cool-part]:cool-green "> Testing css part</ my-another-element >
64
- < my-another-element class ="part-[cool-part]:cool-blue part-[another-cool-part]:cool-blue "> Testing css part</ my-another-element >
65
- < my-another-element class ="part-[cool-part]:cool-green "> Testing css part</ my-another-element >
66
- < my-another-element class ="part-[cool-part]:cool-blue "> Testing css part</ my-another-element >
67
- < my-another-element class ="part-[cool-part]:cool-blue "> Testing css part</ my-another-element >
68
- < my-collision-element class ="part-[cool-part]:cool-blue "> Testing css part</ my-collision-element >
69
- < my-collision-element class ="part-[cool-part]:cool-green part-[another-cool-part]:bg-red-500 "> Testing css part</ my-collision-element >
70
- < slot > </ slot >
44
+ < div class ="prose ">
45
+ < span class ="logo "> </ span >
46
+ < h1 class ="mt-2em animate-jack-in-the-box animate-duration-2s " text-green-600 > Hello, ${ this . name } !</ h1 >
47
+ < br />
48
+ ${ this . span ? html ` < div class ="bg-red-400 "> BG Color should change</ div > ` : html ` < div > BG Color should change</ div > ` }
49
+ < br />
50
+ < br />
51
+ < button class ="shadow-2xl bg-white p-4 rounded-lg border-none " part ="button ">
52
+ prefligths: shadow-2xl
53
+ </ button >
54
+ < br />
55
+ < br />
56
+ < button class ="bg-red-100 " @click =${ this . _onClick } part ="button">
57
+ Click Count: ${ this . count }
58
+ </ button >
59
+ < button @click =${ this . _toggleSpan } part ="button">
60
+ Change BG Color:: ${ this . span ? 'Normal' : 'Red' }
61
+ </ button >
62
+ < my-another-element class ="part-[cool-part]:cool-green part-[another-cool-part]:cool-green "> Testing css part</ my-another-element >
63
+ < my-another-element class ="part-[cool-part]:cool-green part-[another-cool-part]:cool-blue "> Testing css part</ my-another-element >
64
+ < my-another-element class ="part-[cool-part]:cool-blue part-[another-cool-part]:cool-green "> Testing css part</ my-another-element >
65
+ < my-another-element class ="part-[cool-part]:cool-blue part-[another-cool-part]:cool-blue "> Testing css part</ my-another-element >
66
+ < my-another-element class ="part-[cool-part]:cool-green "> Testing css part</ my-another-element >
67
+ < my-another-element class ="part-[cool-part]:cool-blue "> Testing css part</ my-another-element >
68
+ < my-another-element class ="part-[cool-part]:cool-blue "> Testing css part</ my-another-element >
69
+ < my-collision-element class ="part-[cool-part]:cool-blue "> Testing css part</ my-collision-element >
70
+ < my-collision-element class ="part-[cool-part]:cool-green part-[another-cool-part]:bg-red-500 "> Testing css part</ my-collision-element >
71
+ < slot > </ slot >
72
+ </ div >
71
73
`
72
74
}
73
75
0 commit comments