Permalink
Browse files

bubble media directives

  • Loading branch information...
1 parent b540a68 commit 35b8a7b128d3d3c763c22c3b481be002c86ab077 @chriseppstein committed Sep 23, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/sass/tree/directive_node.rb
@@ -20,6 +20,13 @@ def initialize(value)
super()
end
+ def name
+ value.split(/\s/, 2).first
+ end
+
+ def bubbles?(parent)
+ name == "media" && !(parent.is_a?(DirectiveNode) && parent.name == "media")
+ end
protected
# @see Node#to_src

0 comments on commit 35b8a7b

Please sign in to comment.