Skip to content

Compatibility with third party plugins#44

Open
ChangeSomeCode wants to merge 6 commits intomadeleineostoja:masterfrom
itcase:master
Open

Compatibility with third party plugins#44
ChangeSomeCode wants to merge 6 commits intomadeleineostoja:masterfrom
itcase:master

Conversation

@ChangeSomeCode
Copy link
Copy Markdown

Hi!

I got a problem when is specified a implicit value. For example, through the use of variables or mixins:

:root {
  --min-max: 320px 1440px;
}

@define-mixin font $minFontSize, $maxFontSize {
  font-size: responsive $minFontSize $maxFontSize;
  font-range: var(--min-max); 
}

h1 {
  @mixin font 36px, 36px;
}

the plugin takes a value in font-range that has not yet been processed - the string var(--min-max) and tries to calculate it. Now the value var(--min-max) is first converted by thrid party plugin to the 320px 1440px and only then the postcss-responsive-type plugin will be applied

new call method is performed by condition in options

@ChangeSomeCode
Copy link
Copy Markdown
Author

fix for #33

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant