Index: openacs-4/packages/forums/www/forum-view.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/forum-view.tcl,v diff -u -N -r1.38 -r1.38.2.1 --- openacs-4/packages/forums/www/forum-view.tcl 24 Jul 2018 14:37:10 -0000 1.38 +++ openacs-4/packages/forums/www/forum-view.tcl 9 Feb 2020 08:11:53 -0000 1.38.2.1 @@ -47,7 +47,6 @@ set forum_url [ad_conn url]?forum_id=$forum_id template::head::add_css -href /resources/forums/forums.css -media all -template::head::add_css -href /resources/forums/print.css -media print set page_title "[_ forums.Forum_1] $forum(name)" set context [list $forum(name)] Index: openacs-4/packages/forums/www/message-view.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/message-view.tcl,v diff -u -N -r1.57 -r1.57.2.1 --- openacs-4/packages/forums/www/message-view.tcl 16 Nov 2017 12:40:08 -0000 1.57 +++ openacs-4/packages/forums/www/message-view.tcl 9 Feb 2020 08:11:53 -0000 1.57.2.1 @@ -85,7 +85,6 @@ # stylesheets set lang [ad_conn language] template::head::add_css -href /resources/forums/forums.css -media all -lang $lang -template::head::add_css -href /resources/forums/print.css -media print -lang $lang # set vars for i18n template::head::add_script -type "text/javascript" -script [subst { Index: openacs-4/packages/forums/www/resources/forums.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/resources/forums.css,v diff -u -N -r1.6.8.3 -r1.6.8.4 --- openacs-4/packages/forums/www/resources/forums.css 12 Jul 2019 12:59:14 -0000 1.6.8.3 +++ openacs-4/packages/forums/www/resources/forums.css 9 Feb 2020 08:11:53 -0000 1.6.8.4 @@ -129,3 +129,37 @@ font-size: 1.0em; font-weight: normal; } + + +@media print { + /* + * Make it white and pick a better print font + */ + body { + background: white; + font-family: "Bitstream vera serif", Georgia,"Times new roman",Times,Serif; + font-size: 12pt; + } + /* suppress all the nav elements */ + #context-bar, + #searchbox, + #side, + #cop-side, + #site-header .action-list, + #site-header .user-greeting, + #cop-footer { display: none; } + #content-body { margin-left: 2em; } + #site-header .system-name { + float: none; + text-align: left; + } + #forum-thread .action-list { display: none } + #forum-thread .details img { display: none } + + /* remove banding */ + #forum-thread div.even, #forum-thread div.odd { + background: white; + margin-bottom: 2em; + max-width: 50em; + } +} Index: openacs-4/packages/forums/www/resources/print.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/resources/print.css,v diff -u -N --- openacs-4/packages/forums/www/resources/print.css 15 Mar 2005 20:06:46 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,28 +0,0 @@ -/* make it white and pick a better print font */ -body { - background: white; - font-family: "Bitstream vera serif", Georgia,"Times new roman",Times,Serif; - font-size: 12pt; -} -/* suppress all the nav elements */ -#context-bar, -#searchbox, -#side, -#cop-side, -#site-header .action-list, -#site-header .user-greeting, -#cop-footer { display: none; } -#content-body { margin-left: 2em; } -#site-header .system-name { - float: none; - text-align: left; -} -#forum-thread .action-list { display: none } -#forum-thread .details IMG { display: none } - -/* remove banding */ -#forum-thread div.even, #forum-thread div.odd { - background: white; - margin-bottom: 2em; - max-width: 50em; -}