From 98955958690be9d7eddb29574d9346c84a6f6da7 Mon Sep 17 00:00:00 2001 From: Teresa Date: Wed, 6 Jan 2016 15:10:36 -0800 Subject: [PATCH] Added print styles, hide sidebar in print view --- public/resources/css/_print.scss | 113 +++++++++++++++++++++++++++++-- 1 file changed, 106 insertions(+), 7 deletions(-) diff --git a/public/resources/css/_print.scss b/public/resources/css/_print.scss index 5222af1b13..0de215bcfb 100644 --- a/public/resources/css/_print.scss +++ b/public/resources/css/_print.scss @@ -1,12 +1,22 @@ @media print { - + .hero::after { + content: "Developer Preview Only - some details may change"; + } /* * Print Styles * */ - + .banner { + background: #ECEFF1; + -webkit-print-color-adjust: exact; + padding: 16px 22px; + margin: 0 48px; + min-height: 96px; + } + .side-nav, nav { + display:none; + } // HIDE FOR PRINT - .side-nav, .main-nav, .main-footer, .cta-bar, @@ -19,13 +29,102 @@ } // BACKGROUND FOR PRINT - .hero { - background: none !important; - } + // .hero { + // background: none !important; + // } //COLOR DARK .hero-title, .hero-subtitle { color: $steel; } -} \ No newline at end of file + + table { + border-bottom: 5px solid #4D6A79; + width: 100%; + code { + background: transparent; + display: inline-block; + } + th { + background: #4D6A79; + color: white; + padding: $unit ($unit * 2); + box-sizing: border-box; + width: 50%; + code { + color: white; + } + &:last-child { + text-align: right; + } + &:first-child { + text-align: left; + } + } + td { + padding: $unit ($unit * 2); + box-sizing: border-box; + width: 50%; + vertical-align: top; + border: none; + } + + td p, th p { + margin: 0; + font-size: inherit; + font-weight: inherit; + opacity: inherit; + line-height: inherit; + padding: 0; + } + + tr:nth-child(odd) { + background: #E7EBEE; + -webkit-print-color-adjust: exact; + } + } + + .l-sub-section { + background: #f5f6f7; + -webkit-print-color-adjust: exact; + border-radius: 4px; + } + + code { + background: #F5F6F7; + -webkit-print-color-adjust: exact; + border-radius: 2px; + font-family: Monaco,"Lucida Console",monospace; + color: #5C707A; + padding: 0 4px; + font-size: 90%; + } + + .prettyprint { + background: #F5F6F7; + -webkit-print-color-adjust: exact; + font-family: Monaco,"Lucida Console",monospace; + color: #5C707A; + width: auto; + overflow: auto; + position: relative; + padding: 0; + font-size: 13px; + line-height: 24px; + margin-bottom: 24px; + border-radius: 0 0 4px 4px; + padding: 16px 32px; + } + + .example-title { + color: #fff; + padding: 0 16px; + font-size: 14px; + border-color: #1976D2; + background: #1976D2; + -webkit-print-color-adjust: exact; + box-shadow: none; + margin-bottom: -18px; + } +}