Skip to content

Instantly share code, notes, and snippets.

@kig
Created October 1, 2013 15:41
Show Gist options
  • Save kig/6780463 to your computer and use it in GitHub Desktop.
Save kig/6780463 to your computer and use it in GitHub Desktop.
Stylus print stylesheet for Message presos (https://message.fhtr.net)
/*
Released under the MIT License.
*/
@media print
@page
margin 0
padding 0
body
background #fff
font-size 13pt
width 100%
height auto
border 0
margin 0
padding 0
float none !important
overflow visible
html
background #fff
width 100%
height auto
overflow visible
#appFrame, #appFrame iframe
overflow visible
width 100%
height auto
#editor, #preview, #fullscreen, #authbox
display none !important
#container
-webkit-print-color-adjust exact !important
position relative !important
left 0 !important
top 0 !important
width 100% !important
height auto !important
overflow visible !important
background transparent !important
margin 0 !important
padding 0 !important
font-size 50% !important
>:not(.slide)
display none
.embed
display inline-block !important
overflow visible !important
opacity 1 !important
iframe
display inline-block !important
overflow visible !important
opacity 1 !important
.slide
display block !important
position relative !important
opacity 1 !important
box-shadow none !important
border 0 !important
outline 0 !important
-webkit-transition 0 !important
-moz-transition 0 !important
-ms-transition 0 !important
-o-transition 0 !important
transition 0 !important
-webkit-transform none !important
-moz-transform none !important
-ms-transform none !important
-o-transform none !important
transform none !important
width: 100% !important
height 100% !important
page-break-after always !important
page-break-inside avoid !important
left auto !important
top auto !important
margin auto !important
padding auto !important
overflow hidden !important
.slide-container
position relative !important
width 100% !important
height 100% !important
.slide, .slide-container, .standalone
&:after, &:before
display none !important
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment