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

Error: no mixin named input-placeholder #83

Closed
lvl99 opened this issue Mar 22, 2016 · 2 comments
Closed

Error: no mixin named input-placeholder #83

lvl99 opened this issue Mar 22, 2016 · 2 comments

Comments

@lvl99
Copy link

lvl99 commented Mar 22, 2016

Perhaps the Compass mixin files in this repo are now out of date with existing Compass mixins?

I took the mixin input-placeholder from Compass and put it in my own file and it then complains about:

Error: no mixin named with-each-prefix

@shri3k
Copy link

shri3k commented May 16, 2016

It looks like it. I tried including input-placeholder which was in _user-interface.scss from Compass which also includes _support.scss instead of _shared.scss. I took the whole _support.scss from Compass again (because it was giving me the same error as the one you mentioned) and replaced with it and I found out that _support.scss actually relied on some of ruby's "monkey-patched" functions from https://github.com/Compass/compass/blob/stable/core/lib/compass/core/sass_extensions/functions/cross_browser_support.rb#L173-L182

# The percent of users relying on a particular prefix
  def prefix_usage(prefix, capability, capability_options)
    assert_type prefix, :String
    assert_type capability, :String
    number(Compass::Core::CanIUse.instance.prefixed_usage(prefix.value,
                                                    capability.value,
                                                    unbox_capability_options_list(capability_options)))
  rescue ArgumentError => e
    raise Sass::SyntaxError.new(e.message)
  end
  declare(:prefix_usage, [:prefix, :capability])

I'm not familiar with ruby but I agree some of the mixins here could use some updating.

@xzyfer
Copy link
Collaborator

xzyfer commented May 19, 2016

The input-placeholder mixin has been added in v0.12.9.

@xzyfer xzyfer closed this as completed May 19, 2016
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

3 participants