The no-print and print-only classes were never part of blueprint-css, so I'm moving them to compass utilities.
This commit is contained in:
parent
c07a89ef3d
commit
2177bc8e24
@ -49,16 +49,8 @@
|
|||||||
:font-size 1.1em
|
:font-size 1.1em
|
||||||
.quiet
|
.quiet
|
||||||
:color #999
|
:color #999
|
||||||
.hide,
|
.hide
|
||||||
.noprint,
|
|
||||||
.no-print
|
|
||||||
:display none
|
:display none
|
||||||
address, blockquote, center, dir, div, dd, dl, dt, fieldset, form, frameset, h1, h2, h3, h4, h5, h6, hr, isindex, li, menu, noframes, noscript, ol, p, pre, table, tbody, td, tfoot, th, thead, tr, ul
|
|
||||||
&.print-only
|
|
||||||
:display block
|
|
||||||
a, abbr, acronym, b, basefont, bdo, big, br, cite, code, dfn, em, font, i, img, input, kbd, label, q, s, samp, select, small, span, strike, strong, sub, sup, textarea, tt, u, var
|
|
||||||
&.print-only
|
|
||||||
:display inline
|
|
||||||
a:visited
|
a:visited
|
||||||
:background transparent
|
:background transparent
|
||||||
:font-weight 700
|
:font-weight 700
|
||||||
|
@ -35,5 +35,3 @@
|
|||||||
.bottom
|
.bottom
|
||||||
:margin-bottom 0
|
:margin-bottom 0
|
||||||
:padding-bottom 0
|
:padding-bottom 0
|
||||||
.print-only
|
|
||||||
:display none
|
|
||||||
|
24
frameworks/compass/stylesheets/compass/utilities/_print.sass
Normal file
24
frameworks/compass/stylesheets/compass/utilities/_print.sass
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/* Classes that are useful for controlling what gets printed.
|
||||||
|
You must mix +print-utilities into your print stylesheet
|
||||||
|
and +print-utilities("screen") into your screen stylesheet.
|
||||||
|
Note: these aren't semantic.
|
||||||
|
=print-utilities(!media = "print")
|
||||||
|
@if !media == "print"
|
||||||
|
.noprint,
|
||||||
|
.no-print
|
||||||
|
:display none
|
||||||
|
address, blockquote, center, dir, div, dd, dl, dt,
|
||||||
|
fieldset, form, frameset, h1, h2, h3, h4, h5, h6, hr,
|
||||||
|
isindex, li, menu, noframes, noscript, ol, p, pre,
|
||||||
|
table, tbody, td, tfoot, th, thead, tr, ul
|
||||||
|
&.print-only
|
||||||
|
:display block
|
||||||
|
a, abbr, acronym, b, basefont, bdo, big, br, cite,
|
||||||
|
code, dfn, em, font, i, img, input, kbd, label, q, s,
|
||||||
|
samp, select, small, span, strike, strong, sub, sup,
|
||||||
|
textarea, tt, u, var
|
||||||
|
&.print-only
|
||||||
|
:display inline
|
||||||
|
@else
|
||||||
|
.print-only
|
||||||
|
:display none
|
Loading…
Reference in New Issue
Block a user