Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Improve print styles #84
Browse files Browse the repository at this point in the history
  • Loading branch information
msom committed Nov 2, 2015
1 parent 38ad0c8 commit 3232af6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
Unreleased
~~~~~~~~~~

- Improve print styles.
[msom]

0.7.1 (2015-10-26)
~~~~~~~~~~~~~~~~~~~

Expand Down
29 changes: 27 additions & 2 deletions onegov/town/theme/styles/town.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ $max-line-width: 67ex;
(100vw includes the scrollbar, 100% does not)
*/
html {
margin-left: calc(100vw - 100%);
@media not print {
margin-left: calc(100vw - 100%);
}
}

/*
Expand All @@ -77,7 +79,10 @@ body {

#inner-body {
margin: 0 auto -$footer-height;
min-height: 100%;

@media not print {
min-height: 100%;
}
}

.header {
Expand Down Expand Up @@ -1798,3 +1803,23 @@ ul.search-results {
}
}
}


/*
Print Styles
*/
@media print {
.ticket-count,
.searchbox,
.top-bar,
.edit-bar,
.alert-box,
.side-nav,
.bottom-links,
.occurrences-day-date,
.occurrences-filter-tags,
.occurrences-filter-date {
display: none;

}
}
3 changes: 2 additions & 1 deletion onegov/town/theme/town_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# options editable by the user
user_options = {
'primary-color': '#006fba',
'footer-height': '200px'
'footer-height': '200px',
'include-print-styles': 'false'
}


Expand Down

0 comments on commit 3232af6

Please sign in to comment.