Sha256: ca278e8782b4e34f96f5124c9f11f5c71ba1421a853e8c6057fd651a59136e3d
Contents?: true
Size: 755 Bytes
Versions: 209
Compression:
Stored size: 755 Bytes
Contents
module Sass::Tree # A static node representing a `@media` rule. # `@media` rules behave differently from other directives # in that when they're nested within rules, # they bubble up to top-level. # # @see Sass::Tree class MediaNode < DirectiveNode # The media query. A list of comma-separated queries (e.g. `print` or `screen`). # # @return [Array<String>] attr_accessor :query # @see RuleNode#tabs attr_accessor :tabs # @see RuleNode#group_end attr_accessor :group_end # @param query [Array<String>] See \{#query} def initialize(query) @query = query @tabs = 0 super('') end # @see DirectiveNode#value def value "@media #{query.join(', ')}" end end end
Version data entries
209 entries across 73 versions & 5 rubygems