editor.scss
71 lines
| 1 | [class*="wp-block-generateblocks-"]*="wp-block-generateblocks-""] { |
| 2 | & > .block-list-appender { |
| 3 | position: relative; |
| 4 | width: 35px; |
| 5 | padding: 0; |
| 6 | |
| 7 | &:not(:first-child) { |
| 8 | margin-top: 10px; |
| 9 | } |
| 10 | |
| 11 | &:empty { |
| 12 | display: none; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | button.components-button.gb-block-appender__button { |
| 17 | background: #000; |
| 18 | color: #fff; |
| 19 | padding: 5px; |
| 20 | height: 35px; |
| 21 | width: 35px; |
| 22 | min-height: 35px; |
| 23 | box-sizing: border-box; |
| 24 | padding: 5px; |
| 25 | |
| 26 | &:hover { |
| 27 | background-color: var(--wp-admin-theme-color); |
| 28 | color: #fff; |
| 29 | } |
| 30 | |
| 31 | &:not(:hover) { |
| 32 | box-shadow: inset 0 0 0 1px #444; |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | |
| 38 | .components-button.gblocks-element-selector { |
| 39 | display: block; |
| 40 | text-align: left; |
| 41 | color: inherit; |
| 42 | padding: 0; |
| 43 | border: 0; |
| 44 | height: 35px; |
| 45 | |
| 46 | .gblocks-element-selector__icon { |
| 47 | background: #fff; |
| 48 | opacity: 0.3; |
| 49 | display: inline-flex; |
| 50 | height: 35px; |
| 51 | width: 35px; |
| 52 | align-items: center; |
| 53 | justify-content: center; |
| 54 | border-radius: 2px; |
| 55 | transition: opacity 500ms ease; |
| 56 | |
| 57 | svg { |
| 58 | width: 35px; |
| 59 | height: 35px; |
| 60 | transform: scale(0.7); |
| 61 | color: #000; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | &:hover, &:focus { |
| 66 | .gblocks-element-selector__icon { |
| 67 | opacity: 0.4; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 |