From b40c57105e654ca0bb98bce67fde7fab7e578645 Mon Sep 17 00:00:00 2001 From: lancewillett Date: Wed, 1 Aug 2012 15:47:02 +0000 Subject: [PATCH] Twenty Twelve: add print styles to stylesheet, first pass props obenland. See #21377. git-svn-id: http://core.svn.wordpress.org/trunk@21392 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- style.css | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/style.css b/style.css index 59dcb72f3..d32edda5a 100644 --- a/style.css +++ b/style.css @@ -1454,4 +1454,140 @@ div.home-top { .widget_rss li { margin: 12px 0; margin: 0.857142857rem 0; +} + + +/* =Print +----------------------------------------------- */ + +@media print { + body { + background: none !important; + font-size: 10pt; + } + footer a[rel=bookmark]:link:after, + footer a[rel=bookmark]:visited:after { + content: " [" attr(href) "] "; /* Show URLs */ + } + .entry-content img, + .comment-content img, + #author-avatar img, + img.wp-post-image { + border-radius: 0; + box-shadow: none; + } + #page { + clear: both !important; + display: block !important; + float: none !important; + max-width: 100%; + position: relative !important; + } + .site-header { + margin-bottom: 72px; + margin-bottom: 5.142857143rem; + text-align: left; + } + .site-header hgroup h1 { + font-size: 21pt; + line-height: 1; + text-align: left; + } + .site-header hgroup h2 { + font-size: 10pt; + text-align: left; + } + img.header-image { + display: none; + } + nav.site-navigation { + display: none; + } + #main { + border-top: none; + box-shadow: none; + } + #primary { + float: left; + margin: 0; + width: 100%; + } + #content { + margin: 0; + width: auto; + } + .singular #content { + margin: 0; + width: 100%; + } + .singular .entry-header .entry-meta { + position: static; + } + .entry-meta .edit-link a { + display: none; + } + #content nav { + display: none; + } + .singular .entry-header, + .singular .entry-content, + .singular footer.entry-meta, + .singular #comments-title { + margin: 0; + width: 100%; + } + header.entry-header .entry-title, + .entry-title, + .singular .entry-title { + font-size: 21pt; + } + .entry-meta { + font-size: 10pt; + } + .entry-header .comments-link { + display: none; + } + .page-link { + display: none; + } + #author-avatar { + display: none; + } + #author-description { + float: none; + width: auto; + } + #respond { + display: none; + } + #secondary { + display: none; + } + #colophon { + display: none; + } + + /* Comments */ + .commentlist > li.comment { + background: none; + position: relative; + width: auto; + } + .commentlist .avatar { + height: 39px; + left: 2.2em; + top: 2.2em; + width: 39px; + } + #comments article header cite, + #comments article header time { + margin-left: 50px; + margin-left: 3.57142857rem; + } + .commentlist .comment-edit-link { + display: none; + } + .commentlist .reply { + display: none; + } } \ No newline at end of file