~canonical-sysadmins/wordpress/4.8.3

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyfifteen/inc/custom-header.php

  • Committer: Ryan Finnie
  • Date: 2015-08-31 16:09:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: ryan.finnie@canonical.com-20150831160947-1h6rfxby9z1ec62u
Merge WP4.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
                if ( ! empty( $header_image ) ) :
134
134
        ?>
135
135
                .site-header {
136
 
                        background: url(<?php header_image(); ?>) no-repeat 50% 50%;
 
136
 
 
137
                        /*
 
138
                         * No shorthand so the Customizer can override individual properties.
 
139
                         * @see https://core.trac.wordpress.org/ticket/31460
 
140
                         */
 
141
                        background-image: url(<?php header_image(); ?>);
 
142
                        background-repeat: no-repeat;
 
143
                        background-position: 50% 50%;
137
144
                        -webkit-background-size: cover;
138
145
                        -moz-background-size:    cover;
139
146
                        -o-background-size:      cover;
142
149
 
143
150
                @media screen and (min-width: 59.6875em) {
144
151
                        body:before {
145
 
                                background: url(<?php header_image(); ?>) no-repeat 100% 50%;
 
152
 
 
153
                                /*
 
154
                                 * No shorthand so the Customizer can override individual properties.
 
155
                                 * @see https://core.trac.wordpress.org/ticket/31460
 
156
                                 */
 
157
                                background-image: url(<?php header_image(); ?>);
 
158
                                background-repeat: no-repeat;
 
159
                                background-position: 100% 50%;
146
160
                                -webkit-background-size: cover;
147
161
                                -moz-background-size:    cover;
148
162
                                -o-background-size:      cover;