From 3cb33e6847903b354b3ff574502aea813ed9fd9a Mon Sep 17 00:00:00 2001 From: Kyle Fiedler Date: Thu, 16 Feb 2012 12:11:35 -0500 Subject: [PATCH] Added new print styles --HG-- branch : templates-kf-print --- sass/base/_extends.scss | 12 ++++++++++++ sass/layout/_footer.scss | 4 ++++ sass/layout/_header.scss | 4 ++++ sass/print.scss | 7 +------ 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/sass/base/_extends.scss b/sass/base/_extends.scss index c482b947e6..75ba814575 100644 --- a/sass/base/_extends.scss +++ b/sass/base/_extends.scss @@ -53,6 +53,10 @@ h1.top-header { padding: lh(); vertical-align: top; width: flex-grid(9) + flex-gutter(); + + @media print { + @include box-shadow(none); + } } .sidebar { @@ -68,6 +72,10 @@ h1.top-header { width: flex-grid(3); position: relative; + @media print { + display: none; + } + h3 { @include box-shadow(0 1px 0 #eee); background: none; @@ -124,6 +132,10 @@ h1.top-header { @include box-shadow(inset 0 1px 0 #fff, inset 1px 0 0 #fff); @extend .clearfix; + @media print { + display: none; + } + a { color: darken(#F6EFD4, 80%); diff --git a/sass/layout/_footer.scss b/sass/layout/_footer.scss index 97c28d5fd8..5edcb630b8 100644 --- a/sass/layout/_footer.scss +++ b/sass/layout/_footer.scss @@ -6,6 +6,10 @@ footer { margin-top: $body-line-height; padding: 0 $body-line-height; + @media print { + display: none; + } + p { float: left; diff --git a/sass/layout/_header.scss b/sass/layout/_header.scss index 144194e397..f841bb6049 100644 --- a/sass/layout/_header.scss +++ b/sass/layout/_header.scss @@ -4,6 +4,10 @@ div.header-wrapper { background: $mit-red; border-bottom: 1px solid #fff; + @media print { + display: none; + } + header { @extend .clearfix; @extend .wrapper; diff --git a/sass/print.scss b/sass/print.scss index 12436ba683..8b13789179 100644 --- a/sass/print.scss +++ b/sass/print.scss @@ -1,6 +1 @@ -.header-wrapper {display:none;} -#accordion {display:none;} -.ui-accordion {display:none; -visibility:hidden; -width:0%; -} +