Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 723 Bytes

Fragments – defined and invoked with the @fragment directive – work in a similar way to mixins, except that they work at block level:

@fragment input-placeholder {
  #(1)::-webkit-input-placeholder { color: #(0); }
  #(1):-moz-placeholder           { color: #(0); }
  #(1)::placeholder               { color: #(0); }
  #(1).placeholder-state          { color: #(0); }
}

@fragment input-placeholder(#777, textarea);
textarea::-webkit-input-placeholder { color: #777; }
textarea:-moz-placeholder           { color: #777; }
textarea::placeholder               { color: #777; }
textarea.placeholder-state          { color: #777; }