Skip to content

nib and Stylus variables do not work well together #333

@mitar

Description

@mitar

For this example:

@import 'nib'

$input-transition ?= all .3s

.test
  transition $input-transition

The output without nib is:

.test {
  -webkit-transition: all;
  -moz-transition: all;
  -o-transition: all;
  -ms-transition: all;
  transition: all;
}

But it should be more something like:

.test {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
}

If I do not use a variable, it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions