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

フィットカラム全幅でOuterも全幅になるように #214

Merged
merged 2 commits into from
Sep 13, 2024
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: 5 additions & 3 deletions patterns-data/_scss/_vk-cols.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
}

.vk-cols--hasbtn{ // 結局汎用ブロックではボタンの処理が完全に制御できないので基本的に非推奨
margin-bottom:0;
& > .row > .vk_gridColumn_item,
& > .wp-block-column {
position: relative;
Expand All @@ -15,7 +16,6 @@
width:100%; // カラムに padding つけられると absolute なのでpadding引いた幅を検出できずにはみ出すが、まぁしゃーないと思う。
}
}
margin-bottom:0;
}

/*
Expand Down Expand Up @@ -91,7 +91,8 @@
// 画像部分全幅
&.vk-cols--grid--alignfull {
& > .wp-block-column:nth-child(2){
& > .wp-block-cover {
& > .wp-block-cover,
& > .vk_outer {
@media (max-width: 599px){
width:100vw;
margin-right:calc( ( 100% - 100vw ) / 2 );
Expand All @@ -111,7 +112,8 @@
margin-right:0;
}
& > .wp-block-column:nth-child(2){
& > .wp-block-cover {
& > .wp-block-cover,
& > .vk_outer {
margin-left:calc( 100% - 50vw );
}
}
Expand Down
2 changes: 1 addition & 1 deletion patterns-data/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link:
Tags: Guternberg, Block Pattern
Requires at least: 6.2
Tested up to: 6.6
Stable tag: 1.32.3.0
Stable tag: 1.32.4.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -16,6 +16,9 @@ When you activate this plugin that create new custom post type for custom block

== Changelog ==

= 1.32.4 =
[ Design tuning ] Fixed "Fit columns alignfull" so that "Outer" also has full width.

= 1.32.3 =
[ Bug fix ] Handling the issue where the admin screen does not display on 1.32.2

Expand Down
Loading