Changeset 39414 for branches/4.7
- Timestamp:
- 12/02/2016 05:19:44 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-content/themes/twentyseventeen/assets/css/ie8.css
r39340 r39414 66 66 } 67 67 68 .custom-header- image{68 .custom-header-media { 69 69 background-position: bottom center; 70 70 } … … 85 85 } 86 86 87 .has-header-image .custom-header-image img, 88 .has-header-image .custom-header-image video { 87 .has-header-image .custom-header-media img { 89 88 left: 0; 90 89 top: 0; … … 143 142 } 144 143 145 .twentyseventeen-front-page .custom-header- image,146 .blog.home .custom-header- image{144 .twentyseventeen-front-page .custom-header-media, 145 .blog.home .custom-header-media { 147 146 background-position: center center; 148 147 } -
branches/4.7/src/wp-content/themes/twentyseventeen/assets/css/ie9.css
r39215 r39414 5 5 6 6 .has-header-image.twentyseventeen-front-page .custom-header, 7 .has-header-image.home.blog .custom-header { 7 .has-header-video.twentyseventeen-front-page .custom-header, 8 .has-header-image.home.blog .custom-header, 9 .has-header-video.home.blog .custom-header { 8 10 height: 300px; 9 11 } 10 12 11 .has-header-image .custom-header- imageimg,12 .has-header- image .custom-header-imagevideo,13 .has-header- image .custom-header-imageiframe {13 .has-header-image .custom-header-media img, 14 .has-header-video .custom-header-media video, 15 .has-header-video .custom-header-media iframe { 14 16 min-width: 100%; 15 17 } … … 18 20 19 21 .has-header-image.twentyseventeen-front-page .custom-header, 22 .has-header-video.twentyseventeen-front-page .custom-header, 20 23 .has-header-image.home.blog .custom-header, 21 .twentyseventeen-front-page.has-header-image .custom-header-image, 22 .home.blog.has-header-image .custom-header-image, 24 .has-header-video.home.blog .custom-header, 25 .twentyseventeen-front-page.has-header-image .custom-header-media, 26 .home.blog.has-header-image .custom-header-media, 23 27 .panel-image { 24 28 height: 700px; … … 29 33 30 34 .has-header-image.twentyseventeen-front-page .custom-header, 35 .has-header-video.twentyseventeen-front-page .custom-header, 31 36 .has-header-image.home.blog .custom-header, 32 .twentyseventeen-front-page.has-header-image .custom-header-image, 33 .home.blog.has-header-image .custom-header-image, 37 .has-header-video.home.blog .custom-header, 38 .twentyseventeen-front-page.has-header-image .custom-header-media, 39 .home.blog.has-header-image .custom-header-media, 34 40 .panel-image { 35 41 height: 1000px; -
branches/4.7/src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js
r39221 r39414 124 124 wp.customize( settingId, function( setting ) { 125 125 setting.bind(function() { 126 if ( hasHeaderImage() || ( hasHeaderVideo() && $( 'body' ).hasClass( 'twentyseventeen-front-page' ) )) {126 if ( hasHeaderImage() ) { 127 127 $( document.body ).addClass( 'has-header-image' ); 128 128 } else { 129 129 $( document.body ).removeClass( 'has-header-image' ); 130 } 131 132 if ( ! hasHeaderVideo() ) { 133 $( document.body ).removeClass( 'has-header-video' ); 130 134 } 131 135 } ); -
branches/4.7/src/wp-content/themes/twentyseventeen/assets/js/global.js
r39297 r39414 5 5 var $body = $( 'body' ), 6 6 $customHeader = $body.find( '.custom-header' ), 7 $customHeaderImage = $customHeader.find( '.custom-header-image' ),8 7 $branding = $customHeader.find( '.site-branding' ), 9 8 $navigation = $body.find( '.navigation-top' ), … … 65 64 if ( navIsNotTooTall ) { 66 65 67 // When there's a custom header image , the header offset includes the height of the navigation.68 if ( isFrontPage && $customHeaderImage.length) {66 // When there's a custom header image or video, the header offset includes the height of the navigation. 67 if ( isFrontPage && ( $body.hasClass( 'has-header-image' ) || $body.hasClass( 'has-header-video' ) ) ) { 69 68 headerOffset = $customHeader.innerHeight() - navigationOuterHeight; 70 69 } else { … … 243 242 }); 244 243 244 // Add header video class after the video is loaded. 245 $( document ).on( 'wp-custom-header-video-loaded', function() { 246 $body.addClass( 'has-header-video' ); 247 }); 248 245 249 })( jQuery ); -
branches/4.7/src/wp-content/themes/twentyseventeen/inc/color-patterns.php
r39387 r39414 444 444 .colors-custom .next.page-numbers:hover, 445 445 .colors-custom.has-header-image .site-title, 446 .colors-custom.has-header-video .site-title, 446 447 .colors-custom.has-header-image .site-title a, 447 .colors-custom.has-header-image .site-description { 448 .colors-custom.has-header-video .site-title a, 449 .colors-custom.has-header-image .site-description, 450 .colors-custom.has-header-video .site-description { 448 451 color: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */ 449 452 } -
branches/4.7/src/wp-content/themes/twentyseventeen/inc/template-functions.php
r39078 r39414 36 36 37 37 // Add a class if there is a custom header. 38 if ( has_header_image() || has_header_video() && is_front_page()) {38 if ( has_header_image() ) { 39 39 $classes[] = 'has-header-image'; 40 40 } -
branches/4.7/src/wp-content/themes/twentyseventeen/style.css
r39405 r39414 1582 1582 1583 1583 body.has-header-image .site-title, 1584 body.has-header-image .site-title a { 1584 body.has-header-video .site-title, 1585 body.has-header-image .site-title a, 1586 body.has-header-video .site-title a { 1585 1587 color: #fff; 1586 1588 } … … 1593 1595 } 1594 1596 1595 body.has-header-image .site-description { 1597 body.has-header-image .site-description, 1598 body.has-header-video .site-description { 1596 1599 color: #fff; 1597 1600 opacity: 0.8; … … 1611 1614 } 1612 1615 1613 body.home.title-tagline-hidden.has-header-image .custom-logo-link img { 1616 body.home.title-tagline-hidden.has-header-image .custom-logo-link img, 1617 body.home.title-tagline-hidden.has-header-video .custom-logo-link img { 1614 1618 max-height: 200px; 1615 1619 max-width: 100%; … … 1631 1635 1632 1636 .has-header-image.twentyseventeen-front-page .custom-header, 1633 .has-header-image.home.blog .custom-header { 1637 .has-header-video.twentyseventeen-front-page .custom-header, 1638 .has-header-image.home.blog .custom-header, 1639 .has-header-video.home.blog .custom-header { 1634 1640 display: table; 1635 1641 height: 300px; … … 1638 1644 } 1639 1645 1640 .custom-header- image{1646 .custom-header-media { 1641 1647 bottom: 0; 1642 1648 left: 0; … … 1648 1654 } 1649 1655 1650 .custom-header- image:before {1656 .custom-header-media:before { 1651 1657 /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.3+75 */ 1652 1658 background: -moz-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%); /* FF3.6-15 */ … … 1664 1670 } 1665 1671 1666 .has-header-image .custom-header- imageimg,1667 .has-header- image .custom-header-imagevideo,1668 .has-header- image .custom-header-imageiframe {1672 .has-header-image .custom-header-media img, 1673 .has-header-video .custom-header-media video, 1674 .has-header-video .custom-header-media iframe { 1669 1675 position: fixed; 1670 1676 height: auto; … … 1709 1715 } 1710 1716 1711 .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header- imageimg {1717 .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img { 1712 1718 bottom: 0; 1713 1719 position: absolute; … … 1721 1727 /* Hides div in Customizer preview when header images or videos change. */ 1722 1728 1723 body:not(.has-header-image) .custom-header-image{1729 body:not(.has-header-image):not(.has-header-video) .custom-header-media { 1724 1730 display: none; 1725 1731 } 1726 1732 1727 1733 .has-header-image.twentyseventeen-front-page .site-branding, 1728 .has-header-image.home.blog .site-branding { 1734 .has-header-video.twentyseventeen-front-page .site-branding, 1735 .has-header-image.home.blog .site-branding, 1736 .has-header-video.home.blog .site-branding { 1729 1737 display: table-cell; 1730 1738 height: 100%; … … 3276 3284 3277 3285 .has-header-image.twentyseventeen-front-page .site-branding, 3278 .has-header-image.home.blog .site-branding { 3286 .has-header-video.twentyseventeen-front-page .site-branding, 3287 .has-header-image.home.blog .site-branding, 3288 .has-header-video.home.blog .site-branding { 3279 3289 bottom: 0; 3280 3290 display: block; … … 3287 3297 3288 3298 .has-header-image.twentyseventeen-front-page .custom-header, 3289 .has-header-image.home.blog .custom-header { 3299 .has-header-video.twentyseventeen-front-page .custom-header, 3300 .has-header-image.home.blog .custom-header, 3301 .has-header-video.home.blog .custom-header { 3290 3302 display: block; 3291 3303 height: auto; 3292 3304 } 3293 3305 3294 .custom-header- image{3306 .custom-header-media { 3295 3307 height: 165px; 3296 3308 position: relative; 3297 3309 } 3298 3310 3299 .twentyseventeen-front-page.has-header-image .custom-header-image, 3300 .home.blog.has-header-image .custom-header-image { 3311 .twentyseventeen-front-page.has-header-image .custom-header-media, 3312 .twentyseventeen-front-page.has-header-video .custom-header-media, 3313 .home.blog.has-header-image .custom-header-media, 3314 .home.blog.has-header-video .custom-header-media { 3301 3315 height: 0; 3302 3316 position: relative; 3303 3317 } 3304 3318 3305 .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-image { 3319 .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media, 3320 .has-header-video:not(.twentyseventeen-front-page):not(.home) .custom-header-media { 3306 3321 bottom: 0; 3307 3322 height: auto; … … 3317 3332 3318 3333 .custom-logo-link img, 3319 body.home.title-tagline-hidden.has-header-image .custom-logo-link img { 3334 body.home.title-tagline-hidden.has-header-image .custom-logo-link img, 3335 body.home.title-tagline-hidden.has-header-video .custom-logo-link img { 3320 3336 max-width: 350px; 3321 3337 } 3322 3338 3323 .title-tagline-hidden.home.has-header-image .custom-logo-link img { 3339 .title-tagline-hidden.home.has-header-image .custom-logo-link img, 3340 .title-tagline-hidden.home.has-header-video .custom-logo-link img { 3324 3341 max-height: 200px; 3325 3342 } … … 3583 3600 3584 3601 .twentyseventeen-front-page.has-header-image .site-branding, 3585 .home.blog.has-header-image .site-branding { 3602 .twentyseventeen-front-page.has-header-video .site-branding, 3603 .home.blog.has-header-image .site-branding, 3604 .home.blog.has-header-video .site-branding { 3586 3605 margin-bottom: 70px; 3587 3606 } 3588 3607 3589 .twentyseventeen-front-page.has-header-image .custom-header-image, 3590 .home.blog.has-header-image .custom-header-image { 3608 .twentyseventeen-front-page.has-header-image .custom-header-media, 3609 .twentyseventeen-front-page.has-header-video .custom-header-media, 3610 .home.blog.has-header-image .custom-header-media, 3611 .home.blog.has-header-video .custom-header-media { 3591 3612 height: 1200px; 3592 3613 height: 100vh; … … 3595 3616 } 3596 3617 3597 .twentyseventeen-front-page.has-header-image .custom-header-image:before, 3598 .home.blog.has-header-image .custom-header-image:before { 3618 .twentyseventeen-front-page.has-header-image .custom-header-media:before, 3619 .twentyseventeen-front-page.has-header-video .custom-header-media:before, 3620 .home.blog.has-header-image .custom-header-media:before, 3621 .home.blog.has-header-video .custom-header-media:before { 3599 3622 height: 33%; 3600 3623 } 3601 3624 3602 .admin-bar.twentyseventeen-front-page.has-header-image .custom-header-image, 3603 .admin-bar.home.blog.has-header-image .custom-header-image { 3625 .admin-bar.twentyseventeen-front-page.has-header-image .custom-header-media, 3626 .admin-bar.twentyseventeen-front-page.has-header-video .custom-header-media, 3627 .admin-bar.home.blog.has-header-image .custom-header-media, 3628 .admin-bar.home.blog.has-header-video .custom-header-media { 3604 3629 height: calc(100vh - 32px); 3605 3630 } … … 4115 4140 } 4116 4141 4117 .custom-header- image{4142 .custom-header-media { 4118 4143 padding: 0; 4119 4144 } 4120 4145 4121 4146 .twentyseventeen-front-page.has-header-image .site-branding, 4122 .home.blog.has-header-image .site-branding { 4147 .twentyseventeen-front-page.has-header-video .site-branding, 4148 .home.blog.has-header-image .site-branding, 4149 .home.blog.has-header-video .site-branding { 4123 4150 position: relative; 4124 4151 } … … 4159 4186 .site-title a, 4160 4187 .twentyseventeen-front-page.has-header-image .site-title, 4161 .twentyseventeen-front-page.has-header-image .site-title a { 4188 .twentyseventeen-front-page.has-header-video .site-title, 4189 .twentyseventeen-front-page.has-header-image .site-title a, 4190 .twentyseventeen-front-page.has-header-video .site-title a { 4162 4191 color: #222 !important; /* Make sure color schemes don't affect to print */ 4163 4192 } … … 4168 4197 .site-description, 4169 4198 .twentyseventeen-front-page.has-header-image .site-description, 4199 .twentyseventeen-front-page.has-header-video .site-description, 4170 4200 .entry-meta, 4171 4201 .entry-meta a { -
branches/4.7/src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php
r39395 r39414 1 1 <?php 2 2 /** 3 * Displays header image3 * Displays header media 4 4 * 5 5 * @package WordPress … … 12 12 <div class="custom-header"> 13 13 14 <div class="custom-header- image">14 <div class="custom-header-media"> 15 15 <?php the_custom_header_markup(); ?> 16 16 </div>
Note: See TracChangeset
for help on using the changeset viewer.