editor.scss
73 lines
| 1 | .gblocks-component-number-presets { |
| 2 | display: flex; |
| 3 | border: 1px solid #8c8f94; |
| 4 | padding: 2px; |
| 5 | border-radius: 3px; |
| 6 | |
| 7 | .components-button { |
| 8 | border: 0; |
| 9 | box-shadow: 0 0 0; |
| 10 | height: 30px; |
| 11 | |
| 12 | &:not(.has-icon) { |
| 13 | flex: 1; |
| 14 | justify-content: center; |
| 15 | font-size: 12px; |
| 16 | } |
| 17 | |
| 18 | &.has-icon { |
| 19 | svg { |
| 20 | margin-right: 0; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | &.is-primary { |
| 25 | color: #fff; |
| 26 | background-color: #000; |
| 27 | |
| 28 | &:active, |
| 29 | &:hover { |
| 30 | background-color: #000 !important; |
| 31 | color: #fff !important; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | &:active, |
| 36 | &:hover { |
| 37 | background-color: transparent !important; |
| 38 | color: currentColor !important; |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | .gblocks-number-component { |
| 44 | &__input { |
| 45 | display: flex; |
| 46 | |
| 47 | .components-base-control { |
| 48 | flex: 1; |
| 49 | margin-bottom: 0 !important; |
| 50 | |
| 51 | &__field { |
| 52 | margin-bottom: 0; |
| 53 | height: 100%; |
| 54 | |
| 55 | input { |
| 56 | height: 100%; |
| 57 | min-height: 30px; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | & > .components-button { |
| 63 | height: 30px; |
| 64 | |
| 65 | &.has-icon { |
| 66 | svg { |
| 67 | margin-right: 0; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 |