https://github.com/sha-red/compass-mixins/tree/master/lib extended with more sass frameworks and as django app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
538 B

// 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.
@mixin print-utilities($media: print) {
@if $media == print {
.noprint, .no-print { display: none; }
#{elements-of-type(block)} {
&.print-only { display: block; }
}
#{elements-of-type(inline)} {
&.print-only { display: inline; }
}
} @else {
.print-only { display: none; }
}
}