Skip to content

Add support for @global #87

Description

@jantimon

There's a great proposal by @devongovett in css-modules/css-modules#390 to introduce an @global at-rule.

I believe it makes the code easier to read than :global and also helps in cases like #75 where :global lead to parsing errors.

@global {
  @keyframes fade {
    /* ... */
  }
}

Compared to the current approach:

@keyframes :global(fade) {
  /* ... */
}

What do you think about implementing this (in a backwards compatible way)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions