Ticket #12733: t12733-twentyten-print-style-merge.patch
File t12733-twentyten-print-style-merge.patch, 4.5 KB (added by , 14 years ago) |
---|
-
wp-content/themes/twentyten/header.php
2 2 <html <?php language_attributes(); ?>> 3 3 <head> 4 4 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 5 <title><?php 6 if ( is_single() ) { 5 <title><?php 6 // Returns the title based on the type of page being viewed 7 if ( is_single() ) { 7 8 single_post_title(); echo ' | '; bloginfo( 'name' ); 8 9 } elseif ( is_home() || is_front_page() ) { 9 10 bloginfo( 'name' ); echo ' | '; bloginfo( 'description' ); twentyten_the_page_number(); … … 16 17 } else { 17 18 wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number(); 18 19 } 19 20 ?></title> 20 21 <link rel="profile" href="http://gmpg.org/xfn/11" /> 21 22 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> 22 <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo( 'stylesheet_directory' ); ?>/print.css" />23 23 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 24 24 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 25 25 <?php wp_head(); ?> -
wp-content/themes/twentyten/print.css
1 /*2 This stylesheet reformats the theme for the printed page.3 */4 5 body {6 background:none !important;7 }8 #wrapper {9 float: none !important;10 clear: both !important;11 display: block !important;12 position: relative !important;13 }14 #header {15 border-bottom: 4pt solid #000;16 padding-bottom: 18pt;17 }18 #site-title, #site-description {19 float: none;20 margin: 0;21 }22 #site-title {23 font-size: 13pt;24 }25 .entry-content {26 font-size: 14pt;27 line-height: 1.6em;28 }29 .entry-title {30 font-size: 21pt;31 line-height: 1.4em;32 }33 #access,34 #branding img,35 #respond,36 .comment-edit-link,37 .edit-link,38 .navigation,39 .page-link,40 .widget-area {41 display: none !important;42 }43 #branding img.wp-post-image {44 display: block !important;45 margin-left: -104pt;46 margin-top: 20pt;47 border: none;48 margin-bottom: -24pt;49 }50 #container, #header, #footer {51 margin: 0 0 0 24%;52 width: 70%;53 }54 #content {55 margin: 24pt 0 0;56 }57 .wp-caption p {58 font-size: 11pt;59 }60 #site-info,61 #site-generator {62 float: none;63 width: auto;64 }65 #colophon {66 width: auto;67 }68 img#wpstats {69 display:none70 }71 #site-generator a {72 padding: 0;73 margin: 0;74 }75 #entry-author-info {76 border: 1px solid #e7e7e7;77 }78 #main {79 margin: 0;80 width: auto;81 padding: 0;82 }83 .home .sticky {84 border: none;85 }86 No newline at end of file -
wp-content/themes/twentyten/style.css
1198 1198 1199 1199 #site-description { 1200 1200 -webkit-text-size-adjust: none; 1201 } 1202 No newline at end of file 1201 } 1202 1203 1204 1205 /* =Print Style 1206 -------------------------------------------------------------- */ 1207 1208 @media print { 1209 body { 1210 background:none !important; 1211 } 1212 #wrapper { 1213 float: none !important; 1214 clear: both !important; 1215 display: block !important; 1216 position: relative !important; 1217 } 1218 #header { 1219 border-bottom: 4pt solid #000; 1220 padding-bottom: 18pt; 1221 } 1222 #site-title, #site-description { 1223 float: none; 1224 margin: 0; 1225 } 1226 #site-title { 1227 font-size: 13pt; 1228 } 1229 .entry-content { 1230 font-size: 14pt; 1231 line-height: 1.6em; 1232 } 1233 .entry-title { 1234 font-size: 21pt; 1235 line-height: 1.4em; 1236 } 1237 #access, 1238 #branding img, 1239 #respond, 1240 .comment-edit-link, 1241 .edit-link, 1242 .navigation, 1243 .page-link, 1244 .widget-area { 1245 display: none !important; 1246 } 1247 #branding img.wp-post-image { 1248 display: block !important; 1249 margin-left: -104pt; 1250 margin-top: 20pt; 1251 border: none; 1252 margin-bottom: -24pt; 1253 } 1254 #container, #header, #footer { 1255 margin: 0 0 0 24%; 1256 width: 70%; 1257 } 1258 #content { 1259 margin: 24pt 0 0; 1260 } 1261 .wp-caption p { 1262 font-size: 11pt; 1263 } 1264 #site-info, 1265 #site-generator { 1266 float: none; 1267 width: auto; 1268 } 1269 #colophon { 1270 width: auto; 1271 } 1272 img#wpstats { 1273 display:none 1274 } 1275 #site-generator a { 1276 padding: 0; 1277 margin: 0; 1278 } 1279 #entry-author-info { 1280 border: 1px solid #e7e7e7; 1281 } 1282 #main { 1283 margin: 0; 1284 width: auto; 1285 padding: 0; 1286 } 1287 .home .sticky { 1288 border: none; 1289 } 1290 }