2010-05-02 20:25:43 +00:00
|
|
|
---
|
|
|
|
title: Compass Display Helpers
|
|
|
|
crumb: Display Helpers
|
|
|
|
framework: compass
|
|
|
|
meta_description: Helper functions for working with the display property.
|
|
|
|
layout: core
|
|
|
|
classnames:
|
|
|
|
- reference
|
|
|
|
- core
|
|
|
|
- helpers
|
2011-01-05 17:34:45 +00:00
|
|
|
documented_functions:
|
|
|
|
- "elements-of-type"
|
2010-05-02 20:25:43 +00:00
|
|
|
---
|
|
|
|
%h1 Compass Display Helpers
|
|
|
|
|
|
|
|
%p Helper functions for working with the display property.
|
|
|
|
|
|
|
|
#elements-of-type.helper
|
|
|
|
%h3
|
|
|
|
%a(href="#elements-of-type") elements-of-type(<span class="arg">$display</span>)
|
|
|
|
.details
|
|
|
|
%p
|
|
|
|
The following display values exist and will return
|
2011-07-20 23:05:47 +00:00
|
|
|
the elements listed below the display value.
|
2010-05-02 20:25:43 +00:00
|
|
|
%dl
|
|
|
|
%dg.head
|
2010-05-04 04:03:17 +00:00
|
|
|
%dt Display Value
|
2010-05-02 20:25:43 +00:00
|
|
|
%dd Elements Returned
|
|
|
|
- display_map = Compass::SassExtensions::Functions::Display::DEFAULT_DISPLAY
|
|
|
|
- display_map.keys.each do |key|
|
|
|
|
%dg
|
|
|
|
%dt= key
|
|
|
|
%dd= display_map[key].sort.join(", ")
|
|
|
|
.examples
|
|
|
|
%h4 Examples
|
|
|
|
%ul
|
|
|
|
%li
|
2010-11-22 01:11:43 +00:00
|
|
|
%a(href="/examples/compass/helpers/elements-of-type/") Example of elements-of-type
|
2010-05-02 20:25:43 +00:00
|
|
|
|