File: print.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 (23 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 
title: Compass Print
crumb: Print
framework: compass
stylesheet: compass/utilities/_print.scss
layout: core
meta_description: Control what elements gets printed.
classnames:
  - reference
  - core
  - utilities
---
- render 'reference' do
  :markdown
    Control what gets printed. Apply the `no-print` (or `noprint`) class to any
    elements that should be hidden when printing. Apply the `print-only` class
    to those elements which should only appear in your printed pages.
    
    The tricky part about `print-only` is getting the display right when you turn
    an element back on in the case where both styles are applied. This mixin
    uses the `elements-of-type` function to make sure that elements have the correct
    display value according to the element type.