style.scss
515 lines
| 1 | //管理画面側の見出しブロックのスタイルのcssになります。 |
| 2 | //cssを修正する場合はfunctions-color.phpのdynamic_css部分とこちらのscssを修正してください。 |
| 3 | |
| 4 | :root { |
| 5 | --vk-heading-has-background-padding: 0.6em 0.7em 0.5em; |
| 6 | } |
| 7 | |
| 8 | $color_key: #337ab7; |
| 9 | |
| 10 | @mixin title_unset { |
| 11 | position: relative; |
| 12 | outline: unset; |
| 13 | outline-offset: unset; |
| 14 | box-shadow: unset; |
| 15 | border-radius: unset; |
| 16 | overflow: unset; |
| 17 | color: inherit; |
| 18 | } |
| 19 | |
| 20 | @mixin title_no_bg { |
| 21 | background-color: transparent; |
| 22 | border: none; |
| 23 | padding: 0.6em 0 0.5em; |
| 24 | margin-bottom: 1.2em; |
| 25 | } |
| 26 | |
| 27 | @mixin title_brackets { |
| 28 | border: none; |
| 29 | background-color: transparent !important; |
| 30 | padding: 0.7em; |
| 31 | margin-bottom: 1.2em; |
| 32 | text-align: center; |
| 33 | border-bottom: unset !important; |
| 34 | } |
| 35 | |
| 36 | @mixin title_brackets_before_after { |
| 37 | content: ""; |
| 38 | position: absolute; |
| 39 | top: 0; |
| 40 | width: 12px; |
| 41 | height: 100%; |
| 42 | display: inline-block; |
| 43 | margin-left: 0; |
| 44 | } |
| 45 | |
| 46 | .is-style-vk-heading { |
| 47 | &, |
| 48 | .editor-styles-wrapper .block-editor-block-list__layout & { |
| 49 | h3.is-style-vk-heading:after { |
| 50 | border-bottom: none !important; |
| 51 | } |
| 52 | &-plain, |
| 53 | &-background_fill_lightgray, |
| 54 | &-double_black, |
| 55 | &-double_bottomborder_black, |
| 56 | &-solid_black, |
| 57 | &-solid_bottomborder_black, |
| 58 | &-dotted_bottomborder_black{ |
| 59 | &:not(.has-text-align-center,.has-text-align-right){ |
| 60 | text-align: left; |
| 61 | } |
| 62 | } |
| 63 | &-plain { |
| 64 | @include title_unset; |
| 65 | |
| 66 | background-color: transparent; |
| 67 | border: none; |
| 68 | padding: unset; |
| 69 | display: block; // これがないと 左右線のflaxをリセットできない |
| 70 | |
| 71 | &::before, |
| 72 | &::after { |
| 73 | content: none; |
| 74 | } |
| 75 | //コア側の見出し背景色の余白が優� |
| 76 | �されるので上書き用 |
| 77 | &[class*=has-background]*=has-background]{ |
| 78 | padding: var(--vk-heading-has-background-padding); |
| 79 | } |
| 80 | |
| 81 | } |
| 82 | |
| 83 | // &-speech_balloon_fill { |
| 84 | // @include title_unset; |
| 85 | |
| 86 | // overflow: unset; |
| 87 | // border: none; |
| 88 | // padding: 0.6em 0.8em 0.5em; |
| 89 | // margin-bottom: 1.2em; |
| 90 | // color: #fff; |
| 91 | // border-radius: 4px; |
| 92 | // text-align: left; |
| 93 | // background-color: $color_key; |
| 94 | |
| 95 | // &::before { |
| 96 | // content: ""; |
| 97 | // position: absolute; |
| 98 | // top: auto; |
| 99 | // left: 40px; |
| 100 | // bottom: -20px; |
| 101 | // width: auto; |
| 102 | // margin-left: -10px; |
| 103 | // border: 10px solid transparent; |
| 104 | // border-top: 10px solid $color_key; |
| 105 | // z-index: 2; |
| 106 | // height: auto; |
| 107 | // background-color: transparent !important; |
| 108 | // } |
| 109 | |
| 110 | // &::after { |
| 111 | // content: none; |
| 112 | // } |
| 113 | // } |
| 114 | |
| 115 | // &-background_fill { |
| 116 | // @include title_unset; |
| 117 | |
| 118 | // border: none; |
| 119 | // margin-bottom: 1.2em; |
| 120 | // color: #fff; |
| 121 | // border-radius: 4px; |
| 122 | // background-color: $color_key; |
| 123 | |
| 124 | // &::before, &::after { |
| 125 | // content: none; |
| 126 | // } |
| 127 | // } |
| 128 | |
| 129 | // &-background_fill_stitch { |
| 130 | // position: relative; |
| 131 | // margin-left: unset; |
| 132 | // margin-right: unset; |
| 133 | // background-color: $color_key; |
| 134 | // padding: 0.6em 0.7em 0.5em; |
| 135 | // margin-bottom: 1.2em; |
| 136 | // color: #fff; |
| 137 | // border-radius: 4px; |
| 138 | // border: none; |
| 139 | // outline: dashed 1px #fff; |
| 140 | // outline-offset: -4px; |
| 141 | |
| 142 | // &::before, &::after { |
| 143 | // content: none; |
| 144 | // } |
| 145 | // } |
| 146 | |
| 147 | &-background_fill_lightgray { |
| 148 | @include title_unset; |
| 149 | |
| 150 | border: none; |
| 151 | background-color: var(--wp--preset--color--bg-secondary,#efefef ); |
| 152 | padding: 0.6em 0.7em 0.5em; |
| 153 | margin-bottom: 1.2em; |
| 154 | border-radius: 4px; |
| 155 | |
| 156 | &::before, |
| 157 | &::after { |
| 158 | content: none; |
| 159 | } |
| 160 | //コア側の見出し背景色の余白が優� |
| 161 | �されるので上書き用 |
| 162 | &[class*=has-background]*=has-background]{ |
| 163 | padding: var(--vk-heading-has-background-padding); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | // &-topborder_background_fill_none { |
| 168 | // @include title_unset; |
| 169 | // @include title_no_bg; |
| 170 | |
| 171 | // border-left: unset; |
| 172 | // border-right: unset; |
| 173 | // border-top: 2px solid $color_key; |
| 174 | // border-bottom: 1px solid #ccc; |
| 175 | |
| 176 | // &::before, &::after { |
| 177 | // content: none; |
| 178 | // } |
| 179 | // } |
| 180 | |
| 181 | // &-topborder_background_fill_black { |
| 182 | // @include title_unset; |
| 183 | |
| 184 | // border-left: unset; |
| 185 | // border-right: unset; |
| 186 | // background-color: #191919; |
| 187 | // padding: 0.6em 0.7em 0.5em; |
| 188 | // margin-bottom: 1.2em; |
| 189 | // color: #fff; |
| 190 | // border-top: 2px solid $color_key; |
| 191 | // border-bottom: 1px solid #999; |
| 192 | |
| 193 | // &::before, &::after { |
| 194 | // content: none; |
| 195 | // } |
| 196 | // } |
| 197 | |
| 198 | // &-double { |
| 199 | // @include title_unset; |
| 200 | // @include title_no_bg; |
| 201 | |
| 202 | // border-top: double 3px $color_key; |
| 203 | // border-bottom: double 3px $color_key; |
| 204 | |
| 205 | // &::before, &::after { |
| 206 | // content: none; |
| 207 | // } |
| 208 | // } |
| 209 | |
| 210 | &-double_black { |
| 211 | @include title_unset; |
| 212 | @include title_no_bg; |
| 213 | |
| 214 | border-top: double 3px #333; |
| 215 | border-bottom: double 3px #333; |
| 216 | |
| 217 | &::before, |
| 218 | &::after { |
| 219 | content: none; |
| 220 | } |
| 221 | //コア側の見出し背景色の余白が優� |
| 222 | �されるので上書き用 |
| 223 | &[class*=has-background]*=has-background]{ |
| 224 | padding: var(--vk-heading-has-background-padding); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | // &-double_bottomborder { |
| 229 | // @include title_unset; |
| 230 | // @include title_no_bg; |
| 231 | |
| 232 | // border-bottom: double 3px $color_key; |
| 233 | |
| 234 | // &::before, &::after { |
| 235 | // content: none; |
| 236 | // } |
| 237 | // } |
| 238 | |
| 239 | &-double_bottomborder_black { |
| 240 | @include title_unset; |
| 241 | @include title_no_bg; |
| 242 | |
| 243 | border-bottom: double 3px #333; |
| 244 | |
| 245 | &::before, |
| 246 | &::after { |
| 247 | content: none; |
| 248 | } |
| 249 | //コア側の見出し背景色の余白が優� |
| 250 | �されるので上書き用 |
| 251 | &[class*=has-background]*=has-background]{ |
| 252 | padding: var(--vk-heading-has-background-padding); |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | // &-solid { |
| 257 | // @include title_unset; |
| 258 | // @include title_no_bg; |
| 259 | |
| 260 | // border-top: solid 1px $color_key; |
| 261 | // border-bottom: solid 1px $color_key; |
| 262 | |
| 263 | // &::before, &::after { |
| 264 | // content: none; |
| 265 | // } |
| 266 | // } |
| 267 | |
| 268 | &-solid_black { |
| 269 | @include title_unset; |
| 270 | @include title_no_bg; |
| 271 | |
| 272 | border-top: solid 1px #333; |
| 273 | border-bottom: solid 1px #333; |
| 274 | |
| 275 | &::before, |
| 276 | &::after { |
| 277 | content: none; |
| 278 | } |
| 279 | //コア側の見出し背景色の余白が優� |
| 280 | �されるので上書き用 |
| 281 | &[class*=has-background]*=has-background]{ |
| 282 | padding: var(--vk-heading-has-background-padding); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | // &-solid_bottomborder { |
| 287 | // @include title_unset; |
| 288 | // @include title_no_bg; |
| 289 | |
| 290 | // border-bottom: solid 1px $color_key; |
| 291 | |
| 292 | // &::before, &::after { |
| 293 | // content: none; |
| 294 | // } |
| 295 | // } |
| 296 | |
| 297 | &-solid_bottomborder_black { |
| 298 | @include title_unset; |
| 299 | @include title_no_bg; |
| 300 | |
| 301 | border-bottom: solid 1px #333; |
| 302 | |
| 303 | &::before, |
| 304 | &::after { |
| 305 | content: none; |
| 306 | } |
| 307 | //コア側の見出し背景色の余白が優� |
| 308 | �されるので上書き用 |
| 309 | &[class*=has-background]*=has-background]{ |
| 310 | padding: var(--vk-heading-has-background-padding); |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | // &-solid_bottomborder_leftkeycolor { |
| 315 | // @include title_unset; |
| 316 | // @include title_no_bg; |
| 317 | |
| 318 | // border-bottom: 1px solid #ccc; |
| 319 | // text-align: left; |
| 320 | |
| 321 | // &:before { |
| 322 | // content: none; |
| 323 | // } |
| 324 | |
| 325 | // &:after { |
| 326 | // content: "."; |
| 327 | // line-height: 0; |
| 328 | // display: block; |
| 329 | // overflow: hidden; |
| 330 | // position: absolute; |
| 331 | // left: 0; |
| 332 | // bottom: -1px; |
| 333 | // width: 30%; |
| 334 | // border: unset; |
| 335 | // border-top: none !important; |
| 336 | // border-bottom: 1px solid $color_key; |
| 337 | // margin-left: 0; |
| 338 | // } |
| 339 | // } |
| 340 | |
| 341 | &-dotted_bottomborder_black { |
| 342 | @include title_unset; |
| 343 | @include title_no_bg; |
| 344 | |
| 345 | border-bottom: 1px dotted #111; |
| 346 | |
| 347 | &::before, |
| 348 | &::after { |
| 349 | content: none; |
| 350 | } |
| 351 | //コア側の見出し背景色の余白が優� |
| 352 | �されるので上書き用 |
| 353 | &[class*=has-background]*=has-background]{ |
| 354 | padding: var(--vk-heading-has-background-padding); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | &-both_ends { |
| 359 | @include title_unset; |
| 360 | |
| 361 | background-color: transparent; |
| 362 | border: none; |
| 363 | display: flex; |
| 364 | align-items: center; |
| 365 | text-align: center; |
| 366 | margin-bottom: 1.2em; |
| 367 | padding: 0; |
| 368 | |
| 369 | &::before, |
| 370 | &::after { |
| 371 | content: ""; |
| 372 | flex-grow: 1; |
| 373 | border-bottom: 1px solid currentColor; |
| 374 | position: unset; |
| 375 | width: unset; |
| 376 | border-left: unset; |
| 377 | border-right: unset; |
| 378 | border-top: none; |
| 379 | background: unset; |
| 380 | } |
| 381 | |
| 382 | &::before { |
| 383 | margin-right: 1em; |
| 384 | top: unset; |
| 385 | } |
| 386 | |
| 387 | &::after { |
| 388 | margin-left: 1em; |
| 389 | bottom: unset; |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | // &-leftborder { |
| 394 | // @include title_unset; |
| 395 | |
| 396 | // border: none; |
| 397 | // color: #333; |
| 398 | // padding: 0.6em 0.7em 0.5em; |
| 399 | // margin-bottom: 1.2em; |
| 400 | // border-left: solid 2px $color_key; |
| 401 | // background-color: #efefef; |
| 402 | // text-align: left; |
| 403 | |
| 404 | // &::before, &::after { |
| 405 | // content: none; |
| 406 | // } |
| 407 | // } |
| 408 | |
| 409 | // &-leftborder_nobackground { |
| 410 | // @include title_unset; |
| 411 | // @include title_no_bg; |
| 412 | |
| 413 | // padding: 0.6em 0.7em 0.5em; |
| 414 | // border-left: solid 2px $color_key; |
| 415 | // text-align: left; |
| 416 | |
| 417 | // &::before, &::after { |
| 418 | // content: none; |
| 419 | // } |
| 420 | // } |
| 421 | |
| 422 | // &-diagonal_stripe_bottomborder{ |
| 423 | // @include title_unset; |
| 424 | // @include title_no_bg; |
| 425 | // &:before{ |
| 426 | // content: none; |
| 427 | // } |
| 428 | // &::after{ |
| 429 | // content:""; |
| 430 | // position: absolute; |
| 431 | // left: 0; |
| 432 | // bottom: 0; |
| 433 | // width: 100%; |
| 434 | // height: 7px; |
| 435 | // border: none !important; |
| 436 | // background: linear-gradient( |
| 437 | // -45deg, |
| 438 | // rgba(255,255,255,0.1) 25%, $color_key 25%, |
| 439 | // #222 50%, rgba(255,255,255,0.1) 50%, |
| 440 | // rgba(255,255,255,0.1) 75%, $color_key 75%, |
| 441 | // #222 |
| 442 | // ); |
| 443 | // background-size: 5px 5px; |
| 444 | // margin-left: 0; |
| 445 | // } |
| 446 | // } |
| 447 | |
| 448 | // &-brackets{ |
| 449 | // @include title_unset; |
| 450 | // @include title_brackets; |
| 451 | // &::before, |
| 452 | // &::after{ |
| 453 | // @include title_brackets_before_after; |
| 454 | // border-top: solid 1px $color_key; |
| 455 | // border-bottom: solid 1px $color_key; |
| 456 | // } |
| 457 | // &::before{ |
| 458 | // border-left: solid 1px $color_key; |
| 459 | // left: 0; |
| 460 | // } |
| 461 | // &::after{ |
| 462 | // border-right: solid 1px $color_key; |
| 463 | // right: 0; |
| 464 | // left: auto; |
| 465 | // } |
| 466 | // } |
| 467 | &-brackets_black { |
| 468 | @include title_unset; |
| 469 | @include title_brackets; |
| 470 | &::before, |
| 471 | &::after { |
| 472 | @include title_brackets_before_after; |
| 473 | border-top: solid 1px currentColor; |
| 474 | border-bottom: solid 1px currentColor; |
| 475 | background: unset; |
| 476 | } |
| 477 | |
| 478 | &::before { |
| 479 | border-left: solid 1px currentColor; |
| 480 | left: 0; |
| 481 | } |
| 482 | |
| 483 | &::after { |
| 484 | border-right: solid 1px currentColor !important; |
| 485 | right: 0; |
| 486 | left: auto; |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | // &-small_bottomborder{ |
| 491 | // @include title_unset; |
| 492 | // border:none; |
| 493 | // color:#333; |
| 494 | // background-color:transparent !important; |
| 495 | // overflow: unset; |
| 496 | // padding: 0; |
| 497 | // text-align: center; |
| 498 | // margin-bottom: 3em; |
| 499 | // &:before{ |
| 500 | // content: none; |
| 501 | // } |
| 502 | // &::after{ |
| 503 | // content: ""; |
| 504 | // display: inline-block; |
| 505 | // position: absolute; |
| 506 | // left: 50%; |
| 507 | // margin-left: -19px; |
| 508 | // bottom: -24px; |
| 509 | // width: 38px; |
| 510 | // border-top: solid 2px $color_key; |
| 511 | // } |
| 512 | // } |
| 513 | } //.is-style-vk-heading |
| 514 | } //.editor-block-list__block |
| 515 |