Skip to content

Commit

Permalink
Merge pull request #254 from mitmedialab/dsjen/print
Browse files Browse the repository at this point in the history
Added print specific layout
  • Loading branch information
dsjen authored May 3, 2019
2 parents a9032bb + d5e2328 commit a83ba33
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/app/components/Feed/feed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ $settings-width-closed: 56px;

.filtered-text {
padding-bottom: $spacer-small;

@media print {
display: none;
}
}

.no-posts-text {
Expand Down
21 changes: 21 additions & 0 deletions client/app/components/Post/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ $post-hidden-padding: $spacer-small * 0.5;
&.additive-post {
background-color: $additive-color;
}

@media print {
display: none;
}
}

@media print {
border: black 3px;
border-style: dotted;
}
}

Expand Down Expand Up @@ -217,9 +226,21 @@ $post-hidden-padding: $spacer-small * 0.5;
@include media-breakpoint-up(md) {
padding-bottom: $spacer-small;
}

@media print {
break-inside: avoid;

&:nth-child(n+50) {
display: none;
}
}
}

.post-container-hidden {
@media print {
display: none;
}

padding-bottom: 0;

.source-icon {
Expand Down
4 changes: 4 additions & 0 deletions client/app/components/Settings/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ $sidebar-color: #fff;
*:focus{
outline:none;
}

@media print {
display: none;
}
}

$spacing-heading-top: 25px;
Expand Down

0 comments on commit a83ba33

Please sign in to comment.