| 1 |
/** |
| 2 |
* Define some sensible default styles for the form elements, |
| 3 |
* in case a theme doesn't define them. |
| 4 |
*/ |
| 5 |
.wp-block-convertkit-form-builder-field { |
| 6 |
|
| 7 |
input, |
| 8 |
textarea { |
| 9 |
width: 100%; |
| 10 |
margin: 0 0 20px 0; |
| 11 |
padding: 10px; |
| 12 |
box-sizing: border-box; |
| 13 |
font-family: inherit; |
| 14 |
|
| 15 |
/* Leave room above the field when it's focused and scrolled to on error. */ |
| 16 |
scroll-margin-top: 30px; |
| 17 |
} |
| 18 |
|
| 19 |
label { |
| 20 |
|
| 21 |
span.convertkit-form-builder-field-required { |
| 22 |
color: #f00; |
| 23 |
} |
| 24 |
} |
| 25 |
} |
| 26 |
|
| 27 |
form { |
| 28 |
|
| 29 |
.convertkit-form-builder-subscribed-message { |
| 30 |
width: 100%; |
| 31 |
margin: 0 0 20px 0; |
| 32 |
box-sizing: border-box; |
| 33 |
} |
| 34 |
|
| 35 |
.convertkit-form-builder-notice { |
| 36 |
display: inline-block; |
| 37 |
width: 100%; |
| 38 |
scroll-margin-top: 30px; |
| 39 |
margin: 0 0 20px 0; |
| 40 |
padding: 0 0 0 30px; |
| 41 |
box-sizing: border-box; |
| 42 |
font-size: 12px; |
| 43 |
line-height: 24px; |
| 44 |
font-weight: 400; |
| 45 |
background-repeat: no-repeat; |
| 46 |
background-size: 24px 24px; |
| 47 |
|
| 48 |
&.convertkit-form-builder-notice-error { |
| 49 |
color: #d3434a; |
| 50 |
background-image: url(../images/error.svg); |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
|