Commit 767a91c 1 parent 4e21639 commit 767a91c Copy full SHA for 767a91c
File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,11 @@ export let variantPlugins = {
163
163
addVariant ( screen , `@media ${ query } ` )
164
164
}
165
165
} ,
166
+
167
+ orientationVariants : ( { addVariant } ) => {
168
+ addVariant ( 'orientation-portrait' , '@media (orientation: portrait)' )
169
+ addVariant ( 'orientation-landscape' , '@media (orientation: landscape)' )
170
+ } ,
166
171
}
167
172
168
173
export let corePlugins = {
Original file line number Diff line number Diff line change 899
899
}
900
900
}
901
901
}
902
+ @media (orientation : portrait) {
903
+ .orientation-portrait\:bg-yellow-300 {
904
+ --tw-bg-opacity : 1 ;
905
+ background-color : rgb (253 224 71 / var (--tw-bg-opacity ));
906
+ }
907
+ }
908
+ @media (orientation : landscape) {
909
+ .orientation-landscape\:bg-yellow-300 {
910
+ --tw-bg-opacity : 1 ;
911
+ background-color : rgb (253 224 71 / var (--tw-bg-opacity ));
912
+ }
913
+ }
Original file line number Diff line number Diff line change 134
134
< div class ="lg:animate-spin "> </ div >
135
135
< div class ="hover:animate-spin "> </ div >
136
136
137
+ <!-- Orientation variants -->
138
+ < div class ="orientation-portrait:bg-yellow-300 "> </ div >
139
+ < div class ="orientation-landscape:bg-yellow-300 "> </ div >
140
+
137
141
<!-- Stacked variants -->
138
142
< div class ="open:hover:bg-red-200 "> </ div >
139
143
< div class ="file:hover:bg-blue-600 "> </ div >
You can’t perform that action at this time.
0 commit comments