Skip to content

Commit

Permalink
Better handle print CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins98 committed Oct 12, 2017
1 parent f2b048a commit 25c5841
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
8 changes: 8 additions & 0 deletions css/ebi-global-drupal.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,11 @@ ul.breadcrumbs { padding-top: 1rem; }
.medium-3 .panels-ipe-portlet-content > .with-overlay {
margin-bottom: .75rem;
}

/* print tweaks */
@media print {
body.logged-in ul.button-group,
body.logged-in > .toolbar {
display: none;
}
}
15 changes: 11 additions & 4 deletions css/ebi-global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ a:active {
padding-right: 17px;
}
}

}


Expand Down Expand Up @@ -1026,13 +1026,21 @@ a.more {
@media print {
a, a:visited { border-bottom: none; }
#skip-to,
.masthead-black-bar nav,
.masthead nav,
form#local-search,
.global-footer,
#search_ebi,
#shortcuts,
#ebi_search_results { display: none; }
body { font-size: .9rem; } // slightly decrease font for print
// don't print main navigation links
.masthead-black-bar nav a[href]:after,
.masthead nav a[href]:after,
.masthead-inner a[href]:after {
content: " ";
}
// print at full width of page
.row { max-width: 100%; }

}

/* Clearable text inputs
Expand Down Expand Up @@ -1130,4 +1138,3 @@ dl dt {
@for $i from 0 through 20 {
.size-#{$i*25} { font-size: 25%*$i; }
}

0 comments on commit 25c5841

Please sign in to comment.