Changeset 43904
- Timestamp:
- 11/16/2018 12:13:32 AM (6 years ago)
- Location:
- branches/5.0/src/wp-content/themes/twentynineteen
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/inc/color-patterns.php
r43892 r43904 27 27 */ 28 28 29 $saturation = absint( apply_filters( 'twentynineteen_custom_colors_saturation', 100 ) ); 30 $saturation = $saturation . '%'; 31 32 $lightness = absint( apply_filters( 'twentynineteen_custom_colors_lightness', 33 ) ); 33 $lightness = $lightness . '%'; 34 35 $lightness_hover = absint( apply_filters( 'twentynineteen_custom_colors_lightness_hover', 23 ) ); 36 $lightness_hover = $lightness_hover . '%'; 37 38 $lightness_selection = absint( apply_filters( 'twentynineteen_custom_colors_lightness_selection', 90 ) ); 39 $lightness_selection = $lightness_selection . '%'; 29 $saturation = absint( apply_filters( 'twentynineteen_custom_colors_saturation', 100 ) ); 30 $saturation = $saturation . '%'; 31 32 $saturation_selection = absint( apply_filters( 'twentynineteen_custom_colors_saturation_selection', 50 ) ); 33 $saturation_selection = $saturation_selection . '%'; 34 35 $lightness = absint( apply_filters( 'twentynineteen_custom_colors_lightness', 33 ) ); 36 $lightness = $lightness . '%'; 37 38 $lightness_hover = absint( apply_filters( 'twentynineteen_custom_colors_lightness_hover', 23 ) ); 39 $lightness_hover = $lightness_hover . '%'; 40 41 $lightness_selection = absint( apply_filters( 'twentynineteen_custom_colors_lightness_selection', 90 ) ); 42 $lightness_selection = $lightness_selection . '%'; 40 43 41 44 $theme_css = ' … … 83 86 */ 84 87 a, 85 a: visited,88 a:not(.button):visited, 86 89 .main-navigation .main-menu > li, 87 90 .main-navigation ul.main-menu > li > a, … … 169 172 /* Text selection colors */ 170 173 ::selection { 171 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_selection . ' ); /* base: #005177; */174 background-color: hsl( ' . $primary_color . ', ' . $saturation_selection . ', ' . $lightness_selection . ' ); /* base: #005177; */ 172 175 } 173 176 ::-moz-selection { 174 background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_selection . ' ); /* base: #005177; */177 background-color: hsl( ' . $primary_color . ', ' . $saturation_selection . ', ' . $lightness_selection . ' ); /* base: #005177; */ 175 178 }'; 176 179 … … 187 190 .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color), 188 191 .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color), 189 .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color) { 192 .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color), 193 .editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink { 190 194 color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ 191 195 } … … 210 214 /* Hover colors */ 211 215 .editor-block-list__layout .editor-block-list__block a:hover, 212 .editor-block-list__layout .editor-block-list__block a:active { 216 .editor-block-list__layout .editor-block-list__block a:active, 217 .editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink:hover { 213 218 color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */ 214 219 } -
branches/5.0/src/wp-content/themes/twentynineteen/inc/template-functions.php
r43892 r43904 206 206 if ( 'menu-1' === $args->theme_location ) : 207 207 208 $nav_menu .= '<div class="main-menu-more" 208 $nav_menu .= '<div class="main-menu-more">'; 209 209 $nav_menu .= '<ul class="main-menu" tabindex="0">'; 210 210 $nav_menu .= '<li class="menu-item menu-item-has-children">'; 211 $nav_menu .= '<a href="#" class="screen-reader-text" aria-label="More" aria-haspopup="true" aria-expanded="false">' . esc_html ( 'More', 'twentynineteen' ) . '</a>';212 $nav_menu .= '<span class="submenu-expand main-menu-more-toggle " tabindex="-1">';211 $nav_menu .= '<a href="#" class="screen-reader-text" aria-label="More" aria-haspopup="true" aria-expanded="false">' . esc_html__( 'More', 'twentynineteen' ) . '</a>'; 212 $nav_menu .= '<span class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1">'; 213 213 $nav_menu .= twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' ); 214 214 $nav_menu .= '</span>'; 215 $nav_menu .= '<ul class="sub-menu hidden-links is-hidden">';215 $nav_menu .= '<ul class="sub-menu hidden-links">'; 216 216 $nav_menu .= '<li id="menu-item--1" class="mobile-parent-nav-menu-item menu-item--1">'; 217 $nav_menu .= '< a class="menu-item-link-return" id="menu-item-link-return-1877" href="#menu-item-link-1877" onclick="event.preventDefault();" tabindex="-1">';217 $nav_menu .= '<span class="menu-item-link-return">'; 218 218 $nav_menu .= twentynineteen_get_icon_svg( 'chevron_left' ); 219 219 $nav_menu .= esc_html__( 'Back', 'twentynineteen' ); 220 $nav_menu .= '</ a>';220 $nav_menu .= '</span>'; 221 221 $nav_menu .= '</li>'; 222 222 $nav_menu .= '</ul>'; -
branches/5.0/src/wp-content/themes/twentynineteen/js/priority-menu.js
r43892 r43904 1 1 (function() { 2 3 /** 4 * Debounce 5 * 6 * @param {Function} func 7 * @param {number} wait 8 * @param {boolean} immediate 9 */ 10 function debounce(func, wait, immediate) { 11 'use strict'; 12 13 var timeout; 14 wait = (typeof wait !== 'undefined') ? wait : 20; 15 immediate = (typeof immediate !== 'undefined') ? immediate : true; 16 17 return function() { 18 19 var context = this, args = arguments; 20 var later = function() { 21 timeout = null; 22 23 if (!immediate) { 24 func.apply(context, args); 25 } 26 }; 27 28 var callNow = immediate && !timeout; 29 30 clearTimeout(timeout); 31 timeout = setTimeout(later, wait); 32 33 if (callNow) { 34 func.apply(context, args); 35 } 36 }; 37 } 38 2 39 /** 3 40 * Prepends an element to a container. … … 19 56 * @param {Element} element 20 57 */ 21 function show Element(element) {58 function showButton(element) { 22 59 // classList.remove is not supported in IE11 23 element.className = element.className.replace('is- hidden', '');60 element.className = element.className.replace('is-empty', ''); 24 61 } 25 62 … … 29 66 * @param {Element} element 30 67 */ 31 function hide Element(element) {68 function hideButton(element) { 32 69 // classList.add is not supported in IE11 33 if (!element.classList.contains('is- hidden')) {34 element.className += ' is- hidden';70 if (!element.classList.contains('is-empty')) { 71 element.className += ' is-empty'; 35 72 } 36 73 } 37 38 /**39 * Toggles the element visibility.40 *41 * @param {Element} element42 */43 function toggleElementVisibility(element) {44 if (element.classList.contains('is-hidden')) {45 showElement(element);46 } else {47 hideElement(element);48 }49 }50 51 var navContainer = document.querySelector('.main-navigation');52 // Adds the necessary UI to operate the menu.53 var toggleButton = document.querySelector('.main-navigation .main-menu-more-toggle');54 var visibleList = document.querySelector('.main-navigation .main-menu[id]');55 var hiddenList = document.querySelector('.main-navigation .hidden-links');56 var breaks = [];57 74 58 75 /** … … 61 78 * @returns {number} Available space 62 79 */ 63 function getAvailableSpace( ) {64 return toggleButton.classList.contains('hidden') ? navContainer.offsetWidth : navContainer.offsetWidth - toggleButton.offsetWidth - 50;80 function getAvailableSpace( button, container ) { 81 return container.offsetWidth - button.offsetWidth - 50; 65 82 } 66 83 … … 70 87 * @returns {boolean} Is overflowing 71 88 */ 72 function isOverflowingNavivation( ) {73 return visibleList.offsetWidth > getAvailableSpace();89 function isOverflowingNavivation( list, button, container ) { 90 return list.offsetWidth > getAvailableSpace( button, container ); 74 91 } 92 93 /** 94 * Set menu container variable 95 */ 96 var navContainer = document.querySelector('.main-navigation'); 97 var breaks = []; 75 98 76 99 /** 77 100 * Refreshes the list item from the menu depending on the menu size 78 101 */ 79 function updateNavigationMenu( ) {102 function updateNavigationMenu( container ) { 80 103 81 if (isOverflowingNavivation()) { 104 // Adds the necessary UI to operate the menu. 105 var visibleList = container.parentNode.querySelector('.main-menu[id]'); 106 var hiddenList = visibleList.parentNode.nextElementSibling.querySelector('.hidden-links'); 107 var toggleButton = visibleList.parentNode.nextElementSibling.querySelector('.main-menu-more-toggle'); 108 109 if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) { 110 82 111 // Record the width of the list 83 breaks.push( visibleList.offsetWidth);84 // Move item to the hidden list85 prependElement( hiddenList, visibleList.lastChild);112 breaks.push( visibleList.offsetWidth ); 113 // Move last item to the hidden list 114 prependElement( hiddenList, ! visibleList.lastChild || null === visibleList.lastChild ? visibleList.previousElementSibling : visibleList.lastChild ); 86 115 // Show the toggle button 87 showElement(toggleButton); 116 showButton( toggleButton ); 117 88 118 } else { 119 89 120 // There is space for another item in the nav 90 if ( getAvailableSpace() > breaks[breaks.length - 1]) {121 if ( getAvailableSpace( toggleButton, container ) > breaks[breaks.length - 1] ) { 91 122 // Move the item to the visible list 92 visibleList.appendChild( hiddenList.firstChild.nextSibling);123 visibleList.appendChild( hiddenList.firstChild.nextSibling ); 93 124 breaks.pop(); 94 125 } … … 96 127 // Hide the dropdown btn if hidden list is empty 97 128 if (breaks.length < 2) { 98 hideElement(toggleButton); 99 hideElement(hiddenList); 129 hideButton( toggleButton ); 100 130 } 101 131 } 102 132 103 133 // Recur if the visible list is still overflowing the nav 104 if ( isOverflowingNavivation()) {105 updateNavigationMenu( );134 if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) { 135 updateNavigationMenu( container ); 106 136 } 107 137 } 108 138 109 // Event listeners 110 // Run our sub-menu function as soon as the document is `ready` 139 /** 140 * Run our priority+ function as soon as the document is `ready` 141 */ 111 142 document.addEventListener( 'DOMContentLoaded', function() { 112 updateNavigationMenu(); 143 144 updateNavigationMenu( navContainer ); 145 146 // Also, run our priority+ function on selective refresh in the customizer 147 var hasSelectiveRefresh = ( 148 'undefined' !== typeof wp && 149 wp.customize && 150 wp.customize.selectiveRefresh 151 ); 152 153 if ( hasSelectiveRefresh ) { 154 // Force a full refresh on partial content renders to re-run updateNavigationMenu() 155 wp.customize.selectiveRefresh.bind('partial-content-rendered', function () { 156 wp.customize.preview.send('refresh'); 157 }); 158 } 113 159 }); 114 160 161 /** 162 * Run our priority+ function on load 163 */ 115 164 window.addEventListener('load', function() { 116 updateNavigationMenu( );165 updateNavigationMenu( navContainer ); 117 166 }); 118 167 119 window.addEventListener('resize', function() { 120 updateNavigationMenu(); 121 }); 168 /** 169 * Run our priority+ function every time the window resizes 170 */ 171 var isResizing = false; 172 window.addEventListener( 'resize', 173 debounce( function() { 174 if ( isResizing ) { 175 return; 176 } 122 177 123 toggleButton.addEventListener('click', function() { 124 toggleElementVisibility(hiddenList); 125 }); 178 isResizing = true; 179 setTimeout( function() { 180 updateNavigationMenu( navContainer ); 181 isResizing = false; 182 }, 150 ); 183 } ) 184 ); 126 185 127 updateNavigationMenu(); 186 /** 187 * Run our priority+ function 188 */ 189 updateNavigationMenu( navContainer ); 190 128 191 })(); -
branches/5.0/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js
r43892 r43904 7 7 (function() { 8 8 9 // Debounce 9 /** 10 * Debounce 11 * 12 * @param {Function} func 13 * @param {number} wait 14 * @param {boolean} immediate 15 */ 10 16 function debounce(func, wait, immediate) { 11 17 'use strict'; … … 37 43 } 38 44 39 // Add Class 45 /** 46 * Add class 47 * 48 * @param {Object} el 49 * @param {string} cls 50 */ 40 51 function addClass(el, cls) { 41 52 if ( ! el.className.match( '(?:^|\\s)' + cls + '(?!\\S)') ) { … … 44 55 } 45 56 46 // Delete Class 57 /** 58 * Delete class 59 * 60 * @param {Object} el 61 * @param {string} cls 62 */ 47 63 function deleteClass(el, cls) { 48 64 el.className = el.className.replace( new RegExp( '(?:^|\\s)' + cls + '(?!\\S)' ),'' ); 49 65 } 50 66 51 // Has Class? 67 /** 68 * Has class? 69 * 70 * @param {Object} el 71 * @param {string} cls 72 * 73 * @returns {boolean} Has class 74 */ 52 75 function hasClass(el, cls) { 53 76 … … 57 80 } 58 81 59 // Toggle Aria Expanded state for screenreaders 82 /** 83 * Toggle Aria Expanded state for screenreaders 84 * 85 * @param {Object} ariaItem 86 */ 60 87 function toggleAriaExpandedState( ariaItem ) { 61 88 'use strict'; … … 72 99 } 73 100 74 // Open sub-menu 101 /** 102 * Open sub-menu 103 * 104 * @param {Object} currentSubMenu 105 */ 75 106 function openSubMenu( currentSubMenu ) { 76 107 'use strict'; … … 85 116 } 86 117 87 // Close sub-menu 118 /** 119 * Close sub-menu 120 * 121 * @param {Object} currentSubMenu 122 */ 88 123 function closeSubMenu( currentSubMenu ) { 89 124 'use strict'; … … 117 152 } 118 153 119 // Find first ancestor of an element by selector 154 /** 155 * Find first ancestor of an element by selector 156 * 157 * @param {Object} child 158 * @param {String} selector 159 * @param {String} stopSelector 160 */ 120 161 function getCurrentParent( child, selector, stopSelector ) { 121 162 … … 140 181 } 141 182 142 // Remove all off-canvas states 183 /** 184 * Remove all off-canvas states 185 */ 143 186 function removeAllFocusStates() { 144 187 'use strict'; 145 188 146 var getFocusedElements = document.querySelectorAll(':hover, :focus, :focus-within'); 189 var siteBranding = document.getElementsByClassName( 'site-branding' )[0]; 190 var getFocusedElements = siteBranding.querySelectorAll(':hover, :focus, :focus-within'); 191 var getFocusedClassElements = siteBranding.querySelectorAll('.is-focused'); 147 192 var i; 193 var o; 148 194 149 195 for ( i = 0; i < getFocusedElements.length; i++) { 150 196 getFocusedElements[i].blur(); 151 197 } 152 } 153 154 // Matches polyfill for IE11 198 199 for ( o = 0; o < getFocusedClassElements.length; o++) { 200 deleteClass( getFocusedClassElements[o], 'is-focused' ); 201 } 202 } 203 204 /** 205 * Matches polyfill for IE11 206 */ 155 207 if (!Element.prototype.matches) { 156 208 Element.prototype.matches = Element.prototype.msMatchesSelector; 157 209 } 158 210 159 // Toggle `focus` class to allow sub-menu access on touch screens. 211 /** 212 * Toggle `focus` class to allow sub-menu access on touch screens. 213 */ 160 214 function toggleSubmenuDisplay() { 161 215 … … 211 265 // Prevent default mouse events 212 266 event.preventDefault(); 213 } 214 215 // Prevent default mouse events 216 event.preventDefault(); 267 } else if ( 268 event.target.matches('.submenu-expand') || 269 null != getCurrentParent( event.target, '.submenu-expand' ) && 270 getCurrentParent( event.target, '.submenu-expand' ).matches( '.submenu-expand' ) || 271 event.target.matches('.menu-item-link-return') || 272 null != getCurrentParent( event.target, '.menu-item-link-return' ) && 273 getCurrentParent( event.target, '.menu-item-link-return' ).matches( '.menu-item-link-return' ) ) { 274 // Prevent default mouse events 275 event.preventDefault(); 276 } 217 277 218 278 // Prevent default mouse/focus events … … 223 283 document.addEventListener('focus', function(event) { 224 284 225 if ( event.target.matches('.main-navigation > div > ul > li >a') ) {226 227 // Remove Focuse elements in sibling div228 var currentDiv = getCurrentParent( event.target, 'div' );285 if ( event.target.matches('.main-navigation > div > ul > li a') ) { 286 287 // Remove Focused elements in sibling div 288 var currentDiv = getCurrentParent( event.target, 'div', '.main-navigation' ); 229 289 var currentDivSibling = currentDiv.previousElementSibling === null ? currentDiv.nextElementSibling : currentDiv.previousElementSibling; 230 290 var focusedElement = currentDivSibling.querySelector( '.is-focused' ); 231 291 var focusedClass = 'is-focused'; 232 var prevLi = event.target.parentNode.previousElementSibling;233 var nextLi = event.target.parentNode.nextElementSibling;292 var prevLi = getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ).previousElementSibling; 293 var nextLi = getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ).nextElementSibling; 234 294 235 295 if ( null !== focusedElement && null !== hasClass( focusedElement, focusedClass ) ) { … … 237 297 } 238 298 239 // Add .is-focused class to top-level ul240 if ( event.target.parentNode.querySelector( '.main-navigation ul ul') ) {241 addClass( event.target.parentNode, focusedClass );299 // Add .is-focused class to top-level li 300 if ( getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ) ) { 301 addClass( getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ), focusedClass ); 242 302 } 243 303 … … 252 312 } 253 313 } 314 254 315 }, true); 255 } 256 257 // Run our sub-menu function as soon as the document is `ready` 316 317 document.addEventListener('click', function(event) { 318 319 // Remove all focused menu states when clicking outside site branding 320 if ( event.target !== document.getElementsByClassName( 'site-branding' )[0] ) { 321 removeAllFocusStates(); 322 } else { 323 // nothing 324 } 325 326 }, false); 327 } 328 329 /** 330 * Run our sub-menu function as soon as the document is `ready` 331 */ 258 332 document.addEventListener( 'DOMContentLoaded', function() { 259 333 toggleSubmenuDisplay(); 260 334 }); 261 // Annnnnd also every time the window resizes 335 336 /** 337 * Run our sub-menu function on selective refresh in the customizer 338 */ 339 document.addEventListener( 'customize-preview-menu-refreshed', function( e, params ) { 340 if ( 'menu-1' === params.wpNavMenuArgs.theme_location ) { 341 toggleSubmenuDisplay(); 342 } 343 }); 344 345 /** 346 * Run our sub-menu function every time the window resizes 347 */ 262 348 var isResizing = false; 263 window.addEventListener( 'resize', 349 window.addEventListener( 'resize', function() { 350 isResizing = true; 264 351 debounce( function() { 265 352 if ( isResizing ) { … … 267 354 } 268 355 269 isResizing = true; 270 setTimeout( function() { 271 toggleSubmenuDisplay(); 272 isResizing = false; 273 }, 150 ); 274 } ) 275 ); 356 toggleSubmenuDisplay(); 357 isResizing = false; 358 359 }, 150 ); 360 } ); 276 361 277 362 })(); -
branches/5.0/src/wp-content/themes/twentynineteen/print.css
r43842 r43904 19 19 @page { 20 20 margin: 2cm; 21 } 22 .entry { 23 margin-top: 1em; 21 24 } 22 25 .entry .entry-header, .site-footer .site-info { … … 98 101 .site-branding-container:before, 99 102 .entry .entry-title:before, 100 .entry- meta, .entry-footer,103 .entry-footer, 101 104 .author-description:before, 102 .post-navigation { 105 .post-navigation, 106 .widget-area, 107 .comment-form-flex { 103 108 display: none; 104 109 } 110 /* Site Header (With Featured Image) */ 111 .site-header.featured-image { 112 min-height: 0; 113 } 114 .site-header.featured-image .main-navigation a, 115 .site-header.featured-image .main-navigation a + svg, 116 .site-header.featured-image .social-navigation a, 117 .site-header.featured-image .site-title a, 118 .site-header.featured-image .site-featured-image a, 119 .site-header.featured-image .site-branding .site-title, 120 .site-header.featured-image .site-branding .site-description, 121 .site-header.featured-image .main-navigation a:after, 122 .site-header.featured-image .main-navigation .main-menu > li.menu-item-has-children:after, 123 .site-header.featured-image .main-navigation li, 124 .site-header.featured-image .social-navigation li, 125 .site-header.featured-image .entry-meta, 126 .site-header.featured-image .entry-title { 127 color: #000; 128 text-shadow: none; 129 } 130 .site-header.featured-image .site-featured-image .entry-header, 131 .site-header.featured-image .site-branding-container { 132 margin-top: 0; 133 margin-bottom: 0; 134 } 135 .site-header.featured-image .site-featured-image .post-thumbnail img { 136 position: relative; 137 height: initial; 138 width: initial; 139 object-fit: none; 140 min-width: 0; 141 min-height: 0; 142 max-width: 100%; 143 margin-top: 1rem; 144 } 145 /* Remove image filters from featured image */ 146 .image-filters-enabled *:after { 147 display: none !important; 148 } 149 .image-filters-enabled .site-header.featured-image .site-featured-image .post-thumbnail img { 150 filter: none; 151 } 105 152 } -
branches/5.0/src/wp-content/themes/twentynineteen/print.scss
r43842 r43904 22 22 @page { 23 23 margin: 2cm; 24 } 25 26 .entry { 27 margin-top: 1em; 24 28 } 25 29 … … 121 125 .site-branding-container:before, 122 126 .entry .entry-title:before, 123 .entry- meta, .entry-footer,127 .entry-footer, 124 128 .author-description:before, 125 .post-navigation { 129 .post-navigation, 130 .widget-area, 131 .comment-form-flex { 126 132 display: none; 127 133 } 134 135 /* Site Header (With Featured Image) */ 136 .site-header.featured-image { 137 min-height: 0; 138 139 .main-navigation a, 140 .main-navigation a + svg, 141 .social-navigation a, 142 .site-title a, 143 .site-featured-image a, 144 .site-branding .site-title, 145 .site-branding .site-description, 146 .main-navigation a:after, 147 .main-navigation .main-menu > li.menu-item-has-children:after, 148 .main-navigation li, 149 .social-navigation li, 150 .entry-meta, 151 .entry-title { 152 color: #000; 153 text-shadow: none; 154 } 155 156 .site-featured-image .entry-header, 157 .site-branding-container { 158 margin-top: 0; 159 margin-bottom: 0; 160 } 161 162 .site-featured-image .post-thumbnail img { 163 position: relative; 164 height: initial; 165 width: initial; 166 object-fit: none; 167 min-width: 0; 168 min-height: 0; 169 max-width: 100%; 170 margin-top: 1rem; 171 } 172 } 173 174 /* Remove image filters from featured image */ 175 .image-filters-enabled { 176 177 *:after { 178 display: none !important; 179 } 180 181 .site-header.featured-image .site-featured-image .post-thumbnail img { 182 filter: none; 183 } 184 } 128 185 } -
branches/5.0/src/wp-content/themes/twentynineteen/readme.txt
r43892 r43904 3 3 [![Build Status](https://travis-ci.org/WordPress/twentynineteen.svg?branch=master)](https://travis-ci.org/WordPress/twentynineteen) 4 4 5 **Contributors:** the WordPress team 6 **Requires at least:** WordPress 4.9.6 7 **Tested up to:** WordPress 4.9.8 8 **Version:** 1.0 9 **License:** GPLv2 or later 10 **License URI:** http://www.gnu.org/licenses/gpl-2.0.html 5 **Contributors:** the WordPress team 6 **Requires at least:** WordPress 4.9.6 7 **Tested up to:** WordPress 4.9.8 8 **Version:** 1.0 9 **License:** GPLv2 or later 10 **License URI:** http://www.gnu.org/licenses/gpl-2.0.html 11 11 **Tags:** one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready 12 12 -
branches/5.0/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
r43892 r43904 147 147 max-width: (0.33 * $desktop_width); 148 148 } 149 }150 151 &.aligncenter {152 margin: 32px calc(2 * (100vw / 12));153 max-width: calc(6 * (100vw / 12));154 149 } 155 150 } … … 244 239 padding-top: ( .75 * $size__spacing-unit ); 245 240 } 246 241 247 242 li ul { 248 243 list-style: none; … … 623 618 //! Twitter Embed 624 619 .wp-block-embed-twitter { 625 overflow: hidden;620 word-break: break-word; 626 621 } 627 622 … … 640 635 641 636 .wp-block-file__button { 637 display: table; 642 638 @include button-transition; 643 639 border: none; … … 651 647 padding: ($size__spacing-unit * .75) $size__spacing-unit; 652 648 color: #fff; 649 margin-left: 0; 650 margin-top: calc(0.75 * #{$size__spacing-unit}); 653 651 654 652 @include media(desktop) { … … 667 665 outline-offset: -4px; 668 666 } 669 }670 671 * + .wp-block-file__button {672 margin-left: ($size__spacing-unit * .75);673 667 } 674 668 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/elements/_elements.scss
r43892 r43904 78 78 blockquote { 79 79 border-left: 2px solid $color__link; 80 margin-left: -($size__spacing-unit * 2);80 margin-left: 0; 81 81 padding: 0 0 0 $size__spacing-unit; 82 82 -
branches/5.0/src/wp-content/themes/twentynineteen/sass/elements/_tables.scss
r43892 r43904 3 3 border-collapse: collapse; 4 4 width: 100%; 5 font-family: $font__heading; 5 6 6 7 td, -
branches/5.0/src/wp-content/themes/twentynineteen/sass/forms/_buttons.scss
r43842 r43904 10 10 border-radius: 5px; 11 11 box-sizing: border-box; 12 color: white;12 color: $color__background-body; 13 13 font-family: $font__heading; 14 14 font-size: $font__size-sm; 15 font-weight: 600;15 font-weight: 700; 16 16 line-height: $font__line-height-heading; 17 17 outline: none; 18 18 padding: ( $size__spacing-unit * .76 ) $size__spacing-unit; 19 text-decoration: none; 19 20 vertical-align: bottom; 20 21 21 22 &:hover { 23 background: $color__background-button-hover; 22 24 cursor: pointer; 23 25 } 24 26 25 &: hover,26 &:focus {27 background: $color__background-button-hover;27 &:visited { 28 color: $color__background-body; 29 text-decoration: none; 28 30 } 29 31 30 32 &:focus { 33 background: $color__background-button-hover; 31 34 outline: thin dotted; 32 35 outline-offset: -4px; -
branches/5.0/src/wp-content/themes/twentynineteen/sass/forms/_fields.scss
r43842 r43904 21 21 outline: none; 22 22 padding: #{.36 * $size__spacing-unit} #{.66 * $size__spacing-unit}; 23 -webkit-appearance: none; 24 outline-offset: 0; 25 border-radius: 0; 23 26 24 27 &:focus { … … 26 29 outline: thin solid rgba( $color__link, 0.15 ); 27 30 outline-offset: -4px; 31 } 32 } 33 34 input[type="search"] { 35 &::-webkit-search-decoration { 36 display: none; 28 37 } 29 38 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss
r43892 r43904 65 65 66 66 .submenu-expand { 67 67 68 display: inline-block; 68 69 margin-right: #{0.5 * $size__spacing-unit}; … … 86 87 } 87 88 89 .wp-customizer-unloading &, 90 &.is-empty { 91 display: none; 92 } 93 88 94 svg { 89 95 position: relative; … … 97 103 margin-right: 0; 98 104 } 99 }100 101 .is-hidden {102 display: none;103 105 } 104 106 } … … 111 113 padding-left: 0; 112 114 113 display: none;114 115 position: absolute; 115 116 opacity: 0; 116 left: -999 px;117 left: -9999px; 117 118 z-index: 99999; 118 119 … … 182 183 } 183 184 185 > a:empty { 186 display: none; 187 } 188 184 189 &.mobile-parent-nav-menu-item { 185 190 … … 395 400 396 401 /** 402 * Fade-in animation for top-level submenus 403 */ 404 .main-menu > .menu-item-has-children:not(.off-canvas):hover > .sub-menu { 405 animation: fade_in 0.1s forwards; 406 } 407 408 /** 397 409 * Full-screen touch device styles 398 410 */ 399 411 .main-menu .menu-item-has-children.off-canvas .sub-menu { 400 401 animation: fade_in 0.1s forwards;402 412 403 413 .submenu-expand .svg-icon { … … 464 474 } 465 475 } 476 477 // Hide duplicate menu-more-link when re-loading a menu in the customizer 478 .main-menu-more { 479 &:nth-child(n+3) { 480 display: none; 481 } 482 } 483 466 484 } 467 485 -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss
r43892 r43904 213 213 text-decoration: underline; 214 214 215 &.button, 215 216 &:hover { 216 217 text-decoration: none; 218 } 219 220 &.button { 221 display: inline-block; 222 } 223 224 &.button:hover { 225 background: $color__background-button-hover; 226 color: $color__background-body; 227 cursor: pointer; 217 228 } 218 229 } -
branches/5.0/src/wp-content/themes/twentynineteen/sass/site/secondary/_widgets.scss
r43892 r43904 62 62 .widget_calendar .calendar_wrap { 63 63 text-align: center; 64 font-family: $font__heading;65 64 66 65 table td, -
branches/5.0/src/wp-content/themes/twentynineteen/sass/variables-site/_fonts.scss
r43892 r43904 1 /* 2 * Chrome renders extra-wide characters for the Hoefler Text font. 3 * This results in a jumping cursor when typing in both the Classic and block 4 * editors. The following font-face override fixes the issue by manually inserting 5 * a custom font that includes just a Hoefler Text space replacement for that 6 * character instead. 7 */ 8 @font-face { 9 font-family: 'NonBreakingSpaceOver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Kv4dLTMqKycGHsTZNv7px7z50ZAFd4hYHjdw1Ls4EiHjVncIFnzVnc4F1zDkWjrzmPW+NNcwGlzIRKI3fJlUyrEjZQxb3mDH2fNGfRx4vmHKqG0JzHg6E0F9DOlFBGBxUI1GEzLNT4S0aLuTtsGAEUuYcQHkyg3KmIum1bNUvKlrjbbAIleqHHnS4iSudpQcySMYtdFiXlAxzSbAwfMxK6kZoHKhbjjespMTioOPZnzI+4ucCeTVyKMVKLfeAS6vSWaTinuZwzyy/Dc7vaed+6KaV0kukdPUk6yOcctZPvvxxqksq2lEW8RvHjMEO2FCl/zy6p3NEm0R9OFSafJdldc4QVeyaaObMBO0/5cCaa6d9Ggyubxire+lEojscdjoWUR1xGOy8KD8mG2ZLO2l2paDc3A39qmU2z2W5YNv5+u79e6QfGJY/hAAB42m3NywrCMBQE0DupWp/1AYI7/6DEaLQu66Mrd35BKUWKJSlFv1+rue4cGM7shgR981qSon+ZNwUJ8iDgoYU2OvDRRQ99DDDECAHGmGCKmf80hZSx/Kik/LliFbtmN6xmt+yOjdg9GztV4tROnRwX/Bsaaw51nt4Lc7tWaZYHp/MlzKx51LZs5htNri+2AAAAAQAB//8AD3jaY2BkYGDgAWIxIGZiYARCESBmAfMYAAR6AEMAAAABAAAAANXtRbgAAAAA2AhRFAAAAADYCNuG) format('woff'); 12 13 } 14 1 15 // Font and typographic variables 2 16 3 $font__body: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;17 $font__body: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 4 18 $font__heading: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 5 19 $font__code: Menlo, monaco, Consolas, Lucida Console, monospace; -
branches/5.0/src/wp-content/themes/twentynineteen/style-editor.css
r43892 r43904 3 3 */ 4 4 /** === Includes === */ 5 /* If we add the border using a regular CSS border, it won't look good on non-retina devices,6 * since its edges can look jagged due to lack of antialiasing. In this case, we are several7 * layers of box-shadow to add the border visually, which will render the border smoother. */8 /* Fallback for non-latin fonts */9 /* Calculates maximum width for post content */10 /* Nested sub-menu padding: 10 levels deep */11 5 /* 12 6 * Chrome renders extra-wide characters for the Hoefler Text font. … … 21 15 } 22 16 17 /* If we add the border using a regular CSS border, it won't look good on non-retina devices, 18 * since its edges can look jagged due to lack of antialiasing. In this case, we are several 19 * layers of box-shadow to add the border visually, which will render the border smoother. */ 20 /* Fallback for non-latin fonts */ 21 /* Calculates maximum width for post content */ 22 /* Nested sub-menu padding: 10 levels deep */ 23 23 /** === Editor Frame === */ 24 24 body .wp-block[data-align="full"] { … … 27 27 28 28 @media only screen and (min-width: 600px) { 29 body { 30 padding-top: 0; 31 } 32 body :not(.editor-inner-blocks) > .editor-block-list__layout, 33 body .editor-post-title { 34 padding-left: 0; 35 padding-right: 0; 36 } 29 body .wp-block[data-align="full"] { 30 width: calc( 100% + 90px); 31 max-width: calc( 100% + 90px); 32 } 33 } 34 35 @media only screen and (min-width: 768px) { 37 36 body .editor-writing-flow { 38 padding-top: 50px;39 overflow: hidden;40 }41 body .wp-block[data-align="full"] {42 position: relative;43 left: 45px;44 }45 }46 47 @media only screen and (min-width: 768px) {48 body :not(.editor-inner-blocks) > .editor-block-list__layout,49 body .editor-post-title {50 padding-left: 46px;51 padding-right: 46px;52 }53 body .editor-block-list__layout,54 body .editor-post-title {55 37 max-width: 80%; 56 38 margin: 0 10%; … … 69 51 left: calc( -12.5% - 14px); 70 52 width: calc( 125% + 116px); 71 max-width: calc( 125% + 11 6px);53 max-width: calc( 125% + 115px); 72 54 } 73 55 body .wp-block[data-align="right"] { … … 117 99 h6 { 118 100 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 101 font-weight: 700; 119 102 } 120 103 … … 235 218 236 219 /** === Default Appender === */ 237 .editor-default-block-appender input[type="text"].editor-default-block-appender__content {238 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;220 .editor-default-block-appender .editor-default-block-appender__content { 221 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 239 222 font-size: 22px; 240 223 } … … 252 235 font-weight: bold; 253 236 margin: 0 0.25em 0 0; 237 } 238 239 /** === Table === */ 240 .wp-block-table { 241 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 254 242 } 255 243 … … 509 497 } 510 498 499 .wp-block-file .wp-block-file__textlink { 500 text-decoration: underline; 501 color: #0073aa; 502 } 503 504 .wp-block-file .wp-block-file__textlink:hover { 505 color: #005177; 506 text-decoration: none; 507 } 508 511 509 .wp-block-file .wp-block-file__button { 510 display: table; 512 511 line-height: 1.8; 513 512 font-size: 0.88889em; … … 515 514 background-color: #0073aa; 516 515 border-radius: 5px; 516 } 517 518 .wp-block-file .wp-block-file__button-richtext-wrapper { 519 display: block; 520 margin-top: calc(0.75 * 1rem); 521 margin-left: 0; 517 522 } 518 523 … … 601 606 602 607 .wp-block-categories ul ul li > a:before { 603 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;608 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 604 609 font-weight: normal; 605 610 } … … 703 708 .wp-block-freeform { 704 709 /* Add style for galleries in classic-editor block */ 705 /* Add style for galleries in classic-editor block */706 710 } 707 711 … … 717 721 color: #767676; 718 722 } 719 720 .wp-block-freeform .gallery {721 display: flex;722 }723 724 .wp-block-freeform .gallery .gallery-item {725 padding: 0.5rem;726 text-align: center;727 vertical-align: top;728 width: 100%;729 }730 731 .wp-block-freeform .gallery .gallery-item .gallery-caption {732 margin: 0;733 }734 735 .wp-block-freeform .gallery.gallery-columns-2 .gallery-item {736 max-width: calc( ( 12 / 2 ) * (100% / 12));737 }738 739 .wp-block-freeform .gallery.gallery-columns-3 .gallery-item {740 max-width: calc( ( 12 / 3 ) * (100% / 12));741 }742 743 .wp-block-freeform .gallery.gallery-columns-4 .gallery-item {744 max-width: calc( ( 12 / 4 ) * (100% / 12));745 }746 747 .wp-block-freeform .gallery.gallery-columns-5 .gallery-item {748 max-width: calc( ( 12 / 5 ) * (100% / 12));749 }750 751 .wp-block-freeform .gallery.gallery-columns-6 .gallery-item {752 max-width: calc( ( 12 / 6 ) * (100% / 12));753 }754 755 .wp-block-freeform .gallery.gallery-columns-7 .gallery-item {756 max-width: calc( ( 12 / 7 ) * (100% / 12));757 }758 759 .wp-block-freeform .gallery.gallery-columns-8 .gallery-item {760 max-width: calc( ( 12 / 8 ) * (100% / 12));761 }762 763 .wp-block-freeform .gallery.gallery-columns-9 .gallery-item {764 max-width: calc( ( 12 / 9 ) * (100% / 12));765 } -
branches/5.0/src/wp-content/themes/twentynineteen/style-editor.scss
r43892 r43904 9 9 @import "sass/mixins/mixins-master"; 10 10 11 /*12 * Chrome renders extra-wide characters for the Hoefler Text font.13 * This results in a jumping cursor when typing in both the Classic and block14 * editors. The following font-face override fixes the issue by manually inserting15 * a custom font that includes just a Hoefler Text space replacement for that16 * character instead.17 */18 @font-face {19 font-family: 'NonBreakingSpaceOverride';20 src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMoAA0AAAAACDQAAALTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCahEICjx3CywAATYCJANUBCAFhiEHgWwbXQfILgpsY+rQRRARwyAs6uL7pxzYhxEE+32b3aeHmifR6tklkS9hiZA0ewkqGRJE+H7/+6378ASViK/PGeavqJyOzsceKi1s3BCiQsiOdn1r/RBgIJYEgCUhbm/8/8/h4saPssnTNkkiWUBrTRtjmQSajw3Ui3pZ3LYDPD+XG2C3JA/yKAS8/rU5eNf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6p3NEm0R9OFSafJdldc4QVeyaaObMBO0/5cCaa6d9Ggyubxire+lEojscdjoWUR1xGOy8KD8mG2ZLO2l2paDc3A39qmU2z2W5YNv5+u79e6QfGJY/hAAB42m3NywrCMBQE0DupWp/1AYI7/6DEaLQu66Mrd35BKUWKJSlFv1+rue4cGM7shgR981qSon+ZNwUJ8iDgoYU2OvDRRQ99DDDECAHGmGCKmf80hZSx/Kik/LliFbtmN6xmt+yOjdg9GztV4tROnRwX/Bsaaw51nt4Lc7tWaZYHp/MlzKx51LZs5htNri+2AAAAAQAB//8AD3jaY2BkYGDgAWIxIGZiYARCESBmAfMYAAR6AEMAAAABAAAAANXtRbgAAAAA2AhRFAAAAADYCNuG) format('woff');22 23 }24 25 11 /** === Editor Frame === */ 26 12 … … 32 18 33 19 @include media(mobile) { 34 padding-top: 0; 35 36 :not(.editor-inner-blocks) > .editor-block-list__layout, // Target only the top level layout element, or nested blocks will also be affected. 37 .editor-post-title { 38 padding-left: 0; 39 padding-right: 0; 40 } 20 21 .wp-block[data-align="full"] { 22 width: calc( 100% + 90px ); 23 max-width: calc( 100% + 90px ); 24 } 25 } 26 27 @include media(tablet) { 41 28 42 29 .editor-writing-flow { 43 padding-top: 50px;44 overflow: hidden;45 }46 47 .wp-block[data-align="full"] {48 position: relative;49 left: 45px;50 }51 }52 53 @include media(tablet) {54 55 :not(.editor-inner-blocks) > .editor-block-list__layout, // Target only the top level layout element, or nested blocks will also be affected.56 .editor-post-title {57 padding-left: 46px;58 padding-right: 46px;59 }60 61 .editor-block-list__layout,62 .editor-post-title {63 30 max-width: 80%; 64 31 margin: 0 10%; … … 80 47 left: calc( -12.5% - 14px ); 81 48 width: calc( 125% + 116px ); 82 max-width: calc( 125% + 11 6px );49 max-width: calc( 125% + 115px ); // Subtract 1px here to avoid the rounding errors that happen due to the usage of percentages. 83 50 } 84 51 … … 113 80 body { 114 81 font-size: $font__size_base; 115 font-family: 'NonBreakingSpaceOverride',$font__body;82 font-family: $font__body; 116 83 line-height: $font__line-height-body; 117 84 color: $color__text-main; … … 129 96 h6 { 130 97 font-family: $font__heading; 98 font-weight: 700; 131 99 } 132 100 … … 232 200 /** === Default Appender === */ 233 201 234 .editor-default-block-appender input[type="text"].editor-default-block-appender__content {202 .editor-default-block-appender .editor-default-block-appender__content { 235 203 font-family: $font__body; 236 204 font-size: $font__size_base; … … 255 223 margin: 0 0.25em 0 0; 256 224 } 225 } 226 227 /** === Table === */ 228 229 .wp-block-table { 230 font-family: $font__heading; 257 231 } 258 232 … … 509 483 510 484 .wp-block[data-type="core/pullquote"][data-align="full"] { 511 512 @include media(tablet) { 513 485 486 @include media(tablet) { 487 514 488 .wp-block-pullquote blockquote { 515 489 max-width: calc(80% - 128px); … … 524 498 font-family: $font__heading; 525 499 500 .wp-block-file__textlink { 501 text-decoration: underline; 502 color: $color__link; 503 504 &:hover { 505 color: $color__link-hover; 506 text-decoration: none; 507 } 508 } 509 526 510 .wp-block-file__button { 511 display: table; 527 512 line-height: 1.8; 528 513 font-size: $font__size-sm; … … 531 516 border-radius: 5px; 532 517 } 518 519 .wp-block-file__button-richtext-wrapper { 520 display: block; 521 margin-top: calc(0.75 * #{$size__spacing-unit}); 522 margin-left: 0; 523 } 524 533 525 } 534 526 … … 703 695 } 704 696 } 705 706 /* Add style for galleries in classic-editor block */ 707 .gallery { 708 709 display: flex; 710 711 .gallery-item { 712 padding: ( $size__spacing-unit * .5 ); 713 text-align: center; 714 vertical-align: top; 715 width: 100%; 716 717 .gallery-caption { 718 margin: 0; 719 } 720 } 721 722 // Loops to enumerate the classes for gallery columns. 723 @for $i from 2 through 9 { 724 &.gallery-columns-#{$i} .gallery-item { 725 max-width: calc( ( 12 / #{$i} ) * (100% / 12) ); 726 } 727 } 728 } 729 } 697 } -
branches/5.0/src/wp-content/themes/twentynineteen/style-rtl.css
r43892 r43904 54 54 ## Galleries 55 55 --------------------------------------------------------------*/ 56 /* 57 * Chrome renders extra-wide characters for the Hoefler Text font. 58 * This results in a jumping cursor when typing in both the Classic and block 59 * editors. The following font-face override fixes the issue by manually inserting 60 * a custom font that includes just a Hoefler Text space replacement for that 61 * character instead. 62 */ 63 @font-face { 64 font-family: 'NonBreakingSpaceOverride'; 65 src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMoAA0AAAAACDQAAALTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCahEICjx3CywAATYCJANUBCAFhiEHgWwbXQfILgpsY+rQRRARwyAs6uL7pxzYhxEE+32b3aeHmifR6tklkS9hiZA0ewkqGRJE+H7/+6378ASViK/PGeavqJyOzsceKi1s3BCiQsiOdn1r/RBgIJYEgCUhbm/8/8/h4saPssnTNkkiWUBrTRtjmQSajw3Ui3pZ3LYDPD+XG2C3JA/yKAS8/rU5eNfuGqRf4eNNgV4YAlIIgxglEkWe6FYpq10+wi3g+/nUgvgPFczNrz/RsTgVm/zfbPuHZlsuQECxuyqBcQwKFBjFgKO8AqP4bAN9tFJtnM9xPcbNjeXS/x1wY/xU52f5W/X1+9cnH4YwKIaoRRAkUkj/YlAAeF/624foiIDBgBmgQBeGAyhBljUPZUm/l2dTvmpqcBDUOHdbPZWd8JsBAsGr4w8/EDn82/bUPx4eh0YNrQTBuHO2FjQEAGBwK0DeI37DpQVqdERS4gZBhpeUhWCfLFz7J99aEBgsJCHvUGAdAPp4IADDCAPCEFMGpMZ9AQpTfQtQGhLbGVBZFV8BaqNyP68oTZgHNj3M8kBPfXTTC9t90UuzYhy9ciH0grVlOcqyCytisvbsERsEYztiznR0WCrmTksJwbSNK6fd1Rvr25I9oLvctUoEbNOmXJbqgYgPXEHJ82IUsrCnpkxh23F1rfZ2zcRnJYoXtauB3VTFkFXQg3uoZYD5qE0kdjDtoDoF1h2bulGmev5HbYhbrjtohQSRI4aNOkffIcT+d3v6atpaYh3JvPoQsztCcqvaBkppDSPcQ3bw3KaCBo1f5CJWTZEgW3LjLofYg51MaVezrx8xZitYbQ9KYeoRaqQdVLwSEf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goqCjECRXwwNrCAKSP5mAAFGBiRgyAAAi/YFBQAAeNqtkc1OwkAUhU/5M25cEhcsZick0AwlBJq6MWwgJkAgYV/KAA2lJeUn+hY+gktXvpKv4dLTMqKycGHsTZNv7px7z50ZAFd4hYHjdw1Ls4EiHjVncIFnzVnc4F1zDkWjrzmPW+NNcwGlzIRKI3fJlUyrEjZQxb3mDH2fNGfRx4vmHKqG0JzHg6E0F9DOlFBGBxUI1GEzLNT4S0aLuTtsGAEUuYcQHkyg3KmIum1bNUvKlrjbbAIleqHHnS4iSudpQcySMYtdFiXlAxzSbAwfMxK6kZoHKhbjjespMTioOPZnzI+4ucCeTVyKMVKLfeAS6vSWaTinuZwzyy/Dc7vaed+6KaV0kukdPUk6yOcctZPvvxxqksq2lEW8RvHjMEO2FCl/zy6p3NEm0R9OFSafJdldc4QVeyaaObMBO0/5cCaa6d9Ggyubxire+lEojscdjoWUR1xGOy8KD8mG2ZLO2l2paDc3A39qmU2z2W5YNv5+u79e6QfGJY/hAAB42m3NywrCMBQE0DupWp/1AYI7/6DEaLQu66Mrd35BKUWKJSlFv1+rue4cGM7shgR981qSon+ZNwUJ8iDgoYU2OvDRRQ99DDDECAHGmGCKmf80hZSx/Kik/LliFbtmN6xmt+yOjdg9GztV4tROnRwX/Bsaaw51nt4Lc7tWaZYHp/MlzKx51LZs5htNri+2AAAAAQAB//8AD3jaY2BkYGDgAWIxIGZiYARCESBmAfMYAAR6AEMAAAABAAAAANXtRbgAAAAA2AhRFAAAAADYCNuG) format("woff"); 66 } 67 56 68 /* If we add the border using a regular CSS border, it won't look good on non-retina devices, 57 69 * since its edges can look jagged due to lack of antialiasing. In this case, we are several … … 402 414 -moz-osx-font-smoothing: grayscale; 403 415 color: #111; 404 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;416 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 405 417 font-weight: 400; 406 418 font-size: 1em; … … 416 428 textarea { 417 429 color: #111; 418 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;430 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 419 431 font-weight: 400; 420 432 line-height: 1.8; … … 477 489 478 490 .page-title { 479 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;491 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 480 492 } 481 493 … … 845 857 blockquote { 846 858 border-right: 2px solid #0073aa; 847 margin-right: -2rem;859 margin-right: 0; 848 860 padding: 0 1rem 0 0; 849 861 } … … 861 873 border-collapse: collapse; 862 874 width: 100%; 875 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 863 876 } 864 877 … … 881 894 border-radius: 5px; 882 895 box-sizing: border-box; 883 color: white;896 color: #fff; 884 897 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 885 898 font-size: 0.88889em; 886 font-weight: 600;899 font-weight: 700; 887 900 line-height: 1.2; 888 901 outline: none; 889 902 padding: 0.76rem 1rem; 903 text-decoration: none; 890 904 vertical-align: bottom; 891 905 } … … 896 910 input[type="reset"]:hover, 897 911 input[type="submit"]:hover { 912 background: #111; 898 913 cursor: pointer; 899 914 } 900 915 901 .button:hover, .button:focus, 902 button:hover, 903 button:focus, 904 input[type="button"]:hover, 905 input[type="button"]:focus, 906 input[type="reset"]:hover, 907 input[type="reset"]:focus, 908 input[type="submit"]:hover, 909 input[type="submit"]:focus { 910 background: #111; 916 .button:visited, 917 button:visited, 918 input[type="button"]:visited, 919 input[type="reset"]:visited, 920 input[type="submit"]:visited { 921 color: #fff; 922 text-decoration: none; 911 923 } 912 924 … … 916 928 input[type="reset"]:focus, 917 929 input[type="submit"]:focus { 930 background: #111; 918 931 outline: thin dotted; 919 932 outline-offset: -4px; … … 942 955 outline: none; 943 956 padding: 0.36rem 0.66rem; 957 -webkit-appearance: none; 958 outline-offset: 0; 959 border-radius: 0; 944 960 } 945 961 … … 965 981 } 966 982 983 input[type="search"]::-webkit-search-decoration { 984 display: none; 985 } 986 967 987 textarea { 968 988 box-sizing: border-box; … … 1015 1035 */ 1016 1036 /** 1037 * Fade-in animation for top-level submenus 1038 */ 1039 /** 1017 1040 * Full-screen touch device styles 1018 1041 */ … … 1097 1120 } 1098 1121 1122 .wp-customizer-unloading .main-navigation .main-menu > li.menu-item-has-children .submenu-expand, .main-navigation .main-menu > li.menu-item-has-children .submenu-expand.is-empty { 1123 display: none; 1124 } 1125 1099 1126 .main-navigation .main-menu > li.menu-item-has-children .submenu-expand svg { 1100 1127 position: relative; … … 1105 1132 .main-navigation .main-menu > li:last-child.menu-item-has-children .submenu-expand { 1106 1133 margin-left: 0; 1107 }1108 1109 .main-navigation .main-menu .is-hidden {1110 display: none;1111 1134 } 1112 1135 … … 1116 1139 list-style: none; 1117 1140 padding-right: 0; 1118 display: none;1119 1141 position: absolute; 1120 1142 opacity: 0; 1121 right: -999 px;1143 right: -9999px; 1122 1144 z-index: 99999; 1123 1145 } … … 1183 1205 .main-navigation .sub-menu > li > .menu-item-link-return:focus:after { 1184 1206 background: #005177; 1207 } 1208 1209 .main-navigation .sub-menu > li > a:empty { 1210 display: none; 1185 1211 } 1186 1212 … … 1321 1347 1322 1348 .main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu .sub-menu li > a:before { 1323 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;1349 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 1324 1350 font-weight: normal; 1325 1351 } 1326 1352 1327 1353 .main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu .sub-menu li > a:before { 1328 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;1354 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 1329 1355 font-weight: normal; 1330 1356 } … … 1486 1512 .main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus > .sub-menu .sub-menu li > a:before, 1487 1513 .main-navigation .main-menu .menu-item-has-children.is-focused:not(.off-canvas) > .sub-menu .sub-menu li > a:before { 1488 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;1514 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 1489 1515 font-weight: normal; 1490 1516 } … … 1544 1570 } 1545 1571 1546 .main-navigation .main-menu .menu-item-has-children.off-canvas.sub-menu {1572 .main-navigation .main-menu > .menu-item-has-children:not(.off-canvas):hover > .sub-menu { 1547 1573 animation: fade_in 0.1s forwards; 1548 1574 } … … 1609 1635 top: 0; 1610 1636 } 1637 } 1638 1639 .main-navigation .main-menu-more:nth-child(n+3) { 1640 display: none; 1611 1641 } 1612 1642 … … 2690 2720 } 2691 2721 2692 .entry .entry-content a :hover {2722 .entry .entry-content a.button, .entry .entry-content a:hover { 2693 2723 text-decoration: none; 2724 } 2725 2726 .entry .entry-content a.button { 2727 display: inline-block; 2728 } 2729 2730 .entry .entry-content a.button:hover { 2731 background: #111; 2732 color: #fff; 2733 cursor: pointer; 2694 2734 } 2695 2735 … … 3396 3436 .widget_recent_entries ul ul li > a:before, 3397 3437 .widget_rss ul ul li > a:before { 3398 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;3438 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 3399 3439 font-weight: normal; 3400 3440 } … … 3511 3551 .widget_calendar .calendar_wrap { 3512 3552 text-align: center; 3513 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;3514 3553 } 3515 3554 … … 3727 3766 } 3728 3767 3729 .entry .entry-content .wp-block-audio.aligncenter {3730 margin: 32px calc(2 * (100vw / 12));3731 max-width: calc(6 * (100vw / 12));3732 }3733 3734 3768 .entry .entry-content .wp-block-video video { 3735 3769 width: 100%; … … 3822 3856 3823 3857 .entry .entry-content .wp-block-categories ul li > a:before { 3824 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;3858 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 3825 3859 font-weight: normal; 3826 3860 } … … 3887 3921 3888 3922 .entry .entry-content .wp-block-verse { 3889 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;3923 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 3890 3924 font-size: 22px; 3891 3925 line-height: 1.8; … … 4278 4312 4279 4313 .entry .entry-content .wp-block-embed-twitter { 4280 overflow: hidden;4314 word-break: break-word; 4281 4315 } 4282 4316 … … 4291 4325 4292 4326 .entry .entry-content .wp-block-file .wp-block-file__button { 4327 display: table; 4293 4328 transition: background 150ms ease-in-out; 4294 4329 border: none; … … 4302 4337 padding: 0.75rem 1rem; 4303 4338 color: #fff; 4339 margin-right: 0; 4340 margin-top: calc(0.75 * 1rem); 4304 4341 } 4305 4342 … … 4320 4357 outline: thin dotted; 4321 4358 outline-offset: -4px; 4322 }4323 4324 .entry .entry-content .wp-block-file * + .wp-block-file__button {4325 margin-right: 0.75rem;4326 4359 } 4327 4360 -
branches/5.0/src/wp-content/themes/twentynineteen/style.css
r43892 r43904 54 54 ## Galleries 55 55 --------------------------------------------------------------*/ 56 /* 57 * Chrome renders extra-wide characters for the Hoefler Text font. 58 * This results in a jumping cursor when typing in both the Classic and block 59 * editors. The following font-face override fixes the issue by manually inserting 60 * a custom font that includes just a Hoefler Text space replacement for that 61 * character instead. 62 */ 63 @font-face { 64 font-family: 'NonBreakingSpaceOverride'; 65 src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMoAA0AAAAACDQAAALTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCahEICjx3CywAATYCJANUBCAFhiEHgWwbXQfILgpsY+rQRRARwyAs6uL7pxzYhxEE+32b3aeHmifR6tklkS9hiZA0ewkqGRJE+H7/+6378ASViK/PGeavqJyOzsceKi1s3BCiQsiOdn1r/RBgIJYEgCUhbm/8/8/h4saPssnTNkkiWUBrTRtjmQSajw3Ui3pZ3LYDPD+XG2C3JA/yKAS8/rU5eNfuGqRf4eNNgV4YAlIIgxglEkWe6FYpq10+wi3g+/nUgvgPFczNrz/RsTgVm/zfbPuHZlsuQECxuyqBcQwKFBjFgKO8AqP4bAN9tFJtnM9xPcbNjeXS/x1wY/xU52f5W/X1+9cnH4YwKIaoRRAkUkj/YlAAeF/624foiIDBgBmgQBeGAyhBljUPZUm/l2dTvmpqcBDUOHdbPZWd8JsBAsGr4w8/EDn82/bUPx4eh0YNrQTBuHO2FjQEAGBwK0DeI37DpQVqdERS4gZBhpeUhWCfLFz7J99aEBgsJCHvUGAdAPp4IADDCAPCEFMGpMZ9AQpTfQtQGhLbGVBZFV8BaqNyP68oTZgHNj3M8kBPfXTTC9t90UuzYhy9ciH0grVlOcqyCytisvbsERsEYztiznR0WCrmTksJwbSNK6fd1Rvr25I9oLvctUoEbNOmXJbqgYgPXEHJ82IUsrCnpkxh23F1rfZ2zcRnJYoXtauB3VTFkFXQg3uoZYD5qE0kdjDtoDoF1h2bulGmev5HbYhbrjtohQSRI4aNOkffIcT+d3v6atpaYh3JvPoQsztCcqvaBkppDSPcQ3bw3KaCBo1f5CJWTZEgW3LjLofYg51MaVezrx8xZitYbQ9KYeoRaqQdVLwSEfrKXLK1otCWOKNdR/YwYAfon5Y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iRgyAAAi/YFBQAAeNqtkc1OwkAUhU/5M25cEhcsZick0AwlBJq6MWwgJkAgYV/KAA2lJeUn+hY+gktXvpKv4dLTMqKycGHsTZNv7px7z50ZAFd4hYHjdw1Ls4EiHjVncIFnzVnc4F1zDkWjrzmPW+NNcwGlzIRKI3fJlUyrEjZQxb3mDH2fNGfRx4vmHKqG0JzHg6E0F9DOlFBGBxUI1GEzLNT4S0aLuTtsGAEUuYcQHkyg3KmIum1bNUvKlrjbbAIleqHHnS4iSudpQcySMYtdFiXlAxzSbAwfMxK6kZoHKhbjjespMTioOPZnzI+4ucCeTVyKMVKLfeAS6vSWaTinuZwzyy/Dc7vaed+6KaV0kukdPUk6yOcctZPvvxxqksq2lEW8RvHjMEO2FCl/zy6p3NEm0R9OFSafJdldc4QVeyaaObMBO0/5cCaa6d9Ggyubxire+lEojscdjoWUR1xGOy8KD8mG2ZLO2l2paDc3A39qmU2z2W5YNv5+u79e6QfGJY/hAAB42m3NywrCMBQE0DupWp/1AYI7/6DEaLQu66Mrd35BKUWKJSlFv1+rue4cGM7shgR981qSon+ZNwUJ8iDgoYU2OvDRRQ99DDDECAHGmGCKmf80hZSx/Kik/LliFbtmN6xmt+yOjdg9GztV4tROnRwX/Bsaaw51nt4Lc7tWaZYHp/MlzKx51LZs5htNri+2AAAAAQAB//8AD3jaY2BkYGDgAWIxIGZiYARCESBmAfMYAAR6AEMAAAABAAAAANXtRbgAAAAA2AhRFAAAAADYCNuG) format("woff"); 66 } 67 56 68 /* If we add the border using a regular CSS border, it won't look good on non-retina devices, 57 69 * since its edges can look jagged due to lack of antialiasing. In this case, we are several … … 402 414 -moz-osx-font-smoothing: grayscale; 403 415 color: #111; 404 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;416 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 405 417 font-weight: 400; 406 418 font-size: 1em; … … 416 428 textarea { 417 429 color: #111; 418 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;430 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 419 431 font-weight: 400; 420 432 line-height: 1.8; … … 477 489 478 490 .page-title { 479 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;491 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 480 492 } 481 493 … … 845 857 blockquote { 846 858 border-left: 2px solid #0073aa; 847 margin-left: -2rem;859 margin-left: 0; 848 860 padding: 0 0 0 1rem; 849 861 } … … 861 873 border-collapse: collapse; 862 874 width: 100%; 875 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 863 876 } 864 877 … … 881 894 border-radius: 5px; 882 895 box-sizing: border-box; 883 color: white;896 color: #fff; 884 897 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; 885 898 font-size: 0.88889em; 886 font-weight: 600;899 font-weight: 700; 887 900 line-height: 1.2; 888 901 outline: none; 889 902 padding: 0.76rem 1rem; 903 text-decoration: none; 890 904 vertical-align: bottom; 891 905 } … … 896 910 input[type="reset"]:hover, 897 911 input[type="submit"]:hover { 912 background: #111; 898 913 cursor: pointer; 899 914 } 900 915 901 .button:hover, .button:focus, 902 button:hover, 903 button:focus, 904 input[type="button"]:hover, 905 input[type="button"]:focus, 906 input[type="reset"]:hover, 907 input[type="reset"]:focus, 908 input[type="submit"]:hover, 909 input[type="submit"]:focus { 910 background: #111; 916 .button:visited, 917 button:visited, 918 input[type="button"]:visited, 919 input[type="reset"]:visited, 920 input[type="submit"]:visited { 921 color: #fff; 922 text-decoration: none; 911 923 } 912 924 … … 916 928 input[type="reset"]:focus, 917 929 input[type="submit"]:focus { 930 background: #111; 918 931 outline: thin dotted; 919 932 outline-offset: -4px; … … 942 955 outline: none; 943 956 padding: 0.36rem 0.66rem; 957 -webkit-appearance: none; 958 outline-offset: 0; 959 border-radius: 0; 944 960 } 945 961 … … 965 981 } 966 982 983 input[type="search"]::-webkit-search-decoration { 984 display: none; 985 } 986 967 987 textarea { 968 988 box-sizing: border-box; … … 1015 1035 */ 1016 1036 /** 1037 * Fade-in animation for top-level submenus 1038 */ 1039 /** 1017 1040 * Full-screen touch device styles 1018 1041 */ … … 1097 1120 } 1098 1121 1122 .wp-customizer-unloading .main-navigation .main-menu > li.menu-item-has-children .submenu-expand, .main-navigation .main-menu > li.menu-item-has-children .submenu-expand.is-empty { 1123 display: none; 1124 } 1125 1099 1126 .main-navigation .main-menu > li.menu-item-has-children .submenu-expand svg { 1100 1127 position: relative; … … 1105 1132 .main-navigation .main-menu > li:last-child.menu-item-has-children .submenu-expand { 1106 1133 margin-right: 0; 1107 }1108 1109 .main-navigation .main-menu .is-hidden {1110 display: none;1111 1134 } 1112 1135 … … 1116 1139 list-style: none; 1117 1140 padding-left: 0; 1118 display: none;1119 1141 position: absolute; 1120 1142 opacity: 0; 1121 left: -999 px;1143 left: -9999px; 1122 1144 z-index: 99999; 1123 1145 } … … 1183 1205 .main-navigation .sub-menu > li > .menu-item-link-return:focus:after { 1184 1206 background: #005177; 1207 } 1208 1209 .main-navigation .sub-menu > li > a:empty { 1210 display: none; 1185 1211 } 1186 1212 … … 1321 1347 1322 1348 .main-navigation .main-menu .menu-item-has-children:not(.off-canvas)[focus-within] > .sub-menu .sub-menu li > a:before { 1323 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;1349 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 1324 1350 font-weight: normal; 1325 1351 } 1326 1352 1327 1353 .main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus-within > .sub-menu .sub-menu li > a:before { 1328 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;1354 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 1329 1355 font-weight: normal; 1330 1356 } … … 1486 1512 .main-navigation .main-menu .menu-item-has-children:not(.off-canvas):focus > .sub-menu .sub-menu li > a:before, 1487 1513 .main-navigation .main-menu .menu-item-has-children.is-focused:not(.off-canvas) > .sub-menu .sub-menu li > a:before { 1488 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;1514 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 1489 1515 font-weight: normal; 1490 1516 } … … 1544 1570 } 1545 1571 1546 .main-navigation .main-menu .menu-item-has-children.off-canvas.sub-menu {1572 .main-navigation .main-menu > .menu-item-has-children:not(.off-canvas):hover > .sub-menu { 1547 1573 animation: fade_in 0.1s forwards; 1548 1574 } … … 1609 1635 top: 0; 1610 1636 } 1637 } 1638 1639 .main-navigation .main-menu-more:nth-child(n+3) { 1640 display: none; 1611 1641 } 1612 1642 … … 2696 2726 } 2697 2727 2698 .entry .entry-content a :hover {2728 .entry .entry-content a.button, .entry .entry-content a:hover { 2699 2729 text-decoration: none; 2730 } 2731 2732 .entry .entry-content a.button { 2733 display: inline-block; 2734 } 2735 2736 .entry .entry-content a.button:hover { 2737 background: #111; 2738 color: #fff; 2739 cursor: pointer; 2700 2740 } 2701 2741 … … 3402 3442 .widget_recent_entries ul ul li > a:before, 3403 3443 .widget_rss ul ul li > a:before { 3404 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;3444 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 3405 3445 font-weight: normal; 3406 3446 } … … 3517 3557 .widget_calendar .calendar_wrap { 3518 3558 text-align: center; 3519 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;3520 3559 } 3521 3560 … … 3739 3778 } 3740 3779 3741 .entry .entry-content .wp-block-audio.aligncenter {3742 margin: 32px calc(2 * (100vw / 12));3743 max-width: calc(6 * (100vw / 12));3744 }3745 3746 3780 .entry .entry-content .wp-block-video video { 3747 3781 width: 100%; … … 3834 3868 3835 3869 .entry .entry-content .wp-block-categories ul li > a:before { 3836 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;3870 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 3837 3871 font-weight: normal; 3838 3872 } … … 3899 3933 3900 3934 .entry .entry-content .wp-block-verse { 3901 font-family: " Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;3935 font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; 3902 3936 font-size: 22px; 3903 3937 line-height: 1.8; … … 4290 4324 4291 4325 .entry .entry-content .wp-block-embed-twitter { 4292 overflow: hidden;4326 word-break: break-word; 4293 4327 } 4294 4328 … … 4303 4337 4304 4338 .entry .entry-content .wp-block-file .wp-block-file__button { 4339 display: table; 4305 4340 transition: background 150ms ease-in-out; 4306 4341 border: none; … … 4314 4349 padding: 0.75rem 1rem; 4315 4350 color: #fff; 4351 margin-left: 0; 4352 margin-top: calc(0.75 * 1rem); 4316 4353 } 4317 4354 … … 4332 4369 outline: thin dotted; 4333 4370 outline-offset: -4px; 4334 }4335 4336 .entry .entry-content .wp-block-file * + .wp-block-file__button {4337 margin-left: 0.75rem;4338 4371 } 4339 4372
Note: See TracChangeset
for help on using the changeset viewer.