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
|
|
|
|
---
|
|
|
|
%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
|
|
|
|
the elements listed to the right.
|
|
|
|
%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
|
|
|
|
%a(href="/docs/examples/compass/helpers/elements-of-type/") Example of elements-of-type
|
|
|
|
|