Module: Compass::Core::SassExtensions::Functions::Display
- Included in:
- Sass::Script::Functions
- Defined in:
- lib/compass/core/sass_extensions/functions/display.rb
Constant Summary collapse
- DEFAULT_DISPLAY =
{ "block" => %w{address article aside blockquote center dir div dd details dl dt fieldset figcaption figure form footer frameset h1 h2 h3 h4 h5 h6 hr header hgroup isindex main menu nav noframes noscript ol p pre section summary ul}, "inline" => %w{a abbr acronym audio b basefont bdo big br canvas cite code command datalist dfn em embed font i img input keygen kbd label mark meter output progress q rp rt ruby s samp select small span strike strong sub sup textarea time tt u var video wbr}, "inline-block" => %w{img}, "table" => %w{table}, "list-item" => %w{li}, "table-row-group" => %w{tbody}, "table-header-group" => %w{thead}, "table-footer-group" => %w{tfoot}, "table-row" => %w{tr}, "table-cell" => %w{th td}, "html5-block" => %w{article aside details figcaption figure footer header hgroup main menu nav section summary}, "html5-inline" => %w{audio canvas command datalist embed keygen mark meter output progress rp rt ruby time video wbr}, "text-input" => %w{input textarea} }
Instance Method Summary collapse
-
#elements_of_type(display) ⇒ Object
returns a comma delimited string for all the elements according to their default css3 display value.
Instance Method Details
#elements_of_type(display) ⇒ Object
returns a comma delimited string for all the elements according to their default css3 display value.
29 30 31 |
# File 'lib/compass/core/sass_extensions/functions/display.rb', line 29 def elements_of_type(display) identifier(DEFAULT_DISPLAY.fetch(display.value.to_s).join(", ")) end |