editor.scss
97 lines
| 1 | .gblocks-color-component { |
| 2 | display: flex; |
| 3 | align-items: center; |
| 4 | |
| 5 | &__label { |
| 6 | flex: 1; |
| 7 | } |
| 8 | |
| 9 | &__toggle-button { |
| 10 | height: auto; |
| 11 | min-height: auto; |
| 12 | padding: 4px |
| 13 | } |
| 14 | |
| 15 | &__toggle-indicator { |
| 16 | width: 25px; |
| 17 | height: 25px; |
| 18 | border-radius: 50%; |
| 19 | background: linear-gradient(-45deg,transparent 48%,rgba(0,0,0,0.2) 0,rgba(0,0,0,0.2) 52%,transparent 0); |
| 20 | border: 1px solid rgba(0,0,0,0.2); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | .gblocks-color-component-content { |
| 25 | .components-popover__content { |
| 26 | padding: 15px; |
| 27 | width: 300px; |
| 28 | |
| 29 | & > div { |
| 30 | padding: 0; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | .components-base-control__field { |
| 35 | margin-bottom: 0; |
| 36 | } |
| 37 | |
| 38 | .react-colorful { |
| 39 | width: 100% !important; |
| 40 | |
| 41 | .react-colorful__pointer { |
| 42 | width: 20px; |
| 43 | height: 20px; |
| 44 | } |
| 45 | |
| 46 | .react-colorful__saturation { |
| 47 | height: 150px; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | &__input-wrapper { |
| 52 | display: flex; |
| 53 | margin-top: 15px; |
| 54 | |
| 55 | .gblocks-color-input { |
| 56 | flex: 1; |
| 57 | } |
| 58 | |
| 59 | .gblocks-color-input-clear { |
| 60 | height: auto; |
| 61 | } |
| 62 | |
| 63 | .components-base-control__field { |
| 64 | margin-bottom: 0; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | &__palette { |
| 69 | margin-top: 15px; |
| 70 | |
| 71 | .components-circular-option-picker { |
| 72 | display: flex; |
| 73 | flex-wrap: wrap; |
| 74 | |
| 75 | .components-circular-option-picker__swatches { |
| 76 | display: flex; |
| 77 | flex-wrap: wrap; |
| 78 | gap: 6px; |
| 79 | |
| 80 | .components-circular-option-picker__option-wrapper { |
| 81 | margin: 0; |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | &__opacity { |
| 88 | display: flex; |
| 89 | margin-top: 15px; |
| 90 | |
| 91 | .components-range-control { |
| 92 | flex-grow: 1; |
| 93 | padding-left: 5px; |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 |