Commit b6164b57 by Marco Morales

Merge pull request #7595 from jolyonb/jolyonb/printing_cleanup

Complete Printing Cleanup
parents 8a7c2d66 1021151e
...@@ -269,6 +269,13 @@ div.problem { ...@@ -269,6 +269,13 @@ div.problem {
} }
} }
// Hides equation previews in symbolic response problems when printing
[id^='display'].equation {
@media print {
display:none;
}
}
span { span {
&.unanswered, &.ui-icon-bullet { &.unanswered, &.ui-icon-bullet {
display: inline-block; display: inline-block;
...@@ -628,6 +635,10 @@ div.problem { ...@@ -628,6 +635,10 @@ div.problem {
height: ($baseline*2); height: ($baseline*2);
vertical-align: middle; vertical-align: middle;
font-weight: 600; font-weight: 600;
@media print {
display: none;
}
} }
.save { .save {
......
...@@ -40,6 +40,10 @@ $sequence--border-color: #C8C8C8; ...@@ -40,6 +40,10 @@ $sequence--border-color: #C8C8C8;
position: relative; position: relative;
border-bottom: none; border-bottom: none;
@media print {
display: none;
}
.left-shadow { .left-shadow {
@extend %ui-depth4; @extend %ui-depth4;
@include linear-gradient(left, $shadow, $transparent); @include linear-gradient(left, $shadow, $transparent);
...@@ -277,6 +281,10 @@ nav.sequence-bottom { ...@@ -277,6 +281,10 @@ nav.sequence-bottom {
height: 1px; height: 1px;
margin: lh(2) auto; margin: lh(2) auto;
text-align: center; text-align: center;
@media print {
display: none;
}
} }
#seq_content { #seq_content {
......
...@@ -122,6 +122,10 @@ a:focus { ...@@ -122,6 +122,10 @@ a:focus {
margin: 0 auto; margin: 0 auto;
background: $content-wrapper-bg; background: $content-wrapper-bg;
padding-bottom: ($baseline*2); padding-bottom: ($baseline*2);
@media print {
padding-bottom: 0;
}
} }
.container { .container {
...@@ -246,6 +250,7 @@ mark { ...@@ -246,6 +250,7 @@ mark {
@include transform(rotate(-90deg)); @include transform(rotate(-90deg));
@include transform-origin(0 0); @include transform-origin(0 0);
@extend %ui-depth2; @extend %ui-depth2;
@extend %ui-print-excluded;
top: 250px; top: 250px;
left: 0; left: 0;
position: fixed; position: fixed;
...@@ -337,6 +342,8 @@ mark { ...@@ -337,6 +342,8 @@ mark {
// UI - skipnav // UI - skipnav
.nav-skip { .nav-skip {
@extend %ui-print-excluded;
display: block; display: block;
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -128,3 +128,10 @@ ...@@ -128,3 +128,10 @@
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
// Adds a simple extend that indicates that this user interface element should not print
%ui-print-excluded {
@media print {
display:none;
}
}
...@@ -237,4 +237,8 @@ div.info-wrapper { ...@@ -237,4 +237,8 @@ div.info-wrapper {
} }
} }
} }
@media print {
border: 0;
}
} }
...@@ -9,4 +9,8 @@ div.static_tab_wrapper { ...@@ -9,4 +9,8 @@ div.static_tab_wrapper {
section { section {
margin: 0px 0px 20px; margin: 0px 0px 20px;
} }
@media print {
border: 0;
}
} }
\ No newline at end of file
...@@ -12,6 +12,8 @@ html.video-fullscreen{ ...@@ -12,6 +12,8 @@ html.video-fullscreen{
} }
.wrap-instructor-info { .wrap-instructor-info {
@extend %ui-print-excluded;
margin: ($baseline/2) ($baseline/4) 0 0; margin: ($baseline/2) ($baseline/4) 0 0;
overflow: hidden; overflow: hidden;
...@@ -240,6 +242,10 @@ div.course-wrapper { ...@@ -240,6 +242,10 @@ div.course-wrapper {
padding: 0; padding: 0;
} }
} }
@media print {
padding: 0 2mm;
}
} }
&.closed { &.closed {
...@@ -274,6 +280,10 @@ div.course-wrapper { ...@@ -274,6 +280,10 @@ div.course-wrapper {
width: flex-grid(11.5) + flex-gutter(); width: flex-grid(11.5) + flex-gutter();
} }
} }
@media print {
border: 0;
}
} }
.xmodule_VideoModule { .xmodule_VideoModule {
......
.wrapper-course-material { .wrapper-course-material {
@include clearfix(); @include clearfix();
@include box-sizing(border-box); @include box-sizing(border-box);
@extend %ui-print-excluded;
border-bottom: none; border-bottom: none;
margin: 0 auto 0; margin: 0 auto 0;
padding: 0; padding: 0;
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// ==================== // ====================
div.calc-main { div.calc-main {
@extend %ui-print-excluded;
bottom: -126px; bottom: -126px;
left: 0; left: 0;
position: fixed; position: fixed;
......
...@@ -673,6 +673,8 @@ body.discussion { ...@@ -673,6 +673,8 @@ body.discussion {
// inline discussion module and profile thread styling // inline discussion module and profile thread styling
.discussion-module { .discussion-module {
@extend .discussion-body; @extend .discussion-body;
@extend %ui-print-excluded;
position: relative; position: relative;
margin: $baseline 0; margin: $baseline 0;
padding: $baseline; padding: $baseline;
......
...@@ -289,6 +289,10 @@ $edx-footer-bg-color: rgb(252,252,252); ...@@ -289,6 +289,10 @@ $edx-footer-bg-color: rgb(252,252,252);
.edx-footer-new { .edx-footer-new {
background: $edx-footer-bg-color; background: $edx-footer-bg-color;
@media print {
@include padding(10px, 10px, 0, 10px);
}
// NOTE: resetting older footer styles - can be removed once not needed // NOTE: resetting older footer styles - can be removed once not needed
box-shadow: none; box-shadow: none;
border-top: none; border-top: none;
...@@ -300,10 +304,19 @@ $edx-footer-bg-color: rgb(252,252,252); ...@@ -300,10 +304,19 @@ $edx-footer-bg-color: rgb(252,252,252);
@extend %edx-footer-reset; @extend %edx-footer-reset;
@extend %edx-footer-section; @extend %edx-footer-section;
width: flex-grid(6,12); width: flex-grid(6,12);
@media print {
@include margin-right(0);
@include padding-right(0);
width: flex-grid(12,12);
border: none;
min-height: 0;
}
} }
.footer-about-title { .footer-about-title {
@extend %edx-footer-title; @extend %edx-footer-title;
@extend %ui-print-excluded;
} }
.footer-about-logo, .footer-about-openedx { .footer-about-logo, .footer-about-openedx {
...@@ -324,14 +337,19 @@ $edx-footer-bg-color: rgb(252,252,252); ...@@ -324,14 +337,19 @@ $edx-footer-bg-color: rgb(252,252,252);
.footer-about-logo { .footer-about-logo {
@include float(left); @include float(left);
@extend %ui-print-excluded;
} }
.footer-about-openedx-logo { .footer-about-openedx-logo {
@include float(right); @include float(right);
@media print {
@include float(left);
}
} }
.footer-about-copy { .footer-about-copy {
@extend %t-copy-sub1; @extend %t-copy-sub1;
@extend %ui-print-excluded;
margin-bottom: $edx-footer-spacing; margin-bottom: $edx-footer-spacing;
color: rgb(61, 62, 63); color: rgb(61, 62, 63);
clear: both; clear: both;
...@@ -357,9 +375,14 @@ $edx-footer-bg-color: rgb(252,252,252); ...@@ -357,9 +375,14 @@ $edx-footer-bg-color: rgb(252,252,252);
display: inline-block; display: inline-block;
margin-bottom: ($edx-footer-spacing/2); margin-bottom: ($edx-footer-spacing/2);
} }
@media print {
margin-bottom: 0;
}
} }
.footer-about-links { .footer-about-links {
@extend %ui-print-excluded;
a { a {
@extend %edx-footer-link; @extend %edx-footer-link;
...@@ -376,6 +399,7 @@ $edx-footer-bg-color: rgb(252,252,252); ...@@ -376,6 +399,7 @@ $edx-footer-bg-color: rgb(252,252,252);
.footer-nav { .footer-nav {
@extend %edx-footer-reset; @extend %edx-footer-reset;
@extend %edx-footer-section; @extend %edx-footer-section;
@extend %ui-print-excluded;
width: flex-grid(3,12); width: flex-grid(3,12);
} }
...@@ -397,8 +421,8 @@ $edx-footer-bg-color: rgb(252,252,252); ...@@ -397,8 +421,8 @@ $edx-footer-bg-color: rgb(252,252,252);
.footer-follow { .footer-follow {
@extend %edx-footer-reset; @extend %edx-footer-reset;
@extend %edx-footer-section; @extend %edx-footer-section;
@extend %ui-print-excluded;
width: flex-grid(3,12); width: flex-grid(3,12);
} }
.footer-follow-title { .footer-follow-title {
......
...@@ -117,6 +117,8 @@ header.global { ...@@ -117,6 +117,8 @@ header.global {
.user { .user {
@include float(right); @include float(right);
@extend %ui-print-excluded;
margin-top: ($baseline/4); margin-top: ($baseline/4);
> .primary { > .primary {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment