aboutsummaryrefslogtreecommitdiff
path: root/source/css/print.css (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Collapse most CSS files into theme.cssZhiming Wang2016-09-021-23/+0
| | | | | Having a whole bunch of CSS files is not good for the performance of the website.
* print.css: Make superscripts half size and position them correctlyZhiming Wang2016-07-101-0/+5
| | | | | Before this commit, superscripts in print adopt the sweeping body { font-size: 12px; } rule, making them too large and protruding.
* source/css/theme.css: Fix printing stylesheetZhiming Wang2016-01-131-1/+5
| | | | | | | | | | | | Adjust to the right font size. Most of the heavylifting is avoided by the last commit which made all printing font sizes relative (to the base body font size). Also add "-webkit-print-color-adjust: exact" to the pre tag to hint WebKit based browsers to keep my code block background color. Nothing can be done in Firefox; users need to manually check the "Print Background Colors" advanced printing option. IE/Edge? Who knows, who cares.
* Update print.cssZhiming Wang2015-08-051-4/+3
| | | | I forgot to update print.css to match the updated DOM last time.
* css: replace padding with margin whenever possibleZhiming Wang2015-07-261-1/+1
| | | | Also adjusted some margins.
* fix line number placementZhiming Wang2015-07-171-1/+1
| | | | | | | | | | | | | | | | | Global font size in each style sheet has been tweaked very carefully so that the precise line height is very close to a whole number of pixels, so that precision alignment using em, which aligns something precise (top: 13.5em) to something inprecise (line heights, with accumulated errors due to rounding in every line), is not lost. Note that Firefox is NOT supported, since each line seems to always occupy one more pixel than the calculated line height. For some reason line numbers in the print view are still rather problematic at a page continuation. In Chrome and Safari, the first two line numbers on a new page tend to overlap, so everything afterwards are off (and on Firefox line numbers do not show up on the second page at all). Anyway, printing shouldn't be a big concern.
* add print stylesheetZhiming Wang2015-07-171-0/+15