diff --git a/src/wp-content/themes/twentysixteen/css/ie.css b/src/wp-content/themes/twentysixteen/css/ie.css index 6aa093a2cbb96..e57ea641187b2 100644 --- a/src/wp-content/themes/twentysixteen/css/ie.css +++ b/src/wp-content/themes/twentysixteen/css/ie.css @@ -1,48 +1 @@ -/* -Theme Name: Twenty Sixteen -Description: Global Styles for older IE versions (previous to IE10). -*/ - -.site-header-main:before, -.site-header-main:after, -.site-footer:before, -.site-footer:after { - content: ""; - display: table; -} - -.site-header-main:after, -.site-footer:after { - clear: both; -} - -@media screen and (min-width: 56.875em) { - .site-branding, - .site-info { - float: left; - } - - .site-header-menu, - .site-footer .social-navigation { - float: right; - } - - .site-footer .social-navigation { - margin-left: 7px; - } - - .rtl .site-branding, - .rtl .site-info { - float: right; - } - - .rtl .site-header-menu, - .rtl .site-footer .social-navigation { - float: left; - } - - .rtl .site-footer .social-navigation { - margin-right: 7px; - margin-left: 0; - } -} +/* This theme does not support Internet Explorer since version 3.7. */ diff --git a/src/wp-content/themes/twentysixteen/css/ie7.css b/src/wp-content/themes/twentysixteen/css/ie7.css index 6f9ec28aad985..e57ea641187b2 100644 --- a/src/wp-content/themes/twentysixteen/css/ie7.css +++ b/src/wp-content/themes/twentysixteen/css/ie7.css @@ -1,176 +1 @@ -/* -Theme Name: Twenty Sixteen -Description: IE7 specific style. -*/ - -.site-inner { - max-width: 656px; -} - -.post-navigation, -.pagination, -.image-navigation, -.entry-header, -.entry-summary, -.entry-content, -.entry-footer, -.page-header, -.page-content, -.post-thumbnail, -.content-bottom-widgets, -.comments-area { - margin-right: 28px; - margin-left: 28px; - max-width: 100%; -} - -.site-header, -.sidebar, -.site-footer, -.widecolumn { - padding-right: 28px; - padding-left: 28px; -} - -.search-submit { - height: auto; - margin-top: 28px; - padding: 15px 0 8px; - position: relative; - width: auto; -} - -.search-submit .screen-reader-text { - height: auto; - position: relative !important; - width: auto; -} - -.image-navigation .nav-previous, -.image-navigation .nav-next, -.comment-navigation .nav-previous, -.comment-navigation .nav-next { - *display: inline; - zoom: 1; -} - -.image-navigation .nav-previous + .nav-next, -.comment-navigation .nav-previous + .nav-next { - margin-left: 14px; -} - -.pagination .nav-links { - padding: 0; -} - -.pagination .page-numbers { - line-height: 1; - margin: -4px 14px 0; - padding: 18px 0; -} - -.pagination .prev, -.pagination .next { - display: inline-block; - font-size: 16px; - font-weight: 700; - height: auto; - left: 0; - line-height: 1; - margin: 0; - padding: 18px 14px; - position: relative; - right: 0; - text-transform: none; - width: auto; -} - -.dropdown-toggle { - display: none; -} - -.main-navigation ul ul { - display: block; -} - -.social-navigation { - margin-top: 1.75em; -} - -.social-navigation a { - height: auto; - padding: 3px 7px; - width: auto; -} - -.social-navigation .screen-reader-text { - height: auto; - position: relative !important; - width: auto; -} - -.site-header-main { - overflow : hidden; - zoom : 1; -} - -.entry-footer > span { - margin-right: 14px; -} - -.site-info .site-title { - font-size: 13px; - margin-right: 14px; -} - -.gallery-item { - max-width: 30%; -} - -.gallery-columns-1 .gallery-item { - max-width: 100%; -} - -.gallery-columns-2 .gallery-item { - max-width: 46%; -} - -.gallery-columns-4 .gallery-item { - max-width: 22%; -} - -.gallery-columns-5 .gallery-item { - max-width: 17%; -} - -.gallery-columns-6 .gallery-item { - max-width: 13.5%; -} - -.gallery-columns-7 .gallery-item { - max-width: 11%; -} - -.gallery-columns-8 .gallery-item { - max-width: 9.5%; -} - -.gallery-columns-9 .gallery-item { - max-width: 8%; -} - -.rtl .image-navigation .nav-previous + .nav-next, -.rtl .comment-navigation .nav-previous + .nav-next { - margin-right: 14px; - margin-left: 0; -} - -.rtl .entry-footer > span { - margin-right: 14px; - margin-left: 0; -} - -.rtl .site-info .site-title { - margin-right: 0; - margin-left: 14px; -} +/* This theme does not support Internet Explorer since version 3.7. */ diff --git a/src/wp-content/themes/twentysixteen/css/ie8.css b/src/wp-content/themes/twentysixteen/css/ie8.css index 1b07fe8938602..e57ea641187b2 100644 --- a/src/wp-content/themes/twentysixteen/css/ie8.css +++ b/src/wp-content/themes/twentysixteen/css/ie8.css @@ -1,222 +1 @@ -/* -Theme Name: Twenty Sixteen -Description: IE8 specific style. -*/ - -code { - background-color: transparent; - padding: 0; -} - -.entry-content a, -.entry-summary a, -.taxonomy-description a, -.logged-in-as a, -.comment-content a, -.pingback .comment-body > a, -.textwidget a, -.entry-footer a:hover, -.site-info a:hover { - text-decoration: underline; -} - -.entry-content a:hover, -.entry-content a:focus, -.entry-summary a:hover, -.entry-summary a:focus, -.taxonomy-description a:hover, -.taxonomy-description a:focus, -.logged-in-as a:hover, -.logged-in-as a:focus, -.comment-content a:hover, -.comment-content a:focus, -.pingback .comment-body > a:hover, -.pingback .comment-body > a:focus, -.textwidget a:hover, -.textwidget a:focus, -.entry-content .wp-audio-shortcode a, -.entry-content .wp-playlist a, -.page-links a { - text-decoration: none; -} - -.site { - margin: 21px; -} - -.site-inner { - max-width: 710px; -} - -.site-header { - padding-top: 3.9375em; - padding-bottom: 3.9375em; -} - -.site-branding { - float: left; - margin-top: 1.3125em; - margin-bottom: 1.3125em; -} - -.site-title { - font-size: 28px; - line-height: 1.25; -} - -.site-description { - display: block; -} - -.menu-toggle { - float: right; - font-size: 16px; - margin: 1.3125em 0; - padding: 0.8125em 0.875em 0.6875em; -} - -.site-header-menu { - clear: both; - margin: 0; - padding: 1.3125em 0; -} - -.site-header .main-navigation + .social-navigation { - margin-top: 2.625em; -} - -.header-image { - margin: 1.3125em 0; -} - -.site-main { - margin-bottom: 5.25em; -} - -.post-navigation { - margin-bottom: 5.25em; -} - -.post-navigation .post-title { - font-size: 28px; - line-height: 1.25; -} - -.pagination { - margin: 0 7.6923% 4.421052632em; -} - -.pagination .nav-links:before, -.pagination .nav-links:after { - display: none; -} - -/* restore screen-reader-text */ -.pagination .current .screen-reader-text { - position: absolute !important; -} - -.pagination .page-numbers { - display: inline-block; - font-weight: 400; -} - -.image-navigation .nav-previous, -.image-navigation .nav-next, -.comment-navigation .nav-previous, -.comment-navigation .nav-next { - display: inline-block; -} - -.image-navigation .nav-previous + .nav-next:before, -.comment-navigation .nav-previous + .nav-next:before { - content: "\002f"; - display: inline-block; - filter: alpha(opacity=70); - padding: 0 0.538461538em; -} - -.site-main > article { - margin-bottom: 5.25em; -} - -.entry-title { - font-size: 33px; - line-height: 1.2727272727; - margin-bottom: 0.8484848485em; -} - -.entry-content blockquote.alignleft, -.entry-content blockquote.alignright { - border-width: 4px 0 0 0; - padding: 0.9473684211em 0 0; - width: 50%; -} - -.entry-footer > span:after { - content: "\002f"; - display: inline-block; - filter: alpha(opacity=70); - padding: 0 0.538461538em; -} - -.updated { - display: none; -} - -.updated.published { - display: inline; -} - -.comment-author { - margin-bottom: 0; -} - -.comment-author .avatar { - height: 42px; - position: relative; - top: 0.25em; - width: 42px; -} - -.comment-list .children > li { - padding-left: 1.75em; -} - -.comment-list + .comment-respond, -.comment-navigation + .comment-respond { - padding-top: 3.5em; -} - -.comment-reply-link { - margin-top: 0; -} - -.comments-area, -.widget, -.content-bottom-widgets .widget-area { - margin-bottom: 5.25em; -} - -.sidebar, -.widecolumn { - margin-bottom: 5.25em; -} - -.site-footer .main-navigation, -.site-footer .social-navigation { - display: none; -} - -.rtl .site-branding { - float: right; -} - -.rtl .menu-toggle { - float: left; -} - -.rtl .comment-list .children > li { - padding-right: 1.75em; - padding-left: 0; -} +/* This theme does not support Internet Explorer since version 3.7. */ diff --git a/src/wp-content/themes/twentysixteen/functions.php b/src/wp-content/themes/twentysixteen/functions.php index 0cf65cd55ca96..6a4b982802b54 100644 --- a/src/wp-content/themes/twentysixteen/functions.php +++ b/src/wp-content/themes/twentysixteen/functions.php @@ -403,23 +403,11 @@ function twentysixteen_scripts() { // Theme block stylesheet. wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20240817' ); - // Load the Internet Explorer specific stylesheet. - wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20170530' ); - wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' ); - - // Load the Internet Explorer 8 specific stylesheet. - wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20170530' ); - wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' ); - - // Load the Internet Explorer 7 specific stylesheet. - wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20170530' ); - wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' ); - - // Load the html5 shiv. - wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' ); - wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' ); - - // Skip-link fix is no longer enqueued by default. + // Register handles for removed stylesheets and scripts. + wp_register_style( 'twentysixteen-ie', false, array( 'twentysixteen-style' ) ); + wp_register_style( 'twentysixteen-ie8', false, array( 'twentysixteen-style' ) ); + wp_register_style( 'twentysixteen-ie7', false, array( 'twentysixteen-style' ) ); + wp_register_script( 'twentysixteen-html5', false ); wp_register_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', array( 'in_footer' => true ) ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { diff --git a/src/wp-content/themes/twentysixteen/inc/customizer.php b/src/wp-content/themes/twentysixteen/inc/customizer.php index dac588120daaf..ffe604de87028 100644 --- a/src/wp-content/themes/twentysixteen/inc/customizer.php +++ b/src/wp-content/themes/twentysixteen/inc/customizer.php @@ -791,13 +791,11 @@ function twentysixteen_get_color_scheme_css( $colors ) { .comment-reply-link, .no-comments, .widecolumn .mu_register .mu_alert { - border-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */ border-color: {$colors['border_color']}; } hr, code { - background-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */ background-color: {$colors['border_color']}; } @@ -1089,7 +1087,7 @@ function twentysixteen_main_text_color_css() { .comment-author, .comment-reply-title small a:hover, .comment-reply-title small a:focus { - color: %1$s + color: %1$s; } blockquote, @@ -1169,13 +1167,11 @@ function twentysixteen_main_text_color_css() { .comment-reply-link, .no-comments, .widecolumn .mu_register .mu_alert { - border-color: %1$s; /* Fallback for IE7 and IE8 */ border-color: %2$s; } hr, code { - background-color: %1$s; /* Fallback for IE7 and IE8 */ background-color: %2$s; } diff --git a/src/wp-content/themes/twentysixteen/js/html5.js b/src/wp-content/themes/twentysixteen/js/html5.js index 9c1f049556e95..413ba806dbc7c 100644 --- a/src/wp-content/themes/twentysixteen/js/html5.js +++ b/src/wp-content/themes/twentysixteen/js/html5.js @@ -1,326 +1 @@ -/** -* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -;(function(window, document) { -/*jshint evil:true */ - /** version */ - var version = '3.7.3'; - - /** Preset options */ - var options = window.html5 || {}; - - /** Used to skip problem elements */ - var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; - - /** Not all elements can be cloned in IE **/ - var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; - - /** Detect whether the browser supports default html5 styles */ - var supportsHtml5Styles; - - /** Name of the expando, to work with multiple documents or to re-shiv one document */ - var expando = '_html5shiv'; - - /** The id for the the documents expando */ - var expanID = 0; - - /** Cached data for each document */ - var expandoData = {}; - - /** Detect whether the browser supports unknown elements */ - var supportsUnknownElements; - - (function() { - try { - var a = document.createElement('a'); - a.innerHTML = ''; - //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles - supportsHtml5Styles = ('hidden' in a); - - supportsUnknownElements = a.childNodes.length == 1 || (function() { - // assign a false positive if unable to shiv - (document.createElement)('a'); - var frag = document.createDocumentFragment(); - return ( - typeof frag.cloneNode == 'undefined' || - typeof frag.createDocumentFragment == 'undefined' || - typeof frag.createElement == 'undefined' - ); - }()); - } catch(e) { - // assign a false positive if detection fails => unable to shiv - supportsHtml5Styles = true; - supportsUnknownElements = true; - } - - }()); - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a style sheet with the given CSS text and adds it to the document. - * @private - * @param {Document} ownerDocument The document. - * @param {String} cssText The CSS text. - * @returns {StyleSheet} The style element. - */ - function addStyleSheet(ownerDocument, cssText) { - var p = ownerDocument.createElement('p'), - parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; - - p.innerHTML = 'x'; - return parent.insertBefore(p.lastChild, parent.firstChild); - } - - /** - * Returns the value of `html5.elements` as an array. - * @private - * @returns {Array} An array of shived element node names. - */ - function getElements() { - var elements = html5.elements; - return typeof elements == 'string' ? elements.split(' ') : elements; - } - - /** - * Extends the built-in list of html5 elements - * @memberOf html5 - * @param {String|Array} newElements whitespace separated list or array of new element names to shiv - * @param {Document} ownerDocument The context document. - */ - function addElements(newElements, ownerDocument) { - var elements = html5.elements; - if(typeof elements != 'string'){ - elements = elements.join(' '); - } - if(typeof newElements != 'string'){ - newElements = newElements.join(' '); - } - html5.elements = elements +' '+ newElements; - shivDocument(ownerDocument); - } - - /** - * Returns the data associated to the given document - * @private - * @param {Document} ownerDocument The document. - * @returns {Object} An object of data. - */ - function getExpandoData(ownerDocument) { - var data = expandoData[ownerDocument[expando]]; - if (!data) { - data = {}; - expanID++; - ownerDocument[expando] = expanID; - expandoData[expanID] = data; - } - return data; - } - - /** - * returns a shived element for the given nodeName and document - * @memberOf html5 - * @param {String} nodeName name of the element - * @param {Document|DocumentFragment} ownerDocument The context document. - * @returns {Object} The shived element. - */ - function createElement(nodeName, ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createElement(nodeName); - } - if (!data) { - data = getExpandoData(ownerDocument); - } - var node; - - if (data.cache[nodeName]) { - node = data.cache[nodeName].cloneNode(); - } else if (saveClones.test(nodeName)) { - node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); - } else { - node = data.createElem(nodeName); - } - - // Avoid adding some elements to fragments in IE < 9 because - // * Attributes like `name` or `type` cannot be set/changed once an element - // is inserted into a document/fragment - // * Link elements with `src` attributes that are inaccessible, as with - // a 403 response, will cause the tab/window to crash - // * Script elements appended to fragments will execute when their `src` - // or `text` property is set - return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; - } - - /** - * returns a shived DocumentFragment for the given document - * @memberOf html5 - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived DocumentFragment. - */ - function createDocumentFragment(ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createDocumentFragment(); - } - data = data || getExpandoData(ownerDocument); - var clone = data.frag.cloneNode(), - i = 0, - elems = getElements(), - l = elems.length; - for(;i