Ticket #25554: 25554.3.diff
| File 25554.3.diff, 26.2 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentyfourteen/functions.php
239 239 if ( is_active_sidebar( 'sidebar-3' ) ) 240 240 wp_enqueue_script( 'jquery-masonry' ); 241 241 242 wp_enqueue_script( 'twentyfourteen- theme', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130820', true );242 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20131011', true ); 243 243 244 244 // Add Lato font used in the main stylesheet. 245 245 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null ); … … 374 374 if ( is_multi_author() ) 375 375 $classes[] = 'group-blog'; 376 376 377 if ( get_header_image() ) 378 $classes[] = 'header-image'; 379 else 380 $classes[] = 'masthead-fixed'; 381 377 382 if ( is_archive() || is_search() || is_home() ) 378 383 $classes[] = 'list-view'; 379 384 -
wp-content/themes/twentyfourteen/header.php
39 39 <div class="header-main"> 40 40 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 41 41 42 <div class="header-extra"> 43 <div class="search-toggle"> 44 <a href="#search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a> 45 </div> 42 <div class="search-toggle"> 43 <a href="#search-container" class="screen-reader-text"><?php _e( 'Search', 'twentyfourteen' ); ?></a> 46 44 </div> 47 45 48 <nav role="navigation" class="site-navigation primary-navigation">49 <h1 class=" screen-reader-text"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1>50 <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a> </a>51 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>46 <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation"> 47 <h1 class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1> 48 <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a> 49 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?> 52 50 </nav> 53 51 </div> 54 52 55 <div id="mobile-navigations" class="hide"></div>56 57 53 <div id="search-container" class="search-box-wrapper hide"> 58 54 <div class="search-box clear"> 59 55 <?php get_search_form(); ?> -
wp-content/themes/twentyfourteen/inc/customizer.php
126 126 input[type="button"], 127 127 input[type="reset"], 128 128 input[type="submit"], 129 .header-extra,130 129 .search-toggle, 131 .primary-navigation ul ul,132 .primary-navigation li:hover > a,133 130 .hentry .mejs-controls .mejs-time-rail .mejs-time-current, 134 131 .widget_calendar tbody a { 135 132 background-color: ' . $accent_color . '; 136 133 } 137 134 135 @media screen and (min-width: 782px) { 136 .primary-navigation ul ul, 137 .primary-navigation li:hover > a { 138 background-color: ' . $accent_color . '; 139 } 140 } 141 138 142 ::-moz-selection { 139 143 background: ' . $accent_color . '; 140 144 } … … 160 164 .search-toggle:hover, 161 165 .search-toggle.active, 162 166 .search-box, 167 .primary-navigation ul ul a:hover, 163 168 .widget_calendar tbody a:hover { 164 169 background-color: ' . $accent_lighter . '; 165 170 } … … 178 183 a:focus, 179 184 a:active, 180 185 .site-navigation .current_page_item > a, 186 .site-navigation .current_page_ancestor > a, 181 187 .site-navigation .current-menu-item > a, 188 .site-navigation .current-menu-ancestor > a, 182 189 .secondary-navigation a:hover, 183 190 .entry-title a:hover, 184 191 .cat-links a:hover, -
wp-content/themes/twentyfourteen/js/functions.js
1 ( function( $ ) { 2 var body = $( 'body' ), 3 _window = $( window ); 4 5 /** 6 * Enables menu toggle for small screens. 7 */ 8 ( function() { 9 var nav = $( '#primary-navigation' ), button, menu; 10 if ( ! nav ) 11 return; 12 13 button = nav.find( '.menu-toggle' ); 14 if ( ! button ) 15 return; 16 17 // Hide button if menu is missing or empty. 18 menu = nav.find( '.nav-menu' ); 19 if ( ! menu || ! menu.children().length ) { 20 button.hide(); 21 return; 22 } 23 24 $( '.menu-toggle' ).on( 'click.twentyfourteen', function() { 25 nav.toggleClass( 'toggled-on' ); 26 } ); 27 } )(); 28 29 /** 30 * Makes "skip to content" link work correctly in IE9 and Chrome for better 31 * accessibility. 32 * 33 * @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/ 34 */ 35 _window.on( 'hashchange.twentyfourteen', function() { 36 var element = document.getElementById( location.hash.substring( 1 ) ); 37 38 if ( element ) { 39 if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) 40 element.tabIndex = -1; 41 42 element.focus(); 43 }; 44 } ); 45 46 $( function() { 47 /** 48 * Search toggle. 49 */ 50 $( '.search-toggle' ).on( 'click.twentyfourteen', function() { 51 var that = $( this ), 52 wrapper = $( '.search-box-wrapper' ); 53 54 that.toggleClass( 'active' ); 55 wrapper.toggleClass( 'hide' ); 56 57 if ( that.is( '.active' ) ) 58 wrapper.find( '.search-field' ).focus(); 59 } ); 60 61 /** 62 * Fixed navbar. 63 * 64 * The callback on the scroll event is only added if there is a header 65 * image and we are not on mobile. 66 */ 67 if ( body.is( '.header-image' ) && _window.width() > 781 ) { 68 var toolbarOffset = body.is( '.admin-bar' ) ? $( '#wpadminbar' ).height() : 0, 69 mastheadOffset = $( '#masthead' ).offset().top - toolbarOffset; 70 71 _window.on( 'scroll.twentyfourteen', function() { 72 if ( window.scrollY > mastheadOffset ) 73 body.addClass( 'masthead-fixed' ); 74 else 75 body.removeClass( 'masthead-fixed' ); 76 } ); 77 } 78 79 /** 80 * Focus styles for primary menu. 81 */ 82 $( '.primary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() { 83 $( this ).parents().toggleClass( 'focus' ); 84 } ); 85 } ); 86 87 /** 88 * Arranges footer widgets vertically. 89 */ 90 if ( $.isFunction( $.fn.masonry ) ) { 91 $( '#footer-sidebar' ).masonry( { 92 itemSelector: '.widget', 93 columnWidth: function( containerWidth ) { 94 return containerWidth / 4; 95 }, 96 gutterWidth: 0, 97 isResizable: true, 98 isRTL: $( 'body' ).is( '.rtl' ) 99 } ); 100 } 101 } )( jQuery ); 102 No newline at end of file -
wp-content/themes/twentyfourteen/js/theme.js
Property changes on: wp-content/themes/twentyfourteen/js/functions.js ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property
1 ( function( $ ) {2 3 $( document ).ready( function() {4 5 var $primaryNaviClone,6 $secondaryNaviClone,7 $masthead = $( '#masthead' ),8 $secondaryTop = $( '#secondary-top' ),9 $mobileNavigations = $( '#mobile-navigations'),10 $searchBoxWrapper = $( 'div.search-box-wrapper' ),11 $searchToggle = $( 'div.search-toggle' ),12 timeout = false;13 14 // Toggle function.15 function menuToggle() {16 $( 'span#nav-toggle' ).toggleClass( 'active' );17 $masthead.find( '#mobile-navigations' ).toggleClass( 'hide' );18 }19 20 // Click event for toggle the search21 $searchToggle.click( function() {22 $( this ).toggleClass( 'active' );23 $searchBoxWrapper.toggleClass( 'hide' );24 25 if ( $( this ).hasClass( 'active' ) )26 $searchBoxWrapper.find( '.search-field' ).focus();27 } );28 29 // DOM manipulations for mobile header30 function mobileHeader() {31 // Check if the toggler exists. If not add it.32 if ( ! $( '#nav-toggle' ).length )33 $( '<span id="nav-toggle" class="genericon" />' ).appendTo( $masthead );34 35 // Clone and detach the primary navigation for use later36 $primaryNaviClone = $masthead.find( 'nav.primary-navigation' ).detach();37 38 // Clone and detach the secondary navigation for use later39 $secondaryNaviClone = $secondaryTop.find( 'nav.secondary-navigation' ).detach();40 41 // Prepend the primary navigation clone to #mobile-navigations and remove the class and add an id42 $primaryNaviClone.prependTo( $mobileNavigations ).removeClass( 'primary-navigation' ).addClass( 'mobile-navigation' ).attr( 'id', 'primary-mobile-navigation' );43 44 // Append the secondary navigation clone to #mobile-navigations and remove the class and add an id45 $secondaryNaviClone.appendTo( $mobileNavigations ).removeClass( 'secondary-navigation' ).addClass( 'mobile-navigation' ).attr( 'id', 'secondary-mobile-navigation' );46 47 // Remove the click event first and bind it after to make sure it's invoked once.48 $( 'span#nav-toggle' ).off( 'click', menuToggle ).click( menuToggle );49 };50 51 // DOM manupilations for desktop header52 function normalHeader() {53 // Check if the toggler exists. If it does remove it.54 if ( $( 'span#nav-toggle').length )55 $( 'span#nav-toggle' ).remove();56 57 // Clone and detach the primary mobile navigation for use later58 $primaryNaviClone = $mobileNavigations.find( '#primary-mobile-navigation' ).detach();59 60 // Clone and detach the secondary mobile navigation for use later61 $secondaryNaviClone = $mobileNavigations.find( '#secondary-mobile-navigation' ).detach();62 63 // Append the secondary navigation clone to #mobile-navigations and remove the class and add an id64 $primaryNaviClone.appendTo( '.header-main' ).removeClass( 'mobile-navigation' ).removeAttr( 'id' ).addClass( 'primary-navigation' );65 66 // Append the secondary navigation clone to #mobile-navigations and remove the class and add an id67 $secondaryNaviClone.appendTo( $secondaryTop ).removeClass( 'mobile-navigation' ).removeAttr( 'id' ).addClass( 'secondary-navigation' );68 };69 70 // Check viewport width when user resizes the browser window.71 $( window ).resize( function() {72 if ( false !== timeout )73 clearTimeout( timeout );74 75 timeout = setTimeout( function() {76 if ( $( window ).width() < 770 ) {77 mobileHeader();78 } else {79 normalHeader();80 }81 }, 100 );82 83 } ).resize();84 85 // Sticky header.86 var $mastheadOffset = -1,87 $toolbarOffset = $( 'body' ).is( '.admin-bar' ) ? 32 : 0,88 $maindiv = $( '#main' );89 90 $( window ).on( 'scroll', false, function() {91 if ( $mastheadOffset < 0 )92 $mastheadOffset = $masthead.offset().top - $toolbarOffset;93 94 if ( ( window.scrollY > $mastheadOffset ) && ( $( window ).width() > 769 ) ) {95 $masthead.addClass( 'masthead-fixed' );96 $maindiv.css( {97 marginTop: $masthead.height()98 } );99 } else {100 $masthead.removeClass( 'masthead-fixed' );101 $maindiv.css( {102 marginTop: 0103 } );104 }105 } );106 107 // Arranges footer widgets vertically.108 if ( $.isFunction( $.fn.masonry ) ) {109 110 $( '#footer-sidebar' ).masonry( {111 itemSelector: '.widget',112 columnWidth: 315,113 gutterWidth: 0,114 isRTL: $( 'body' ).is( '.rtl' )115 } );116 }117 118 } );119 120 /* Focus styles for primary menu. */121 $( '.primary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() {122 $( this ).parents().toggleClass( 'focus' );123 });124 } )( jQuery );125 No newline at end of file -
wp-content/themes/twentyfourteen/rtl.css
59 59 /* =Header 60 60 ----------------------------------------------- */ 61 61 62 .header-main { 63 margin-left: 48px; 64 padding-right: 10px; 65 padding-left: 0; 62 .search-toggle { 63 float: left; 64 margin-left: 38px; 66 65 margin-right: auto; 67 66 } 68 67 69 .header-extra {70 float: left;71 }72 73 68 .site-title { 74 69 float: right; 75 70 } 76 71 77 #nav-toggle {72 .menu-toggle { 78 73 left: 0; 79 74 right: auto; 80 75 } … … 93 88 ----------------------------------------------- */ 94 89 95 90 /* Primary Navigation */ 96 .primary-navigation {97 float: left;98 margin: 0 -10px 0 10px;99 }100 101 91 .primary-navigation ul { 102 92 padding-right: 0; 103 93 padding-left: 0; 104 94 } 105 95 96 .primary-navigation ul ul li { 97 margin-left: auto; 98 margin-right: 15px; 99 } 100 106 101 .primary-navigation ul ul { 107 float: right;108 102 right: -999em; 109 103 left: auto; 110 104 } … … 493 487 } 494 488 } 495 489 496 @media screen and (min-width: 7 70px) {490 @media screen and (min-width: 782px) { 497 491 .header-main { 492 padding: 0 27px 0 0; 493 } 494 495 .search-toggle { 498 496 margin-left: 0; 499 margin-right: auto;500 497 } 501 498 } 502 499 -
wp-content/themes/twentyfourteen/style.css
411 411 -webkit-box-sizing: border-box; 412 412 -moz-box-sizing: border-box; 413 413 box-sizing: border-box; 414 background-image: -webkit-linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,0)); /* Removing the inner shadow, rounded corners on iOS inputs */ 414 415 } 415 416 416 417 button, … … 728 729 .comment-reply-link:before, 729 730 .comment-reply-login:before, 730 731 .contributor-posts-link:before, 732 .menu-toggle:before, 731 733 .search-toggle:before, 732 734 .widget_twentyfourteen_ephemera .widget-title:before { 733 735 -webkit-font-smoothing: antialiased; … … 785 787 } 786 788 787 789 .header-main { 788 margin-right: 48px;789 790 min-height: 48px; 790 padding -left:10px;791 padding: 0 10px; 791 792 } 792 793 793 .header-extra {794 background-color: #24890d;795 float: right;796 }797 798 794 .site-title { 799 795 display: inline-block; 800 796 float: left; … … 812 808 813 809 .search-toggle { 814 810 background-color: #24890d; 815 -webkit-box-sizing: border-box;816 -moz-box-sizing: border-box;817 box-sizing: border-box;818 color: #fff;819 811 cursor: pointer; 820 display: block; 821 float: left; 822 font-size: 10px; 823 min-width: 70px; 824 min-height: 48px; 825 padding: 25px 10px 0; 826 position: relative; 812 float: right; 813 height: 48px; 814 margin-right: 38px; 827 815 text-align: center; 828 text-transform: uppercase;816 width: 48px; 829 817 } 830 818 831 819 .search-toggle:hover, … … 836 824 .search-toggle:before { 837 825 color: #fff; 838 826 content: "\f400"; 839 margin-left: -8px; 840 position: absolute; 841 top: 9px; 842 left: 50%; 827 font-size: 20px; 828 margin-top: 14px; 843 829 } 844 830 845 .search-toggle a,846 .search-toggle a:hover {847 color: #fff;848 }849 850 831 .search-box-wrapper { 851 832 -webkit-box-sizing: border-box; 852 833 -moz-box-sizing: border-box; 853 834 box-sizing: border-box; 854 position: absolute;835 position: relative; 855 836 width: 100%; 856 837 z-index: 2; 857 838 } … … 865 846 float: right; 866 847 font-size: 13px; 867 848 margin: 12px 10px; 868 padding: 3px 6px;869 width: 326px;849 padding: 3px 2px 3px 6px; 850 width: 240px; 870 851 } 871 852 872 /* Fixed Header */873 853 874 .site-header.masthead-fixed {875 box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);876 position: fixed;877 top: 0;878 }879 880 .admin-bar .site-header.masthead-fixed {881 top: 28px;882 }883 884 .admin-bar.mp6 .site-header.masthead-fixed {885 top: 32px;886 }887 888 889 854 /** 890 855 * 5.0 Navigations 891 856 * ----------------------------------------------------------------------------- … … 897 862 } 898 863 899 864 .site-navigation .current_page_item > a, 900 .site-navigation .current-menu-item > a { 865 .site-navigation .current_page_ancestor > a, 866 .site-navigation .current-menu-item > a, 867 .site-navigation .current-menu-ancestor > a { 901 868 color: #55d737; 902 869 } 903 870 … … 908 875 /* Primary Navigation */ 909 876 910 877 .primary-navigation { 911 display: none; 912 float: right; 913 font-size: 11px; 914 line-height: 1.6363636363; 915 margin: 0 10px 0 -10px; 916 } 917 918 .primary-navigation ul { 919 margin: 0; 920 padding-left: 0; 921 } 922 923 .primary-navigation li { 878 background-color: #000; 924 879 -webkit-box-sizing: border-box; 925 880 -moz-box-sizing: border-box; 926 881 box-sizing: border-box; 927 display: inline-block; 928 height: 48px; 929 line-height: 48px; 930 position: relative; 882 font-size: 14px; 883 margin: 0 auto; 884 padding-top: 24px; 931 885 } 932 886 933 .primary-navigation a { 934 display: inline-block; 935 padding: 0 10px; 936 text-decoration: none; 937 white-space: nowrap; 887 .primary-navigation.toggled-on { 888 border-bottom: 1px solid rgba(255, 255, 255, 0.4); 889 margin-bottom: 36px; 890 padding-top: 72px; 938 891 } 939 892 940 .primary-navigation ul ul { 941 background-color: #24890d; 942 float: left; 943 position: absolute; 944 top: 48px; 945 left: -999em; 946 z-index: 99999; 893 .primary-navigation .nav-menu { 894 display: none; 947 895 } 948 896 949 .primary-navigation li li{897 .primary-navigation.toggled-on .nav-menu { 950 898 display: block; 951 height: auto;952 line-height: 1.6363636363;953 899 } 954 900 955 .primary-navigation ul ul ul { 956 left: -999em; 957 top: 0; 901 .primary-navigation ul { 902 list-style: none; 903 margin: 0; 904 padding-left: 0; 958 905 } 959 906 960 .primary-navigation ul ul a { 961 padding: 9px 12px; 962 white-space: normal; 963 width: 148px; 907 .primary-navigation li { 908 border-top: 1px solid rgba(255, 255, 255, 0.2); 964 909 } 965 910 966 .primary-navigation li:hover > a { 967 background-color: #24890d; 968 color: #fff; 911 .primary-navigation ul ul li { 912 margin-left: 15px; 969 913 } 970 914 971 .primary-navigation ul ul a:hover { 972 background-color: #000; 915 .primary-navigation a { 916 color: #fff; 917 display: block; 918 padding: 7px 0; 919 text-decoration: none; 973 920 } 974 921 975 .primary-navigation ul li:hover > ul, 976 .primary-navigation ul li.focus > ul { 977 left: auto; 922 .primary-navigation a:hover { 923 color: rgba(255, 255, 255, 0.7); 978 924 } 979 925 980 .primary-navigation ul ul li:hover > ul,981 .primary-navigation ul ul li.focus > ul {982 left: 100%;983 }984 985 926 /* Secondary Navigation */ 986 927 987 928 .secondary-navigation { 988 border-bottom: 1px solid rgba(255, 255, 255, 0. 4);929 border-bottom: 1px solid rgba(255, 255, 255, 0.2); 989 930 font-size: 14px; 990 margin: 0 auto 48px; 991 max-width: 474px; 931 margin: 48px 0 0; 992 932 } 993 933 994 934 .secondary-navigation a { 995 935 display: block; 996 padding: 7px 0;936 padding: 8px 0 9px; 997 937 } 998 938 999 939 .secondary-navigation a:hover { … … 1009 949 } 1010 950 1011 951 .secondary-navigation li { 1012 border-top: 1px solid rgba(255, 255, 255, 0.4);1013 }1014 1015 .secondary-navigation li li {1016 952 border-top: 1px solid rgba(255, 255, 255, 0.2); 1017 953 } 1018 954 1019 /* Mobile Navigations */ 1020 1021 #mobile-navigations { 1022 margin: 1px auto 0; 1023 max-width: 474px; 1024 } 1025 1026 .mobile-navigation { 955 .menu-toggle { 1027 956 background-color: #000; 1028 -webkit-box-sizing: border-box; 1029 -moz-box-sizing: border-box; 1030 box-sizing: border-box; 1031 font-size: 14px; 1032 padding: 24px 10px 0; 1033 } 1034 1035 .mobile-navigation ul { 957 cursor: pointer; 958 font-size: 0; 959 height: 16px; 1036 960 margin: 0; 1037 }1038 1039 .mobile-navigation li {1040 border-top: 1px solid rgba(255, 255, 255, 0.4);1041 }1042 1043 .mobile-navigation li li {1044 border-top: 1px solid rgba(255, 255, 255, 0.2);1045 }1046 1047 .mobile-navigation ul ul li {1048 margin-left: 15px;1049 }1050 1051 .mobile-navigation a {1052 display: block;1053 padding: 7px 0;1054 text-decoration: none;1055 }1056 1057 .mobile-navigation a:hover {1058 color: rgba(255, 255, 255, 0.7);1059 }1060 1061 #nav-toggle {1062 background-color: #000;1063 cursor: pointer;1064 line-height: 1;1065 961 padding: 16px; 1066 962 position: absolute; 1067 963 top: 0; 1068 964 right: 0; 1069 965 } 1070 966 1071 #nav-toggle:before {967 .menu-toggle:before { 1072 968 color: #fff; 1073 969 content: "\f419"; 1074 970 } … … 1111 1007 background: #767676; 1112 1008 background-attachment: fixed; 1113 1009 background-image: -webkit-linear-gradient(135deg, #767676 12.5%, #fff 12.5%, #fff 50%, #767676 50%, #767676 62.5%, #fff 62.5%); 1114 background-image: linear-gradient(135deg, #767676 12.5%, #fff 12.5%, #fff 50%, #767676 50%, #767676 62.5%, #fff 62.5%);1115 1010 background-size: 4px 4px; 1116 1011 display: none; 1117 1012 float: none; 1013 height: auto; 1118 1014 margin: 0; 1119 1015 min-height: 180px; 1120 1016 position: relative; 1121 1017 width: 100%; 1122 height: auto;1123 1018 z-index: 0; 1124 1019 } 1125 1020 … … 1127 1022 background: #919191; 1128 1023 background-attachment: fixed; 1129 1024 background-image: -webkit-linear-gradient(135deg, #919191 12.5%, #fff 12.5%, #fff 50%, #919191 50%, #919191 62.5%, #fff 62.5%); 1130 background-image: linear-gradient(135deg, #919191 12.5%, #fff 12.5%, #fff 50%, #919191 50%, #919191 62.5%, #fff 62.5%);1131 1025 background-size: 4px 4px; 1132 1026 } 1133 1027 … … 1279 1173 border-right: 8px solid #767676; 1280 1174 border-bottom: 10px solid transparent; 1281 1175 content: ""; 1176 height: 0; 1282 1177 position: absolute; 1283 1178 top: 0; 1284 1179 left: -8px; 1285 1180 width: 0; 1286 height: 0;1287 1181 } 1288 1182 1289 1183 .tag-links a:hover:before, … … 1295 1189 background-color: #fff; 1296 1190 border-radius: 50%; 1297 1191 content: ""; 1192 height: 4px; 1298 1193 position: absolute; 1299 1194 top: 8px; 1300 1195 left: -2px; 1301 1196 width: 4px; 1302 height: 4px;1303 1197 } 1304 1198 1305 1199 @-moz-document url-prefix() { /* For Firefox to avoid jagged edge */ … … 1426 1320 background: #fff; 1427 1321 border: 1px solid #fff; 1428 1322 display: inline-block; 1323 height: 22px; 1429 1324 margin: 0 1px 2px 0; 1430 1325 text-align: center; 1431 1326 width: 22px; 1432 height: 22px;1433 1327 } 1434 1328 1435 1329 .page-links a { … … 1446 1340 } 1447 1341 1448 1342 .page-links > span.page-links-title { 1343 height: auto; 1449 1344 margin: 0; 1450 1345 padding-right: 9px; 1451 1346 width: auto; 1452 height: auto;1453 1347 } 1454 1348 1455 1349 /* More link */ … … 1943 1837 1944 1838 .comment-author .avatar { 1945 1839 border: 1px solid rgba(0, 0, 0, 0.1); 1840 height: 18px; 1946 1841 padding: 2px; 1947 1842 position: absolute; 1948 1843 top: 0; 1949 1844 left: 0; 1950 1845 width: 18px; 1951 height: 18px;1952 1846 } 1953 1847 1954 1848 .bypostauthor .avatar { … … 2080 1974 2081 1975 #secondary { 2082 1976 background-color: #000; 2083 border- bottom: 1px solid rgba(255, 255, 255, 0.2);1977 border-top: 1px solid #000; 2084 1978 clear: both; 2085 1979 color: rgba(255, 255, 255, 0.55); 2086 1980 font-size: 14px; 2087 1981 line-height: 1.2857142857; 1982 margin-top: -1px; 2088 1983 padding: 0 10px; 2089 1984 position: relative; 2090 1985 z-index: 2; … … 2144 2039 2145 2040 .widget { 2146 2041 margin: 0 auto 48px; 2147 max-width: 474px; 2148 overflow: hidden; 2042 width: 100%; 2149 2043 } 2150 2044 2151 2045 .widget p { … … 2239 2133 background-color: #41a62a; 2240 2134 } 2241 2135 2136 .footer-sidebar .widget_calendar tbody a, 2137 .footer-sidebar .widget_calendar tbody a:hover, 2138 .primary-sidebar .widget_calendar tbody a, 2139 .primary-sidebar .widget_calendar tbody a:hover { 2140 color: #fff; 2141 } 2142 2242 2143 .widget_calendar #prev { 2243 2144 padding-left: 5px; 2244 2145 } … … 2529 2430 * ----------------------------------------------------------------------------- 2530 2431 */ 2531 2432 2433 #supplementary { 2434 padding: 0 10px; 2435 } 2436 2532 2437 .site-footer { 2533 2438 background-color: #000; 2534 2439 color: #949a92; … … 2537 2442 z-index: 3; 2538 2443 } 2539 2444 2540 .site-footer .widget {2541 -webkit-box-sizing: border-box;2542 -moz-box-sizing: border-box;2543 box-sizing: border-box;2544 float: left;2545 padding: 0 30px;2546 width: 315px;2547 }2548 2549 2445 .footer-sidebar { 2550 2446 border-bottom: 1px solid rgba(255, 255, 255, 0.2); 2551 padding : 48px 10px 0;2447 padding-top: 48px; 2552 2448 } 2553 2449 2554 2450 .site-info { … … 2887 2783 padding-left: 30px; 2888 2784 } 2889 2785 2890 #secondary {2891 padding: 0 30px;2892 }2893 2894 2786 .content-sidebar { 2895 2787 border: 0; 2896 2788 float: right; … … 2917 2809 } 2918 2810 } 2919 2811 2920 @media screen and (min-width: 7 70px) {2812 @media screen and (min-width: 782px) { 2921 2813 .header-main { 2814 padding: 0 0 0 30px; 2815 } 2816 2817 .search-toggle { 2922 2818 margin-right: 0; 2923 2819 } 2924 2820 2821 /* Fixed Header */ 2822 2823 .masthead-fixed .site-header { 2824 box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2); 2825 position: fixed; 2826 top: 0; 2827 } 2828 2829 .admin-bar.masthead-fixed .site-header { 2830 top: 28px; 2831 } 2832 2833 .admin-bar.mp6.masthead-fixed .site-header { 2834 top: 32px; 2835 } 2836 2837 .masthead-fixed .site-main { 2838 margin-top: 48px; 2839 } 2840 2841 /* Primary Navigation */ 2842 2925 2843 .primary-navigation { 2844 float: right; 2845 font-size: 11px; 2846 margin: 0 10px 0 -10px; 2847 padding: 0; 2848 text-transform: uppercase; 2849 } 2850 2851 .primary-navigation .menu-toggle { 2852 display: none; 2853 padding: 0; 2854 } 2855 2856 .primary-navigation .nav-menu { 2926 2857 display: block; 2927 2858 } 2928 2859 2860 .primary-navigation.toggled-on { 2861 border-bottom: 0; 2862 margin: 0; 2863 padding: 0; 2864 } 2865 2866 .primary-navigation li { 2867 border: 0; 2868 display: inline-block; 2869 height: 48px; 2870 line-height: 48px; 2871 position: relative; 2872 } 2873 2874 .primary-navigation a { 2875 display: inline-block; 2876 padding: 0 10px; 2877 white-space: nowrap; 2878 } 2879 2880 .primary-navigation ul ul { 2881 background-color: #24890d; 2882 float: left; 2883 position: absolute; 2884 top: 48px; 2885 left: -999em; 2886 z-index: 99999; 2887 } 2888 2889 .primary-navigation li li { 2890 border: 0; 2891 display: block; 2892 height: auto; 2893 line-height: 1.0909090909; 2894 } 2895 2896 .primary-navigation ul ul ul { 2897 left: -999em; 2898 top: 0; 2899 } 2900 2901 .primary-navigation ul ul li { 2902 margin: 0; 2903 } 2904 2905 .primary-navigation ul ul a { 2906 padding: 18px 12px; 2907 white-space: normal; 2908 width: 144px; 2909 } 2910 2911 .primary-navigation li:hover > a { 2912 background-color: #24890d; 2913 color: #fff; 2914 } 2915 2916 .primary-navigation ul ul a:hover { 2917 background-color: #41a62a; 2918 } 2919 2920 .primary-navigation ul li:hover > ul, 2921 .primary-navigation ul li.focus > ul { 2922 left: auto; 2923 } 2924 2925 .primary-navigation ul ul li:hover > ul, 2926 .primary-navigation ul ul li.focus > ul { 2927 left: 100%; 2928 } 2929 2930 .primary-navigation li .current_page_item > a, 2931 .primary-navigation li .current_page_ancestor > a, 2932 .primary-navigation li .current-menu-item > a, 2933 .primary-navigation li .current-menu-ancestor > a { 2934 background-color: #000; 2935 } 2936 2929 2937 .attachment-featured-featured { 2930 2938 height: 213px; 2931 2939 } … … 3001 3009 } 3002 3010 3003 3011 .comment-author .avatar { 3012 height: 34px; 3004 3013 top: 2px; 3005 3014 width: 34px; 3006 height: 34px;3007 3015 } 3008 3016 3009 3017 .comment-author, … … 3031 3039 } 3032 3040 3033 3041 @media screen and (min-width: 1008px) { 3034 .header-main {3035 padding-left: 30px;3036 }3037 3038 3042 .search-box-wrapper { 3039 3043 padding-left: 182px; 3040 3044 } … … 3072 3076 3073 3077 #secondary { 3074 3078 background-color: transparent; 3075 border- bottom: 0;3079 border-top: 0; 3076 3080 clear: none; 3077 3081 float: left; 3078 3082 font-size: 11px; 3079 3083 line-height: 1.6363636363; 3080 3084 margin: 0 0 0 -100%; 3081 3085 min-height: 100vh; 3086 padding: 0 30px; 3082 3087 width: 122px; 3083 3088 } 3084 3089 … … 3115 3120 .secondary-navigation { 3116 3121 border-bottom: 1px solid rgba(255, 255, 255, 0.2); 3117 3122 font-size: 11px; 3123 margin: 0 0 48px; 3118 3124 } 3119 3125 3120 3126 .secondary-navigation ul, … … 3128 3134 position: relative; 3129 3135 } 3130 3136 3131 .secondary-navigation a {3132 padding: 8px 0 9px;3133 }3134 3135 3137 .secondary-navigation ul ul { 3136 3138 background: rgba(0, 0, 0, 0.9); 3137 3139 display: none; … … 3158 3160 margin-bottom: 18px; 3159 3161 } 3160 3162 3163 #supplementary { 3164 padding: 0; 3165 } 3166 3161 3167 .footer-sidebar { 3162 3168 font-size: 11px; 3163 3169 line-height: 1.6363636363; 3164 padding: 48px 0 0;3165 3170 } 3166 3171 3172 .site-footer .widget { 3173 -webkit-box-sizing: border-box; 3174 -moz-box-sizing: border-box; 3175 box-sizing: border-box; 3176 float: left; 3177 padding: 0 30px; 3178 width: 25%; 3179 } 3180 3167 3181 .site-info { 3168 3182 padding: 15px 30px; 3169 3183 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)