Merge twentyten print style into style.css. Fixes #12733. Props demetris.

git-svn-id: https://develop.svn.wordpress.org/trunk@13872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Thomas 2010-03-29 00:48:03 +00:00
parent eecf190b63
commit 21e08209ca
3 changed files with 94 additions and 90 deletions

View File

@ -2,8 +2,9 @@
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
if ( is_single() ) {
<title><?php
// Returns the title based on the type of page being viewed
if ( is_single() ) {
single_post_title(); echo ' | '; bloginfo( 'name' );
} elseif ( is_home() || is_front_page() ) {
bloginfo( 'name' ); echo ' | '; bloginfo( 'description' ); twentyten_the_page_number();
@ -16,10 +17,9 @@
} else {
wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number();
}
?></title>
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo( 'stylesheet_directory' ); ?>/print.css" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>

View File

@ -1,85 +0,0 @@
/*
This stylesheet reformats the theme for the printed page.
*/
body {
background:none !important;
}
#wrapper {
float: none !important;
clear: both !important;
display: block !important;
position: relative !important;
}
#header {
border-bottom: 4pt solid #000;
padding-bottom: 18pt;
}
#site-title, #site-description {
float: none;
margin: 0;
}
#site-title {
font-size: 13pt;
}
.entry-content {
font-size: 14pt;
line-height: 1.6em;
}
.entry-title {
font-size: 21pt;
line-height: 1.4em;
}
#access,
#branding img,
#respond,
.comment-edit-link,
.edit-link,
.navigation,
.page-link,
.widget-area {
display: none !important;
}
#branding img.wp-post-image {
display: block !important;
margin-left: -104pt;
margin-top: 20pt;
border: none;
margin-bottom: -24pt;
}
#container, #header, #footer {
margin: 0 0 0 24%;
width: 70%;
}
#content {
margin: 24pt 0 0;
}
.wp-caption p {
font-size: 11pt;
}
#site-info,
#site-generator {
float: none;
width: auto;
}
#colophon {
width: auto;
}
img#wpstats {
display:none
}
#site-generator a {
padding: 0;
margin: 0;
}
#entry-author-info {
border: 1px solid #e7e7e7;
}
#main {
margin: 0;
width: auto;
padding: 0;
}
.home .sticky {
border: none;
}

View File

@ -1198,4 +1198,93 @@ code {
#site-description {
-webkit-text-size-adjust: none;
}
}
/* =Print Style
-------------------------------------------------------------- */
@media print {
body {
background:none !important;
}
#wrapper {
float: none !important;
clear: both !important;
display: block !important;
position: relative !important;
}
#header {
border-bottom: 4pt solid #000;
padding-bottom: 18pt;
}
#site-title, #site-description {
float: none;
margin: 0;
}
#site-title {
font-size: 13pt;
}
.entry-content {
font-size: 14pt;
line-height: 1.6em;
}
.entry-title {
font-size: 21pt;
line-height: 1.4em;
}
#access,
#branding img,
#respond,
.comment-edit-link,
.edit-link,
.navigation,
.page-link,
.widget-area {
display: none !important;
}
#branding img.wp-post-image {
display: block !important;
margin-left: -104pt;
margin-top: 20pt;
border: none;
margin-bottom: -24pt;
}
#container, #header, #footer {
margin: 0 0 0 24%;
width: 70%;
}
#content {
margin: 24pt 0 0;
}
.wp-caption p {
font-size: 11pt;
}
#site-info,
#site-generator {
float: none;
width: auto;
}
#colophon {
width: auto;
}
img#wpstats {
display:none
}
#site-generator a {
padding: 0;
margin: 0;
}
#entry-author-info {
border: 1px solid #e7e7e7;
}
#main {
margin: 0;
width: auto;
padding: 0;
}
.home .sticky {
border: none;
}
}