Class | Sass::Tree::Visitors::Cssize |
In: |
lib/sass/tree/visitors/cssize.rb
|
Parent: | Sass::Tree::Visitors::Base |
parent | [R] | Returns the immediate parent of the current node. @return [Tree::Node] |
@param root [Tree::Node] The root node of the tree to visit. @return [(Tree::Node, Sass::Util::SubsetMap)] The resulting tree of static nodes
*and* the extensions defined for this tree
Converts nested properties into flat properties and updates the indentation of the prop node based on the nesting level.
In Ruby 1.8, ensures that there‘s only one `@charset` directive and that it‘s at the top of the document.
@return [(Tree::Node, Sass::Util::SubsetMap)] The resulting tree of static nodes
*and* the extensions defined for this tree
Resolves parent references and nested selectors, and updates the indentation of the rule node based on the nesting level.
Runs a block of code with the current parent node replaced with the given node.
@param parent [Tree::Node] The new parent for the duration of the block. @yield A block in which the parent is set to `parent`. @return [Object] The return value of the block.