Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(There's a problem with further stylus conversion to SCSS) 进一步stylus转换scss 有问题 #106

Open
yyccQQu opened this issue May 20, 2020 · 0 comments

Comments

@yyccQQu
Copy link

yyccQQu commented May 20, 2020

functions = constant env
safe-area-fn(fn, position)
  s("%s(safe-area-inset-%s)", fn, position)
safe-area-mixin(property, position, important = false)
  for fn in functions
    {property} safe-area-fn(fn, position) important == true ? !important : unquote("")

==> scss

$functions: constant env;
@function safe-area-fn($fn, $position) {
  @return s("%s(safe-area-inset-%s)", $fn, $absolute);
}
@function safe-area-mixin($property, $position, $important: false) {
  @each $fn in $$functions {
        @return #{$property}:     safe-area-fn($fn, $absolute),     $important == true;
  }
}

scss不能解析(SCSS does not resolve)

https://www.zhangxinxu.com/jq/stylus/bifs.php

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

No branches or pull requests

1 participant