diff --git a/plugin.php b/plugin.php index 5500016..11c5532 100644 --- a/plugin.php +++ b/plugin.php @@ -4,7 +4,7 @@ * Plugin Name: GutenTweaks * Plugin URI: https://github.com/log1x/gutentweaks * Description: A plugin containing a few Gutenberg tweaks. - * Version: 1.1.3 + * Version: 1.1.4 * Author: Brandon Nifong * Author URI: https://github.com/log1x * Licence: MIT diff --git a/public/css/editor.css b/public/css/editor.css index 70b8cd5..d0f6f8b 100644 --- a/public/css/editor.css +++ b/public/css/editor.css @@ -1 +1 @@ -@charset "UTF-8";.editor-styles-wrapper .wp-block[data-type="core/heading"]{position:relative}.editor-styles-wrapper .wp-block[data-type="core/heading"]:not(.is-selected):before{content:"";font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.75rem;font-weight:500;letter-spacing:-.025em;line-height:1rem;margin-left:-2rem;opacity:.5;position:absolute;text-transform:uppercase}.editor-styles-wrapper h1:not(.is-selected):before,.editor-styles-wrapper h2:not(.is-selected):before,.editor-styles-wrapper h3:not(.is-selected):before{margin-top:.25rem}.editor-styles-wrapper h4:not(.is-selected):before,.editor-styles-wrapper h5:not(.is-selected):before{margin-top:-1px}.editor-styles-wrapper h1.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h1"}.editor-styles-wrapper h2.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h2"}.editor-styles-wrapper h3.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h3"}.editor-styles-wrapper h4.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h4"}.editor-styles-wrapper h5.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h5"}.editor-styles-wrapper h6.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h6"}.editor-styles-wrapper ol.is-style-arrow-r,.editor-styles-wrapper ol.is-style-caret-r,.editor-styles-wrapper ol.is-style-check,.editor-styles-wrapper ol.is-style-check-circle,.editor-styles-wrapper ol.is-style-chevron-r,.editor-styles-wrapper ol.is-style-dash,.editor-styles-wrapper ol.is-style-star,.editor-styles-wrapper ol.is-style-times,.editor-styles-wrapper ul.is-style-arrow-r,.editor-styles-wrapper ul.is-style-caret-r,.editor-styles-wrapper ul.is-style-check,.editor-styles-wrapper ul.is-style-check-circle,.editor-styles-wrapper ul.is-style-chevron-r,.editor-styles-wrapper ul.is-style-dash,.editor-styles-wrapper ul.is-style-star,.editor-styles-wrapper ul.is-style-times{list-style-type:none!important;margin-left:auto!important;padding-left:0!important;position:relative!important}.editor-styles-wrapper ol.is-style-arrow-r ul,.editor-styles-wrapper ol.is-style-caret-r ul,.editor-styles-wrapper ol.is-style-check ul,.editor-styles-wrapper ol.is-style-check-circle ul,.editor-styles-wrapper ol.is-style-chevron-r ul,.editor-styles-wrapper ol.is-style-dash ul,.editor-styles-wrapper ol.is-style-star ul,.editor-styles-wrapper ol.is-style-times ul,.editor-styles-wrapper ul.is-style-arrow-r ul,.editor-styles-wrapper ul.is-style-caret-r ul,.editor-styles-wrapper ul.is-style-check ul,.editor-styles-wrapper ul.is-style-check-circle ul,.editor-styles-wrapper ul.is-style-chevron-r ul,.editor-styles-wrapper ul.is-style-dash ul,.editor-styles-wrapper ul.is-style-star ul,.editor-styles-wrapper ul.is-style-times ul{list-style-type:none!important}.editor-styles-wrapper ol.is-style-arrow-r li,.editor-styles-wrapper ol.is-style-caret-r li,.editor-styles-wrapper ol.is-style-check li,.editor-styles-wrapper ol.is-style-check-circle li,.editor-styles-wrapper ol.is-style-chevron-r li,.editor-styles-wrapper ol.is-style-dash li,.editor-styles-wrapper ol.is-style-star li,.editor-styles-wrapper ol.is-style-times li,.editor-styles-wrapper ul.is-style-arrow-r li,.editor-styles-wrapper ul.is-style-caret-r li,.editor-styles-wrapper ul.is-style-check li,.editor-styles-wrapper ul.is-style-check-circle li,.editor-styles-wrapper ul.is-style-chevron-r li,.editor-styles-wrapper ul.is-style-dash li,.editor-styles-wrapper ul.is-style-star li,.editor-styles-wrapper ul.is-style-times li{padding-left:1.5rem;position:relative}.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ol.is-style-check-circle li:before,.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ol.is-style-dash li:before,.editor-styles-wrapper ol.is-style-star li:before,.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-check li:before,.editor-styles-wrapper ul.is-style-check-circle li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-dash li:before,.editor-styles-wrapper ul.is-style-star li:before,.editor-styles-wrapper ul.is-style-times li:before{--tw-scale-x:.75;--tw-scale-y:.75;background-size:cover;content:"";display:inline-block;height:1.5rem;left:0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;top:1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));width:1.5rem}.editor-styles-wrapper ol.is-style-numeric,.editor-styles-wrapper ul.is-style-numeric{counter-reset:li;list-style-type:none!important;margin-left:auto!important;padding-left:0!important;position:relative!important}.editor-styles-wrapper ol.is-style-numeric li,.editor-styles-wrapper ul.is-style-numeric li{counter-increment:li;padding-left:1.5rem;position:relative}.editor-styles-wrapper ol.is-style-numeric li:before,.editor-styles-wrapper ul.is-style-numeric li:before{color:var(--wp--preset--color--brand-500);content:counter(li) ".";font-weight:700;left:0;position:absolute}.editor-styles-wrapper ol.is-style-numeric li ol,.editor-styles-wrapper ul.is-style-numeric li ol{padding-left:0}.editor-styles-wrapper ol.is-style-numeric li ol li:before,.editor-styles-wrapper ul.is-style-numeric li ol li:before{display:none}.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before{background-color:var(--wp--preset--color--brand-500);-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9S63.9 115 63.9 128v256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9S63.9 115 63.9 128v256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before{background-color:var(--wp--preset--color--brand-500);margin-left:-1px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before{background-color:var(--wp--preset--color--brand-500);margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h306.7L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h306.7L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-check li,.editor-styles-wrapper ul.is-style-check li{padding-left:1.5rem}.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ul.is-style-check li:before{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity));margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-check-circle li:before,.editor-styles-wrapper ul.is-style-check-circle li:before{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity));margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0 0 114.6 0 256s114.6 256 256 256zm113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0 0 114.6 0 256s114.6 256 256 256zm113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-times li:before{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity));-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-star li:before,.editor-styles-wrapper ul.is-style-star li:before{--tw-bg-opacity:1;background-color:rgb(253 224 71/var(--tw-bg-opacity));margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M316.9 18c-5.3-11-16.5-18-28.8-18s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329l-24.6 145.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329l104.2-103.1c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7l-143.7-21.2L316.9 18z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M316.9 18c-5.3-11-16.5-18-28.8-18s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329l-24.6 145.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329l104.2-103.1c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7l-143.7-21.2L316.9 18z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-dash li:before,.editor-styles-wrapper ul.is-style-dash li:before{color:var(--wp--preset--color--brand-500);content:"–";font-weight:700;margin-left:1px} +@charset "UTF-8";.editor-styles-wrapper .wp-block-post-content>.wp-block[data-type="core/heading"]{position:relative}.editor-styles-wrapper .wp-block-post-content>.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"";font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.75rem;font-weight:500;letter-spacing:-.025em;line-height:1rem;margin-left:-2rem;opacity:.5;position:absolute;text-transform:uppercase}.editor-styles-wrapper .wp-block-post-content>h1.wp-block[data-type="core/heading"]:not(.is-selected):before,.editor-styles-wrapper .wp-block-post-content>h2.wp-block[data-type="core/heading"]:not(.is-selected):before,.editor-styles-wrapper .wp-block-post-content>h3.wp-block[data-type="core/heading"]:not(.is-selected):before{margin-top:.25rem}.editor-styles-wrapper .wp-block-post-content>h4.wp-block[data-type="core/heading"]:not(.is-selected):before,.editor-styles-wrapper .wp-block-post-content>h5.wp-block[data-type="core/heading"]:not(.is-selected):before{margin-top:-1px}.editor-styles-wrapper .wp-block-post-content>h1.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h1"}.editor-styles-wrapper .wp-block-post-content>h2.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h2"}.editor-styles-wrapper .wp-block-post-content>h3.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h3"}.editor-styles-wrapper .wp-block-post-content>h4.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h4"}.editor-styles-wrapper .wp-block-post-content>h5.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h5"}.editor-styles-wrapper .wp-block-post-content>h6.wp-block[data-type="core/heading"]:not(.is-selected):before{content:"h6"}.editor-styles-wrapper ol.is-style-arrow-r,.editor-styles-wrapper ol.is-style-caret-r,.editor-styles-wrapper ol.is-style-check,.editor-styles-wrapper ol.is-style-check-circle,.editor-styles-wrapper ol.is-style-chevron-r,.editor-styles-wrapper ol.is-style-dash,.editor-styles-wrapper ol.is-style-star,.editor-styles-wrapper ol.is-style-times,.editor-styles-wrapper ul.is-style-arrow-r,.editor-styles-wrapper ul.is-style-caret-r,.editor-styles-wrapper ul.is-style-check,.editor-styles-wrapper ul.is-style-check-circle,.editor-styles-wrapper ul.is-style-chevron-r,.editor-styles-wrapper ul.is-style-dash,.editor-styles-wrapper ul.is-style-star,.editor-styles-wrapper ul.is-style-times{list-style-type:none!important;margin-left:auto!important;padding-left:0!important;position:relative!important}.editor-styles-wrapper ol.is-style-arrow-r ul,.editor-styles-wrapper ol.is-style-caret-r ul,.editor-styles-wrapper ol.is-style-check ul,.editor-styles-wrapper ol.is-style-check-circle ul,.editor-styles-wrapper ol.is-style-chevron-r ul,.editor-styles-wrapper ol.is-style-dash ul,.editor-styles-wrapper ol.is-style-star ul,.editor-styles-wrapper ol.is-style-times ul,.editor-styles-wrapper ul.is-style-arrow-r ul,.editor-styles-wrapper ul.is-style-caret-r ul,.editor-styles-wrapper ul.is-style-check ul,.editor-styles-wrapper ul.is-style-check-circle ul,.editor-styles-wrapper ul.is-style-chevron-r ul,.editor-styles-wrapper ul.is-style-dash ul,.editor-styles-wrapper ul.is-style-star ul,.editor-styles-wrapper ul.is-style-times ul{list-style-type:none!important}.editor-styles-wrapper ol.is-style-arrow-r li,.editor-styles-wrapper ol.is-style-caret-r li,.editor-styles-wrapper ol.is-style-check li,.editor-styles-wrapper ol.is-style-check-circle li,.editor-styles-wrapper ol.is-style-chevron-r li,.editor-styles-wrapper ol.is-style-dash li,.editor-styles-wrapper ol.is-style-star li,.editor-styles-wrapper ol.is-style-times li,.editor-styles-wrapper ul.is-style-arrow-r li,.editor-styles-wrapper ul.is-style-caret-r li,.editor-styles-wrapper ul.is-style-check li,.editor-styles-wrapper ul.is-style-check-circle li,.editor-styles-wrapper ul.is-style-chevron-r li,.editor-styles-wrapper ul.is-style-dash li,.editor-styles-wrapper ul.is-style-star li,.editor-styles-wrapper ul.is-style-times li{padding-left:1.5rem;position:relative}.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ol.is-style-check-circle li:before,.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ol.is-style-dash li:before,.editor-styles-wrapper ol.is-style-star li:before,.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-check li:before,.editor-styles-wrapper ul.is-style-check-circle li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-dash li:before,.editor-styles-wrapper ul.is-style-star li:before,.editor-styles-wrapper ul.is-style-times li:before{--tw-scale-x:.75;--tw-scale-y:.75;background-size:cover;content:"";display:inline-block;height:1.5rem;left:0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;top:1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));width:1.5rem}.editor-styles-wrapper ol.is-style-numeric,.editor-styles-wrapper ul.is-style-numeric{counter-reset:li;list-style-type:none!important;margin-left:auto!important;padding-left:0!important;position:relative!important}.editor-styles-wrapper ol.is-style-numeric li,.editor-styles-wrapper ul.is-style-numeric li{counter-increment:li;padding-left:1.5rem;position:relative}.editor-styles-wrapper ol.is-style-numeric li:before,.editor-styles-wrapper ul.is-style-numeric li:before{color:var(--wp--preset--color--brand-500);content:counter(li) ".";font-weight:700;left:0;position:absolute}.editor-styles-wrapper ol.is-style-numeric li ol,.editor-styles-wrapper ul.is-style-numeric li ol{padding-left:0}.editor-styles-wrapper ol.is-style-numeric li ol li:before,.editor-styles-wrapper ul.is-style-numeric li ol li:before{display:none}.editor-styles-wrapper ol.is-style-caret-r li:before,.editor-styles-wrapper ul.is-style-caret-r li:before{background-color:var(--wp--preset--color--brand-500);-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9S63.9 115 63.9 128v256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9S63.9 115 63.9 128v256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-chevron-r li:before,.editor-styles-wrapper ul.is-style-chevron-r li:before{background-color:var(--wp--preset--color--brand-500);margin-left:-1px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-arrow-r li:before,.editor-styles-wrapper ul.is-style-arrow-r li:before{background-color:var(--wp--preset--color--brand-500);margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h306.7L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h306.7L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-check li,.editor-styles-wrapper ul.is-style-check li{padding-left:1.5rem}.editor-styles-wrapper ol.is-style-check li:before,.editor-styles-wrapper ul.is-style-check li:before{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity));margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-check-circle li:before,.editor-styles-wrapper ul.is-style-check-circle li:before{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity));margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0 0 114.6 0 256s114.6 256 256 256zm113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0 0 114.6 0 256s114.6 256 256 256zm113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-times li:before,.editor-styles-wrapper ul.is-style-times li:before{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity));-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-star li:before,.editor-styles-wrapper ul.is-style-star li:before{--tw-bg-opacity:1;background-color:rgb(253 224 71/var(--tw-bg-opacity));margin-left:-.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M316.9 18c-5.3-11-16.5-18-28.8-18s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329l-24.6 145.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329l104.2-103.1c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7l-143.7-21.2L316.9 18z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M316.9 18c-5.3-11-16.5-18-28.8-18s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329l-24.6 145.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329l104.2-103.1c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7l-143.7-21.2L316.9 18z'/%3E%3C/svg%3E")}.editor-styles-wrapper ol.is-style-dash li:before,.editor-styles-wrapper ul.is-style-dash li:before{color:var(--wp--preset--color--brand-500);content:"–";font-weight:700;margin-left:1px} diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 27ab9e9..fd35526 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -3,6 +3,6 @@ "/js/app.asset.php": "/js/app.asset.php?id=ed8c09fd7df0bdddfd45f14d80c8dd8c", "/js/editor.js": "/js/editor.js?id=625400b2b1f60392e6c66836cc7453cb", "/js/editor.asset.php": "/js/editor.asset.php?id=3966666216b5eac0c7404db284a0c321", - "/css/editor.css": "/css/editor.css?id=519a8a77aa5e669473f352b658db844e", + "/css/editor.css": "/css/editor.css?id=674587b5b4779648330239dd42d19e63", "/css/app.css": "/css/app.css?id=71e98cf87c85b21a526dff38c95dad81" } diff --git a/resources/css/blocks/core-heading.scss b/resources/css/blocks/core-heading.scss index 8423cf2..dc8e17c 100644 --- a/resources/css/blocks/core-heading.scss +++ b/resources/css/blocks/core-heading.scss @@ -1,30 +1,32 @@ -.wp-block[data-type='core/heading'] { - @apply relative; +.wp-block-post-content > { + .wp-block[data-type='core/heading'] { + @apply relative; - &:not(.is-selected)::before { - @apply font-sans -ml-8 absolute font-medium text-xs opacity-50 tracking-tight uppercase; + &:not(.is-selected)::before { + @apply font-sans -ml-8 absolute font-medium text-xs opacity-50 tracking-tight uppercase; - content: ''; + content: ''; + } } -} -h1, -h2, -h3 { - &:not(.is-selected)::before { - @apply mt-1; + h1, + h2, + h3 { + &.wp-block[data-type='core/heading']:not(.is-selected)::before { + @apply mt-1; + } } -} -h4, -h5 { - &:not(.is-selected)::before { - @apply -mt-px; + h4, + h5 { + &.wp-block[data-type='core/heading']:not(.is-selected)::before { + @apply -mt-px; + } } -} -@each $heading in ('h1', 'h2', 'h3', 'h4', 'h5', 'h6') { - #{$heading}.wp-block[data-type='core/heading']:not(.is-selected)::before { - content: '#{$heading}'; + @each $heading in ('h1', 'h2', 'h3', 'h4', 'h5', 'h6') { + #{$heading}.wp-block[data-type='core/heading']:not(.is-selected)::before { + content: '#{$heading}'; + } } }