WordPress/wp-content/themes/twentyseventeen/inc
Joe McGill e2b7762e9a Twenty Seventeen: Better handling of custom headers when no image is set.
This ensures that a standard header is shown on the front page whenever
a header video is set without a header image if the video doesn't load,
e.g., on mobile sizes or if the JS doesn't fire.

This adds a new class, `.has-header-video` that is added whenever the
`wp-custom-header-video-loaded` event is fired, which is then used to style
the custom headers along with `.has-header-image` whenever a header image
is available. This also changes the class name on the custom header media
wrapping `div` from `.custom-header-image` to `.custom-header-media`.

Props laurelfulford, joemcgill.
Fixes #38995.
Built from https://develop.svn.wordpress.org/trunk@39413


git-svn-id: http://core.svn.wordpress.org/trunk@39353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-02 05:12:41 +00:00
..
back-compat.php Importing Twenty Seventeen, our new default theme for 2017, set for 4.7. 2016-10-20 04:12:31 +00:00
color-patterns.php Twenty Seventeen: Better handling of custom headers when no image is set. 2016-12-02 05:12:41 +00:00
custom-header.php Twenty Seventeen: Make sure header text color is applied when color schemes are active. 2016-12-01 00:04:40 +00:00
customizer.php Customize: Use selective refresh for custom header changes when possible. 2016-11-14 18:41:32 +00:00
icon-functions.php Twenty Seventeen: Keyboard navigation on Safari 10 fix 2016-11-12 23:39:34 +00:00
template-functions.php Twenty Seventeen: Better handling of custom headers when no image is set. 2016-12-02 05:12:41 +00:00
template-tags.php Twenty Seventeen: Unifies the labels for front page sections 2016-11-02 19:09:32 +00:00