MediaWiki:Print.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will affect the print output */ | /* CSS placed here will affect the print output */ | ||
@page { | @page { | ||
margin: 2cm; | margin: 2cm; | ||
} | } | ||
body { | body { | ||
font: | font: 14pt Georgia, "Times New Roman", Times, serif; | ||
/* line-height: 1.3; */ | /* line-height: 1.3; */ | ||
} | } | ||
h1, h2, h3, h4, h5 { | h1, h2, h3, h4, h5 { | ||
margin-bottom: -0.5em; | margin-bottom: -0.5em; | ||
} | |||
/* RawPedia title */ | |||
h1#firstHeading { | |||
margin-bottom: 0; | |||
text-align: center; | |||
font-size: 4em; | |||
text-shadow: 0.05em 0.05em 0.05em #CCCCCC; | |||
border: none; | |||
} | |||
/* Page names, reserved by MediaWiki | |||
* Articles should not use this. */ | |||
h1 { | |||
font-size: 2.5em; | |||
border-bottom: solid 1px black; | |||
} | |||
/* Manually inserted main section headers */ | |||
.booksection { | |||
display: block; | |||
margin-bottom: 0; | |||
background-color: #464646; | |||
color:#EEEEEE; | |||
padding: 0.2em; | |||
} | |||
/* Article sections */ | |||
h2 { | |||
font-size: 2em; | |||
} | |||
h3 { | |||
font-size: 1.75em; | |||
} | |||
h4 { | |||
font-size: 1.5em; | |||
} | |||
h5 { | |||
font-size: 1.25em; | |||
} | |||
h6 { | |||
font-size: 1em; | |||
} | } | ||
p { | p { | ||
line-height: 1.3; | line-height: 1.3; | ||
} | } | ||
.toc, #toc { | .toc, #toc { | ||
display: none; | display: none; | ||
} | } | ||
img { | img { | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
p a[href^="http://"]:after, a[href^="https://"]:after { | p a[href^="http://"]:after, a[href^="https://"]:after { | ||
content: " (" attr(href) ")"; | content: " (" attr(href) ")"; | ||
font-size: 80%; | font-size: 80%; | ||
} | } | ||
p a { | p a { | ||
word-wrap: break-word; | word-wrap: break-word; | ||
} | } | ||
.page-break { | .page-break { | ||
display: block; | display: block; | ||
page-break-before: always; | page-break-before: always; | ||
clear: both | clear: both; | ||
} | } | ||
div.thumb { | div.thumb { | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
Revision as of 22:12, 2 February 2018
/* CSS placed here will affect the print output */
@page {
margin: 2cm;
}
body {
font: 14pt Georgia, "Times New Roman", Times, serif;
/* line-height: 1.3; */
}
h1, h2, h3, h4, h5 {
margin-bottom: -0.5em;
}
/* RawPedia title */
h1#firstHeading {
margin-bottom: 0;
text-align: center;
font-size: 4em;
text-shadow: 0.05em 0.05em 0.05em #CCCCCC;
border: none;
}
/* Page names, reserved by MediaWiki
* Articles should not use this. */
h1 {
font-size: 2.5em;
border-bottom: solid 1px black;
}
/* Manually inserted main section headers */
.booksection {
display: block;
margin-bottom: 0;
background-color: #464646;
color:#EEEEEE;
padding: 0.2em;
}
/* Article sections */
h2 {
font-size: 2em;
}
h3 {
font-size: 1.75em;
}
h4 {
font-size: 1.5em;
}
h5 {
font-size: 1.25em;
}
h6 {
font-size: 1em;
}
p {
line-height: 1.3;
}
.toc, #toc {
display: none;
}
img {
max-width: 100%;
}
p a[href^="http://"]:after, a[href^="https://"]:after {
content: " (" attr(href) ")";
font-size: 80%;
}
p a {
word-wrap: break-word;
}
.page-break {
display: block;
page-break-before: always;
clear: both;
}
div.thumb {
max-width: 100%;
}