sass / ruby-sass

The original, now deprecated Ruby implementation of Sass
https://sass-lang.com
MIT License
183 stars 38 forks source link

Setting var to 'transparent' does not work #101

Open anthonyadamski opened 5 years ago

anthonyadamski commented 5 years ago

It seems 'transparent' is either a reserved string or this is a bug. It works in other compilers. Compiler never makes it into @else if ($navbar-type == 'transparent')

Example code:

$navbar-type == 'transparent'

// Include modifer components as needed
  @if $navbar-type == 'hamburger' {
    @include hamburger();
  }
  @else if ($navbar-type == 'classic') {
    @include classic();
  }
  @else if ($navbar-type == 'transparent') {
    @include transparent();
  }
  @else if ($navbar-type == 'modern') {
    @include modern();
  }
nex3 commented 5 years ago

This works for me. What version of Ruby Sass are you using?