Ticket #25031: 25031.4.diff
| File 25031.4.diff, 12.4 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentyfourteen/style.css
545 545 } 546 546 #page { 547 547 background-color: #fff; 548 max-width: 12 30px;549 max-width: 12 3.0rem;548 max-width: 1260px; 549 max-width: 126.0rem; 550 550 position: relative; 551 551 } 552 #main {553 max-width: 1230px;554 max-width: 123.0rem;555 }556 552 #primary { 557 553 padding-top:24px; 558 554 padding-top:2.4rem; … … 600 596 601 597 #masthead { 602 598 background-color: #000; 603 max-width: 12 30px;604 max-width: 12 3.0rem;599 max-width: 1260px; 600 max-width: 126rem; 605 601 position: relative; 606 602 width: 100%; 607 603 z-index: 3; … … 981 977 .hentry { 982 978 margin-bottom: 24px; 983 979 margin-bottom: 2.4rem; 984 max-width: 672px;985 max-width: 67.2rem;986 980 } 987 981 .attachment-featured-thumbnail { 988 982 background: #8c8c8c url(images/pattern.png) repeat 0 0; … … 1367 1361 width: 100%; 1368 1362 } 1369 1363 .front-page-content-area { 1370 max-width: 12 30px;1371 max-width: 12 3.0rem;1364 max-width: 1260px; 1365 max-width: 126.0rem; 1372 1366 } 1373 1367 1374 1368 … … 2535 2529 padding: 3.6rem 0; 2536 2530 width: 100%; 2537 2531 } 2538 .site-content {2539 margin: 0 33.33333333% 0 0;2540 }2541 2532 #content-sidebar { 2542 2533 float: right; 2543 2534 margin: 0 0 0 -30.35714285%; … … 2565 2556 height: 96px; 2566 2557 height: 9.6rem; 2567 2558 } 2568 .full-width.site-content { 2569 margin: 0; 2559 .secondary-sidebar .site-content, 2560 .front-page .site-content { 2561 margin-right: 33.33333333%; 2570 2562 } 2571 .full-width.site-content .hentry { 2572 max-width: 100%; 2573 } 2563 2574 2564 } 2575 2565 2576 2566 @media screen and (min-width: 740px) { … … 2602 2592 padding: 0 4.46428571% 12px; 2603 2593 padding: 0 4.46428571% 1.2rem; 2604 2594 } 2605 #primary .full-width .entry-header {2606 margin: 0 6.04307432%;2607 padding: 0 0 12px;2608 padding: 0 0 1.2rem;2609 }2610 #primary .full-width .entry-content {2611 margin: 0 6.04307432%;2612 padding: 0;2613 }2614 #primary .full-width footer.entry-meta {2615 margin: 0 6.04307432%;2616 padding: 0;2617 }2618 2595 #primary .format-aside .entry-header, 2619 2596 #primary .format-quote .entry-header, 2620 2597 #primary .format-link .entry-header, … … 2673 2650 padding-left: 9.12778904%; 2674 2651 } 2675 2652 #image-navigation .previous-image, 2676 #image-navigation .next-image, 2677 .full-width .comment-navigation, 2678 .full-width .comments-title, 2679 .full-width #comments #respond, 2680 .full-width .comments-area article, 2681 .full-width .comment-list li.trackback, 2682 .full-width .comment-list li.pingback { 2683 padding-right: 6.04307432%; 2684 padding-left: 6.04307432%; 2653 #image-navigation .next-image { 2654 padding-right: 9.12778904%; 2655 padding-left: 9.12778904%; 2685 2656 } 2686 .full-width #reply-title,2687 .full-width #commentform {2688 padding: 0;2689 }2690 2657 #infinite-handle { 2691 2658 margin: 48px 0 0; 2692 2659 margin: 4.8rem 0 0; … … 2694 2661 #infinite-handle span { 2695 2662 display: inline; 2696 2663 } 2697 #primary .no-results .entry-header { 2664 #primary .no-results .entry-header, 2665 .single-attachment #primary .entry-header { 2698 2666 margin: 0 4.59183673%; 2699 2667 padding: 0 4.46428571%; 2700 2668 } … … 2735 2703 .error404 #primary .page-header { 2736 2704 margin: 0 8.03571428% 0 12.5%; 2737 2705 } 2738 #primary .full-width .entry-header,2739 #primary .full-width .entry-content,2740 #primary .full-width footer.entry-meta {2741 margin: 0 11.30926724%;2742 }2743 2706 .page-header { 2744 2707 margin: 0 8.03571428% 24px 12.5%; 2745 2708 margin: 0 8.03571428% 2.4rem 12.5%; … … 2771 2734 #comments #respond { 2772 2735 padding-right: 13.8900862%; 2773 2736 } 2774 .comment-list, 2775 .full-width .comment-list { 2737 .comment-list { 2776 2738 margin-left: -70px; 2777 2739 margin-left: -7.0rem; 2778 2740 } … … 2780 2742 padding-left: 17.06896551%; 2781 2743 } 2782 2744 #image-navigation .previous-image, 2783 #image-navigation .next-image, 2784 .full-width .comment-navigation, 2785 .full-width .comments-title, 2786 .full-width #comments #respond, 2787 .full-width .comments-area article, 2788 .full-width .comment-list li.trackback, 2789 .full-width .comment-list li.pingback { 2790 padding-right: 11.30926724%; 2791 padding-left: 11.30926724%; 2745 #image-navigation .next-image { 2746 padding-right: 17.06896551%; 2747 padding-left: 17.06896551%; 2792 2748 } 2793 2749 blockquote.pull.alignleft { 2794 2750 margin-left: -20%; … … 2796 2752 blockquote.pull.alignright { 2797 2753 margin-right: -20%; 2798 2754 } 2799 #primary .no-results .entry-header { 2755 #primary .no-results .entry-header, 2756 .single-attachment #primary .entry-header { 2800 2757 margin-right: 8.03571428%; 2801 2758 margin-left: 12.5%; 2802 2759 } … … 2831 2788 padding-left: 22.2rem; 2832 2789 } 2833 2790 .site-content { 2834 margin : 0 27.31707317% 0222px;2835 margin : 0 27.31707317% 022.2rem;2791 margin-left: 222px; 2792 margin-left: 22.2rem; 2836 2793 } 2794 .secondary-sidebar .site-content, 2795 .front-page .site-content { 2796 margin-right: 27.31707317%; 2797 } 2837 2798 #secondary { 2838 2799 background-color: transparent; 2839 2800 border-bottom: 0; … … 2853 2814 margin: -3px 0 21px; 2854 2815 margin: -0.3rem 0 2.1rem; 2855 2816 } 2856 .front-page-content-wrapper {2857 float: left;2858 }2859 .site-content {2860 margin: 0 27.31707317% 0 222px;2861 margin: 0 27.31707317% 0 22.2rem;2862 }2863 #content-sidebar,2864 .post-formatted-posts {2865 margin: 0 0 0 -27.31707317%;2866 width: 24.87804878%;2867 }2868 2817 #primary .entry-header, 2869 2818 #primary .page-header { 2870 2819 margin: -48px 4.59183673% 0; … … 2932 2881 .secondary-navigation ul li:hover > ul { 2933 2882 display: block; 2934 2883 } 2884 #content-sidebar, 2885 .post-formatted-posts { 2886 margin: 0 0 0 -27.31707317%; 2887 width: 24.87804878%; 2888 } 2889 .front-page-content-wrapper { 2890 float: left; 2891 } 2935 2892 .page #primary .entry-header, 2893 .single-attachment #primary .entry-header, 2936 2894 .error404 #primary .page-header { 2937 2895 margin: 0 4.59183673%; 2938 2896 padding: 0 4.46428571% 12px; 2939 2897 padding: 0 4.46428571% 1.2rem; 2940 2898 } 2941 .full-width.site-content {2942 margin-left: 222px;2943 margin-left: 22.2rem;2944 }2945 #primary .full-width .entry-header {2946 padding: 0 0 12px;2947 padding: 0 0 1.2rem;2948 }2949 #primary .full-width .entry-header,2950 #primary .full-width .entry-content,2951 #primary .full-width .page-content,2952 #primary .full-width footer.entry-meta {2953 margin: 0 5.882236%;2954 }2955 2899 .comments-title, 2956 2900 .no-comments, 2957 2901 #comments #respond, … … 2963 2907 padding-right: 9.87001616%; 2964 2908 padding-left: 9.19765166%; 2965 2909 } 2966 .comment-list, 2967 .full-width .comment-list { 2910 .comment-list { 2968 2911 margin-left: 0; 2969 2912 } 2970 2913 .comment-navigation { 2971 2914 padding-left: 9.19765166%; 2972 2915 } 2973 2916 #image-navigation .previous-image, 2974 #image-navigation .next-image, 2975 .full-width .comment-navigation, 2976 .full-width .comments-title, 2977 .full-width #comments #respond, 2978 .full-width .comments-area article, 2979 .full-width .comment-list li.trackback, 2980 .full-width .comment-list li.pingback { 2981 padding-right: 5.882236%; 2982 padding-left: 5.882236%; 2917 #image-navigation .next-image { 2918 padding-right: 9.19765166%; 2919 padding-left: 9.19765166%; 2983 2920 } 2984 2921 blockquote.pull.alignleft { 2985 2922 margin-left: 0; … … 3059 2996 #comments #respond { 3060 2997 padding-right: 13.73697916%; 3061 2998 } 3062 .comment-list, 3063 .full-width .comment-list { 2999 .comment-list { 3064 3000 margin-left: -70px; 3065 3001 margin-left: -7.0rem; 3066 3002 } … … 3072 3008 margin: 0 8.03571428% 2.4rem 12.5%; 3073 3009 } 3074 3010 .page #primary .entry-header, 3075 .error404 #primary .page-header { 3011 .error404 #primary .page-header, 3012 .single-attachment #primary .entry-header { 3076 3013 margin: 0 8.03571428% 0 12.5%; 3077 3014 } 3078 #primary .full-width .entry-header,3079 #primary .full-width .entry-content,3080 #primary .full-width .page-content,3081 #primary .full-width footer.entry-meta {3082 margin: 0 11.21868265%;3083 }3084 3015 #image-navigation .previous-image, 3085 #image-navigation .next-image, 3086 .full-width .comment-navigation, 3087 .full-width .comments-title, 3088 .full-width #comments #respond, 3089 .full-width .comments-area article, 3090 .full-width .comment-list li.trackback, 3091 .full-width .comment-list li.pingback { 3092 padding-right: 11.21868265%; 3093 padding-left: 11.21868265%; 3016 #image-navigation .next-image { 3017 padding-right: 16.77524429%; 3018 padding-left: 16.77524429%; 3094 3019 } 3095 3020 #primary .entry-content .wp-caption.alignleft .wp-caption-text { 3096 3021 padding-left: 10px; … … 3105 3030 } 3106 3031 3107 3032 @media screen and (min-width: 1230px) { 3108 #page,3109 #masthead,3110 .home #main {3111 max-width: 1260px;3112 max-width: 126.0rem;3113 }3114 3033 #content-sidebar, 3115 3034 .post-formatted-posts { 3116 padding-right: 0;3035 padding-right: 30px; 3117 3036 } 3118 #primary .full-width .entry-header,3119 #primary .full-width .entry-content,3120 #primary .full-width .page-content,3121 #primary .full-width footer.entry-meta {3122 margin: 0 0 0 11.21868265%;3123 }3124 3037 #image-navigation .previous-image, 3125 #image-navigation .next-image, 3126 .full-width .comment-navigation, 3127 .full-width .comments-title, 3128 .full-width #comments #respond, 3129 .full-width .comments-area article, 3130 .full-width .comment-list li.trackback, 3131 .full-width .comment-list li.pingback { 3038 #image-navigation .next-image { 3132 3039 padding-right: 0; 3133 3040 } 3134 3041 } 3042 No newline at end of file -
wp-content/themes/twentyfourteen/sidebar-content.php
6 6 * @subpackage Twenty_Fourteen 7 7 */ 8 8 ?> 9 <div id="content-sidebar" class="widget-area" role="complementary">10 <?php do_action( 'before_sidebar' ); ?>11 9 12 <?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?> 13 <aside id="search" class="widget widget_search"> 14 <?php get_search_form(); ?> 15 </aside> 16 17 <aside id="link" class="widget widget_links"> 18 <h1 class="widget-title"><?php _e( 'Blogroll', 'twentyfourteen' ); ?></h1> 19 <ul class="xoxo blogroll"> 20 <?php wp_list_bookmarks( array( 'title_li' => '', 'categorize' => 0 ) ); ?> 21 </ul> 22 </aside> 23 24 <aside id="meta" class="widget"> 25 <h1 class="widget-title"><?php _e( 'Meta', 'twentyfourteen' ); ?></h1> 26 <ul> 27 <?php wp_register(); ?> 28 <li><?php wp_loginout(); ?></li> 29 <?php wp_meta(); ?> 30 </ul> 31 </aside> 32 <?php endif; // end sidebar widget area ?> 33 </div><!-- #content-sidebar --> 10 <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?> 11 <div id="content-sidebar" class="widget-area" role="complementary"> 12 <?php 13 do_action( 'before_sidebar' ); 14 dynamic_sidebar( 'sidebar-2' ); 15 ?> 16 </div><!-- #content-sidebar .widget-area --> 17 <?php endif; ?> 18 No newline at end of file -
wp-content/themes/twentyfourteen/full-width-page.php
9 9 get_header(); ?> 10 10 11 11 <div id="primary" class="content-area"> 12 <div id="content" class="site-content full-width" role="main">12 <div id="content" class="site-content" role="main"> 13 13 <?php 14 14 while ( have_posts() ) : 15 15 the_post(); -
wp-content/themes/twentyfourteen/functions.php
57 57 add_theme_support( 'post-thumbnails', array( 'post' ) ); 58 58 59 59 // Adding several sizes for Post Thumbnails. 60 add_image_size( 'featured-thumbnail-large', 672, 0 );60 add_image_size( 'featured-thumbnail-large', 1038, 0 ); 61 61 add_image_size( 'featured-thumbnail-featured', 672, 336, true ); 62 62 add_image_size( 'featured-thumbnail-formatted', 306, 0 ); 63 63 … … 459 459 */ 460 460 function twentyfourteen_body_classes( $classes ) { 461 461 // Adds a class of group-blog to blogs with more than 1 published author 462 if ( is_multi_author() ) {462 if ( is_multi_author() ) 463 463 $classes[] = 'group-blog'; 464 } 465 if ( is_archive() || is_search() || is_home() ) {464 465 if ( is_archive() || is_search() || is_home() ) 466 466 $classes[] = 'list-view'; 467 }468 467 468 if ( is_front_page() ) 469 $classes[] = 'front-page'; 470 471 if ( is_active_sidebar( 'sidebar-1' ) ) 472 $classes[] = 'primary-sidebar'; 473 474 if ( is_active_sidebar( 'sidebar-2' ) && ! is_attachment() && ! is_page_template( 'full-width-page.php' ) ) 475 $classes[] = 'secondary-sidebar'; 476 469 477 return $classes; 470 478 } 471 479 add_filter( 'body_class', 'twentyfourteen_body_classes' ); -
wp-content/themes/twentyfourteen/image.php
10 10 ?> 11 11 12 12 <section id="primary" class="content-area image-attachment"> 13 <div id="content" class="site-content full-width" role="main">13 <div id="content" class="site-content" role="main"> 14 14 15 15 <?php while ( have_posts() ) : the_post(); ?> 16 16