| 1 |
/** |
| 2 |
* Editor Styles |
| 3 |
*/ |
| 4 |
@import "./variables"; |
| 5 |
@import "./style"; |
| 6 |
|
| 7 |
.ghostkit-form { |
| 8 |
> .block-editor-inserter { |
| 9 |
display: block; |
| 10 |
margin-top: 20px; |
| 11 |
} |
| 12 |
|
| 13 |
// Reset field default styles. |
| 14 |
&-field > .components-base-control, |
| 15 |
&-field-row > div > .components-base-control { |
| 16 |
font-family: inherit; |
| 17 |
font-size: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
&-field-description { |
| 21 |
margin-bottom: 0; |
| 22 |
} |
| 23 |
|
| 24 |
&-field-label > .block-editor-rich-text { |
| 25 |
display: inline-block; |
| 26 |
} |
| 27 |
|
| 28 |
// Disable pointer events. |
| 29 |
&-field .components-text-control__input, |
| 30 |
&-field .components-select-control__input, |
| 31 |
&-field .components-textarea-control__input, |
| 32 |
&-field &-field-checkbox-item, |
| 33 |
&-field &-field-radio-item { |
| 34 |
pointer-events: none; |
| 35 |
} |
| 36 |
|
| 37 |
// Fix for Select field width. |
| 38 |
&-field .components-select-control__input { |
| 39 |
max-width: none; |
| 40 |
} |
| 41 |
|
| 42 |
// Submit button. |
| 43 |
&-submit-button > .block-editor-inner-blocks > .block-editor-block-list__layout { |
| 44 |
display: flex; |
| 45 |
justify-content: var(--gkt-button__align-items); |
| 46 |
|
| 47 |
> .wp-block { |
| 48 |
margin: 0; |
| 49 |
} |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
// Options component. |
| 54 |
.ghostkit-field-options-item { |
| 55 |
display: flex; |
| 56 |
align-items: center; |
| 57 |
margin-bottom: 8px; |
| 58 |
|
| 59 |
> [type="radio"]="radio""], |
| 60 |
> [type="checkbox"]="checkbox""] { |
| 61 |
margin-bottom: 0; |
| 62 |
} |
| 63 |
|
| 64 |
> .components-base-control { |
| 65 |
flex: 1; |
| 66 |
} |
| 67 |
|
| 68 |
> .components-button { |
| 69 |
height: 30px; |
| 70 |
padding-top: 4px; |
| 71 |
padding-right: 0; |
| 72 |
padding-bottom: 4px; |
| 73 |
margin-left: 3px; |
| 74 |
} |
| 75 |
|
| 76 |
.components-base-control__field { |
| 77 |
margin-bottom: 0; |
| 78 |
} |
| 79 |
|
| 80 |
.components-text-control__input { |
| 81 |
pointer-events: inherit; |
| 82 |
} |
| 83 |
} |
| 84 |
|
| 85 |
.ghostkit-field-options > .components-button { |
| 86 |
padding-top: 0; |
| 87 |
padding-left: 16px; |
| 88 |
margin-top: -4px; |
| 89 |
} |
| 90 |
|