Verified Commit 157402aa authored by Robert Hunt's avatar Robert Hunt 2️⃣
Browse files

fix: Change generate_utilities.js to handle important media queries

This attempts to identify `@media` queries and treat them in a special
way in comparison to other important classes. To do this, it loops
through the inner nodes and either:
* Extract the contents of the `@include` into its component parts and
replace the `@include` with them being made `!important`
  * The `@include` doesn't have an `!important` variant so keeping it
  doesn't work
  * We can't use `@Extends` as that only works in the same block as
  where the class is called
* Does the normal `buildImportantDecl` if the inner node is a
declaration
* Keeps as-is if neither so we don't lose the CSS so we can fix if
there is a problem later
parent 5015c296
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment