Sha256: e316a85929edf6ceb063f94380b15b3613c595458b0171514c7a4ba2797a631e

Contents?: true

Size: 1.07 KB

Versions: 24

Compression:

Stored size: 1.07 KB

Contents

form {'input'}:last-child {
  display: none;
}

form {'input'}:nth-child({10 + 5}) {
  display: none;
}

for n in 1 2 3 4 5 {
  .grid-{n} {
    width: unit(n * 100, 'px');
  }
}

pos = last

body {form} {
  input:{  pos  }-child {
    display: none
  }
}

mixin(n) {
  &:nth-child({ n }) {
    display: none
  }
}

ul li {
  mixin(2);
}

{foo} {bar} {
  foo: bar;
}

{foo} {
  {bar} {
    {baz} {
      foo: bar;
    }
  }
}

{foo} {
  {bar} {
    {baz} {
      {foo}: bar
    }
    {one} 1
  }
  {two} 2
}

selectors = one two three;
props = (one 1) (two 2) (three 3);

for selector in selectors {
  {selector} * {
    for prop in props {
      {prop[0]}: prop[1];
    }
  }
}


li a:active { color: black; background: white; }

state = 'active'
li a:{state} { color: black; background: white; }

.col-{1}-{0} :nth-child(1) { foo: 'bar'; }

cols = 1 2 3

for col in cols
  .col-{col} { foo: 'bar'; }


@media print {
  blockquote { border: 1px solid #999 }
  blockquote {
   border: 1px solid #999
  }
  block{'quote'} { border: 1px solid #999 }
  block{'quote'} {
   border: 1px solid #999
  }
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
stylus-source-0.23.0 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.22.6 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.22.5 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.22.4 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.22.3 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.22.2 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.22.1 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.22.0 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.21.2 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.21.1 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.21.0 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.20.1 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.20.0 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.19.8 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.19.7 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.19.6 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.19.5 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.19.4 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.19.3 vendor/test/cases/css.selector.interpolation.styl
stylus-source-0.19.2 vendor/test/cases/css.selector.interpolation.styl