deprecated
2 weeks ago
block.json
1 month ago
component.js
2 months ago
edit.js
2 months ago
icon.svg
2 months ago
index.js
2 months ago
index.php
2 months ago
save.js
2 months ago
style.scss
2 weeks ago
style.scss
114 lines
| 1 | /*-------------------------------------------*/ |
| 2 | /* CSS |
| 3 | /*-------------------------------------------*/ |
| 4 | /*-------------------------------------------*/ |
| 5 | /* .vk_icon |
| 6 | /*-------------------------------------------*/ |
| 7 | .vk_icon { |
| 8 | @media screen and (max-width: 991.98px) { |
| 9 | margin-bottom: 1.5em; |
| 10 | } |
| 11 | } |
| 12 | .wp-block-vk-blocks-icon { //編集画面で負けるので� |
| 13 | �頭に追加 |
| 14 | .vk_icon_frame { |
| 15 | display: flex; |
| 16 | line-height: 1; |
| 17 | |
| 18 | &.text-center { |
| 19 | justify-content: center; |
| 20 | } |
| 21 | &.text-right { |
| 22 | justify-content: right; |
| 23 | } |
| 24 | } |
| 25 | .vk_icon { |
| 26 | &_border { |
| 27 | display: flex; |
| 28 | align-items: center; |
| 29 | justify-content: center; |
| 30 | width: 80px; |
| 31 | height: 80px; |
| 32 | border-radius: 50%; |
| 33 | } |
| 34 | &_link { |
| 35 | display: flex; |
| 36 | text-decoration: none; |
| 37 | &:hover { |
| 38 | opacity: .85; |
| 39 | text-decoration: none; |
| 40 | } |
| 41 | } |
| 42 | &_font { |
| 43 | // 中央寄せは親の flex で行うため transform を使わない |
| 44 | // → fa-rotate-* / fa-flip-* など FA の transform がそのまま効く |
| 45 | font-size: 36px; |
| 46 | margin-right: 0; |
| 47 | margin-left: 0; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | .is-style-outline { |
| 52 | .vk_icon_border { |
| 53 | background-color: transparent; |
| 54 | border: 1px solid currentColor; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | .vk_icon_frame:where(:not(.is-style-outline)):where(:not(.is-style-noline)) { |
| 59 | .vk_icon_font:where(:not([class*="has-vk-color-"])) { // x-t9で has-vk-color-* クラスに白がつくのでnotを追加 |
| 60 | color: #fff; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // old class before key-color START >>> |
| 65 | .vk_icon { |
| 66 | &_align { |
| 67 | &_center { |
| 68 | justify-content: center; |
| 69 | } |
| 70 | &_right { |
| 71 | justify-content: right; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | &_border { |
| 76 | &_frame { |
| 77 | background-color: transparent; |
| 78 | border-width: 1px; |
| 79 | border-style: solid; |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | div:where(:not(.is-style-outline)):where(:not(.is-style-noline)) { |
| 85 | .vk_icon_border:where(:not(.vk_icon_border_frame)):where(:not(.vk_icon_border_none)) { |
| 86 | .vk_icon_font:where(:not([class*="has-vk-color-"])) { // x-t9で has-vk-color-* クラスに白がつくのでnotを追加 |
| 87 | color: #fff; |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | |
| 94 | // デフォルトのカラー |
| 95 | .wp-block-vk-blocks-icon { |
| 96 | .vk_icon_frame:not(.is-style-outline):not(.is-style-noline) { |
| 97 | .vk_icon_border:not(.has-background) { |
| 98 | background-color: #337ab7; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | .is-style-noline { |
| 103 | .vk_icon_border:not(.has-text-color) { |
| 104 | color: #337ab7; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | .is-style-outline { |
| 109 | .vk_icon_border:not(.has-text-color) { |
| 110 | color: #337ab7; |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 |