diff --git a/inc/edit-post/header-toolbar/style-index.css b/inc/edit-post/header-toolbar/style-index.css deleted file mode 100644 index 3a06b87..0000000 --- a/inc/edit-post/header-toolbar/style-index.css +++ /dev/null @@ -1,3 +0,0 @@ -.vk-patterns-header-toolbar .components-external-link__contents { - text-decoration: none; -} \ No newline at end of file diff --git a/inc/edit-post/header-toolbar/vkp-header-toolbar-loader.php b/inc/edit-post/header-toolbar/vkp-header-toolbar-loader.php index bb052a9..f196739 100644 --- a/inc/edit-post/header-toolbar/vkp-header-toolbar-loader.php +++ b/inc/edit-post/header-toolbar/vkp-header-toolbar-loader.php @@ -26,7 +26,7 @@ function vbp_edit_post_enqueue_scripts() { wp_enqueue_style( 'vk-patterns-header-toolbar-css', - VBP_URL . 'inc/edit-post/header-toolbar/style-index.css' + VBP_URL . 'build/style-edit-post/header-toolbar/index.css' ); } add_action( 'enqueue_block_editor_assets', 'vbp_edit_post_enqueue_scripts' ); diff --git a/src/edit-post/header-toolbar/style.scss b/src/edit-post/header-toolbar/style.scss index 6ee89e2..f0a6c74 100644 --- a/src/edit-post/header-toolbar/style.scss +++ b/src/edit-post/header-toolbar/style.scss @@ -1,11 +1,10 @@ // 992px以下では非表示にする @media ( max-width: 992px ) { - - .edit-post-header__toolbar, - .edit-site-header__toolbar { - - .vk-patterns-header-toolbar { - display: none; - } + .vk-patterns-header-toolbar { + display: none; } } + +.vk-patterns-header-toolbar .components-external-link__contents { + text-decoration: none; +} \ No newline at end of file