diff --git a/frameworks/blueprint/stylesheets/blueprint/_print.sass b/frameworks/blueprint/stylesheets/blueprint/_print.sass index 1a2ce620..f95b0b8d 100644 --- a/frameworks/blueprint/stylesheets/blueprint/_print.sass +++ b/frameworks/blueprint/stylesheets/blueprint/_print.sass @@ -49,16 +49,8 @@ :font-size 1.1em .quiet :color #999 - .hide, - .noprint, - .no-print + .hide :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 :background transparent :font-weight 700 diff --git a/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass b/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass index 7892948d..50e87b45 100644 --- a/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +++ b/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass @@ -35,5 +35,3 @@ .bottom :margin-bottom 0 :padding-bottom 0 - .print-only - :display none diff --git a/frameworks/compass/stylesheets/compass/utilities/_print.sass b/frameworks/compass/stylesheets/compass/utilities/_print.sass new file mode 100644 index 00000000..bb14b52b --- /dev/null +++ b/frameworks/compass/stylesheets/compass/utilities/_print.sass @@ -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