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
Loading
-
mentioned in commit 8313704b
-
💬 @renovate-botmentioned in merge request rpadovani/daintree!237 (merged)
-
mentioned in merge request gitlab!37750 (merged)
-
mentioned in merge request gitlab-org/gitlab-services/design.gitlab.com!2019 (merged)
-
mentioned in merge request status-page!87 (closed)
-
mentioned in merge request status-page!97 (merged)
Please register or sign in to comment