refactor media conditional
This commit is contained in:
parent
0bc6445ebf
commit
d2af63ed31
@ -64,9 +64,7 @@ impl Media {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if super_selector.is_empty() {
|
if !super_selector.is_empty() {
|
||||||
body.append(&mut rules);
|
|
||||||
} else {
|
|
||||||
body = vec![Spanned {
|
body = vec![Spanned {
|
||||||
node: Stmt::RuleSet(RuleSet {
|
node: Stmt::RuleSet(RuleSet {
|
||||||
selector: super_selector.clone(),
|
selector: super_selector.clone(),
|
||||||
@ -75,8 +73,8 @@ impl Media {
|
|||||||
}),
|
}),
|
||||||
span: kind_span,
|
span: kind_span,
|
||||||
}];
|
}];
|
||||||
body.append(&mut rules);
|
|
||||||
}
|
}
|
||||||
|
body.append(&mut rules);
|
||||||
|
|
||||||
Ok(Media {
|
Ok(Media {
|
||||||
super_selector: Selector::new(),
|
super_selector: Selector::new(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user