Changeset 21404
- Timestamp:
- 08/02/2012 07:12:11 PM (13 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 17 edited
-
404.php (modified) (2 diffs)
-
archive.php (modified) (2 diffs)
-
author.php (modified) (2 diffs)
-
comments.php (modified) (3 diffs)
-
footer.php (modified) (2 diffs)
-
full-width-page.php (modified) (2 diffs)
-
functions.php (modified) (2 diffs)
-
header.php (modified) (3 diffs)
-
homepage.php (modified) (2 diffs)
-
image.php (modified) (3 diffs)
-
index.php (modified) (2 diffs)
-
js/theme.js (modified) (2 diffs)
-
page.php (modified) (2 diffs)
-
rtl.css (modified) (5 diffs)
-
search.php (modified) (2 diffs)
-
single.php (modified) (3 diffs)
-
style.css (modified) (30 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/404.php
r21261 r21404 10 10 get_header(); ?> 11 11 12 <div id="primary" >12 <div id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 … … 25 25 26 26 </div><!-- #content --> 27 </div><!-- #primary -->27 </div><!-- #primary .site-content --> 28 28 29 29 <?php get_footer(); ?> -
trunk/wp-content/themes/twentytwelve/archive.php
r21331 r21404 15 15 get_header(); ?> 16 16 17 <section id="primary" >17 <section id="primary" class="site-content"> 18 18 <div id="content" role="main"> 19 19 … … 72 72 73 73 </div><!-- #content --> 74 </section><!-- #primary -->74 </section><!-- #primary .site-content --> 75 75 76 76 <?php get_sidebar(); ?> -
trunk/wp-content/themes/twentytwelve/author.php
r21261 r21404 10 10 get_header(); ?> 11 11 12 <section id="primary" >12 <section id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 … … 65 65 66 66 </div><!-- #content --> 67 </section><!-- #primary -->67 </section><!-- #primary .site-content --> 68 68 69 69 <?php get_sidebar(); ?> -
trunk/wp-content/themes/twentytwelve/comments.php
r21261 r21404 22 22 return; 23 23 ?> 24 <div id="comments">24 <div id="comments" class="comments-area"> 25 25 26 26 <?php // You can start editing here -- including this comment! ?> 27 27 28 28 <?php if ( have_comments() ) : ?> 29 <h2 id="comments-title">29 <h2 class="comments-title"> 30 30 <?php 31 31 printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), … … 39 39 40 40 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> 41 <nav id="comment-nav-below" role="navigation">41 <nav id="comment-nav-below" class="navigation" role="navigation"> 42 42 <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> 43 43 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> … … 54 54 <?php comment_form(); ?> 55 55 56 </div><!-- #comments -->56 </div><!-- #comments .comments-area --> -
trunk/wp-content/themes/twentytwelve/footer.php
r21261 r21404 10 10 */ 11 11 ?> 12 </div><!-- #main -->12 </div><!-- #main .wrapper --> 13 13 <footer id="colophon" role="contentinfo"> 14 14 <div class="site-info"> … … 17 17 </div><!-- .site-info --> 18 18 </footer><!-- #colophon --> 19 </div><!-- #page -->19 </div><!-- #page .site --> 20 20 21 21 <?php wp_footer(); ?> -
trunk/wp-content/themes/twentytwelve/full-width-page.php
r21261 r21404 10 10 get_header(); ?> 11 11 12 <div id="primary" >12 <div id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 … … 19 19 20 20 </div><!-- #content --> 21 </div><!-- #primary -->21 </div><!-- #primary .site-content --> 22 22 23 23 <?php get_footer(); ?> -
trunk/wp-content/themes/twentytwelve/functions.php
r21398 r21404 105 105 * styles for small screen sizes. 106 106 */ 107 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '201 30320', true );107 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20120802', true ); 108 108 109 109 /** … … 215 215 216 216 if ( $wp_query->max_num_pages > 1 ) : ?> 217 <nav id="<?php echo $nav_id; ?>" role="navigation">217 <nav id="<?php echo $nav_id; ?>" class="navigation" role="navigation"> 218 218 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 219 219 <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> -
trunk/wp-content/themes/twentytwelve/header.php
r21276 r21404 24 24 25 25 <body <?php body_class(); ?>> 26 <div id="page" class="hfeed ">26 <div id="page" class="hfeed site"> 27 27 <header id="masthead" class="site-header" role="banner"> 28 28 <hgroup> … … 31 31 </hgroup> 32 32 33 <nav class=" site-navigationmain-navigation" role="navigation">33 <nav class="main-navigation" role="navigation"> 34 34 <h3 class="assistive-text"><?php _e( 'Show navigation', 'twentytwelve' ); ?></h3> 35 35 <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div> … … 43 43 </header><!-- #masthead --> 44 44 45 <div id="main" >45 <div id="main" class="wrapper"> -
trunk/wp-content/themes/twentytwelve/homepage.php
r21398 r21404 10 10 get_header(); ?> 11 11 12 <div id="primary" >12 <div id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 … … 25 25 26 26 </div><!-- #content --> 27 </div><!-- #primary -->27 </div><!-- #primary .site-content --> 28 28 29 29 <?php get_sidebar( 'home' ); ?> -
trunk/wp-content/themes/twentytwelve/image.php
r21261 r21404 10 10 get_header(); ?> 11 11 12 <div id="primary" class=" image-attachment">12 <div id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 15 15 <?php while ( have_posts() ) : the_post(); ?> 16 16 17 <article id="post-<?php the_ID(); ?>" <?php post_class( ); ?>>17 <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>> 18 18 <header class="entry-header"> 19 19 <h1 class="entry-title"><?php the_title(); ?></h1> … … 36 36 </footer><!-- .entry-meta --> 37 37 38 <nav id="image-navigation" role="navigation">38 <nav id="image-navigation" class="navigation" role="navigation"> 39 39 <span class="previous-image"><?php previous_image_link( false, __( '← Previous', 'twentytwelve' ) ); ?></span> 40 40 <span class="next-image"><?php next_image_link( false, __( 'Next →', 'twentytwelve' ) ); ?></span> … … 98 98 99 99 </div><!-- #content --> 100 </div><!-- #primary -->100 </div><!-- #primary .site-content --> 101 101 102 102 <?php get_footer(); ?> -
trunk/wp-content/themes/twentytwelve/index.php
r21261 r21404 16 16 get_header(); ?> 17 17 18 <div id="primary" >18 <div id="primary" class="site-content"> 19 19 <div id="content" role="main"> 20 20 <?php if ( have_posts() ) : ?> … … 60 60 61 61 </div><!-- #content --> 62 </div><!-- #primary -->62 </div><!-- #primary .site-content --> 63 63 64 64 <?php get_sidebar(); ?> -
trunk/wp-content/themes/twentytwelve/js/theme.js
r21261 r21404 11 11 12 12 $.fn.smallMenu = function() { 13 masthead.find( '. site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' );14 masthead.find( '. site-navigation h3' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' );13 masthead.find( '.main-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' ); 14 masthead.find( '.main-navigation h3' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' ); 15 15 16 16 $( '.menu-toggle' ).off( 'click' ).click( function() { … … 33 33 $.fn.smallMenu(); 34 34 } else { 35 masthead.find( '. site-navigation' ).removeClass( 'main-small-navigation' ).addClass( 'main-navigation' );36 masthead.find( '. site-navigation h3' ).removeClass( 'menu-toggle' ).addClass( 'assistive-text' );35 masthead.find( '.main-navigation' ).removeClass( 'main-small-navigation' ).addClass( 'main-navigation' ); 36 masthead.find( '.main-navigation h3' ).removeClass( 'menu-toggle' ).addClass( 'assistive-text' ); 37 37 masthead.find( '.menu' ).removeAttr( 'style' ); 38 38 } -
trunk/wp-content/themes/twentytwelve/page.php
r21261 r21404 15 15 get_header(); ?> 16 16 17 <div id="primary" >17 <div id="primary" class="site-content"> 18 18 <div id="content" role="main"> 19 19 … … 24 24 25 25 </div><!-- #content --> 26 </div><!-- #primary -->26 </div><!-- #primary .site-content --> 27 27 28 28 <?php get_sidebar(); ?> -
trunk/wp-content/themes/twentytwelve/rtl.css
r21402 r21404 25 25 float: left; 26 26 } 27 #content .gallery-columns-4 .gallery-item {27 .site-content .gallery-columns-4 .gallery-item { 28 28 padding-left: 2%; 29 29 padding-right: 0; 30 30 } 31 #content .gallery-columns-5 .gallery-item {31 .site-content .gallery-columns-5 .gallery-item { 32 32 padding-left: 2%; 33 33 padding-right: 0; … … 118 118 -------------------------------------------------------------- */ 119 119 120 #commentsarticle header img {120 .comments-area article header img { 121 121 float: right; 122 122 } 123 #commentsarticle header cite,124 #commentsarticle header time {123 .comments-area article header cite, 124 .comments-area article header time { 125 125 margin-right: 85px; 126 126 margin-right: 6.071428571rem; 127 127 margin-left: auto; 128 128 } 129 #commentsarticle header h4 {129 .comments-area article header h4 { 130 130 left: 0; 131 131 right: auto; 132 132 } 133 #commentsli.bypostauthor cite span {133 .comments-area li.bypostauthor cite span { 134 134 margin-right: 5px; 135 135 margin-right: 0.357142857rem; … … 152 152 -------------------------------------------------------------- */ 153 153 154 .page-template-homepage-php #secondary aside.widget_text img {154 .page-template-homepage-php .widget-area .widget_text img { 155 155 float: right; 156 156 margin: 8px 0 8px 24px; … … 161 161 -------------------------------------------------------------- */ 162 162 163 .widget ul ul {163 .widget-area .widget ul ul { 164 164 margin-right: 12px; 165 165 margin-right: 0.857142857rem; … … 188 188 /* Minimum width of 600 pixels. */ 189 189 @media screen and (min-width: 600px) { 190 .page-template-homepage-php #secondary aside.widget_text img {190 .page-template-homepage-php .widget-area .widget_text img { 191 191 float: right; 192 192 margin: 8px 0 8px 24px; -
trunk/wp-content/themes/twentytwelve/search.php
r21261 r21404 10 10 get_header(); ?> 11 11 12 <section id="primary" >12 <section id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 … … 44 44 45 45 </div><!-- #content --> 46 </section><!-- #primary -->46 </section><!-- #primary .site-content --> 47 47 48 48 <?php get_sidebar(); ?> -
trunk/wp-content/themes/twentytwelve/single.php
r21261 r21404 10 10 get_header(); ?> 11 11 12 <div id="primary" >12 <div id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 … … 17 17 <?php get_template_part( 'content', get_post_format() ); ?> 18 18 19 <nav id="nav-single">19 <nav class="nav-single"> 20 20 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 21 21 <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span>', 'twentytwelve' ) . ' %title' ); ?></span> 22 22 <span class="nav-next"><?php next_post_link( '%link', '%title ' . __( '<span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></span> 23 </nav><!-- #nav-single -->23 </nav><!-- .nav-single --> 24 24 25 25 <?php … … 32 32 33 33 </div><!-- #content --> 34 </div><!-- #primary -->34 </div><!-- #primary .site-content --> 35 35 36 36 <?php get_sidebar(); ?> -
trunk/wp-content/themes/twentytwelve/style.css
r21402 r21404 330 330 height: auto; 331 331 } 332 #content .gallery-columns-4 .gallery-item {332 .site-content .gallery-columns-4 .gallery-item { 333 333 width: 23%; 334 334 padding-right: 2%; 335 335 } 336 #content .gallery-columns-5 .gallery-item {336 .site-content .gallery-columns-5 .gallery-item { 337 337 width: 18%; 338 338 padding-right: 2%; … … 340 340 341 341 /* Navigation */ 342 #content nav {342 .site-content nav { 343 343 clear: both; 344 344 line-height: 2; … … 366 366 width: 50%; 367 367 } 368 #nav-single + #comments,368 .nav-single + .comments-area, 369 369 #comment-nav-above { 370 370 margin: 48px 0; … … 419 419 420 420 /* Page structure */ 421 #page { 421 .wrapper { 422 overflow: hidden; 423 } 424 .site { 422 425 padding: 0 24px; 423 426 padding: 0 1.714285714rem; 424 427 background-color: #fff; 425 428 } 426 #main { 427 overflow: hidden; 428 } 429 #primary { 429 .site-content { 430 430 margin: 24px 0 0; 431 431 margin: 1.714285714rem 0 0; 432 432 } 433 #secondary{433 .widget-area { 434 434 margin: 24px 0 0; 435 435 margin: 1.714285714rem 0 0; … … 593 593 594 594 /* Sidebar */ 595 #secondary aside{595 .widget-area .widget { 596 596 margin-bottom: 48px; 597 597 margin-bottom: 3.428571429rem; 598 598 } 599 #secondary asideh3 {599 .widget-area .widget h3 { 600 600 margin-bottom: 24px; 601 601 margin-bottom: 1.714285714rem; 602 602 } 603 #secondary asidep,604 #secondary asideli {603 .widget-area .widget p, 604 .widget-area .widget li { 605 605 font-size: 13px; 606 606 font-size: 0.928571429rem; 607 607 line-height: 1.846153846; 608 608 } 609 #secondary asidea {609 .widget-area .widget a { 610 610 color: #777; 611 611 } 612 #secondary asidea:hover {612 .widget-area .widget a:hover { 613 613 color: #21759b; 614 614 } … … 885 885 padding: 6px 10px 6px 0; 886 886 } 887 #content article {887 .site-content article { 888 888 padding-bottom: 24px; 889 889 padding-bottom: 1.714285714rem; … … 913 913 -------------------------------------------------------------- */ 914 914 915 .archive #content .archive-header,915 .archive .site-content .archive-header, 916 916 .search .page-header { 917 917 margin-bottom: 48px; … … 1045 1045 -------------------------------------------------------------- */ 1046 1046 1047 #comments-title {1047 .comments-title { 1048 1048 margin-bottom: 48px; 1049 1049 margin-bottom: 3.428571429rem; … … 1053 1053 font-weight: normal; 1054 1054 } 1055 #commentsarticle {1055 .comments-area article { 1056 1056 margin: 24px 0; 1057 1057 margin: 1.714285714rem 0; 1058 1058 overflow: hidden; 1059 1059 } 1060 #commentsarticle header {1060 .comments-area article header { 1061 1061 margin: 0 0 48px; 1062 1062 margin: 0 0 3.428571429rem; … … 1064 1064 position: relative; 1065 1065 } 1066 #commentsarticle header img {1066 .comments-area article header img { 1067 1067 float: left; 1068 1068 padding: 0; 1069 1069 line-height: 0; 1070 1070 } 1071 #commentsarticle header cite,1072 #commentsarticle header time {1071 .comments-area article header cite, 1072 .comments-area article header time { 1073 1073 display: block; 1074 1074 margin-left: 85px; 1075 1075 margin-left: 6.071428571rem; 1076 1076 } 1077 #commentsarticle header cite {1077 .comments-area article header cite { 1078 1078 font-style: normal; 1079 1079 font-size: 15px; … … 1081 1081 line-height: 1.6; 1082 1082 } 1083 #commentsarticle header time {1083 .comments-area article header time { 1084 1084 line-height: 1.714285714; 1085 1085 text-decoration: none; … … 1088 1088 color: #5e5e5e; 1089 1089 } 1090 #commentsarticle header a {1090 .comments-area article header a { 1091 1091 text-decoration: none; 1092 1092 color: #5e5e5e; 1093 1093 } 1094 #commentsarticle header a:hover {1094 .comments-area article header a:hover { 1095 1095 color: #21759b; 1096 1096 } 1097 #commentsarticle header cite a {1097 .comments-area article header cite a { 1098 1098 color: #444; 1099 1099 } 1100 #commentsarticle header cite a:hover {1100 .comments-area article header cite a:hover { 1101 1101 text-decoration: underline; 1102 1102 } 1103 #commentsarticle header h4 {1103 .comments-area article header h4 { 1104 1104 position: absolute; 1105 1105 top: 0; … … 1121 1121 border: 1px solid #007cbd; 1122 1122 } 1123 #commentsarticle p {1123 .comments-area article p { 1124 1124 margin: 24px 0; 1125 1125 margin: 1.714285714rem 0; 1126 1126 line-height: 1.714285714; 1127 1127 } 1128 #commentsli.bypostauthor cite span {1128 .comments-area li.bypostauthor cite span { 1129 1129 margin-left: 5px; 1130 1130 margin-left: 0.357142857rem; … … 1220 1220 -------------------------------------------------------------- */ 1221 1221 1222 .page-template-homepage-php #content article {1222 .page-template-homepage-php .site-content article { 1223 1223 border: 0; 1224 1224 margin-bottom: 0; 1225 1225 } 1226 .page-template-homepage-php #secondary{1226 .page-template-homepage-php .widget-area { 1227 1227 clear: both; 1228 1228 float: none; … … 1232 1232 border-top: 1px solid #ededed; 1233 1233 } 1234 .page-template-homepage-php #secondary asideli {1234 .page-template-homepage-php .widget-area .widget li { 1235 1235 margin: 8px 0 0; 1236 1236 margin: 0.571428571rem 0 0; … … 1242 1242 list-style-position: inside; 1243 1243 } 1244 .page-template-homepage-php #secondary asideli a {1244 .page-template-homepage-php .widget-area .widget li a { 1245 1245 color: #777; 1246 1246 } 1247 .page-template-homepage-php #secondary asideli a:hover {1247 .page-template-homepage-php .widget-area .widget li a:hover { 1248 1248 color: #21759b; 1249 1249 } 1250 .page-template-homepage-php #secondary aside.widget_text img {1250 .page-template-homepage-php .widget-area .widget_text img { 1251 1251 float: left; 1252 1252 margin: 8px 24px 8px 0; … … 1258 1258 -------------------------------------------------------------- */ 1259 1259 1260 .widget ul ul {1260 .widget-area .widget ul ul { 1261 1261 margin-left: 12px; 1262 1262 margin-left: 0.857142857rem; … … 1313 1313 width: 80%; 1314 1314 } 1315 #page {1315 .site { 1316 1316 margin: 0 auto; 1317 1317 max-width: 960px; … … 1319 1319 overflow: hidden; 1320 1320 } 1321 #primary{1321 .site-content { 1322 1322 float: left; 1323 1323 width: 65.104166667%; 1324 1324 } 1325 body.page-template-full-width-page-php #primary,1326 body.page-template-homepage-php #primary,1327 body.single-attachment #primary,1328 body.full-width #primary{1325 body.page-template-full-width-page-php .site-content, 1326 body.page-template-homepage-php .site-content, 1327 body.single-attachment .site-content, 1328 body.full-width .site-content { 1329 1329 width: 100%; 1330 1330 } 1331 #secondary{1331 .widget-area { 1332 1332 float: right; 1333 1333 width: 26.041666667%; … … 1353 1353 width: 79.666666667%; 1354 1354 } 1355 .page-template-homepage-php #content,1355 .page-template-homepage-php .site-content, 1356 1356 .page-template-homepage-php article { 1357 1357 overflow: hidden; … … 1365 1365 width: 47.916666667%; 1366 1366 } 1367 .page-template-homepage-php #secondary aside{1367 .page-template-homepage-php .widget-area .widget { 1368 1368 float: left; 1369 1369 width: 51.875%; … … 1371 1371 margin-bottom: 1.714285714rem; 1372 1372 } 1373 .page-template-homepage-php #secondary aside:nth-child(even) {1373 .page-template-homepage-php .widget-area .widget:nth-child(even) { 1374 1374 float: right; 1375 1375 width: 39.0625%; … … 1384 1384 background-color: #e6e6e6; 1385 1385 } 1386 body #page {1386 body .site { 1387 1387 padding: 0 40px; 1388 1388 padding: 0 2.857142857rem; … … 1396 1396 background-color: #fff; 1397 1397 } 1398 body.custom-background-empty #page,1399 body.custom-background-white #page {1398 body.custom-background-empty .site, 1399 body.custom-background-white .site { 1400 1400 padding: 0; 1401 1401 margin-top: 0; … … 1425 1425 box-shadow: none; 1426 1426 } 1427 #page {1427 .site { 1428 1428 clear: both !important; 1429 1429 display: block !important; … … 1449 1449 display: none; 1450 1450 } 1451 nav. site-navigation {1451 nav.main-navigation { 1452 1452 display: none; 1453 1453 } 1454 #main{1454 .wrapper { 1455 1455 border-top: none; 1456 1456 box-shadow: none; 1457 1457 } 1458 #primary{1458 .site-content { 1459 1459 float: left; 1460 1460 margin: 0; 1461 1461 width: 100%; 1462 1462 } 1463 #content {1463 .site-content { 1464 1464 margin: 0; 1465 1465 width: auto; 1466 1466 } 1467 .singular #content {1467 .singular .site-content { 1468 1468 margin: 0; 1469 1469 width: 100%; … … 1475 1475 display: none; 1476 1476 } 1477 #content nav {1477 .site-content nav { 1478 1478 display: none; 1479 1479 } … … 1481 1481 .singular .entry-content, 1482 1482 .singular footer.entry-meta, 1483 .singular #comments-title {1483 .singular .comments-title { 1484 1484 margin: 0; 1485 1485 width: 100%; … … 1509 1509 display: none; 1510 1510 } 1511 #secondary{1511 .widget-area { 1512 1512 display: none; 1513 1513 } … … 1528 1528 width: 39px; 1529 1529 } 1530 #commentsarticle header cite,1531 #commentsarticle header time {1530 .comments-area article header cite, 1531 .comments-area article header time { 1532 1532 margin-left: 50px; 1533 1533 margin-left: 3.57142857rem;
Note: See TracChangeset
for help on using the changeset viewer.