artlantis / phamlp

Automatically exported from code.google.com/p/phamlp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@Extent don't work on a @import

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. i create a file stylein.scss
2. then create the second file style.scss
3. then import the stylein.scss to the style.css and try to use a @extend on a 
class of style.css and the extend don't show erors, just do nothing.

/*star of file stylein.scss*/
.error{
  border: 1px #f00;
  background-color: #fdd;
}
/*end of file stylein.css*/

/* start od file style.scss*/
@import "stylein.scss";

.seriousError {
  @extend .error;
  border-width: 3px;
}
/* end od file style.scss*/

What is the expected output? What do you see instead?

/* star expected output */
.error, .seriousError {
  border: 1px red;
  background-color: #ffdddd;
}
.seriousError {
  border-width: 3px;
}
/* end expected output */

/* start received output */
.error {
  border: 1px red;
  background-color: #ffdddd;
}

.seriousError {
  border-width: 3px;
}
/* end received output */


What version of the product are you using? On what operating system?

--Linux freeman-machine 2.6.32-33-generic #71-Ubuntu SMP Wed Jul 20 17:30:40 
UTC 2011 i686

--Apache 2.2

--PHP Version 5.3.1

--PHamlP_3.2

Please provide any additional information below.

i alredy ha tried to change the form of @import to @import "_stylein.scss", 
same way chance the fale and put the underscore.

i alredy tried to change de sintax of scss to sass and nothing happened.

if i use the @extend fom a class of same file, it works properly, but i need to 
use the @extend from the @import file..

Original issue reported on code.google.com by freeman...@hotmail.com on 2 Aug 2011 at 5:07