Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/babel/traverse-7.23.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive authored Feb 3, 2024
2 parents 7e9aa29 + cf4615a commit 88f4891
Show file tree
Hide file tree
Showing 11 changed files with 117 additions and 106 deletions.
1 change: 1 addition & 0 deletions _g3/assets/_scss/_common-theme-json.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
.wp-block-cover__image-background,
.wp-block-column,
.vk_outer,
.vk_slider_wrapper,
.swiper-wrapper,
.swiper-pagination,
.is-content-justification-right,
Expand Down
101 changes: 0 additions & 101 deletions _g3/assets/_scss/block/_block.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@

/** DOM example
インナーブロックは全幅か幅広の時のみ指定
そうでないと container-padding が余分についてしまう
entry-body
wp-block-cover
wp-block-cover__inner-container
*/
.has-small-font-size {
font-size : var(--vk-size-text-sm); /* 14px */
}
Expand All @@ -21,98 +12,6 @@ entry-body
font-size : 36px;
}

.alignfull,
.alignwide {
div[class*="__inner-container"]{
max-width: calc( var(--vk-width-container) - var(--vk-width-container-padding) * 2 );
margin-left:auto;
margin-right:auto;
}
}
.alignfull {
&,
&:is(
.swiper-container,
.vk_slider,
.wp-block-image,
.wp-block-cover-image,
.wp-block-cover
) {
width:auto; /* Don't use 100vw!! cope with windows */
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
max-width: 100vw;
}
}
.alignwide {
&,
&:is(
.vk_slider,
.wp-block-image,
.wp-block-cover-image,
.wp-block-cover
) {
// --vk-width-container != 100% なので注意
// Lightningの幅広 = コンテナの「表示エリア(100%) 」 + 左右余白分の丁度半分
width: calc( 100% + ( 100vw - 100% ) / 2 );
margin-left: calc( ( 100% - 100vw ) / 4 );
margin-right: calc( ( 100% - 100vw ) / 4 );
max-width: 100vw;
}
}
// 通常サイズの中に幅広対策
:is(.wp-block-cover,.wp-block-group):not(.alignfull,.alignwide){
& > .is-layout-constrained > .alignwide {
margin-left: calc( ( 100% - 100vw ) / 4 ) !important;
margin-right: calc( ( 100% - 100vw ) / 4 ) !important;
}
}

// 全幅カバーの中に幅広ブロックを入れた時に、コアのCSSに
// body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
// max-width: var(--wp--style--global--content-size);
// margin-left: auto !important;
// margin-right: auto !important;
// }
// を入れられて幅広にならないので打ち消し処理
body :where(.alignfull,.alignwide):where(:not(.vk_outer-paddingLR-zero)) .is-layout-constrained {
& > .alignwide {
margin-left: calc( ( 100% - 100vw ) / 4 ) !important;
margin-right: calc( ( 100% - 100vw ) / 4 ) !important;
}
}

.main-section--col--two,
.sub-section--col--two {
.alignfull,
.alignwide {
margin-left:0;
margin-right:0;
max-width: 100%;
&.wp-block-image {
// Default block style overwrite
max-width: 100%;
}
}
&.main-section--base--on,
&.sub-section--base--on {
.alignwide {
padding-left: 0;
padding-right: 0;
margin-left: calc( var(--vk-width-base-padding) / -2 );
margin-right: calc( var(--vk-width-base-padding) / -2 );
max-width:calc( 100% + var(--vk-width-base-padding) );
width:calc( 100% + var(--vk-width-base-padding) );
}
.alignfull {
padding-left: 0;
padding-right: 0;
max-width:calc( 100% + var(--vk-width-base-padding) * 2 );
width:calc( 100% + var(--vk-width-base-padding) * 2 );
}
}
}

/* カラム(水平)で点線と余白ができる */
.vk_post .row {
margin: 0;
Expand Down
File renamed without changes.
101 changes: 101 additions & 0 deletions _g3/assets/_scss/block/_block_width.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/** DOM example
インナーブロックは全幅か幅広の時のみ指定
そうでないと container-padding が余分についてしまう
entry-body
wp-block-cover
wp-block-cover__inner-container
*/

.alignfull,
.alignwide {
div[class*="__inner-container"]{
max-width: calc( var(--vk-width-container) - var(--vk-width-container-padding) * 2 );
margin-left:auto;
margin-right:auto;
}
}
.alignfull {
&,
&:is(
.swiper-container,
.vk_slider,
.wp-block-image,
.wp-block-cover-image,
.wp-block-cover
) {
width:auto; /* Don't use 100vw!! cope with windows */
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
max-width: 100vw;
}
}
.alignwide {
&,
&:is(
.vk_slider,
.wp-block-image,
.wp-block-cover-image,
.wp-block-cover
) {
// --vk-width-container != 100% なので注意
// Lightningの幅広 = コンテナの「表示エリア(100%) 」 + 左右余白分の丁度半分
width: calc( 100% + ( 100vw - 100% ) / 2 );
margin-left: calc( ( 100% - 100vw ) / 4 );
margin-right: calc( ( 100% - 100vw ) / 4 );
max-width: 100vw;
}
}
// 通常サイズの中に幅広対策
:is(.wp-block-cover,.wp-block-group):not(.alignfull,.alignwide){
& > .is-layout-constrained > .alignwide {
margin-left: calc( ( 100% - 100vw ) / 4 ) !important;
margin-right: calc( ( 100% - 100vw ) / 4 ) !important;
}
}

// 全幅カバーの中に幅広ブロックを入れた時に、コアのCSSに
// body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
// max-width: var(--wp--style--global--content-size);
// margin-left: auto !important;
// margin-right: auto !important;
// }
// を入れられて幅広にならないので打ち消し処理
body :where(.alignfull,.alignwide):where(:not(.vk_outer-paddingLR-zero)) .is-layout-constrained {
& > .alignwide {
margin-left: calc( ( 100% - 100vw ) / 4 ) !important;
margin-right: calc( ( 100% - 100vw ) / 4 ) !important;
}
}

.main-section--col--two,
.sub-section--col--two {
.alignfull,
.alignwide {
margin-left:0;
margin-right:0;
max-width: 100%;
&.wp-block-image {
// Default block style overwrite
max-width: 100%;
}
}
&.main-section--base--on,
&.sub-section--base--on {
.alignwide {
padding-left: 0;
padding-right: 0;
margin-left: calc( var(--vk-width-base-padding) / -2 );
margin-right: calc( var(--vk-width-base-padding) / -2 );
max-width:calc( 100% + var(--vk-width-base-padding) );
width:calc( 100% + var(--vk-width-base-padding) );
}
.alignfull {
padding-left: 0;
padding-right: 0;
max-width:calc( 100% + var(--vk-width-base-padding) * 2 );
width:calc( 100% + var(--vk-width-base-padding) * 2 );
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
--vk-width-editor-leftmenu:160px;
--vk-width-editor-leftmenu-folded:36px;
}
.alignfull,
.alignwide {
div[class*="__inner-container"]{
max-width: var(--vk-width-editor-container-body);
}
}
.editor-styles-wrapper {
padding: 0;
}
Expand Down
5 changes: 3 additions & 2 deletions _g3/assets/_scss/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
@import "variables";

@import "utils";
@import "block/block_width";
@import "block/block";
@import "block/block-editor";
@import "block/block_editor_width";
@import "block/block_width_editor";
@import "block/block_editor";

@import "components/nav";
@import "components/searchform";
Expand Down
1 change: 1 addition & 0 deletions _g3/assets/_scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@import "utils";
@import "print";

@import "block/block_width.scss";
@import "block/block.scss";

@import "components/nav";
Expand Down
2 changes: 1 addition & 1 deletion _g3/assets/css/editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g3/assets/css/style-theme-json.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g3/assets/css/style.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 @@ -38,6 +38,8 @@ https://www.vektor-inc.co.jp/inquiry/

== Changelog ==

[ Specification Change ][ G3 ] Adjusting the preview mode for the VK Blocks Slider Block.

v15.19.1
[ Bug Fix ] Fixed the logo link area issue when using the header logo center layout(G3 Pro Unit).

Expand Down

0 comments on commit 88f4891

Please sign in to comment.