store
2 months ago
GenerateBgImage.js
2 months ago
block-duplicate-helper.js
2 months ago
capitalize.js
2 months ago
color-code-to-class.js
2 months ago
color-slug-to-color-code.js
2 months ago
common.scss
2 weeks ago
convert-to-grid.js
2 months ago
default-color-palette.js
2 months ago
delete-from-array.js
2 months ago
depModules.js
2 months ago
disable-links.js
2 weeks ago
empty-string-to-undefined.js
2 months ago
example-data.js
2 months ago
fixBrokenUnicode.js
2 months ago
font-awesome-new.js
2 weeks ago
font-awesome-version.js
2 months ago
font-awesome.js
2 months ago
formatNumCol.js
2 months ago
gradient-slug-to-gradient-code.js
2 months ago
heading-level-utils.js
2 months ago
hex-to-rgba.js
2 months ago
horizontal-scroll-controls.js
2 months ago
icon-label.js
2 weeks ago
is-excludes-blocks.js
2 months ago
is-gradient-style.js
2 months ago
is-hex-color.js
2 months ago
is-not-json.js
2 months ago
is-parent-reusable-block.js
17 hours ago
merge-colors.js
2 months ago
multi-array-flaten.js
2 months ago
removeProperty.js
2 months ago
replaceClientId.js
2 months ago
sanitizeSlug.js
2 months ago
settings-page-url.js
2 weeks ago
strip-html.js
2 months ago
taxonomy-utils.js
2 months ago
to-number.js
2 months ago
to-preset-spacing-var.js
2 months ago
unit-options.js
2 months ago
wrap-unwrap.js
2 months ago
common.scss
919 lines
| 1 | :root { |
| 2 | --vk-margin-elem:2rem; |
| 3 | } |
| 4 | |
| 5 | .text-nowrap { |
| 6 | white-space: nowrap; |
| 7 | } |
| 8 | |
| 9 | /*-------------------------------------------*/ |
| 10 | /* core/column をコンテンツ� |
| 11 | の半分のインナーブロックにする .is-vk-content-width-half 対応 |
| 12 | /*-------------------------------------------*/ |
| 13 | // front / editor 両方に適用 |
| 14 | .is-vk-content-width-half { |
| 15 | // TT5などテーマによっては border-box 指定がなくてレイアウトが崩れるため |
| 16 | box-sizing: border-box; |
| 17 | } |
| 18 | :where(:not(.is-vk-row-reverse)) > :first-child.is-vk-content-width-half, |
| 19 | :where(.is-vk-row-reverse) > :nth-child(2).is-vk-content-width-half { |
| 20 | // 100svh では編集画面でパネルの� |
| 21 | などを含んでしまうため100%を使用 |
| 22 | padding-left:calc( ( 100% - var(--wp--style--global--content-size) ) / 2 ) !important; |
| 23 | } |
| 24 | :where(:not(.is-vk-row-reverse)) > :nth-child(2).is-vk-content-width-half, |
| 25 | :where(.is-vk-row-reverse) > :first-child.is-vk-content-width-half { |
| 26 | padding-right:calc( ( 100% - var(--wp--style--global--content-size) ) / 2 ) !important; |
| 27 | } |
| 28 | // カラムの� |
| 29 | に 50% 指定がない場合にも� |
| 30 | がバラけないように対応 |
| 31 | .wp-block-columns:has(.is-vk-content-width-half) { |
| 32 | & > :where(.wp-block-column) { |
| 33 | max-width: 50%; |
| 34 | } |
| 35 | } |
| 36 | @media (max-width: 781.98px) { |
| 37 | // モバイルで縦積みの場合のみ打ち消し |
| 38 | .wp-block-columns:where(:not(.is-not-stacked-on-mobile)){ |
| 39 | // 各カラムのスタイルでPC用で中央側に padding を指定するのが一般的なため、!importantをつけないと上書きできない |
| 40 | .is-vk-content-width-half{ |
| 41 | padding-left:0 !important; |
| 42 | padding-right:0 !important; |
| 43 | &.is-layout-flow > * { |
| 44 | // .is-layout-flow でも左右ベタ付けにならずにコンテンツ� |
| 45 | に抑える(.is-layout-constrainedと同じ挙動にする)ため |
| 46 | max-width: var(--wp--style--global--content-size); |
| 47 | margin-left: auto !important; |
| 48 | margin-right: auto !important; |
| 49 | } |
| 50 | } |
| 51 | .has-global-padding .is-vk-content-width-half { |
| 52 | padding-right: var(--wp--style--root--padding-right) !important; |
| 53 | padding-left: var(--wp--style--root--padding-left) !important; |
| 54 | } |
| 55 | &:has(.is-vk-content-width-half) { |
| 56 | & > :where(.wp-block-column) { |
| 57 | max-width: 100%; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | /*-------------------------------------------*/ |
| 64 | /* 蛍� |
| 65 | �マーカー |
| 66 | /*-------------------------------------------*/ |
| 67 | @mixin vk-highlighter-gradient($direction: null) { |
| 68 | @if $direction == null { |
| 69 | background-image: linear-gradient(transparent 60%, var(--vk-highlighter-color) 0); |
| 70 | } @else { |
| 71 | background-image: linear-gradient(#{$direction}, transparent 60%, var(--vk-highlighter-color) 0); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | .vk_highlighter, |
| 76 | [class*="--vk-highlighter"]*="--vk-highlighter""] { |
| 77 | @include vk-highlighter-gradient(); |
| 78 | } |
| 79 | [style*="vertical-rl"]*="vertical-rl""] .vk_highlighter, |
| 80 | [style*="vertical-rl"]*="vertical-rl""] [class*="--vk-highlighter"]*="--vk-highlighter""] { |
| 81 | @include vk-highlighter-gradient(to left); |
| 82 | } |
| 83 | [style*="vertical-lr"]*="vertical-lr""] .vk_highlighter, |
| 84 | [style*="vertical-lr"]*="vertical-lr""] [class*="--vk-highlighter"]*="--vk-highlighter""] { |
| 85 | @include vk-highlighter-gradient(to right); |
| 86 | } |
| 87 | |
| 88 | /*-------------------------------------------*/ |
| 89 | /* 余白(レスポンシブスペーサー,� |
| 90 | �通余白で使用) |
| 91 | /*-------------------------------------------*/ |
| 92 | :root { |
| 93 | --vk-margin-xxs : 0.375rem; |
| 94 | --vk-margin-xs : 0.75rem; |
| 95 | --vk-margin-sm : 1.5rem; |
| 96 | --vk-margin-md : 2.4rem; |
| 97 | --vk-margin-lg : 4rem; |
| 98 | --vk-margin-xl : 6rem; |
| 99 | --vk-margin-xxl : 9rem; |
| 100 | } |
| 101 | .vk_block{ |
| 102 | &-margin-0 { |
| 103 | &--margin-top { |
| 104 | margin-top: 0 !important; |
| 105 | & > table { //テーマ側でtableにmargin-bottom や margin-top の余白がついている場合、完� |
| 106 | �に0にならないので� |
| 107 | 要 |
| 108 | margin-top:0; |
| 109 | } |
| 110 | } |
| 111 | &--margin-bottom { |
| 112 | margin-bottom: 0 !important; |
| 113 | & > table { //テーマ側でtableにmargin-bottom や margin-top の余白がついている場合、完� |
| 114 | �に0にならないので� |
| 115 | 要 |
| 116 | margin-bottom:0; |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | &-margin-xxs { |
| 121 | margin-top: var(--vk-margin-xxs); /* 旧バージョンでdeprecatedが走ってない状� |
| 122 | �のfallback */ |
| 123 | &--margin-top { |
| 124 | margin-top: var(--vk-margin-xxs) !important; |
| 125 | } |
| 126 | &--margin-bottom { |
| 127 | margin-bottom: var(--vk-margin-xxs) !important; |
| 128 | } |
| 129 | &--height { |
| 130 | height: var(--vk-margin-xxs); |
| 131 | } |
| 132 | } |
| 133 | &-margin-xs { |
| 134 | margin-top: var(--vk-margin-xs); /* 旧バージョンでdeprecatedが走ってない状� |
| 135 | �のfallback */ |
| 136 | &--margin-top { |
| 137 | margin-top: var(--vk-margin-xs) !important; |
| 138 | } |
| 139 | &--margin-bottom { |
| 140 | margin-bottom: var(--vk-margin-xs) !important; |
| 141 | } |
| 142 | &--height { |
| 143 | height: var(--vk-margin-xs); |
| 144 | } |
| 145 | } |
| 146 | &-margin-sm { |
| 147 | margin-top: var(--vk-margin-sm); /* 旧バージョンでdeprecatedが走ってない状� |
| 148 | �のfallback */ |
| 149 | &--margin-top { |
| 150 | margin-top: var(--vk-margin-sm) !important; |
| 151 | } |
| 152 | &--margin-bottom { |
| 153 | margin-bottom: var(--vk-margin-sm) !important; |
| 154 | } |
| 155 | &--height { |
| 156 | height: var(--vk-margin-sm); |
| 157 | } |
| 158 | } |
| 159 | &-margin-md { |
| 160 | margin-top: var(--vk-margin-md); /* 旧バージョンでdeprecatedが走ってない状� |
| 161 | �のfallback */ |
| 162 | &--margin-top { |
| 163 | margin-top: var(--vk-margin-md) !important; |
| 164 | } |
| 165 | &--margin-bottom { |
| 166 | margin-bottom: var(--vk-margin-md) !important; |
| 167 | } |
| 168 | &--height { |
| 169 | height: var(--vk-margin-md); |
| 170 | } |
| 171 | } |
| 172 | &-margin-lg { |
| 173 | margin-top: var(--vk-margin-lg); /* 旧バージョンでdeprecatedが走ってない状� |
| 174 | �のfallback */ |
| 175 | &--margin-top { |
| 176 | margin-top: var(--vk-margin-lg) !important; |
| 177 | } |
| 178 | &--margin-bottom { |
| 179 | margin-bottom: var(--vk-margin-lg) !important; |
| 180 | } |
| 181 | &--height { |
| 182 | height: var(--vk-margin-lg); |
| 183 | } |
| 184 | } |
| 185 | &-margin-xl { |
| 186 | margin-top: var(--vk-margin-xl); /* 旧バージョンでdeprecatedが走ってない状� |
| 187 | �のfallback */ |
| 188 | &--margin-top { |
| 189 | margin-top: var(--vk-margin-xl) !important; |
| 190 | } |
| 191 | &--margin-bottom { |
| 192 | margin-bottom: var(--vk-margin-xl) !important; |
| 193 | } |
| 194 | &--height { |
| 195 | height: var(--vk-margin-xl); |
| 196 | } |
| 197 | } |
| 198 | &-margin-xxl { |
| 199 | margin-top: var(--vk-margin-xxl); /* 旧バージョンでdeprecatedが走ってない状� |
| 200 | �のfallback */ |
| 201 | &--margin-top { |
| 202 | margin-top: var(--vk-margin-xxl) !important; |
| 203 | } |
| 204 | &--margin-bottom { |
| 205 | margin-bottom: var(--vk-margin-xxl) !important; |
| 206 | } |
| 207 | &--height { |
| 208 | height: var(--vk-margin-xxl); |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | /*-------------------------------------------*/ |
| 214 | /* パレット設定 |
| 215 | /*-------------------------------------------*/ |
| 216 | $stylePalette: ( |
| 217 | is-style-vk-arrow-mark: "\f138", |
| 218 | is-style-vk-triangle-mark: "\f0da", |
| 219 | is-style-vk-check-mark: "\f00c", |
| 220 | is-style-vk-check-circle-mark: "\f058", |
| 221 | is-style-vk-check-square-mark: "\f14a", |
| 222 | is-style-vk-handpoint-mark: "\f0a4", |
| 223 | is-style-vk-pencil-mark: "\f303", |
| 224 | is-style-vk-smile-mark: "\f118", |
| 225 | is-style-vk-frown-mark: "\f119", |
| 226 | is-style-vk-circle-mark: "\f111", |
| 227 | is-style-vk-times-mark: "\f00d", |
| 228 | ); |
| 229 | |
| 230 | $colorPalette: ( |
| 231 | (pale-pink, #f78da7), |
| 232 | (vivid-red, #cf2e2e), |
| 233 | (luminous-vivid-orange, #ff6900), |
| 234 | (luminous-vivid-amber, #fcb900), |
| 235 | (light-green-cyan, #7bdcb5), |
| 236 | (vivid-green-cyan, #00d084), |
| 237 | (pale-cyan-blue, #8ed1fc), |
| 238 | (vivid-cyan-blue, #0693e3), |
| 239 | (vivid-purple, #9b51e0), |
| 240 | (very-light-gray, #eee), |
| 241 | (cyan-bluish-gray, #abb8c3), |
| 242 | (very-dark-gray, #313131), |
| 243 | (white, #ffffff), |
| 244 | (color-primary, var(--wp--preset--color--vk-color-primary)), |
| 245 | (color-primary-dark, var(--wp--preset--color--vk-color-primary-dark)), |
| 246 | (color-primary-vivid, var(--wp--preset--color--vk-color-primary-vivid)), |
| 247 | (color-custom-1, var(--wp--preset--color--vk-color-custom-1)), |
| 248 | (color-custom-2, var(--wp--preset--color--vk-color-custom-2)), |
| 249 | (color-custom-3, var(--wp--preset--color--vk-color-custom-3)), |
| 250 | (color-custom-4, var(--wp--preset--color--vk-color-custom-4)), |
| 251 | (color-custom-5, var(--wp--preset--color--vk-color-custom-5)) |
| 252 | ); |
| 253 | |
| 254 | /*-------------------------------------------*/ |
| 255 | /* カラー設定 |
| 256 | /*-------------------------------------------*/ |
| 257 | @each $colorClass, $color in $colorPalette { |
| 258 | :root { |
| 259 | // 一般的なカラー設定 |
| 260 | .vk-has-#{"#{$colorClass}"}-background-color, |
| 261 | .has-vk-#{"#{$colorClass}"}-background-color { |
| 262 | @if $colorClass == color-primary { |
| 263 | // color-primaryに関する特殊処理 |
| 264 | background-color: var(--wp--preset--color--vk-color-primary, #337ab7); |
| 265 | } @else { |
| 266 | background-color: #{$color}; |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | .vk-has-#{"#{$colorClass}"}-color, |
| 271 | .has-vk-#{"#{$colorClass}"}-color { |
| 272 | @if $colorClass == color-primary { |
| 273 | // color-primaryに関する特殊処理 |
| 274 | color: var(--wp--preset--color--vk-color-primary, #337ab7); |
| 275 | } @else { |
| 276 | color: #{$color}; |
| 277 | } |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | /*-------------------------------------------*/ |
| 283 | /* リストデザイン |
| 284 | /*-------------------------------------------*/ |
| 285 | @mixin mark-before { |
| 286 | font-family: "Font Awesome 5 Free"; |
| 287 | font-weight: 900; |
| 288 | position: absolute; |
| 289 | } |
| 290 | |
| 291 | .wp-block-list { |
| 292 | &.is-style { |
| 293 | &-default, |
| 294 | &-vk-arrow-mark, |
| 295 | &-vk-triangle-mark, |
| 296 | &-vk-check-mark, |
| 297 | &-vk-check-circle-mark, |
| 298 | &-vk-check-square-mark, |
| 299 | &-vk-handpoint-mark, |
| 300 | &-vk-pencil-mark, |
| 301 | &-vk-smile-mark, |
| 302 | &-vk-frown-mark, |
| 303 | &-vk-circle-mark, |
| 304 | &-vk-times-mark, |
| 305 | &-vk-numbered-circle-mark, |
| 306 | &-vk-numbered-square-mark { |
| 307 | padding-inline-start: 2em; |
| 308 | &:not(.has-text-color), |
| 309 | &:not(.has-link-color) { |
| 310 | color: inherit; |
| 311 | } |
| 312 | &:where(:not(.is-style-default)) { |
| 313 | line-height: calc( 1rem * 1.65 ); |
| 314 | li { |
| 315 | list-style: none; |
| 316 | position: relative; |
| 317 | margin-top:0; |
| 318 | margin-left: 0; |
| 319 | margin:calc( 1rem * 0.8 ) 0; |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | &.is-style-vk-numbered-circle-mark { |
| 326 | counter-reset: number; |
| 327 | list-style-type: none; |
| 328 | |
| 329 | li { |
| 330 | --vk-numbered-marker-leading: 0px; |
| 331 | position: relative; |
| 332 | list-style: none; |
| 333 | padding-left: .5em; |
| 334 | &:before { |
| 335 | position: absolute; |
| 336 | left: 0; |
| 337 | top: var( --vk-numbered-marker-leading, 0 ); |
| 338 | counter-increment: number; |
| 339 | content: counter(number); |
| 340 | margin-left: -1.8em; |
| 341 | background: #222; |
| 342 | color: #fff; |
| 343 | text-indent: 0; |
| 344 | display: inline-block; |
| 345 | font-weight: bold; |
| 346 | border-radius: 50%; |
| 347 | font-size: calc( 1rem * 1 ); |
| 348 | line-height: calc( 1rem * 1.8 ); |
| 349 | width: 26px; |
| 350 | height: 26px; |
| 351 | text-align: center; |
| 352 | } |
| 353 | |
| 354 | ul, |
| 355 | ol { |
| 356 | counter-reset: num_inner; |
| 357 | content: counter(num_inner); |
| 358 | |
| 359 | li { |
| 360 | &:before { |
| 361 | counter-increment: num_inner; |
| 362 | content: counter(num_inner); |
| 363 | } |
| 364 | } |
| 365 | } |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | &.is-style-vk-numbered-square-mark { |
| 370 | counter-reset: number; |
| 371 | list-style-type: none; |
| 372 | |
| 373 | li { |
| 374 | --vk-numbered-marker-leading: 0px; |
| 375 | position: relative; |
| 376 | list-style: none; |
| 377 | padding-left: .5em; |
| 378 | &:before { |
| 379 | position: absolute; |
| 380 | left: -0.3em; |
| 381 | top: var( --vk-numbered-marker-leading, 0 ); |
| 382 | counter-increment: number; |
| 383 | content: counter(number); |
| 384 | margin-left: -25px; |
| 385 | background: #222; |
| 386 | color: #fff; |
| 387 | text-indent: 0; |
| 388 | display: inline-block; |
| 389 | font-weight: bold; |
| 390 | font-size: calc( 1rem * 1 ); |
| 391 | line-height: calc( 1rem * 1.8 ); |
| 392 | width: 26px; |
| 393 | height: 26px; |
| 394 | text-align: center; |
| 395 | border-radius: 2px; |
| 396 | } |
| 397 | |
| 398 | ul, |
| 399 | ol { |
| 400 | counter-reset: num_inner; |
| 401 | content: counter(num_inner); |
| 402 | |
| 403 | li { |
| 404 | &:before { |
| 405 | counter-increment: num_inner; |
| 406 | content: counter(num_inner); |
| 407 | } |
| 408 | } |
| 409 | } |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | &.is-style-vk-numbered-circle-mark, |
| 414 | &.is-style-vk-numbered-square-mark { |
| 415 | --vk-numbered-default-line-height-length: calc( 1rem * 1.65 ); |
| 416 | |
| 417 | li { |
| 418 | --vk-numbered-marker-leading: max( |
| 419 | calc( |
| 420 | ( |
| 421 | var( --vk-numbered-line-height-length, var( --vk-numbered-default-line-height-length ) ) |
| 422 | - var( --vk-numbered-default-line-height-length ) |
| 423 | ) / 2 |
| 424 | ), |
| 425 | 0px |
| 426 | ); |
| 427 | } |
| 428 | |
| 429 | &.fa-lg { |
| 430 | li::before { |
| 431 | left: -0.8em; |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | &.fa-2x { |
| 436 | li { |
| 437 | line-height: 1.25em; |
| 438 | } |
| 439 | |
| 440 | li::before { |
| 441 | left: -1.1em; |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | &.fa-3x { |
| 446 | li { |
| 447 | line-height: 1.25em; |
| 448 | } |
| 449 | |
| 450 | li::before { |
| 451 | left: -1.4em; |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | &.fa-4x { |
| 456 | li { |
| 457 | line-height: 1.25em; |
| 458 | } |
| 459 | |
| 460 | li::before { |
| 461 | left: -1.5em; |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | &.fa-5x { |
| 466 | li { |
| 467 | line-height: 1.25em; |
| 468 | } |
| 469 | |
| 470 | li::before { |
| 471 | left: -1.6em; |
| 472 | } |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | @each $styleClass, $faCode in $stylePalette { |
| 477 | &.#{$styleClass} { |
| 478 | li { |
| 479 | &::before { |
| 480 | @include mark-before; |
| 481 | content: $faCode; |
| 482 | left: -1.5em; |
| 483 | } |
| 484 | } |
| 485 | } |
| 486 | &.is-style-vk-default { |
| 487 | li { |
| 488 | &::before { |
| 489 | font-size: 22px; |
| 490 | line-height: 1.1em; |
| 491 | } |
| 492 | } |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | // Use FA Regular weight for hollow circle look on Circle style |
| 497 | &.is-style-vk-circle-mark { |
| 498 | li::before { |
| 499 | font-weight: 400; |
| 500 | } |
| 501 | } |
| 502 | |
| 503 | @each $colorClass, $color in $colorPalette { |
| 504 | &.vk-has-#{"#{$colorClass}"}-color, |
| 505 | &.has-vk-#{"#{$colorClass}"}-color { |
| 506 | li::marker { |
| 507 | color: $color; |
| 508 | } |
| 509 | li::before { |
| 510 | color: $color; |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | &.is-style-vk-numbered-circle-mark, |
| 515 | &.is-style-vk-numbered-square-mark { |
| 516 | &.vk-has-#{"#{$colorClass}"}-color, |
| 517 | &.has-vk-#{"#{$colorClass}"}-color { |
| 518 | li::before { |
| 519 | color: #fff; |
| 520 | background-color: $color; |
| 521 | } |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | } |
| 526 | } |
| 527 | //ul,ol |
| 528 | |
| 529 | /*-------------------------------------------*/ |
| 530 | /* グループブロック デザイン |
| 531 | /*-------------------------------------------*/ |
| 532 | |
| 533 | @mixin pad-mag { |
| 534 | padding: 1.8em; |
| 535 | margin-top: var( --vk-margin-elem ); |
| 536 | margin-bottom: var( --vk-margin-elem ); |
| 537 | } |
| 538 | @mixin inner-item-pad-mag { |
| 539 | h2, |
| 540 | h3, |
| 541 | h4, |
| 542 | h5, |
| 543 | h6 { |
| 544 | margin-bottom: 1rem; |
| 545 | } |
| 546 | ul, |
| 547 | ol { |
| 548 | margin-top: 0; |
| 549 | li:last-child { |
| 550 | margin-bottom: 0; |
| 551 | } |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | .wp-block-group { |
| 556 | h3:first-child, |
| 557 | h4:first-child { |
| 558 | margin-top: 0; |
| 559 | } |
| 560 | |
| 561 | /* *:last-child で指定するとブロックエディタでカラムの中にいれた時に枠の外にはみ出す */ |
| 562 | p, |
| 563 | ul, |
| 564 | ol, |
| 565 | dl, |
| 566 | table, |
| 567 | .wp-block-columns { |
| 568 | &:last-child { |
| 569 | margin-bottom: 0; |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | @each $colorClass, $color in $colorPalette { |
| 574 | // 線の色パネル用(vk-has-*)→ テキスト色は変えない |
| 575 | &.vk-has-#{"#{$colorClass}"}-color { |
| 576 | color: inherit; |
| 577 | border-color: $color; |
| 578 | .wp-block-group__inner-container { |
| 579 | color: inherit; |
| 580 | border-color: $color; |
| 581 | } |
| 582 | } |
| 583 | // テキスト色用(has-vk-*)→ :rootルールに任せる |
| 584 | &.has-vk-#{"#{$colorClass}"}-color { |
| 585 | border-color: $color; |
| 586 | .wp-block-group__inner-container { |
| 587 | border-color: $color; |
| 588 | } |
| 589 | } |
| 590 | } |
| 591 | } //.wp-block-group |
| 592 | .is-style-vk-group { |
| 593 | &-solid { |
| 594 | border: solid 3px; |
| 595 | @include pad-mag; |
| 596 | @include inner-item-pad-mag; |
| 597 | } |
| 598 | &-solid-roundcorner { |
| 599 | border: solid 3px; |
| 600 | border-radius: 8px; |
| 601 | @include pad-mag; |
| 602 | @include inner-item-pad-mag; |
| 603 | } |
| 604 | &-dotted { |
| 605 | border: dotted 1px; |
| 606 | @include pad-mag; |
| 607 | @include inner-item-pad-mag; |
| 608 | } |
| 609 | &-dashed { |
| 610 | border: dashed 2px; |
| 611 | @include pad-mag; |
| 612 | @include inner-item-pad-mag; |
| 613 | } |
| 614 | &-double { |
| 615 | border: double 5px; |
| 616 | @include pad-mag; |
| 617 | @include inner-item-pad-mag; |
| 618 | } |
| 619 | &-stitch { |
| 620 | position: relative; |
| 621 | margin: 1em auto; |
| 622 | padding: 2.3em; |
| 623 | border-radius: 8px; |
| 624 | &::before { |
| 625 | content: ""; |
| 626 | position: absolute; |
| 627 | top: .5em; |
| 628 | left: .5em; |
| 629 | width: calc(100% - 1em); |
| 630 | height: calc(100% - 1em); |
| 631 | border: dashed 2px; |
| 632 | border-color: inherit; |
| 633 | border-radius: 8px; |
| 634 | pointer-events: none; |
| 635 | } |
| 636 | //@include inner-item-pad-mag; |
| 637 | // thema.jsonでは .wp-block-group__inner-container がつかないためコメントアウト |
| 638 | //.wp-block-group__inner-container { |
| 639 | // border: dashed 2px; |
| 640 | // border-radius: 8px; |
| 641 | // padding: 1.8em; |
| 642 | // } |
| 643 | } |
| 644 | &-top-bottom-border { |
| 645 | border-top: solid 1px; |
| 646 | border-bottom: solid 1px; |
| 647 | @include pad-mag; |
| 648 | @include inner-item-pad-mag; |
| 649 | padding-left: 0; |
| 650 | padding-right: 0; |
| 651 | } |
| 652 | &-shadow { |
| 653 | box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2); |
| 654 | @include pad-mag; |
| 655 | @include inner-item-pad-mag; |
| 656 | } |
| 657 | &-alert-info { |
| 658 | background-color: #d9edf7; |
| 659 | color: #31708f; |
| 660 | border-radius: 3px; |
| 661 | border: 1px solid #bce8f1; |
| 662 | @include pad-mag; |
| 663 | @include inner-item-pad-mag; |
| 664 | } |
| 665 | &-alert-success { |
| 666 | background-color: #dff0d8; |
| 667 | color: #3c763d; |
| 668 | border-radius: 3px; |
| 669 | border: 1px solid #d6e9c6; |
| 670 | @include pad-mag; |
| 671 | @include inner-item-pad-mag; |
| 672 | } |
| 673 | &-alert-warning { |
| 674 | background-color: #fcf8e3; |
| 675 | color: #8a6d3b; |
| 676 | border-radius: 3px; |
| 677 | border: 1px solid #faebcc; |
| 678 | @include pad-mag; |
| 679 | @include inner-item-pad-mag; |
| 680 | } |
| 681 | &-alert-danger { |
| 682 | background-color: #f2dede; |
| 683 | color: #a94442; |
| 684 | border-radius: 3px; |
| 685 | border: 1px solid #ebccd1; |
| 686 | @include pad-mag; |
| 687 | @include inner-item-pad-mag; |
| 688 | } |
| 689 | } |
| 690 | |
| 691 | |
| 692 | /*-------------------------------------------*/ |
| 693 | /* Group Block |
| 694 | /*-------------------------------------------*/ |
| 695 | .editor-styles-wrapper .wp-block-group { |
| 696 | // これがないとコアに勝手にwidthが左右1em余白をあけられる |
| 697 | // → だがしかし Grid Column 2 で中の要素が勝手に小さくされるので一旦コメントアウト |
| 698 | .wp-block{ |
| 699 | // width:auto; |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | /*-------------------------------------------*/ |
| 704 | /* YouTube |
| 705 | /*-------------------------------------------*/ |
| 706 | .wp-block-embed { |
| 707 | &-youtube { |
| 708 | iframe { |
| 709 | width: 100%; |
| 710 | } |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | .has-text-align-right { |
| 715 | text-align: right; |
| 716 | } |
| 717 | .has-text-align-left { |
| 718 | text-align: left; |
| 719 | } |
| 720 | .has-text-align-center { |
| 721 | text-align: center; |
| 722 | } |
| 723 | |
| 724 | /*-------------------------------------------*/ |
| 725 | /* ソーシャルアイコン |
| 726 | /*-------------------------------------------*/ |
| 727 | .wp-block-social-links{ |
| 728 | flex-wrap: wrap; |
| 729 | } |
| 730 | |
| 731 | /*-------------------------------------------*/ |
| 732 | /* Swiper |
| 733 | /*-------------------------------------------*/ |
| 734 | :root { |
| 735 | --vk-color-background-white-translucent:rgba(255, 255, 255, 0.5); |
| 736 | } |
| 737 | |
| 738 | .vk_slider, |
| 739 | .vk_post_list_slider { |
| 740 | //� |
| 741 | �通ではないためvk_sliderの中に格納 |
| 742 | height: auto; //100%だとサイトエディター画面でおかしくなるのでautoに |
| 743 | position: relative; |
| 744 | .swiper-wrapper { |
| 745 | height: auto; //100%だとおかしくなるのでautoに |
| 746 | transition-timing-function: cubic-bezier(0.77, 0.2, 0.05, 1); |
| 747 | } |
| 748 | //vk_slider用のnextとprevボタン |
| 749 | .swiper-button-next, |
| 750 | .swiper-button-prev { |
| 751 | color: var(--vk-color-text-body); |
| 752 | background-color: var(--vk-color-background-white-translucent); |
| 753 | border-radius: var(--vk-size-radius); |
| 754 | background-image: none; |
| 755 | width: 2.4rem; |
| 756 | height: 2.4rem; |
| 757 | z-index: 20; |
| 758 | &:after { |
| 759 | font-size: 1.2rem; |
| 760 | } |
| 761 | } |
| 762 | |
| 763 | } |
| 764 | |
| 765 | //vk_slider用の自動再生 停止/再生ボタン |
| 766 | //矢印ボタンと同じ見た目で、ページネーションや矢印と干渉しにくい右上に� |
| 767 | �置する |
| 768 | .vk_slider, |
| 769 | .vk_post_list_slider { |
| 770 | .swiper-pause-button { |
| 771 | position: absolute; |
| 772 | top: 10px; |
| 773 | right: 10px; |
| 774 | left: auto; |
| 775 | z-index: 20; |
| 776 | display: flex; |
| 777 | align-items: center; |
| 778 | justify-content: center; |
| 779 | width: 2.4rem; |
| 780 | height: 2.4rem; |
| 781 | padding: 0; |
| 782 | border: none; |
| 783 | cursor: pointer; |
| 784 | color: var(--vk-color-text-body); |
| 785 | background-color: var(--vk-color-background-white-translucent); |
| 786 | border-radius: var(--vk-size-radius); |
| 787 | .vk_slider_pauseButton_icon { |
| 788 | width: 1.2rem; |
| 789 | height: 1.2rem; |
| 790 | fill: currentColor; |
| 791 | } |
| 792 | //再生中(既定)は停止アイコンのみ表示し、再生アイコンは隠す |
| 793 | .vk_slider_pauseButton_icon-play { |
| 794 | display: none; |
| 795 | } |
| 796 | //停止中は再生アイコンを表示し、停止アイコンを隠す |
| 797 | &.is-paused { |
| 798 | .vk_slider_pauseButton_icon-pause { |
| 799 | display: none; |
| 800 | } |
| 801 | .vk_slider_pauseButton_icon-play { |
| 802 | display: block; |
| 803 | } |
| 804 | } |
| 805 | } |
| 806 | } |
| 807 | |
| 808 | .swiper-container { |
| 809 | /* vk_width-full は廃止になったが互換処理のために 2022年10月末までは残す */ |
| 810 | &.vk_width-full { |
| 811 | //� |
| 812 | �� |
| 813 | の時 |
| 814 | margin: 0 calc(50% - 50vw); |
| 815 | width: 100vw; |
| 816 | } |
| 817 | &-horizontal{ |
| 818 | >.swiper-pagination-bullets { |
| 819 | .swiper-pagination-bullet{ |
| 820 | margin: 0 5px; |
| 821 | } |
| 822 | } |
| 823 | } |
| 824 | } |
| 825 | |
| 826 | // ↓ これ要る? |
| 827 | .swiper-slide { |
| 828 | height: auto; //100%だとおかしくなるのでautoに |
| 829 | font-size: 18px; |
| 830 | display: flex; |
| 831 | align-items: center; |
| 832 | flex-direction: column; |
| 833 | } |
| 834 | |
| 835 | //paginationの親枠 |
| 836 | .swiper-container-horizontal>.swiper-pagination-bullets{ |
| 837 | padding-left:3.2rem; |
| 838 | padding-right:3.2rem; |
| 839 | box-sizing: border-box; //他のFSEテーマではみ出るので追加 |
| 840 | } |
| 841 | //pagination |
| 842 | .swiper-pagination{ |
| 843 | pointer-events: none; |
| 844 | //標準 |
| 845 | &-bullet{ |
| 846 | border-radius: unset; |
| 847 | width: 30px; |
| 848 | height: 5px; |
| 849 | background-color: #ccc; |
| 850 | opacity: unset; |
| 851 | outline: 1px solid var(--vk-color-background-white-translucent); |
| 852 | pointer-events: auto; |
| 853 | &-active { |
| 854 | background: #666; |
| 855 | } |
| 856 | } |
| 857 | //標準以外(スライドの枚数) |
| 858 | &.swiper-pagination-fraction:not(.swiper-pagination-bullets){ |
| 859 | width: auto; |
| 860 | left: 50%; |
| 861 | transform: translateX(-50%); |
| 862 | background: var(--vk-color-background-white-translucent); |
| 863 | padding: 0.4rem 1.5rem; |
| 864 | border-radius: 30px; |
| 865 | bottom: 5px; |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | //矢印ボタン モバイルは下部 |
| 870 | @media (max-width: 575.98px) { |
| 871 | .swiper-button-next, |
| 872 | .swiper-button-prev{ |
| 873 | &.swiper-button-mobile-bottom{ |
| 874 | top:unset; |
| 875 | bottom: 10px; |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | |
| 880 | /*-------------------------------------------*/ |
| 881 | /* col-xxl |
| 882 | /*-------------------------------------------*/ |
| 883 | $xxl-min: 1400px; |
| 884 | .col { |
| 885 | // Bootstrap4 では xxl サイズがないので独自に追加 |
| 886 | @media (min-width: $xxl-min) { |
| 887 | &-xxl-2 { |
| 888 | flex: 0 0 16.66667%; |
| 889 | max-width: 16.66667%; |
| 890 | } |
| 891 | &-xxl-3 { |
| 892 | flex: 0 0 25%; |
| 893 | max-width: 25%; |
| 894 | } |
| 895 | &-xxl-4 { |
| 896 | flex: 0 0 33.33333%; |
| 897 | max-width: 33.33333%; |
| 898 | } |
| 899 | &-xxl-6 { |
| 900 | flex: 0 0 50%; |
| 901 | max-width: 50%; |
| 902 | } |
| 903 | &-xxl-12 { |
| 904 | flex: 0 0 100%; |
| 905 | max-width: 100%; |
| 906 | } |
| 907 | } |
| 908 | } |
| 909 | |
| 910 | /*-------------------------------------------*/ |
| 911 | /* カラム |
| 912 | /*-------------------------------------------*/ |
| 913 | .wp-block-columns { |
| 914 | /* カラムの方向 */ |
| 915 | &.wp-block-columns.is-vk-row-reverse { |
| 916 | flex-direction: row-reverse; |
| 917 | } |
| 918 | } |
| 919 |