Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ G3 ] エディタでブロックの上下につく余分な余白を調整 #1225

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions _g3/assets/_scss/block/_block_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@
.editor-styles-wrapper .is-layout-flow > * + *:is([class*="wp-block"],[class*="vk_"]) {
margin-block-start: 0;
}
// コアに :root :where(.editor-styles-wrapper) :where(.is-layout-constrained)>* { margin-block-start: 24px; } つけられるので打ち消し
:root .editor-styles-wrapper :where(.is-layout-constrained)>* {
margin-block-start: 0;
}
/*
theme.json 有効にすると
.editor-styles-wrapper .is-layout-flow > * { margin-block-end:0; }
つけられるので .common に記載と同じ指定で打ち消し
*/
.editor-styles-wrapper .is-layout-flow > *{
.editor-styles-wrapper *{
&:is(
.wp-block-table,
p,
Expand All @@ -85,7 +89,7 @@
dl,
blockquote,
iframe
) {
):not(:last-child){
margin-block-end:var(--vk-margin-element-bottom);
}
&:is( h1,h2,h3,h4,h5,h6 ) {
Expand Down
2 changes: 1 addition & 1 deletion _g3/assets/css/editor.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ [email protected]

== Changelog ==

[ G3 ][ Bug fix ] Adjusting the unintentional vertical margins between blocks in the editor

v15.29.4
[ G3 ][ Design Bug Fix ] Excluded child elements from expanding to full content width when the parent has the `.is-layout-flex` class by adding a `:not` selector.
[ G3 ][ Bug fix ] Fix block width on editor with narrow screen.
Expand Down
Loading