File: display.haml

package info (click to toggle)
ruby-compass 0.12.2~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,308 kB
  • sloc: ruby: 10,474; makefile: 42; xml: 14
file content (39 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- 
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
documented_functions:
  - "elements-of-type"
---
%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 below the display value.
    %dl
      %dg.head
        %dt Display Value
        %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="/examples/compass/helpers/elements-of-type/") Example of elements-of-type