Skip to content

Commit

Permalink
Merge pull request #1156 from vektor-inc/fix/width-wide
Browse files Browse the repository at this point in the history
【2人目確認中】「CSSの修正」スライダーアイテム:編集画面で幅広幅に対応
  • Loading branch information
sysbird authored Jul 8, 2024
2 parents 5b50c2b + c5b8e5f commit e78b75a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions _g2/assets/_scss/block/_block_editor_width.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ div[data-align=full]
}
}
& > .wp-block[data-align=wide],
& > .wp-block.alignwide,
& > div[data-align=wide]{
width:var(--vk-width-editor-wide);
max-width:var(--vk-width-editor-wide);
Expand All @@ -121,6 +122,10 @@ div[data-align=full]
margin-left:auto;
margin-right:auto;
}
// vk_slider_item
.vk_slider_item {
max-width: var(--vk-width-editor-wide);
}
}
// __inner-container
& > .wp-block[data-align=full],
Expand Down
2 changes: 1 addition & 1 deletion _g2/assets/css/common_editor.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions _g3/assets/_scss/block/_block_width_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ html .edit-post-visual-editor :where(.editor-styles-wrapper) .block-editor-block
margin-left:auto !important;
margin-right:auto !important;
}
// vk_slider_item
.vk_slider_item {
max-width: var(--vk-width-editor-wide);
}
}

// __inner-container
Expand All @@ -222,6 +226,7 @@ html .edit-post-visual-editor :where(.editor-styles-wrapper) .block-editor-block
margin-right:auto;
}
}

.vk_outer-width-full {
&:not(:is(.vk_outer-paddingLR-zero,.vk_outer-paddingLR-use)) {
.vk_outer_container {
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 @@ -37,6 +37,8 @@ https://www.vektor-inc.co.jp/inquiry/

== Changelog ==

[ G3 / G2 ][ Editor Design Bug Fix ] Supports wide slider item widths.

v15.25.1
[ G3 ][ Bug fix ] Fix PHP warning

Expand Down

0 comments on commit e78b75a

Please sign in to comment.