Skip to content

Commit

Permalink
Twenty Twelve: add print styles to stylesheet, first pass props obenl…
Browse files Browse the repository at this point in the history
…and. See #21377.

git-svn-id: http://core.svn.wordpress.org/trunk@21392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
lancewillett committed Aug 1, 2012
1 parent 8da926c commit 5d45d68
Showing 1 changed file with 136 additions and 0 deletions.
136 changes: 136 additions & 0 deletions wp-content/themes/twentytwelve/style.css
Expand Up @@ -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;
}
}

0 comments on commit 5d45d68

Please sign in to comment.