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

import css use scss #459

Closed
yozman opened this issue Jul 31, 2016 · 3 comments
Closed

import css use scss #459

yozman opened this issue Jul 31, 2016 · 3 comments

Comments

@yozman
Copy link

yozman commented Jul 31, 2016

how can I import my css file use scss import?

I want to use like this

// app.scss
@import "theme.css";

button {
  @extend .btn;
}

// theme.css
.btn {
   // ...
}

but there is an error:
Parse error: "button" failed to @extend ".btn". The selector ".btn" was not found.: line: 4
I found scssphp parsed @import use css not scss,
could you tell me what should I do?

@robocoder
Copy link
Collaborator

Not supported. See #402

@yozman
Copy link
Author

yozman commented Aug 5, 2016

@robocoder
I read the article
but really need that feature

for support just need change 1 line
\Leafo\ScssPhp\Compiler::findImport#3221

to

if (! preg_match('/^https?:\/\//', $url)) {

@yozman
Copy link
Author

yozman commented Aug 5, 2016

@robocoder
I have an new idea
how about use a config to toggle support import css?

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

2 participants