Skip to content

Commit

Permalink
Merge pull request #217 from vektor-inc/fix/css-file-404
Browse files Browse the repository at this point in the history
管理画面ツールバーのCSSの読み込み不具合修正 その2
  • Loading branch information
kurudrive authored Oct 22, 2024
2 parents 1628801 + 9569c98 commit ace4545
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
3 changes: 0 additions & 3 deletions inc/edit-post/header-toolbar/style-index.css

This file was deleted.

2 changes: 1 addition & 1 deletion inc/edit-post/header-toolbar/vkp-header-toolbar-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
13 changes: 6 additions & 7 deletions src/edit-post/header-toolbar/style.scss
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit ace4545

Please sign in to comment.