File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,16 @@ module.exports = (UserProps) => {
173
173
STATE . target_media_dark . append ( STATE . target_rule_dark )
174
174
STATE . target_ss . append ( STATE . target_media_dark )
175
175
}
176
-
177
- // append adaptive prop definition to dark media query
178
- let darkdecl = new Declaration ( { prop, value : adaptive } )
179
- STATE . target_rule_dark . append ( darkdecl )
180
- STATE . mapped_dark . add ( prop )
176
+
177
+ if ( adaptive . includes ( '@keyframes' ) ) {
178
+ STATE . target_media_dark . append ( adaptive )
179
+ }
180
+ else {
181
+ // append adaptive prop definition to dark media query
182
+ let darkdecl = new Declaration ( { prop, value : adaptive } )
183
+ STATE . target_rule_dark . append ( darkdecl )
184
+ STATE . mapped_dark . add ( prop )
185
+ }
181
186
}
182
187
183
188
// track work to prevent duplicative processing
You can’t perform that action at this time.
0 commit comments