prettier/tests/stylefmt/readme
Christopher Chedeau 78ba808322 Initial CSS support (#1636)
I wanted to see how hard it would be to add support for CSS inside of prettier. Turns out, it's not that hard. I spent a few hours printing post-css values and getting all the stylefmt unit tests to not throw.
2017-05-24 10:52:12 -07:00
..
__snapshots__ Initial CSS support (#1636) 2017-05-24 10:52:12 -07:00
jsfmt.spec.js Initial CSS support (#1636) 2017-05-24 10:52:12 -07:00
readme.css Initial CSS support (#1636) 2017-05-24 10:52:12 -07:00

readme.css

// mixin for clearfix
        @mixin      clearfix    ()      { &:before,
  &:after {
                content:" ";
    display              : table;  }

  &:after        {clear: both;}
   }.class
{
       padding:10px;@include        clearfix();}
     .base {  color: red;  } // placeholder

%base
{


padding: 12px
}

.foo{
@extend      .base;}

.bar
      {     @extend            %base;

}