diff --git src/wp-content/themes/twentyseventeen/assets/css/ie8.css src/wp-content/themes/twentyseventeen/assets/css/ie8.css
index 83342ba..bf45c26 100644
|
|
|
img { |
| 65 | 65 | display: block; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | | .custom-header-image { |
| | 68 | .custom-header-media { |
| 69 | 69 | background-position: bottom center; |
| 70 | 70 | } |
| 71 | 71 | |
| … |
… |
img { |
| 84 | 84 | width: 100%; |
| 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; |
| 91 | 90 | } |
| … |
… |
img { |
| 142 | 141 | padding-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 | } |
| 149 | 148 | |
diff --git src/wp-content/themes/twentyseventeen/assets/css/ie9.css src/wp-content/themes/twentyseventeen/assets/css/ie9.css
index 24c8905..9f8f766 100644
|
|
|
Description: IE9 specific styles. |
| 4 | 4 | */ |
| 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-image img, |
| 12 | | .has-header-image .custom-header-image video, |
| 13 | | .has-header-image .custom-header-image iframe { |
| | 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 | } |
| 16 | 18 | |
| 17 | 19 | @media screen and (min-width: 30em) { |
| 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; |
| 25 | 29 | } |
| … |
… |
Description: IE9 specific styles. |
| 28 | 32 | @media screen and (min-width: 48em) { |
| 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; |
| 36 | 42 | } |
diff --git src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js src/wp-content/themes/twentyseventeen/assets/js/customize-preview.js
index 651e034..11c9ed4 100644
|
|
|
|
| 123 | 123 | $.each( [ 'external_header_video', 'header_image', 'header_video' ], function( index, settingId ) { |
| 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 | 130 | } |
| | 131 | |
| | 132 | if ( ! hasHeaderVideo() ) { |
| | 133 | $( document.body ).removeClass( 'has-header-video' ); |
| | 134 | } |
| 131 | 135 | } ); |
| 132 | 136 | } ); |
| 133 | 137 | } ); |
diff --git src/wp-content/themes/twentyseventeen/assets/js/global.js src/wp-content/themes/twentyseventeen/assets/js/global.js
index cb8a6ec..6e2f429 100644
|
|
|
|
| 4 | 4 | // Variables and DOM Caching. |
| 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' ), |
| 10 | 9 | $navWrap = $navigation.find( '.wrap' ), |
| … |
… |
|
| 64 | 63 | // Make sure the nav isn't taller than two rows. |
| 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 { |
| 71 | 70 | headerOffset = $customHeader.innerHeight(); |
| … |
… |
|
| 242 | 241 | setTimeout( adjustHeaderHeight, 1000 ); |
| 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 ); |
diff --git src/wp-content/themes/twentyseventeen/inc/color-patterns.php src/wp-content/themes/twentyseventeen/inc/color-patterns.php
index a59e644..bd261ef 100644
|
|
|
body.colors-custom, |
| 443 | 443 | .colors-custom .next.page-numbers:focus, |
| 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 | } |
| 450 | 453 | |
diff --git src/wp-content/themes/twentyseventeen/inc/template-functions.php src/wp-content/themes/twentyseventeen/inc/template-functions.php
index 4479f37..6b136c4 100644
|
|
|
function twentyseventeen_body_classes( $classes ) { |
| 35 | 35 | } |
| 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 | } |
| 41 | 41 | |
diff --git src/wp-content/themes/twentyseventeen/style.css src/wp-content/themes/twentyseventeen/style.css
index 8b0e4fa..2c32319 100644
|
|
|
body { |
| 1581 | 1581 | } |
| 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 | } |
| 1587 | 1589 | |
| … |
… |
body.has-header-image .site-title a { |
| 1592 | 1594 | margin-bottom: 0; |
| 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; |
| 1598 | 1601 | } |
| … |
… |
body.has-header-image .site-description { |
| 1610 | 1613 | width: auto; |
| 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%; |
| 1616 | 1620 | } |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1630 | 1634 | } |
| 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; |
| 1636 | 1642 | height: 75vh; |
| 1637 | 1643 | width: 100%; |
| 1638 | 1644 | } |
| 1639 | 1645 | |
| 1640 | | .custom-header-image { |
| | 1646 | .custom-header-media { |
| 1641 | 1647 | bottom: 0; |
| 1642 | 1648 | left: 0; |
| 1643 | 1649 | overflow: hidden; |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1647 | 1653 | width: 100%; |
| 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 */ |
| 1653 | 1659 | background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%); /* Chrome10-25,Safari5.1-6 */ |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1663 | 1669 | z-index: 2; |
| 1664 | 1670 | } |
| 1665 | 1671 | |
| 1666 | | .has-header-image .custom-header-image img, |
| 1667 | | .has-header-image .custom-header-image video, |
| 1668 | | .has-header-image .custom-header-image iframe { |
| | 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; |
| 1671 | 1677 | left: 50%; |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1708 | 1714 | top: 62px; |
| 1709 | 1715 | } |
| 1710 | 1716 | |
| 1711 | | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-image img { |
| | 1717 | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img { |
| 1712 | 1718 | bottom: 0; |
| 1713 | 1719 | position: absolute; |
| 1714 | 1720 | top: auto; |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1720 | 1726 | |
| 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%; |
| 1731 | 1739 | vertical-align: bottom; |
| … |
… |
object { |
| 3275 | 3283 | } |
| 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; |
| 3281 | 3291 | left: 0; |
| … |
… |
object { |
| 3286 | 3296 | } |
| 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; |
| 3308 | 3323 | left: 0; |
| … |
… |
object { |
| 3316 | 3331 | } |
| 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 | } |
| 3326 | 3343 | |
| … |
… |
object { |
| 3582 | 3599 | /* Front Page */ |
| 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; |
| 3593 | 3614 | max-height: 100%; |
| 3594 | 3615 | overflow: hidden; |
| 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 | } |
| 3606 | 3631 | |
| … |
… |
object { |
| 4114 | 4139 | padding: 0; |
| 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 | } |
| 4125 | 4152 | |
| … |
… |
object { |
| 4158 | 4185 | a, |
| 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 | } |
| 4164 | 4193 | |
| … |
… |
object { |
| 4167 | 4196 | blockquote, |
| 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 { |
| 4172 | 4202 | color: #777 !important; /* Make sure color schemes don't affect to print */ |
diff --git src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php
index 3f13048..390debc 100644
|
|
|
|
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | | * Displays header image |
| | 3 | * Displays header media |
| 4 | 4 | * |
| 5 | 5 | * @package WordPress |
| 6 | 6 | * @subpackage Twenty_Seventeen |
| … |
… |
|
| 11 | 11 | ?> |
| 12 | 12 | <div class="custom-header"> |
| 13 | 13 | |
| 14 | | <?php if ( has_custom_header() ) : ?> |
| 15 | | <div class="custom-header-image"> |
| | 14 | <div class="custom-header-media"> |
| 16 | 15 | <?php the_custom_header_markup(); ?> |
| 17 | 16 | </div> |
| 18 | | <?php endif; ?> |
| 19 | 17 | |
| 20 | 18 | <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> |
| 21 | 19 | |