Koha/koha-tmpl/opac-tmpl/bootstrap/css/print.css
Marc Véron 21d05006c0 Bug 12399 - opaccredits printing at top on printable version
This patch introduces a new class "noprint" in koha-tmpl/opac-tmpl/bootstrap/css/print.css
With this class, unwanted elements can be hidden when printing.

To test:
In OPAC, do a search with many results (> 1 Page)
Print page or do a print preview
See that footer elements are not displayed correctly (as of screenshot in comment #1) and that on top of page 2 the language selector overlays the list
Apply patch
Repeat steps above.
Verify that printed page looks much nicer now by hiding unwanted elements (including e.g. RSS icon, toolbar etc.)

This mechanism can be used on other pages as well.

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-03-15 09:09:45 -03:00

233 lines
3.5 KiB
CSS

.noprint {
display : none;
}
a:link {
color : #000066;
text-decoration: none;
}
a:visited {
color : #000066;
text-decoration: none;
}
a:hover {
color : #993300;
text-decoration: none;
}
a[href]:after { display:none; }
body {
background-color : #FFF;
color : #333333;
font-family : arial, geneva, sans-serif;
font-size : 14px;
margin : 0px 0px 0px 0px;
word-wrap : break-word;
}
caption {
color : #000066;
font-size : 18px;
font-weight : bold;
margin-top : 5px;
text-align : left;
}
div.table {
width : 100%;
}
form {
margin : 0px;
padding : 0px;
}
h1
{
color : #000066;
font-size : 22px;
font-weight : bold;
margin-bottom : 3px;
margin-top : 3px;
}
h2 {
color : #000066;
font-size : 20px;
font-weight : bold;
margin-bottom : 3px;
margin-top : 3px;
}
h3 {
color : #000066;
font-size : 18px;
font-weight : bold;
margin-bottom : 3px;
margin-top : 3px;
}
h4 {
color : #000066;
font-size : 16px;
font-weight : bold;
margin-bottom : 3px;
margin-top : 3px;
}
h5 {
color : #000066;
font-size : 15px;
font-weight : bold;
margin-bottom : 1px;
margin-top : 1px;
}
h6 {
color : #000066;
font-size : 14px;
font-weight : bold;
margin-bottom : 1px;
margin-top : 1px;
}
p {
margin-top : 0px;
}
table {
background-color : #FFFFFF;
border-bottom : 0px solid #CCCCCC;
border-collapse : collapse;
border-left : 0px solid #CCCCCC;
margin : 3px 0px 5px 0px;
padding : 0px;
width : 99%;
}
td {
background-color : #FFF;
border-bottom : 1px solid #CCCCCC;
border-right : 1px solid #CCCCCC;
padding : 5px 5px 5px 5px;
vertical-align : top;
}
td:last-child {
background-color : #FFF;
border-bottom : 1px solid #CCCCCC;
border-right : 0px solid #CCCCCC;
padding : 5px 5px 5px 5px;
vertical-align : top;
}
th {
background-color : #E9E9E9;
border-bottom : 1px solid #CCCCCC;
border-right : 1px solid #CCCCCC;
font-weight : bold;
padding : 5px 5px 5px 5px;
}
th:last-child {
background-color : #E9E9E9;
border-bottom : 1px solid #CCCCCC;
border-right : 0px solid #CCCCCC;
font-weight : bold;
padding : 5px 5px 5px 5px;
}
tr.highlight {
background-color: #e9e9e9;
}
body#basket tr.highlight {
background-color : transparent;
}
body#basket a {
font-weight : bold;
}
body#basket table {
border-top : 1px solid #EEE;
border-left : 1px solid #EEE;
}
body#basket td,
body#basket th {
background-color : transparent;
padding : 2px;
}
body#basket th {
background-color : #EEE;
}
body#basket th,
body#basket th[scope=col] {
text-align : center;
vertical-align : middle;
}
body#basket th[scope=row] {
font-size : 89%;
text-align : right;
vertical-align : top;
width : 10%;
}
body#basket p {
font-size : 85%;
margin : .2em 0;
text-indent : .5em;
}
.error {
font-weight: bold;
}
.ex {
font-family : "Courier New", Courier, monospace;
}
.inline {
display : inline;
}
.screen {
display : none;
}
#bookcover {
float:left;
margin:0pt;
padding:0pt;
}
#members,#opac-main-search,#opac-user-views .ui-tabs-nav,input,h2 span.hint,td.resultscontrol,.pages,.suggestion,.views,#action,#export,#bibliodescriptions .ui-tabs-nav,#addshelf,fieldset.action, .list-actions, .ft, #facetcontainer,.results_summary.actions,.koha_url,.yui-b {
display : none;
}
#userresults {
position : absolute;
right : 0px;
word-wrap : break-word;
display : block;
}
div#userupdate input,div#userupdate textarea {
display : inline;
border : 0;
}
#yui-main,
#yui-main .yui-b,
.yui-t1 #yui-main .yui-b {
display : block !important;
margin : 0 !important;
padding : 0 !important;
width : auto !important;
float : none !important;
}