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
This commit is contained in:
lancewillett 2012-08-01 15:47:02 +00:00
parent 9d945f2eed
commit b40c57105e
1 changed files with 136 additions and 0 deletions

136
style.css
View File

@ -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;
}
}