From 5ee3395b2e73bc84fb612fc0dd6da08c8ffe4375 Mon Sep 17 00:00:00 2001 From: Sybre Waaijer Date: Wed, 17 Jul 2024 15:03:53 +0200 Subject: [PATCH] Resolve WP 6.6 CSS regression. --- autodescription.php | 2 +- lib/css/post.css | 6 +++--- lib/css/post.min.css | 2 +- lib/css/pt.css | 3 --- readme.txt | 1 + 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/autodescription.php b/autodescription.php index ed87b513..21433335 100644 --- a/autodescription.php +++ b/autodescription.php @@ -3,7 +3,7 @@ * Plugin Name: The SEO Framework * Plugin URI: https://theseoframework.com/ * Description: An automated, advanced, accessible, unbranded and extremely fast SEO solution for your WordPress website. - * Version: 5.0.7-dev-13 + * Version: 5.0.7-dev-14 * Author: The SEO Framework Team * Author URI: https://theseoframework.com/ * License: GPLv3 diff --git a/lib/css/post.css b/lib/css/post.css index 5bdba20a..8d6b5f04 100644 --- a/lib/css/post.css +++ b/lib/css/post.css @@ -4,7 +4,7 @@ } #tsf-inpost-box:not( .tsf-is-block-editor ) .inside, -.edit-post-sidebar #tsf-inpost-box .inside { /* .edit-post-sidebar is Gutenberg-only */ +#edit-post\:document #tsf-inpost-box .inside { /* edit-post\:document is Gutenberg's sidebar */ width: 100%; padding: 0; } @@ -22,8 +22,8 @@ border: 1px solid #ddd; } -/* .edit-post-sidebar is Gutenberg-only. .tsf-is-block-editor is used to override specificity */ -.edit-post-sidebar .tsf-is-block-editor .tsf-flex-inside-wrap { +/* edit-post\:document is Gutenberg's sidebar; .tsf-is-block-editor is used to override specificity */ +#edit-post\:document .tsf-is-block-editor .tsf-flex-inside-wrap { border: 0; } diff --git a/lib/css/post.min.css b/lib/css/post.min.css index 694c5183..f01639e4 100644 --- a/lib/css/post.min.css +++ b/lib/css/post.min.css @@ -1 +1 @@ -#tsf-inpost-box .inside{margin:0;padding:14px}#tsf-inpost-box:not(.tsf-is-block-editor) .inside,.edit-post-sidebar #tsf-inpost-box .inside{width:100%;padding:0}#tsf-inpost-box.closed .inside{display:none}.tsf-flex-inside-wrap{flex-direction:row;width:100%}.tsf-is-block-editor .tsf-flex-inside-wrap{border:1px solid #ddd}.edit-post-sidebar .tsf-is-block-editor .tsf-flex-inside-wrap{border:0}.tsf-flex-setting{width:100%;flex-direction:row;border-bottom:1px solid #e2e4e7}.tsf-flex-setting:last-of-type{border-bottom:0}.tsf-flex-setting-input .tsf-flex-setting{border-left:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.tsf-flex-setting-input .tsf-flex-setting:first-of-type{border-top:1px solid #e2e4e7}.tsf-flex-setting-input .tsf-flex-setting:last-of-type{border-bottom:1px solid #e2e4e7}#tsf-inpost-box .inside select{width:100%;max-width:99%;text-overflow:ellipsis}.tsf-flex-setting-input,.tsf-flex-setting-label{background-color:#fff;padding:15px 12px;flex:10 1 350px}.tsf-flex-setting-label{background-color:#f9f9f9;flex:1 1 200px}.tsf-flex-setting-input{justify-content:center;flex-wrap:nowrap}.tsf-flex-setting-label-item{flex-flow:row nowrap;justify-content:space-between;flex-grow:0}.tsf-flex-setting-label-inner-wrap{justify-content:center}.tsf-flex-setting-label-item>*{margin-right:4px}.tsf-flex-setting-label-item>:last-child{margin-right:0}.tsf-flex-setting-label-sub-item{margin-top:15px}.tsf-social-image-buttons{margin-top:15px;margin-left:1px}body.rtl .tsf-social-image-buttons{margin-right:1px;margin-left:0}.tsf-flex-setting-input textarea{max-height:250px}input.tsf-flex-nav-tab-radio{position:absolute;width:0;height:0;opacity:0;margin:0;padding:0;border:0;z-index:-1;-webkit-appearance:none;-moz-appearance:none;appearance:none}.tsf-flex-nav-tab-wrapper{background-color:#f5f5f5;border-bottom:1px solid #dadada;align-items:baseline;flex-flow:row nowrap;max-width:100%;overflow:hidden;font-weight:600}.tsf-is-block-editor .tsf-flex-nav-tab-wrapper{background-color:#f3f4f5;border-bottom-color:#e2e4e7}.tsf-flex-nav-tab-inner{flex-flow:row nowrap}.tsf-flex-nav-tab{flex-direction:row;max-width:125px}.tsf-flex-nav-tab-label{padding:12px;text-align:center;flex-direction:row;box-shadow:0 0 0 0 transparent inset;transition:box-shadow .15s ease-out;align-items:center;align-content:space-around;position:relative;cursor:pointer}.tsf-flex-nav-dashicon,.tsf-flex-nav-name{align-items:center;justify-content:center;margin:0 2px}.tsf-flex-nav-tab .tsf-flex-nav-tab-radio:checked+.tsf-flex-nav-tab-label{box-shadow:0 -2px 0 0 #007bd2 inset,0 0 0 0 #007bd2 inset;transition:box-shadow .25s ease-in}.tsf-flex-nav-tab .tsf-flex-nav-tab-radio:focus+.tsf-flex-nav-tab-label:not(.tsf-no-focus-ring){box-shadow:0 0 0 0 #007bd2 inset,0 0 0 1px #007bd2 inset}.tsf-flex-tab-content{flex:1 0 100%;max-width:100%;flex-wrap:nowrap}body.js .tsf-flex-tab-content{display:none}body.js .tsf-flex-tab-content.tsf-flex-tab-content-active{display:flex}.tsf-flex-tabs-content-no-js{background-color:#f3f3f3;border-bottom:1px solid #dadada;box-shadow:0 2px 0 0 #dadada inset}.tsf-flex-tab-no-js{align-items:baseline;flex-direction:row;flex:1 1 100%}.tsf-flex-tab-no-js .tsf-flex-nav-tab{padding:12px;min-width:125px;box-shadow:0 -2px 0 0 #007bd2 inset;flex-direction:row;flex:0 1 auto}#tsf-inpost-box .hndle{justify-content:unset;white-space:pre-wrap}#tsf-inpost-box .hndle .tsf-tooltip-wrap a{font-size:14px;line-height:1em}.tsf-js .tsf-flex-hide-if-js,.tsf-no-js .tsf-flex-hide-if-no-js{display:none} +#tsf-inpost-box .inside{margin:0;padding:14px}#edit-post\:document #tsf-inpost-box .inside,#tsf-inpost-box:not(.tsf-is-block-editor) .inside{width:100%;padding:0}#tsf-inpost-box.closed .inside{display:none}.tsf-flex-inside-wrap{flex-direction:row;width:100%}.tsf-is-block-editor .tsf-flex-inside-wrap{border:1px solid #ddd}#edit-post\:document .tsf-is-block-editor .tsf-flex-inside-wrap{border:0}.tsf-flex-setting{width:100%;flex-direction:row;border-bottom:1px solid #e2e4e7}.tsf-flex-setting:last-of-type{border-bottom:0}.tsf-flex-setting-input .tsf-flex-setting{border-left:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.tsf-flex-setting-input .tsf-flex-setting:first-of-type{border-top:1px solid #e2e4e7}.tsf-flex-setting-input .tsf-flex-setting:last-of-type{border-bottom:1px solid #e2e4e7}#tsf-inpost-box .inside select{width:100%;max-width:99%;text-overflow:ellipsis}.tsf-flex-setting-input,.tsf-flex-setting-label{background-color:#fff;padding:15px 12px;flex:10 1 350px}.tsf-flex-setting-label{background-color:#f9f9f9;flex:1 1 200px}.tsf-flex-setting-input{justify-content:center;flex-wrap:nowrap}.tsf-flex-setting-label-item{flex-flow:row nowrap;justify-content:space-between;flex-grow:0}.tsf-flex-setting-label-inner-wrap{justify-content:center}.tsf-flex-setting-label-item>*{margin-right:4px}.tsf-flex-setting-label-item>:last-child{margin-right:0}.tsf-flex-setting-label-sub-item{margin-top:15px}.tsf-social-image-buttons{margin-top:15px;margin-left:1px}body.rtl .tsf-social-image-buttons{margin-right:1px;margin-left:0}.tsf-flex-setting-input textarea{max-height:250px}input.tsf-flex-nav-tab-radio{position:absolute;width:0;height:0;opacity:0;margin:0;padding:0;border:0;z-index:-1;-webkit-appearance:none;-moz-appearance:none;appearance:none}.tsf-flex-nav-tab-wrapper{background-color:#f5f5f5;border-bottom:1px solid #dadada;align-items:baseline;flex-flow:row nowrap;max-width:100%;overflow:hidden;font-weight:600}.tsf-is-block-editor .tsf-flex-nav-tab-wrapper{background-color:#f3f4f5;border-bottom-color:#e2e4e7}.tsf-flex-nav-tab-inner{flex-flow:row nowrap}.tsf-flex-nav-tab{flex-direction:row;max-width:125px}.tsf-flex-nav-tab-label{padding:12px;text-align:center;flex-direction:row;box-shadow:0 0 0 0 transparent inset;transition:box-shadow .15s ease-out;align-items:center;align-content:space-around;position:relative;cursor:pointer}.tsf-flex-nav-dashicon,.tsf-flex-nav-name{align-items:center;justify-content:center;margin:0 2px}.tsf-flex-nav-tab .tsf-flex-nav-tab-radio:checked+.tsf-flex-nav-tab-label{box-shadow:0 -2px 0 0 #007bd2 inset,0 0 0 0 #007bd2 inset;transition:box-shadow .25s ease-in}.tsf-flex-nav-tab .tsf-flex-nav-tab-radio:focus+.tsf-flex-nav-tab-label:not(.tsf-no-focus-ring){box-shadow:0 0 0 0 #007bd2 inset,0 0 0 1px #007bd2 inset}.tsf-flex-tab-content{flex:1 0 100%;max-width:100%;flex-wrap:nowrap}body.js .tsf-flex-tab-content{display:none}body.js .tsf-flex-tab-content.tsf-flex-tab-content-active{display:flex}.tsf-flex-tabs-content-no-js{background-color:#f3f3f3;border-bottom:1px solid #dadada;box-shadow:0 2px 0 0 #dadada inset}.tsf-flex-tab-no-js{align-items:baseline;flex-direction:row;flex:1 1 100%}.tsf-flex-tab-no-js .tsf-flex-nav-tab{padding:12px;min-width:125px;box-shadow:0 -2px 0 0 #007bd2 inset;flex-direction:row;flex:0 1 auto}#tsf-inpost-box .hndle{justify-content:unset;white-space:pre-wrap}#tsf-inpost-box .hndle .tsf-tooltip-wrap a{font-size:14px;line-height:1em}.tsf-js .tsf-flex-hide-if-js,.tsf-no-js .tsf-flex-hide-if-no-js{display:none} diff --git a/lib/css/pt.css b/lib/css/pt.css index 158b14ce..255214b0 100644 --- a/lib/css/pt.css +++ b/lib/css/pt.css @@ -5,9 +5,6 @@ margin-top: 8px; } -/** - * Primary category selectors. - */ .tsf-is-primary-term { font-weight: 600; } diff --git a/readme.txt b/readme.txt index dd55a280..56d8fd24 100644 --- a/readme.txt +++ b/readme.txt @@ -327,6 +327,7 @@ TODO test image type support and warn users about Facebook not supporting webp ( * Resolved an issue where comment pagination queries were only ignored after the main query when the Full Site Editor was present; now, they're always ignored. * Resolved a regression where the post-saving sequence wasn't properly debounced, causing multiple save-state requests for TSF's meta box that affected the Block Editor's performance performance and caused the SEO settings UI to flicker. * Awesome Motive's All in One SEO Pack plugin outputs a notice urging to deactivate other SEO plugins, but without clarifying which SEO plugin emits this notice or telling which plugins get deactivated. So, we now hide this deceptive notice. + * Resolved a regression from WordPress 6.6 where a CSS identifier disappeared. We used this identifier to apply styling for the sidebar. We now use a different, more specific identifier that's in all WordPress versions we support; from `.edit-post-sidebar`, now `#edit-post\:document`. **For developers:**