Module: Less::StyleSheet::Selectors2

Defined in:
lib/sass/less.rb

Overview

Comma-separated selectors. Less breaks these into completely separate nodes. Since we don't want this duplication in the Sass, we modify the production to keep track of the original group so we can reconstruct it later on.

Instance Method Summary collapse

Instance Method Details

#build_with_sass(env, method) Also known as: build



73
74
75
76
77
78
79
# File 'lib/sass/less.rb', line 73

def build_with_sass(env, method)
  arr = build_without_sass(env, method)
  return arr if method == :mixin
  rarr = arr.map {|e| e.top(env)}
  rarr.each {|e| e.group = rarr}
  arr
end