editor.scss
112 lines
| 1 | /** |
| 2 | * Shared editor styles among all the blocks. |
| 3 | */ |
| 4 | |
| 5 | .gblocks-notice { |
| 6 | margin-bottom: 20px; |
| 7 | } |
| 8 | |
| 9 | .gblocks-panel-label .components-panel__body-toggle.components-button { |
| 10 | display: flex; |
| 11 | flex-direction: row-reverse; |
| 12 | justify-content: flex-end; |
| 13 | } |
| 14 | |
| 15 | .gblocks-panel-label svg.components-panel__icon { |
| 16 | margin: 0 10px 0 0; |
| 17 | } |
| 18 | |
| 19 | .gblocks-control-tabs .components-tab-panel__tabs { |
| 20 | display: flex; |
| 21 | flex-wrap: wrap; |
| 22 | margin-bottom: 15px; |
| 23 | border-bottom: 1px solid #e8eaeb; |
| 24 | } |
| 25 | |
| 26 | .gblocks-control-tabs .components-tab-panel__tabs button { |
| 27 | padding: 8px; |
| 28 | height: auto; |
| 29 | margin: 0; |
| 30 | margin-bottom: -1px; |
| 31 | cursor: pointer; |
| 32 | border: none; |
| 33 | border: 0; |
| 34 | border-radius: 0; |
| 35 | outline-offset: -1px; |
| 36 | flex: 1; |
| 37 | justify-content: center; |
| 38 | font-size: 11px; |
| 39 | font-weight: 400; |
| 40 | |
| 41 | &.active-tab { |
| 42 | position: relative; |
| 43 | z-index: 1; |
| 44 | background: #222 !important; |
| 45 | color: #fff !important; |
| 46 | box-shadow: 0 0 0 !important; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | .gblocks-block-control-icon svg { |
| 51 | margin-right: 0 !important; |
| 52 | margin-left: 0 !important; |
| 53 | padding: 2px; |
| 54 | } |
| 55 | |
| 56 | .gblocks-block-control-icon.gblocks-add-grid-item svg { |
| 57 | padding: 0; |
| 58 | } |
| 59 | |
| 60 | .gblocks-block-control-icon svg path { |
| 61 | fill: inherit !important; |
| 62 | } |
| 63 | |
| 64 | .gblocks-option-notice.components-notice { |
| 65 | margin: 0 0 24px; |
| 66 | |
| 67 | .components-notice__content { |
| 68 | margin: 5px; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | .gblocks-small-notice-description { |
| 73 | font-size: 12px; |
| 74 | color: #777; |
| 75 | margin-bottom: 10px; |
| 76 | } |
| 77 | |
| 78 | .gblocks-utility-label { |
| 79 | display: flex; |
| 80 | align-items: flex-end; |
| 81 | margin-bottom: 5px; |
| 82 | |
| 83 | label { |
| 84 | margin-right: auto; |
| 85 | } |
| 86 | |
| 87 | .components-button { |
| 88 | height: auto; |
| 89 | justify-content: center !important; |
| 90 | margin-left: 5px; |
| 91 | min-width: auto; |
| 92 | padding: 0 6px; |
| 93 | |
| 94 | &.gblocks-reset-button { |
| 95 | svg { |
| 96 | height: 20px; |
| 97 | width: 20px; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | &:last-child { |
| 102 | margin-right: -5px; |
| 103 | } |
| 104 | |
| 105 | svg { |
| 106 | margin-right: 0 !important; |
| 107 | height: 13px; |
| 108 | width: 13px; |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 |