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

Certain conditionals not working properly in gss file #215

Open
gabeblackbeard opened this issue Aug 11, 2016 · 0 comments
Open

Certain conditionals not working properly in gss file #215

gabeblackbeard opened this issue Aug 11, 2016 · 0 comments

Comments

@gabeblackbeard
Copy link

Yet another oddity I've come across regarding inline gss vs external gss. This following code

@if ::window[width] >= 600 {
  #test-div{
    background-color:blue;  
  }   
}@else{
  #test-div{
    background-color:green;      
  }
}

#test-div{
  size:==100; 
}

does not work at all when inside a gss file that is linked by the main html page. Not even the @else triggers. However, if applied inline, in the head section of the page, it works.

I can verify that this problem only arises with properties such as ::window[width] and $scroll-top. When using other properties such as div[width] for the condition, I'm having no issues.

Anyone know the reason behind this? It feels as if the external gss file can't access properties such as ::window[width] and $scroll-top but that can't be the case since I'm able to use them in other sections of my code.

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