Changeset 46701
- Timestamp:
- 11/11/2019 12:27:21 PM (5 years ago)
- Location:
- trunk/src/wp-content/themes/twentytwenty
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css
r46613 r46701 320 320 } 321 321 322 .editor-styles-wrapper p.has-normal-font-size, 322 323 .editor-styles-wrapper p.has-regular-font-size { 323 324 font-size: 1em; -
trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css
r46613 r46701 320 320 } 321 321 322 .editor-styles-wrapper p.has-normal-font-size, 322 323 .editor-styles-wrapper p.has-regular-font-size { 323 324 font-size: 1em; -
trunk/src/wp-content/themes/twentytwenty/assets/js/customize-controls.js
r46446 r46701 1 /* global twentyTwentyBgColors, twentyTwentyColor, Color,jQuery, wp, _ */1 /* global twentyTwentyBgColors, twentyTwentyColor, jQuery, wp, _ */ 2 2 /** 3 3 * Customizer enhancements for a better user experience. … … 75 75 76 76 // Get secondary color. 77 value[ context ].secondary = Color( {78 h: colors.bgColorObj.h(),79 s: colors.bgColorObj.s() / 2,80 l: ( colors.textColorObj.l() * 0.57 ) + ( colors.bgColorObj.l() * 0.43)81 } ).toCSS();77 value[ context ].secondary = colors.bgColorObj 78 .clone() 79 .getReadableContrastingColor( colors.bgColorObj ) 80 .s( colors.bgColorObj.s() / 2 ) 81 .toCSS(); 82 82 } 83 83 -
trunk/src/wp-content/themes/twentytwenty/assets/js/index.js
r46668 r46701 31 31 NodeList.prototype.forEach = function( callback, thisArg ) { 32 32 var i; 33 var len = this.length; 33 34 34 35 thisArg = thisArg || window; 35 36 36 for ( i = 0; i < this.length; i++ ) {37 for ( i = 0; i < len; i++ ) { 37 38 callback.call( thisArg, this[ i ], i, this ); 38 39 } … … 69 70 } 70 71 72 // Add a class to the body for when touch is enabled for browsers that don't support media queries 73 // for interaction media features. Adapted from <https://codepen.io/Ferie/pen/vQOMmO> 74 ( function() { 75 var matchMedia = function() { 76 // Include the 'heartz' as a way to have a non matching MQ to help terminate the join. See <https://git.io/vznFH>. 77 var prefixes = [ '-webkit-', '-moz-', '-o-', '-ms-' ]; 78 var query = [ '(', prefixes.join( 'touch-enabled),(' ), 'heartz', ')' ].join( '' ); 79 return window.matchMedia && window.matchMedia( query ).matches; 80 }; 81 82 if ( ( 'ontouchstart' in window ) || ( window.DocumentTouch && document instanceof window.DocumentTouch ) || matchMedia() ) { 83 document.body.classList.add( 'touch-enabled' ); 84 } 85 }() ); 86 71 87 /* ----------------------------------------------------------------------------------------------- 72 88 Cover Modals … … 524 540 } 525 541 } 526 527 /**528 * Toggles `focus` class to allow submenu access on tablets.529 */530 ( function( menuObj ) {531 var touchStartFn, j,532 parentLink = menuObj.querySelectorAll( '.primary-menu .menu-item-has-children > a' );533 534 if ( 'ontouchstart' in window ) {535 touchStartFn = function( e ) {536 var menuItem = this.parentNode;537 538 if ( ! menuItem.classList.contains( 'focus' ) ) {539 e.preventDefault();540 for ( j = 0; j < menuItem.parentNode.children.length; ++j ) {541 if ( menuItem === menuItem.parentNode.children[j] ) {542 continue;543 }544 menuItem.parentNode.children[i].classList.remove( 'focus' );545 }546 menuItem.classList.add( 'focus' );547 } else {548 menuItem.classList.remove( 'focus' );549 }550 };551 552 for ( j = 0; j < parentLink.length; ++j ) {553 parentLink[j].addEventListener( 'touchstart', touchStartFn, false );554 }555 }556 }( menu ) );557 542 } 558 543 }; // twentytwenty.primaryMenu -
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php
r46613 r46701 20 20 * 21 21 * Return CSS for non-latin language, if available, or null 22 * 22 * 23 23 * @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor". 24 24 * -
trunk/src/wp-content/themes/twentytwenty/footer.php
r46613 r46701 27 27 ?> 28 28 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo bloginfo( 'name' ); ?></a> 29 </p> 29 </p><!-- .footer-copyright --> 30 30 31 31 <p class="powered-by-wordpress"> -
trunk/src/wp-content/themes/twentytwenty/functions.php
r46668 r46701 20 20 * WP Body Open 21 21 * Register Sidebars 22 * Enqueue block editor assets23 * Enqueue classic editor styles24 * Block editor settings22 * Enqueue Block Editor Assets 23 * Enqueue Classic Editor Styles 24 * Block Editor Settings 25 25 */ 26 26 … … 120 120 add_theme_support( 'align-wide' ); 121 121 122 // Adds starter content to highlight the theme on fresh sites. 123 add_theme_support( 'starter-content', twentytwenty_get_starter_content() ); 122 /* 123 * Adds starter content to highlight the theme on fresh sites. 124 * This is done conditionally to avoid loading the starter content on every 125 * page load, as it is a one-off operation only needed once in the customizer. 126 */ 127 if ( is_customize_preview() ) { 128 require get_template_directory() . '/inc/starter-content.php'; 129 add_theme_support( 'starter-content', twentytwenty_get_starter_content() ); 130 } 124 131 125 132 // Add theme support for selective refresh for widgets. … … 167 174 // Custom CSS. 168 175 require get_template_directory() . '/inc/custom-css.php'; 169 170 // Custom starter content to highlight the theme on fresh sites.171 require get_template_directory() . '/inc/starter-content.php';172 176 173 177 /** … … 532 536 'shortName' => _x( 'M', 'Short name of the regular font size in the block editor.', 'twentytwenty' ), 533 537 'size' => 21, 534 'slug' => ' regular',538 'slug' => 'normal', 535 539 ), 536 540 array( … … 693 697 'content' => array( 694 698 'accent' => array( 695 'color' => array( '.color-accent', '.color-accent-hover:hover', '.color-accent-hover:focus', ':root .has-accent-color', '.has-drop-cap:not(:focus):first-letter', '.wp-block-button.is-style-outline', 'a' ),696 'border-color' => array( 'blockquote', '.border-color-accent', '.border-color-accent-hover:hover', '.border-color-accent-hover:focus' ),697 'background '=> array( 'button:not(.toggle)', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file .wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.bg-accent', '.bg-accent-hover:hover', '.bg-accent-hover:focus', ':root .has-accent-background-color', '.comment-reply-link' ),698 'fill' => array( '.fill-children-accent', '.fill-children-accent *' ),699 'color' => array( '.color-accent', '.color-accent-hover:hover', '.color-accent-hover:focus', ':root .has-accent-color', '.has-drop-cap:not(:focus):first-letter', '.wp-block-button.is-style-outline', 'a' ), 700 'border-color' => array( 'blockquote', '.border-color-accent', '.border-color-accent-hover:hover', '.border-color-accent-hover:focus' ), 701 'background-color' => array( 'button:not(.toggle)', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file .wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.bg-accent', '.bg-accent-hover:hover', '.bg-accent-hover:focus', ':root .has-accent-background-color', '.comment-reply-link' ), 702 'fill' => array( '.fill-children-accent', '.fill-children-accent *' ), 699 703 ), 700 704 'background' => array( 701 'color' => array( ':root .has-background-color', 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.wp-block-button', '.comment-reply-link' ),702 'background ' => array( ':root .has-background-background-color' ),705 'color' => array( ':root .has-background-color', 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.wp-block-button', '.comment-reply-link', '.has-background.has-primary-background-color:not(.has-text-color)', '.has-background.has-primary-background-color *:not(.has-text-color)', '.has-background.has-accent-background-color:not(.has-text-color)', '.has-background.has-accent-background-color *:not(.has-text-color)' ), 706 'background-color' => array( ':root .has-background-background-color' ), 703 707 ), 704 708 'text' => array( 705 'color' => array( 'body', '.entry-title a', ':root .has-primary-color' ),706 'background ' => array( ':root .has-primary-background-color' ),709 'color' => array( 'body', '.entry-title a', ':root .has-primary-color' ), 710 'background-color' => array( ':root .has-primary-background-color' ), 707 711 ), 708 712 'secondary' => array( 709 'color' => array( 'cite', 'figcaption', '.wp-caption-text', '.post-meta', '.entry-content .wp-block-archives li', '.entry-content .wp-block-categories li', '.entry-content .wp-block-latest-posts li', '.wp-block-latest-comments__comment-date', '.wp-block-latest-posts__post-date', '.wp-block-embed figcaption', '.wp-block-image figcaption', '.wp-block-pullquote cite', '.comment-metadata', '.comment-respond .comment-notes', '.comment-respond .logged-in-as', '.pagination .dots', '.entry-content hr:not(.has-background)', 'hr.styled-separator', ':root .has-secondary-color' ),710 'background ' => array( ':root .has-secondary-background-color' ),713 'color' => array( 'cite', 'figcaption', '.wp-caption-text', '.post-meta', '.entry-content .wp-block-archives li', '.entry-content .wp-block-categories li', '.entry-content .wp-block-latest-posts li', '.wp-block-latest-comments__comment-date', '.wp-block-latest-posts__post-date', '.wp-block-embed figcaption', '.wp-block-image figcaption', '.wp-block-pullquote cite', '.comment-metadata', '.comment-respond .comment-notes', '.comment-respond .logged-in-as', '.pagination .dots', '.entry-content hr:not(.has-background)', 'hr.styled-separator', ':root .has-secondary-color' ), 714 'background-color' => array( ':root .has-secondary-background-color' ), 711 715 ), 712 716 'borders' => array( 713 717 'border-color' => array( 'pre', 'fieldset', 'input', 'textarea', 'table', 'table *', 'hr' ), 714 'background '=> array( 'caption', 'code', 'code', 'kbd', 'samp', '.wp-block-table.is-style-stripes tbody tr:nth-child(odd)', ':root .has-subtle-background-background-color' ),718 'background-color' => array( 'caption', 'code', 'code', 'kbd', 'samp', '.wp-block-table.is-style-stripes tbody tr:nth-child(odd)', ':root .has-subtle-background-background-color' ), 715 719 'border-bottom-color' => array( '.wp-block-table.is-style-stripes' ), 716 720 'border-top-color' => array( '.wp-block-latest-posts.is-grid li' ), … … 720 724 'header-footer' => array( 721 725 'accent' => array( 722 'color' => array( 'body:not(.overlay-header) .primary-menu > li > a', 'body:not(.overlay-header) .primary-menu > li > .icon', '.modal-menu a', '.footer-menu a, .footer-widgets a', '#site-footer .wp-block-button.is-style-outline', '.wp-block-pullquote:before', '.singular:not(.overlay-header) .entry-header a', '.archive-header a', '.header-footer-group .color-accent', '.header-footer-group .color-accent-hover:hover' ),723 'background ' => array( '.social-icons a', '#site-footer button:not(.toggle)', '#site-footer .button', '#site-footer .faux-button', '#site-footer .wp-block-button__link', '#site-footer .wp-block-file__button', '#site-footer input[type="button"]', '#site-footer input[type="reset"]', '#site-footer input[type="submit"]' ),726 'color' => array( 'body:not(.overlay-header) .primary-menu > li > a', 'body:not(.overlay-header) .primary-menu > li > .icon', '.modal-menu a', '.footer-menu a, .footer-widgets a', '#site-footer .wp-block-button.is-style-outline', '.wp-block-pullquote:before', '.singular:not(.overlay-header) .entry-header a', '.archive-header a', '.header-footer-group .color-accent', '.header-footer-group .color-accent-hover:hover' ), 727 'background-color' => array( '.social-icons a', '#site-footer button:not(.toggle)', '#site-footer .button', '#site-footer .faux-button', '#site-footer .wp-block-button__link', '#site-footer .wp-block-file__button', '#site-footer input[type="button"]', '#site-footer input[type="reset"]', '#site-footer input[type="submit"]' ), 724 728 ), 725 729 'background' => array( 726 'color' => array( '.social-icons a', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ),727 'background ' => array( '#site-header', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal', '.menu-modal-inner', '.search-modal-inner', '.archive-header', '.singular .entry-header', '.singular .featured-media:before', '.wp-block-pullquote:before' ),730 'color' => array( '.social-icons a', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ), 731 'background-color' => array( '#site-header', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal', '.menu-modal-inner', '.search-modal-inner', '.archive-header', '.singular .entry-header', '.singular .featured-media:before', '.wp-block-pullquote:before' ), 728 732 ), 729 733 'text' => array( 730 734 'color' => array( '.header-footer-group', 'body:not(.overlay-header) #site-header .toggle', '.menu-modal .toggle' ), 731 'background '=> array( 'body:not(.overlay-header) .primary-menu ul' ),735 'background-color' => array( 'body:not(.overlay-header) .primary-menu ul' ), 732 736 'border-bottom-color' => array( 'body:not(.overlay-header) .primary-menu > li > ul:after' ), 733 737 'border-left-color' => array( 'body:not(.overlay-header) .primary-menu ul ul:after' ), … … 737 741 ), 738 742 'borders' => array( 739 'border-color' => array( '.header-footer-group pre', '.header-footer-group fieldset', '.header-footer-group input', '.header-footer-group textarea', '.header-footer-group table', '.header-footer-group table *', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal nav *', '.footer-widgets-outer-wrapper', '.footer-top' ),740 'background '=> array( '.header-footer-group table caption', 'body:not(.overlay-header) .header-inner .toggle-wrapper::before' ),743 'border-color' => array( '.header-footer-group pre', '.header-footer-group fieldset', '.header-footer-group input', '.header-footer-group textarea', '.header-footer-group table', '.header-footer-group table *', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal nav *', '.footer-widgets-outer-wrapper', '.footer-top' ), 744 'background-color' => array( '.header-footer-group table caption', 'body:not(.overlay-header) .header-inner .toggle-wrapper::before' ), 741 745 ), 742 746 ), -
trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php
r46613 r46701 130 130 // Background color. 131 131 if ( $background && $background !== $background_default ) { 132 twentytwenty_generate_css( '.editor-styles-wrapper', 'background', '#' . $background ); 132 twentytwenty_generate_css( '.editor-styles-wrapper', 'background-color', '#' . $background ); 133 twentytwenty_generate_css( '.has-background.has-primary-background-color:not(.has-text-color),.has-background.has-primary-background-color *:not(.has-text-color),.has-background.has-accent-background-color:not(.has-text-color),.has-background.has-accent-background-color *:not(.has-text-color)', 'color', '#' . $background ); 133 134 } 134 135 … … 165 166 // Background color. 166 167 if ( $background && $background !== $background_default ) { 167 twentytwenty_generate_css( 'body#tinymce.wp-editor.content', 'background ', '#' . $background );168 twentytwenty_generate_css( 'body#tinymce.wp-editor.content', 'background-color', '#' . $background ); 168 169 } 169 170 -
trunk/src/wp-content/themes/twentytwenty/inc/starter-content.php
r46571 r46701 176 176 'name' => __( 'Primary', 'twentytwenty' ), 177 177 'items' => array( 178 'link_home', // Note that the core "home" page is actually a link in case a static front page is not used. 179 'page_about', 180 'page_blog', 178 181 'page_contact', 179 182 ), 180 183 ), 181 // Assign a menu to the "expanded" (modal) menu location.184 // This replicates primary just to demonstrate the expanded menu. 182 185 'expanded' => array( 183 186 'name' => __( 'Primary', 'twentytwenty' ), … … 186 189 'page_about', 187 190 'page_blog', 191 'page_contact', 188 192 ), 189 193 ), -
trunk/src/wp-content/themes/twentytwenty/print.css
r46613 r46701 67 67 h3, 68 68 h4, 69 .has-normal-font-size, 69 70 .has-regular-font-size, 70 71 .has-large-font-size, -
trunk/src/wp-content/themes/twentytwenty/style-rtl.css
r46676 r46701 181 181 width: 1px; 182 182 word-wrap: normal !important; 183 word-break: normal; 183 184 } 184 185 … … 827 828 } 828 829 830 input[type="text"]:focus, 831 input[type="email"]:focus, 832 input[type="url"]:focus, 833 input[type="password"]:focus, 834 input[type="number"]:focus, 835 input[type="tel"]:focus, 836 input[type="range"]:focus, 837 input[type="date"]:focus, 838 input[type="month"]:focus, 839 input[type="week"]:focus, 840 input[type="time"]:focus, 841 input[type="datetime"]:focus, 842 input[type="datetime-local"]:focus, 843 input[type="color"]:focus, 844 textarea:focus { 845 border-color: currentColor; 846 } 847 848 input[type="search"]:focus { 849 outline: thin dotted; 850 outline-offset: -4px; 851 } 852 829 853 /* Tables ------------------------------------ */ 830 854 … … 1680 1704 } 1681 1705 1706 /* 1707 * Enable nav submenu expansion with tapping on arrows on large-viewport 1708 * touch interfaces (e.g. tablets or laptops with touch screens). 1709 * These rules are supported by all browsers (>IE11) and when JS is disabled. 1710 */ 1711 @media (any-pointer: coarse) { 1712 1713 .primary-menu > li.menu-item-has-children > a { 1714 padding-left: 0; 1715 margin-left: 2rem; 1716 } 1717 1718 .primary-menu ul li.menu-item-has-children > a { 1719 margin-left: 4.5rem; 1720 padding-left: 0; 1721 width: unset; 1722 } 1723 1724 } 1725 1726 /* Repeat previous rules for IE11 (when JS enabled for polyfill). */ 1727 body.touch-enabled .primary-menu > li.menu-item-has-children > a { 1728 padding-left: 0; 1729 margin-left: 2rem; 1730 } 1731 1732 body.touch-enabled .primary-menu ul li.menu-item-has-children > a { 1733 margin-left: 4.5rem; 1734 padding-left: 0; 1735 width: unset; 1736 } 1737 1682 1738 /* -------------------------------------------------------------------------- */ 1683 1739 … … 2686 2742 } 2687 2743 2744 .entry-content .has-normal-font-size, 2688 2745 .entry-content .has-regular-font-size { 2689 2746 font-size: 1em; … … 2865 2922 /* Block: Columns ---------------------------- */ 2866 2923 2924 .wp-block-columns.alignfull, 2925 .alignfull:not(.has-background) .wp-block-columns { 2926 padding-right: 2rem; 2927 padding-left: 2rem; 2928 } 2929 2867 2930 .wp-block-column { 2868 2931 margin-bottom: 3.2rem; … … 2990 3053 .entry-content .wp-block-group p { 2991 3054 max-width: 100%; 3055 } 3056 3057 .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 3058 padding-right: 2rem; 3059 padding-left: 2rem; 2992 3060 } 2993 3061 … … 3176 3244 } 3177 3245 3178 .wp-block-table.is-style-stripes {3246 figure.wp-block-table.is-style-stripes { 3179 3247 border-bottom: none; 3248 } 3249 3250 .wp-block-table.is-style-stripes table { 3251 border-collapse: inherit; 3180 3252 } 3181 3253 … … 4348 4420 } 4349 4421 4350 }4351 4352 @media ( max-width: 599px ) {4353 4354 /* Blocks -------------------------------- */4355 4356 /* BLOCK: COLUMNS */4357 4358 .alignfull:not(.has-background) .wp-block-column > p:not(.has-background-color),4359 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {4360 max-width: calc(100% - 4rem);4361 margin: auto;4362 }4363 }4364 4365 @media ( min-width: 600px ) and ( max-width: 781px ) {4366 4367 /* Blocks -------------------------------- */4368 4369 /* BLOCK: COLUMNS */4370 4371 .alignfull:not(.has-background) .wp-block-column:nth-child(odd) > p:not(.has-background-color),4372 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {4373 padding-right: 2rem;4374 }4375 4376 .alignfull:not(.has-background) .wp-block-column:nth-child(even) > p:not(.has-background-color),4377 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {4378 padding-left: 2rem;4379 }4380 4422 } 4381 4423 … … 5280 5322 } 5281 5323 5282 .alignfull .wp-block-column:first-child > p, 5283 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) { 5284 padding-right: 2rem; 5285 } 5286 5287 .alignfull:not(.has-background) .wp-block-column:last-child > p, 5288 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) { 5289 padding-left: 2rem; 5324 .wp-block-columns.alignwide + .wp-block-columns.alignwide, 5325 .wp-block-columns.alignfull + .wp-block-columns.alignfull { 5326 margin-top: -2.8rem; 5290 5327 } 5291 5328 } … … 5513 5550 .wp-block-columns.alignwide + .wp-block-columns.alignwide, 5514 5551 .wp-block-columns.alignfull + .wp-block-columns.alignfull { 5515 margin-top: - 5.2rem;5552 margin-top: -4.8rem; 5516 5553 } 5517 5554 -
trunk/src/wp-content/themes/twentytwenty/style.css
r46676 r46701 181 181 width: 1px; 182 182 word-wrap: normal !important; 183 word-break: normal; 183 184 } 184 185 … … 833 834 } 834 835 836 input[type="text"]:focus, 837 input[type="email"]:focus, 838 input[type="url"]:focus, 839 input[type="password"]:focus, 840 input[type="number"]:focus, 841 input[type="tel"]:focus, 842 input[type="range"]:focus, 843 input[type="date"]:focus, 844 input[type="month"]:focus, 845 input[type="week"]:focus, 846 input[type="time"]:focus, 847 input[type="datetime"]:focus, 848 input[type="datetime-local"]:focus, 849 input[type="color"]:focus, 850 textarea:focus { 851 border-color: currentColor; 852 } 853 854 input[type="search"]:focus { 855 outline: thin dotted; 856 outline-offset: -4px; 857 } 858 835 859 /* Tables ------------------------------------ */ 836 860 … … 1688 1712 } 1689 1713 1714 /* 1715 * Enable nav submenu expansion with tapping on arrows on large-viewport 1716 * touch interfaces (e.g. tablets or laptops with touch screens). 1717 * These rules are supported by all browsers (>IE11) and when JS is disabled. 1718 */ 1719 @media (any-pointer: coarse) { 1720 1721 .primary-menu > li.menu-item-has-children > a { 1722 padding-right: 0; 1723 margin-right: 2rem; 1724 } 1725 1726 .primary-menu ul li.menu-item-has-children > a { 1727 margin-right: 4.5rem; 1728 padding-right: 0; 1729 width: unset; 1730 } 1731 1732 } 1733 1734 /* Repeat previous rules for IE11 (when JS enabled for polyfill). */ 1735 body.touch-enabled .primary-menu > li.menu-item-has-children > a { 1736 padding-right: 0; 1737 margin-right: 2rem; 1738 } 1739 1740 body.touch-enabled .primary-menu ul li.menu-item-has-children > a { 1741 margin-right: 4.5rem; 1742 padding-right: 0; 1743 width: unset; 1744 } 1745 1690 1746 /* -------------------------------------------------------------------------- */ 1691 1747 … … 2700 2756 } 2701 2757 2758 .entry-content .has-normal-font-size, 2702 2759 .entry-content .has-regular-font-size { 2703 2760 font-size: 1em; … … 2879 2936 /* Block: Columns ---------------------------- */ 2880 2937 2938 .wp-block-columns.alignfull, 2939 .alignfull:not(.has-background) .wp-block-columns { 2940 padding-left: 2rem; 2941 padding-right: 2rem; 2942 } 2943 2881 2944 .wp-block-column { 2882 2945 margin-bottom: 3.2rem; … … 3004 3067 .entry-content .wp-block-group p { 3005 3068 max-width: 100%; 3069 } 3070 3071 .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) { 3072 padding-left: 2rem; 3073 padding-right: 2rem; 3006 3074 } 3007 3075 … … 3190 3258 } 3191 3259 3192 .wp-block-table.is-style-stripes {3260 figure.wp-block-table.is-style-stripes { 3193 3261 border-bottom: none; 3262 } 3263 3264 .wp-block-table.is-style-stripes table { 3265 border-collapse: inherit; 3194 3266 } 3195 3267 … … 4370 4442 } 4371 4443 4372 }4373 4374 @media ( max-width: 599px ) {4375 4376 /* Blocks -------------------------------- */4377 4378 /* BLOCK: COLUMNS */4379 4380 .alignfull:not(.has-background) .wp-block-column > p:not(.has-background-color),4381 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {4382 max-width: calc(100% - 4rem);4383 margin: auto;4384 }4385 }4386 4387 @media ( min-width: 600px ) and ( max-width: 781px ) {4388 4389 /* Blocks -------------------------------- */4390 4391 /* BLOCK: COLUMNS */4392 4393 .alignfull:not(.has-background) .wp-block-column:nth-child(odd) > p:not(.has-background-color),4394 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {4395 padding-left: 2rem;4396 }4397 4398 .alignfull:not(.has-background) .wp-block-column:nth-child(even) > p:not(.has-background-color),4399 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) {4400 padding-right: 2rem;4401 }4402 4444 } 4403 4445 … … 5314 5356 } 5315 5357 5316 .alignfull .wp-block-column:first-child > p, 5317 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) { 5318 padding-left: 2rem; 5319 } 5320 5321 .alignfull:not(.has-background) .wp-block-column:last-child > p, 5322 .alignfull:not(.has-background) .wp-block-group__inner-container > p:not(.has-background-color) { 5323 padding-right: 2rem; 5358 .wp-block-columns.alignwide + .wp-block-columns.alignwide, 5359 .wp-block-columns.alignfull + .wp-block-columns.alignfull { 5360 margin-top: -2.8rem; 5324 5361 } 5325 5362 } … … 5547 5584 .wp-block-columns.alignwide + .wp-block-columns.alignwide, 5548 5585 .wp-block-columns.alignfull + .wp-block-columns.alignfull { 5549 margin-top: - 5.2rem;5586 margin-top: -4.8rem; 5550 5587 } 5551 5588
Note: See TracChangeset
for help on using the changeset viewer.