diff --git src/wp-content/themes/twentyseventeen/assets/css/ie8.css src/wp-content/themes/twentyseventeen/assets/css/ie8.css
index 83342ba..624687b 100644
|
|
|
img { |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | .has-header-image.twentyseventeen-front-page .custom-header, |
| 64 | | .has-header-image.home.blog .custom-header { |
| | 64 | .has-header-video.twentyseventeen-front-page .custom-header, |
| | 65 | .has-header-image.home.blog .custom-header, |
| | 66 | .has-header-video.home.blog .custom-header { |
| 65 | 67 | display: block; |
| 66 | 68 | } |
| 67 | 69 | |
| 68 | | .custom-header-image { |
| | 70 | .custom-header-media { |
| 69 | 71 | background-position: bottom center; |
| 70 | 72 | } |
| 71 | 73 | |
| … |
… |
img { |
| 74 | 76 | } |
| 75 | 77 | |
| 76 | 78 | .has-header-image.twentyseventeen-front-page .site-branding, |
| 77 | | .has-header-image.home.blog .site-branding { |
| | 79 | .has-header-video.twentyseventeen-front-page .site-branding, |
| | 80 | .has-header-image.home.blog .site-branding, |
| | 81 | .has-header-video.home.blog .site-branding { |
| 78 | 82 | bottom: 0; |
| 79 | 83 | display: block; |
| 80 | 84 | left: 0; |
| … |
… |
img { |
| 84 | 88 | width: 100%; |
| 85 | 89 | } |
| 86 | 90 | |
| 87 | | .has-header-image .custom-header-image img, |
| 88 | | .has-header-image .custom-header-image video { |
| | 91 | .has-header-image .custom-header-media img, |
| | 92 | .has-header-video .custom-header-media video { |
| 89 | 93 | left: 0; |
| 90 | 94 | top: 0; |
| 91 | 95 | } |
| … |
… |
img { |
| 135 | 139 | /* Front Page */ |
| 136 | 140 | |
| 137 | 141 | .twentyseventeen-front-page.has-header-image .custom-header, |
| | 142 | .twentyseventeen-front-page.has-header-video .custom-header, |
| 138 | 143 | .blog.home.has-header-image .custom-header, |
| | 144 | .blog.home.has-header-video .custom-header, |
| 139 | 145 | .panel-image { |
| 140 | 146 | height: 800px; |
| 141 | 147 | max-height: 800px; |
| 142 | 148 | padding-top: 0; |
| 143 | 149 | } |
| 144 | 150 | |
| 145 | | .twentyseventeen-front-page .custom-header-image, |
| 146 | | .blog.home .custom-header-image { |
| | 151 | .twentyseventeen-front-page .custom-header-media, |
| | 152 | .blog.home .custom-header-media { |
| 147 | 153 | background-position: center center; |
| 148 | 154 | } |
| 149 | 155 | |
| 150 | 156 | .twentyseventeen-front-page.has-header-image .site-branding, |
| 151 | | .home.blog.has-header-image .site-branding { |
| | 157 | .twentyseventeen-front-page.has-header-video .site-branding, |
| | 158 | .home.blog.has-header-image .site-branding, |
| | 159 | .home.blog.has-header-video .site-branding { |
| 152 | 160 | bottom: 20px; |
| 153 | 161 | position: absolute; |
| 154 | 162 | width: 100%; |
| … |
… |
ol.children .children { |
| 210 | 218 | /* RTL Styles */ |
| 211 | 219 | |
| 212 | 220 | .rtl .has-header-image.twentyseventeen-front-page .site-branding, |
| 213 | | .rtl .has-header-image.home.blog .site-branding { |
| | 221 | .rtl .has-header-video.twentyseventeen-front-page .site-branding, |
| | 222 | .rtl .has-header-image.home.blog .site-branding, |
| | 223 | .rtl .has-header-video.home.blog .site-branding { |
| 214 | 224 | left: auto; |
| 215 | 225 | right: 0; |
| 216 | 226 | } |
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..9105c0a 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 ).addClass( 'has-header-video' ); |
| | 134 | } else { |
| | 135 | $( document.body ).removeClass( 'has-header-video' ); |
| | 136 | } |
| 131 | 137 | } ); |
| 132 | 138 | } ); |
| 133 | 139 | } ); |
diff --git src/wp-content/themes/twentyseventeen/assets/js/global.js src/wp-content/themes/twentyseventeen/assets/js/global.js
index cb8a6ec..cf1b3a5 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' ), |
| | 7 | $customHeaderMedia = $customHeader.find( '.custom-header-media' ), |
| 8 | 8 | $branding = $customHeader.find( '.site-branding' ), |
| 9 | 9 | $navigation = $body.find( '.navigation-top' ), |
| 10 | 10 | $navWrap = $navigation.find( '.wrap' ), |
| … |
… |
|
| 65 | 65 | if ( navIsNotTooTall ) { |
| 66 | 66 | |
| 67 | 67 | // When there's a custom header image, the header offset includes the height of the navigation. |
| 68 | | if ( isFrontPage && $customHeaderImage.length ) { |
| | 68 | if ( isFrontPage && $customHeaderMedia.length ) { |
| 69 | 69 | headerOffset = $customHeader.innerHeight() - navigationOuterHeight; |
| 70 | 70 | } else { |
| 71 | 71 | headerOffset = $customHeader.innerHeight(); |
| … |
… |
|
| 242 | 242 | setTimeout( adjustHeaderHeight, 1000 ); |
| 243 | 243 | }); |
| 244 | 244 | |
| | 245 | // Add header video class after the video is loaded. |
| | 246 | $( document ).on( 'wp-custom-header-video-loaded', function() { |
| | 247 | $body.addClass( 'has-header-video' ); |
| | 248 | }); |
| | 249 | |
| 245 | 250 | })( jQuery ); |
diff --git src/wp-content/themes/twentyseventeen/inc/color-patterns.php src/wp-content/themes/twentyseventeen/inc/color-patterns.php
index c3913e1..f1ae457 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 0f17b19..f9e5a8e 100644
|
|
|
body { |
| 1580 | 1580 | } |
| 1581 | 1581 | |
| 1582 | 1582 | body.has-header-image .site-title, |
| 1583 | | body.has-header-image .site-title a { |
| | 1583 | body.has-header-video .site-title, |
| | 1584 | body.has-header-image .site-title a, |
| | 1585 | body.has-header-video .site-title a { |
| 1584 | 1586 | color: #fff; |
| 1585 | 1587 | } |
| 1586 | 1588 | |
| … |
… |
body.has-header-image .site-title a { |
| 1591 | 1593 | margin-bottom: 0; |
| 1592 | 1594 | } |
| 1593 | 1595 | |
| 1594 | | body.has-header-image .site-description { |
| | 1596 | body.has-header-image .site-description, |
| | 1597 | body.has-header-video .site-description { |
| 1595 | 1598 | color: #fff; |
| 1596 | 1599 | opacity: 0.8; |
| 1597 | 1600 | } |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1629 | 1632 | } |
| 1630 | 1633 | |
| 1631 | 1634 | .has-header-image.twentyseventeen-front-page .custom-header, |
| 1632 | | .has-header-image.home.blog .custom-header { |
| | 1635 | .has-header-video.twentyseventeen-front-page .custom-header, |
| | 1636 | .has-header-image.home.blog .custom-header, |
| | 1637 | .has-header-video.home.blog .custom-header { |
| 1633 | 1638 | display: table; |
| 1634 | 1639 | height: 300px; |
| 1635 | 1640 | height: 75vh; |
| 1636 | 1641 | width: 100%; |
| 1637 | 1642 | } |
| 1638 | 1643 | |
| 1639 | | .custom-header-image { |
| | 1644 | .custom-header-media { |
| 1640 | 1645 | bottom: 0; |
| 1641 | 1646 | left: 0; |
| 1642 | 1647 | overflow: hidden; |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1646 | 1651 | width: 100%; |
| 1647 | 1652 | } |
| 1648 | 1653 | |
| 1649 | | .custom-header-image:before { |
| | 1654 | .custom-header-media:before { |
| 1650 | 1655 | /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.3+75 */ |
| 1651 | 1656 | 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 */ |
| 1652 | 1657 | 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 { |
| 1662 | 1667 | z-index: 2; |
| 1663 | 1668 | } |
| 1664 | 1669 | |
| 1665 | | .has-header-image .custom-header-image img, |
| 1666 | | .has-header-image .custom-header-image video, |
| 1667 | | .has-header-image .custom-header-image iframe { |
| | 1670 | .has-header-image .custom-header-media img, |
| | 1671 | .has-header-video .custom-header-media video, |
| | 1672 | .has-header-video .custom-header-media iframe { |
| 1668 | 1673 | position: fixed; |
| 1669 | 1674 | height: auto; |
| 1670 | 1675 | left: 50%; |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1707 | 1712 | top: 62px; |
| 1708 | 1713 | } |
| 1709 | 1714 | |
| 1710 | | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-image img { |
| | 1715 | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img { |
| 1711 | 1716 | bottom: 0; |
| 1712 | 1717 | position: absolute; |
| 1713 | 1718 | top: auto; |
| … |
… |
body:not(.title-tagline-hidden) .site-branding-text { |
| 1719 | 1724 | |
| 1720 | 1725 | /* Hides div in Customizer preview when header images or videos change. */ |
| 1721 | 1726 | |
| 1722 | | body:not(.has-header-image) .custom-header-image { |
| | 1727 | body:not(.has-header-image):not(.has-header-video) .custom-header-media { |
| 1723 | 1728 | display: none; |
| 1724 | 1729 | } |
| 1725 | 1730 | |
| 1726 | 1731 | .has-header-image.twentyseventeen-front-page .site-branding, |
| 1727 | | .has-header-image.home.blog .site-branding { |
| | 1732 | .has-header-video.twentyseventeen-front-page .site-branding, |
| | 1733 | .has-header-image.home.blog .site-branding, |
| | 1734 | .has-header-video.home.blog .site-branding { |
| 1728 | 1735 | display: table-cell; |
| 1729 | 1736 | height: 100%; |
| 1730 | 1737 | vertical-align: bottom; |
| … |
… |
object { |
| 3270 | 3277 | } |
| 3271 | 3278 | |
| 3272 | 3279 | .has-header-image.twentyseventeen-front-page .site-branding, |
| 3273 | | .has-header-image.home.blog .site-branding { |
| | 3280 | .has-header-video.twentyseventeen-front-page .site-branding, |
| | 3281 | .has-header-image.home.blog .site-branding, |
| | 3282 | .has-header-video.home.blog .site-branding { |
| 3274 | 3283 | bottom: 0; |
| 3275 | 3284 | display: block; |
| 3276 | 3285 | left: 0; |
| … |
… |
object { |
| 3281 | 3290 | } |
| 3282 | 3291 | |
| 3283 | 3292 | .has-header-image.twentyseventeen-front-page .custom-header, |
| 3284 | | .has-header-image.home.blog .custom-header { |
| | 3293 | .has-header-video.twentyseventeen-front-page .custom-header, |
| | 3294 | .has-header-image.home.blog .custom-header, |
| | 3295 | .has-header-video.home.blog .custom-header { |
| 3285 | 3296 | display: block; |
| 3286 | 3297 | height: auto; |
| 3287 | 3298 | } |
| 3288 | 3299 | |
| 3289 | | .custom-header-image { |
| | 3300 | .custom-header-media { |
| 3290 | 3301 | height: 165px; |
| 3291 | 3302 | position: relative; |
| 3292 | 3303 | } |
| 3293 | 3304 | |
| 3294 | | .twentyseventeen-front-page.has-header-image .custom-header-image, |
| 3295 | | .home.blog.has-header-image .custom-header-image { |
| | 3305 | .twentyseventeen-front-page.has-header-image .custom-header-media, |
| | 3306 | .twentyseventeen-front-page.has-header-video .custom-header-media, |
| | 3307 | .home.blog.has-header-image .custom-header-media, |
| | 3308 | .home.blog.has-header-video .custom-header-media { |
| 3296 | 3309 | height: 0; |
| 3297 | 3310 | position: relative; |
| 3298 | 3311 | } |
| 3299 | 3312 | |
| 3300 | | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-image { |
| | 3313 | .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media, |
| | 3314 | .has-header-video:not(.twentyseventeen-front-page):not(.home) .custom-header-media { |
| 3301 | 3315 | bottom: 0; |
| 3302 | 3316 | height: auto; |
| 3303 | 3317 | left: 0; |
| … |
… |
object { |
| 3577 | 3591 | /* Front Page */ |
| 3578 | 3592 | |
| 3579 | 3593 | .twentyseventeen-front-page.has-header-image .site-branding, |
| 3580 | | .home.blog.has-header-image .site-branding { |
| | 3594 | .twentyseventeen-front-page.has-header-video .site-branding, |
| | 3595 | .home.blog.has-header-image .site-branding, |
| | 3596 | .home.blog.has-header-video .site-branding { |
| 3581 | 3597 | margin-bottom: 70px; |
| 3582 | 3598 | } |
| 3583 | 3599 | |
| 3584 | | .twentyseventeen-front-page.has-header-image .custom-header-image, |
| 3585 | | .home.blog.has-header-image .custom-header-image { |
| | 3600 | .twentyseventeen-front-page.has-header-image .custom-header-media, |
| | 3601 | .twentyseventeen-front-page.has-header-video .custom-header-media, |
| | 3602 | .home.blog.has-header-image .custom-header-media, |
| | 3603 | .home.blog.has-header-image .custom-header-video { |
| 3586 | 3604 | height: 1200px; |
| 3587 | 3605 | height: 100vh; |
| 3588 | 3606 | max-height: 100%; |
| 3589 | 3607 | overflow: hidden; |
| 3590 | 3608 | } |
| 3591 | 3609 | |
| 3592 | | .twentyseventeen-front-page.has-header-image .custom-header-image:before, |
| 3593 | | .home.blog.has-header-image .custom-header-image:before { |
| | 3610 | .twentyseventeen-front-page.has-header-image .custom-header-media:before, |
| | 3611 | .twentyseventeen-front-page.has-header-image .custom-header-video:before, |
| | 3612 | .home.blog.has-header-image .custom-header-media:before, |
| | 3613 | .home.blog.has-header-image .custom-header-video:before { |
| 3594 | 3614 | height: 33%; |
| 3595 | 3615 | } |
| 3596 | 3616 | |
| 3597 | | .admin-bar.twentyseventeen-front-page.has-header-image .custom-header-image, |
| 3598 | | .admin-bar.home.blog.has-header-image .custom-header-image { |
| | 3617 | .admin-bar.twentyseventeen-front-page.has-header-image .custom-header-media, |
| | 3618 | .admin-bar.twentyseventeen-front-page.has-header-video .custom-header-media, |
| | 3619 | .admin-bar.home.blog.has-header-image .custom-header-media, |
| | 3620 | .admin-bar.home.blog.has-header-video .custom-header-media { |
| 3599 | 3621 | height: calc(100vh - 32px); |
| 3600 | 3622 | } |
| 3601 | 3623 | |
| … |
… |
object { |
| 4105 | 4127 | padding: 0; |
| 4106 | 4128 | } |
| 4107 | 4129 | |
| 4108 | | .custom-header-image { |
| | 4130 | .custom-header-media { |
| 4109 | 4131 | padding: 0; |
| 4110 | 4132 | } |
| 4111 | 4133 | |
| 4112 | 4134 | .twentyseventeen-front-page.has-header-image .site-branding, |
| 4113 | | .home.blog.has-header-image .site-branding { |
| | 4135 | .twentyseventeen-front-page.has-header-video .site-branding, |
| | 4136 | .home.blog.has-header-image .site-branding, |
| | 4137 | .home.blog.has-header-video .site-branding { |
| 4114 | 4138 | position: relative; |
| 4115 | 4139 | } |
| 4116 | 4140 | |
| … |
… |
object { |
| 4149 | 4173 | a, |
| 4150 | 4174 | .site-title a, |
| 4151 | 4175 | .twentyseventeen-front-page.has-header-image .site-title, |
| 4152 | | .twentyseventeen-front-page.has-header-image .site-title a { |
| | 4176 | .twentyseventeen-front-page.has-header-video .site-title, |
| | 4177 | .twentyseventeen-front-page.has-header-image .site-title a, |
| | 4178 | .twentyseventeen-front-page.has-header-video .site-title a { |
| 4153 | 4179 | color: #222 !important; /* Make sure color schemes don't affect to print */ |
| 4154 | 4180 | } |
| 4155 | 4181 | |
| … |
… |
object { |
| 4158 | 4184 | blockquote, |
| 4159 | 4185 | .site-description, |
| 4160 | 4186 | .twentyseventeen-front-page.has-header-image .site-description, |
| | 4187 | .twentyseventeen-front-page.has-header-video .site-description, |
| 4161 | 4188 | .entry-meta, |
| 4162 | 4189 | .entry-meta a { |
| 4163 | 4190 | 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 5dea9d8..57f043f 100644
|
|
|
|
| 11 | 11 | ?> |
| 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> |
| 17 | 17 | |