diff --git a/build/index.asset.php b/build/index.asset.php index f0b4d72..6601343 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'befba07e6fc7d1864274'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '4fa2c503062f786b6b8e'); diff --git a/build/index.css b/build/index.css index 17ac4d6..9797a6c 100644 --- a/build/index.css +++ b/build/index.css @@ -1,2 +1,2 @@ .wp-block-simpletoc-toc .components-notice{background-color:#fef8ee;color:#333;font-size:13px;margin:1em}.wp-block-simpletoc-toc .components-notice span{padding-left:5px} -.simpletoc{margin-bottom:1em}.wp-block-simpletoc-toc h2{margin:0}.simpletoc-collapsible{background-color:#eee;border:none;color:#444;cursor:pointer;font-size:18px;outline:none;padding:18px;text-align:left;width:100%}.simpletoc .active,.simpletoc-collapsible:hover{background-color:#ddd}.simpletoc-collapsible:after{content:"\02795";float:right;font-size:13px;margin-left:5px}.simpletoc .active:after{content:"\2796"}.simpletoc-content{background-color:#f1f1f1;display:none;overflow:hidden;padding:14px 18px 0} +.simpletoc{margin-bottom:1em}.simpletoc-collapsible{background-color:#eee;border:none;color:#444;cursor:pointer;font-size:18px;outline:none;padding:18px;text-align:left;width:100%}.simpletoc .active,.simpletoc-collapsible:hover{background-color:#ddd}.simpletoc-collapsible:after{content:"\02795";float:right;font-size:13px;margin-left:5px}.simpletoc .active:after{content:"\2796"}.simpletoc-content{background-color:#f1f1f1;display:none;overflow:hidden;padding:14px 18px 0} diff --git a/plugin.php b/plugin.php index 6e9c010..2321cd1 100644 --- a/plugin.php +++ b/plugin.php @@ -618,7 +618,7 @@ function add_accordion_start($html, $attributes, $itemcount, $alignclass) if ($isAccordionEnabled) { enqueue_accordion_frontend(); $titleText = esc_html(trim($attributes['title_text'])) ?: __('Table of Contents', 'simpletoc'); - $accordionStart = '

'; + $accordionStart = '

'; $accordionEnd = '
'; } diff --git a/src/accordion.css b/src/accordion.css index 541665b..69ea428 100644 --- a/src/accordion.css +++ b/src/accordion.css @@ -2,10 +2,6 @@ margin-bottom: 1em; } -.wp-block-simpletoc-toc h2 { - margin: 0; -} - .simpletoc-collapsible { background-color: #eee; color: #444;