|
|
|
@ -182,8 +182,13 @@ module.exports = () => { |
|
|
|
var w = width || ''; |
|
|
|
var opt = { ...opts }; |
|
|
|
var rule = this.get(selectors, s, w, opt); |
|
|
|
if (rule) return rule; |
|
|
|
else { |
|
|
|
|
|
|
|
// do not create rules that were found before
|
|
|
|
// unless this is an at-rule, for which multiple declarations
|
|
|
|
// make sense (e.g. multiple `@font-type`s)
|
|
|
|
if (rule && rule.config && !rule.config.atRuleType) { |
|
|
|
return rule; |
|
|
|
} else { |
|
|
|
opt.state = s; |
|
|
|
opt.mediaText = w; |
|
|
|
opt.selectors = ''; |
|
|
|
|