editor-inline-editing-style-rtl.css
2 years ago
editor-inline-editing-style-rtl.min.css
2 years ago
editor-inline-editing-style.css
3 years ago
editor-inline-editing-style.min.css
2 years ago
editor-style-rtl.css
2 years ago
editor-style-rtl.min.css
2 years ago
editor-style.css
3 years ago
editor-style.min.css
2 years ago
editor-ui-rtl.css
4 years ago
editor-ui-rtl.min.css
4 years ago
editor-ui.css
5 years ago
editor-ui.min.css
4 years ago
grunion-admin.css
3 years ago
grunion-rtl.css
2 years ago
grunion.css
2 years ago
jquery-ui-datepicker.css
5 years ago
jquery-ui-selectmenu.css
3 years ago
grunion.css
603 lines
| 1 | :root { |
| 2 | --jetpack--contact-form--border: 1px solid #8c8f94; |
| 3 | --jetpack--contact-form--border-color: #8c8f94; |
| 4 | --jetpack--contact-form--border-size: 1px; |
| 5 | --jetpack--contact-form--border-style: solid; |
| 6 | --jetpack--contact-form--border-radius: 0px; |
| 7 | --jetpack--contact-form--input-padding: 16px; |
| 8 | --jetpack--contact-form--font-size: 16px; |
| 9 | } |
| 10 | |
| 11 | .contact-form .clear-form { |
| 12 | clear: both; |
| 13 | } |
| 14 | |
| 15 | .contact-form input::placeholder { |
| 16 | transition: opacity 0.3s ease-out; |
| 17 | } |
| 18 | .contact-form input:hover::placeholder { |
| 19 | opacity: 0.5; |
| 20 | } |
| 21 | .contact-form input:focus::placeholder { |
| 22 | opacity: 0.3; |
| 23 | } |
| 24 | |
| 25 | /* |
| 26 | Using :where we will keep a lower CSS specificity, |
| 27 | allowing themes to easily override these styles |
| 28 | */ |
| 29 | :where( |
| 30 | .contact-form input[type='text'], |
| 31 | .contact-form input[type='email'], |
| 32 | .contact-form input[type='tel'], |
| 33 | .contact-form input[type='url'], |
| 34 | .contact-form textarea |
| 35 | ) { |
| 36 | box-sizing: border-box; |
| 37 | width: 100%; |
| 38 | padding: 16px; |
| 39 | font: inherit; |
| 40 | border: 1px solid #8c8f94; |
| 41 | border-radius: 0; |
| 42 | } |
| 43 | |
| 44 | :where(.contact-form textarea) { |
| 45 | height: 200px; |
| 46 | } |
| 47 | |
| 48 | .contact-form :where(.grunion-field[type="text"], .grunion-field.textarea) { |
| 49 | padding-left: max(var(--jetpack--contact-form--input-padding-left, 16px), var(--jetpack--contact-form--border-radius)); |
| 50 | padding-right: max(var(--jetpack--contact-form--input-padding-left, 16px), var(--jetpack--contact-form--border-radius)); |
| 51 | } |
| 52 | |
| 53 | .contact-form .grunion-field-wrap input, |
| 54 | .contact-form .grunion-field-wrap textarea { |
| 55 | margin: 0; |
| 56 | } |
| 57 | |
| 58 | .contact-form select { |
| 59 | padding: 14px 7px; |
| 60 | min-width: 150px; |
| 61 | } |
| 62 | |
| 63 | /* |
| 64 | On Grunion Forms, the regular HTML select is replaced by a custom select by jQuery UI. |
| 65 | To keep the required validation working the select can't be 'display: none' |
| 66 | This solution will keep the select hidden without using 'display: none' |
| 67 | */ |
| 68 | .contact-form .contact-form-dropdown[aria-hidden="true"] { |
| 69 | position: absolute; |
| 70 | z-index: -1; |
| 71 | width: 100%; |
| 72 | display: block !important; |
| 73 | opacity: 0; |
| 74 | pointer-events: none; |
| 75 | } |
| 76 | |
| 77 | .contact-form :where(input[type='radio'], input[type='checkbox']) { |
| 78 | width: 1rem; |
| 79 | height: 1rem; |
| 80 | float: none; |
| 81 | } |
| 82 | |
| 83 | .contact-form input[type='radio'], |
| 84 | .contact-form input[type='checkbox'] { |
| 85 | margin: 0 0.75rem 0 0; |
| 86 | } |
| 87 | |
| 88 | .contact-form input[type='checkbox'] { |
| 89 | top: 0; |
| 90 | margin-left: 0; |
| 91 | } |
| 92 | |
| 93 | .contact-form label { |
| 94 | margin-bottom: 0.25em; |
| 95 | float: none; |
| 96 | font-weight: bold; |
| 97 | display: block; |
| 98 | } |
| 99 | |
| 100 | .contact-form label.consent { |
| 101 | font-size: 13px; |
| 102 | font-weight: normal; |
| 103 | text-transform: uppercase; |
| 104 | display: flex; |
| 105 | align-items: center; |
| 106 | } |
| 107 | |
| 108 | .contact-form label.consent-implicit input { |
| 109 | display: none; |
| 110 | } |
| 111 | |
| 112 | .contact-form label.checkbox, |
| 113 | .contact-form label.checkbox-multiple, |
| 114 | .contact-form label.radio { |
| 115 | margin-bottom: 0; |
| 116 | float: none; |
| 117 | font-weight: normal; |
| 118 | display: inline-flex; |
| 119 | align-items: center; |
| 120 | line-height: 1; |
| 121 | } |
| 122 | |
| 123 | .contact-form .grunion-checkbox-multiple-options, |
| 124 | .contact-form .grunion-radio-options { |
| 125 | display: flex; |
| 126 | flex-direction: column; |
| 127 | gap: 12px; |
| 128 | } |
| 129 | |
| 130 | .contact-form label span.grunion-label-required { |
| 131 | font-size: 85%; |
| 132 | margin-left: 0.25em; |
| 133 | font-weight: normal; |
| 134 | opacity: 0.45; |
| 135 | } |
| 136 | |
| 137 | .contact-form-submission { |
| 138 | margin-bottom: 4em; |
| 139 | padding: 1.5em 1em; |
| 140 | width: 100%; |
| 141 | border-top: 1px solid #000; |
| 142 | border-bottom: 1px solid #000; |
| 143 | } |
| 144 | |
| 145 | .contact-form-submission p { |
| 146 | margin: 0 auto; |
| 147 | word-wrap: break-word; |
| 148 | } |
| 149 | |
| 150 | .contact-form-submission h4 { |
| 151 | margin-top: 32px; |
| 152 | margin-bottom: 32px; |
| 153 | font-weight: 200; |
| 154 | } |
| 155 | |
| 156 | .contact-form-submission .go-back-message { |
| 157 | margin-top: 20px; |
| 158 | margin-bottom: 32px; |
| 159 | text-align: left; |
| 160 | } |
| 161 | |
| 162 | .contact-form-submission .go-back-message .link { |
| 163 | font-weight: 200; |
| 164 | color: #000; |
| 165 | } |
| 166 | |
| 167 | .contact-form-submission .field-name { |
| 168 | font-weight: 200; |
| 169 | } |
| 170 | |
| 171 | .contact-form-submission .field-value { |
| 172 | margin-bottom: 20px; |
| 173 | font-weight: 600; |
| 174 | } |
| 175 | |
| 176 | .form-errors .form-error-message { |
| 177 | color: red; |
| 178 | } |
| 179 | |
| 180 | .textwidget .contact-form input[type='text'], |
| 181 | .textwidget .contact-form input[type='email'], |
| 182 | .textwidget .contact-form input[type='tel'], |
| 183 | .textwidget .contact-form input[type='url'], |
| 184 | .textwidget .contact-form textarea, |
| 185 | .wp-block-column .contact-form input[type='text'], |
| 186 | .wp-block-column .contact-form input[type='email'], |
| 187 | .wp-block-column .contact-form input[type='tel'], |
| 188 | .wp-block-column .contact-form input[type='url'], |
| 189 | .wp-block-column .contact-form textarea { |
| 190 | width: 100%; |
| 191 | } |
| 192 | |
| 193 | #jetpack-check-feedback-spam { |
| 194 | margin: 1px 8px 0px 0px; |
| 195 | } |
| 196 | |
| 197 | .jetpack-check-feedback-spam-spinner { |
| 198 | display: inline-block; |
| 199 | margin-top: 7px; |
| 200 | } |
| 201 | |
| 202 | .wp-block-jetpack-contact-form { |
| 203 | display: flex; |
| 204 | flex-wrap: wrap; |
| 205 | justify-content: flex-start; |
| 206 | flex-direction: row; |
| 207 | flex-grow: 1; |
| 208 | gap: var(--wp--style--block-gap, 1.5rem); |
| 209 | } |
| 210 | |
| 211 | .wp-block-jetpack-contact-form > * { |
| 212 | flex: 0 0 100%; |
| 213 | box-sizing: border-box; |
| 214 | } |
| 215 | |
| 216 | /* Added circa Nov 2022: container class assigned to topmost block div */ |
| 217 | .wp-block-jetpack-contact-form-container.alignfull .wp-block-jetpack-contact-form { |
| 218 | padding-right: 0; |
| 219 | padding-left: 0; |
| 220 | } |
| 221 | |
| 222 | .wp-block-jetpack-button.alignright button { |
| 223 | float: right; |
| 224 | } |
| 225 | |
| 226 | .wp-block-jetpack-contact-form .grunion-field-wrap { |
| 227 | box-sizing: border-box; |
| 228 | position: relative; |
| 229 | } |
| 230 | |
| 231 | .wp-block-jetpack-contact-form .grunion-field-width-25-wrap { |
| 232 | flex: 1 1 calc( 25% - calc(var(--wp--style--block-gap, 1.5rem) * 1) ); |
| 233 | max-width: 25%; |
| 234 | } |
| 235 | |
| 236 | .wp-block-jetpack-contact-form .grunion-field-width-50-wrap { |
| 237 | flex: 1 1 calc( 50% - calc(var(--wp--style--block-gap, 1.5rem) * 1) ); |
| 238 | max-width: 50%; |
| 239 | } |
| 240 | |
| 241 | .wp-block-jetpack-contact-form .grunion-field-width-75-wrap { |
| 242 | flex: 1 1 calc( 75% - calc(var(--wp--style--block-gap, 1.5rem) * 1) ); |
| 243 | max-width: 75%; |
| 244 | } |
| 245 | |
| 246 | .grunion-field-checkbox-wrap, |
| 247 | .grunion-field-consent-wrap { |
| 248 | align-self: center; |
| 249 | } |
| 250 | |
| 251 | @media only screen and ( min-width: 600px ) { |
| 252 | .contact-form input[type='text'], |
| 253 | .contact-form input[type='email'], |
| 254 | .contact-form input[type='tel'], |
| 255 | .contact-form input[type='url'] { |
| 256 | width: 50%; |
| 257 | } |
| 258 | |
| 259 | /**** |
| 260 | * Older users keep the 50% width to avoid breaking |
| 261 | * designs, but newer users using the contact |
| 262 | * form block get 100% width. |
| 263 | */ |
| 264 | .wp-block-jetpack-contact-form input[type='text'], |
| 265 | .wp-block-jetpack-contact-form input[type='email'], |
| 266 | .wp-block-jetpack-contact-form input[type='tel'], |
| 267 | .wp-block-jetpack-contact-form input[type='url'] { |
| 268 | width: 100%; |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | /** For the "Empty Spam" button on /wp-admin/edit.php?post_status=spam&post_type=feedback **/ |
| 273 | .jetpack-empty-spam-container { |
| 274 | display: inline-block; |
| 275 | } |
| 276 | .jetpack-empty-spam { |
| 277 | display: inline-block; |
| 278 | } |
| 279 | .jetpack-empty-spam-spinner { |
| 280 | display: inline-block; |
| 281 | margin-top: 7px; |
| 282 | } |
| 283 | |
| 284 | /* Make sure the set height of the Spacer block nested inside the Contact Form block is respected */ |
| 285 | .wp-block-jetpack-contact-form .wp-block-spacer { |
| 286 | width: 100%; |
| 287 | } |
| 288 | |
| 289 | .contact-form .contact-form-dropdown__button.ui-button { |
| 290 | width: 100%; |
| 291 | box-sizing: border-box; |
| 292 | display: flex; |
| 293 | align-items: center; |
| 294 | flex-direction: row-reverse; |
| 295 | justify-content: space-between; |
| 296 | border: var(--jetpack--contact-form--border); |
| 297 | border-color: var(--jetpack--contact-form--border-color); |
| 298 | border-style: var(--jetpack--contact-form--border-style); |
| 299 | border-width: var(--jetpack--contact-form--border-size); |
| 300 | border-radius: var(--jetpack--contact-form--border-radius); |
| 301 | background-color: var(--jetpack--contact-form--input-background); |
| 302 | color: var(--jetpack--contact-form--text-color); |
| 303 | font-size: var(--jetpack--contact-form--font-size); |
| 304 | font-family: var(--jetpack--contact-form--font-family); |
| 305 | line-height: var(--jetpack--contact-form--line-height); |
| 306 | padding: var(--jetpack--contact-form--input-padding); |
| 307 | } |
| 308 | |
| 309 | .contact-form .contact-form-dropdown__button.ui-button .ui-selectmenu-icon.ui-icon { |
| 310 | background: none; |
| 311 | } |
| 312 | |
| 313 | .contact-form .contact-form-dropdown__button .ui-selectmenu-icon, |
| 314 | .contact-form .contact-form-dropdown__button.ui-selectmenu-button-open .ui-selectmenu-icon { |
| 315 | width: 0.8em; |
| 316 | height: 0.8em; |
| 317 | position: relative; |
| 318 | display: flex; |
| 319 | align-items: center; |
| 320 | justify-content: center; |
| 321 | box-sizing: border-box; |
| 322 | border: 2px solid transparent; |
| 323 | overflow: visible; |
| 324 | margin-right: 4px; |
| 325 | } |
| 326 | |
| 327 | .contact-form .contact-form-dropdown__button .ui-selectmenu-icon::after { |
| 328 | content: ""; |
| 329 | display: block; |
| 330 | box-sizing: border-box; |
| 331 | width: 100%; |
| 332 | height: 100%; |
| 333 | border-bottom: 2px solid; |
| 334 | border-right: 2px solid; |
| 335 | transform: rotate(45deg); |
| 336 | margin-top: -5px; |
| 337 | transition: all 0.2s ease-in-out; |
| 338 | } |
| 339 | |
| 340 | .contact-form .contact-form-dropdown__button.ui-selectmenu-button-open .ui-selectmenu-icon::after { |
| 341 | transform: rotate(225deg); |
| 342 | margin-top: 8px; |
| 343 | } |
| 344 | .contact-form .contact-form-dropdown__menu { |
| 345 | z-index: 1; |
| 346 | } |
| 347 | |
| 348 | .contact-form .contact-form-dropdown__menu ul.ui-menu { |
| 349 | border: var(--jetpack--contact-form--border); |
| 350 | border-color: var(--jetpack--contact-form--border-color); |
| 351 | border-style: var(--jetpack--contact-form--border-style); |
| 352 | border-width: var(--jetpack--contact-form--border-size); |
| 353 | border-radius: var(--jetpack--contact-form--border-radius); |
| 354 | background-color: var(--jetpack--contact-form--input-background-fallback); |
| 355 | color: var(--jetpack--contact-form--text-color); |
| 356 | font-size: var(--jetpack--contact-form--font-size); |
| 357 | font-family: var(--jetpack--contact-form--font-family); |
| 358 | max-height: 230px; |
| 359 | overflow: auto; |
| 360 | padding: 0; |
| 361 | line-height: normal; |
| 362 | box-shadow: 0 2px 6px rgb(0 0 0 / 5%); |
| 363 | list-style: none; |
| 364 | margin: 0; |
| 365 | } |
| 366 | |
| 367 | .contact-form .contact-form-dropdown__menu .ui-menu-item { |
| 368 | margin: 0; |
| 369 | } |
| 370 | |
| 371 | .contact-form .contact-form-dropdown__menu .ui-menu { |
| 372 | margin-top: 8px; |
| 373 | } |
| 374 | |
| 375 | .contact-form .contact-form-dropdown__menu .ui-menu .ui-menu-item-wrapper { |
| 376 | padding: var(--jetpack--contact-form--input-padding); |
| 377 | } |
| 378 | |
| 379 | .contact-form .contact-form-dropdown__menu .ui-menu .ui-menu-item-wrapper.ui-state-active { |
| 380 | position: relative; |
| 381 | border: none; |
| 382 | color: var(--jetpack--contact-form--input-background-fallback); |
| 383 | background-color: var(--jetpack--contact-form--text-color); |
| 384 | } |
| 385 | |
| 386 | |
| 387 | .contact-form .is-style-outlined .grunion-field-wrap:not(.grunion-field-checkbox-wrap):not(.grunion-field-consent-wrap), |
| 388 | .contact-form .is-style-animated .grunion-field-wrap:not(.grunion-field-checkbox-wrap):not(.grunion-field-consent-wrap) { |
| 389 | --notch-width: max(var(--jetpack--contact-form--input-padding-left, 16px), var(--jetpack--contact-form--border-radius)); |
| 390 | position: relative; |
| 391 | display: flex; |
| 392 | flex-direction: row-reverse; |
| 393 | } |
| 394 | |
| 395 | .contact-form .is-style-outlined .grunion-field-checkbox-multiple-wrap, |
| 396 | .contact-form .is-style-outlined .grunion-field-radio-wrap { |
| 397 | background-color: var(--jetpack--contact-form--input-background); |
| 398 | } |
| 399 | |
| 400 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-checkbox-multiple-options, |
| 401 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-radio-options |
| 402 | { |
| 403 | padding: var(--jetpack--contact-form--input-padding, 16px); |
| 404 | padding-top: calc(var(--jetpack--contact-form--input-padding-top, 16px) + 4px); |
| 405 | flex-grow: 1; |
| 406 | } |
| 407 | |
| 408 | .contact-form .is-style-outlined .grunion-field-wrap .notched-label { |
| 409 | position: absolute; |
| 410 | right: 0; |
| 411 | left: 0; |
| 412 | width: 100%; |
| 413 | max-width: 100%; |
| 414 | height: 100%; |
| 415 | display: flex; |
| 416 | box-sizing: border-box; |
| 417 | text-align: left; |
| 418 | pointer-events: none; |
| 419 | } |
| 420 | |
| 421 | .contact-form .is-style-outlined .grunion-field-wrap .notched-label .notched-label__leading { |
| 422 | width: var(--notch-width); |
| 423 | border-radius: var(--jetpack--contact-form--border-radius); |
| 424 | border: var(--jetpack--contact-form--border); |
| 425 | border-color: var(--jetpack--contact-form--border-color); |
| 426 | border-style: var(--jetpack--contact-form--border-style); |
| 427 | border-width: var(--jetpack--contact-form--border-size); |
| 428 | border-right: none; |
| 429 | border-top-right-radius: unset; |
| 430 | border-bottom-right-radius: unset; |
| 431 | } |
| 432 | |
| 433 | .contact-form .is-style-outlined .grunion-field-wrap .notched-label .notched-label__notch { |
| 434 | border-radius: unset; |
| 435 | border: var(--jetpack--contact-form--border); |
| 436 | border-color: var(--jetpack--contact-form--border-color); |
| 437 | border-style: var(--jetpack--contact-form--border-style); |
| 438 | border-width: var(--jetpack--contact-form--border-size); |
| 439 | padding: 0 4px; |
| 440 | transition: border 150ms linear; |
| 441 | } |
| 442 | |
| 443 | /* |
| 444 | For some reason, when keeping the rule below together with the above selector, |
| 445 | on production builds, the attributes are being reordered, causing side-effects |
| 446 | */ |
| 447 | .contact-form .is-style-outlined .grunion-field-wrap .notched-label .notched-label__notch { |
| 448 | border-left: none; |
| 449 | border-right: none; |
| 450 | } |
| 451 | |
| 452 | .contact-form .is-style-outlined .grunion-field-wrap.no-label .notched-label__notch { |
| 453 | padding: 0; |
| 454 | } |
| 455 | |
| 456 | .contact-form .is-style-outlined .grunion-field-wrap .notched-label .notched-label__label { |
| 457 | position: relative; |
| 458 | top: 50%; |
| 459 | transform: translateY(-50%); |
| 460 | pointer-events: none; |
| 461 | will-change: transform; |
| 462 | transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); |
| 463 | margin: 0; |
| 464 | font-weight: 300; |
| 465 | } |
| 466 | |
| 467 | .contact-form .is-style-outlined .grunion-field-textarea-wrap .notched-label .notched-label__label { |
| 468 | top: var(--jetpack--contact-form--input-padding-top, 16px); |
| 469 | transform: unset; |
| 470 | } |
| 471 | |
| 472 | .contact-form .is-style-outlined .grunion-field-wrap .notched-label .notched-label__trailing { |
| 473 | flex-grow: 1; |
| 474 | border-radius: var(--jetpack--contact-form--border-radius); |
| 475 | border: var(--jetpack--contact-form--border); |
| 476 | border-color: var(--jetpack--contact-form--border-color); |
| 477 | border-style: var(--jetpack--contact-form--border-style); |
| 478 | border-width: var(--jetpack--contact-form--border-size); |
| 479 | border-left: none; |
| 480 | border-top-left-radius: unset; |
| 481 | border-bottom-left-radius: unset; |
| 482 | } |
| 483 | |
| 484 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-field:focus ~ .notched-label .notched-label__notch, |
| 485 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-field:not(:placeholder-shown) ~ .notched-label .notched-label__notch, |
| 486 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-field.has-placeholder ~ .notched-label .notched-label__notch, |
| 487 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-checkbox-multiple-options ~ .notched-label .notched-label__notch, |
| 488 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-radio-options ~ .notched-label .notched-label__notch |
| 489 | { |
| 490 | border-top-color: transparent; |
| 491 | } |
| 492 | |
| 493 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-field:focus ~ .notched-label .notched-label__label, |
| 494 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-field:not(:placeholder-shown) ~ .notched-label .notched-label__label, |
| 495 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-field.has-placeholder ~ .notched-label .notched-label__label, |
| 496 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-checkbox-multiple-options ~ .notched-label .notched-label__label, |
| 497 | .contact-form .is-style-outlined .grunion-field-wrap .grunion-radio-options ~ .notched-label .notched-label__label |
| 498 | { |
| 499 | top: calc(var(--jetpack--contact-form--border-size) * -1); |
| 500 | transform: translateY(-50%); |
| 501 | font-size: 0.8em; |
| 502 | } |
| 503 | |
| 504 | .contact-form .is-style-outlined .grunion-field-wrap > input, |
| 505 | .contact-form .is-style-outlined .grunion-field-wrap > textarea, |
| 506 | .contact-form .is-style-outlined .grunion-field-wrap .contact-form-dropdown__button |
| 507 | { |
| 508 | border-color: transparent !important; /* Need to override styles coming from the style attribute*/ |
| 509 | outline: none; |
| 510 | padding-left: calc(var(--notch-width) + 4px); |
| 511 | padding-right: calc(var(--notch-width) + 4px); |
| 512 | } |
| 513 | |
| 514 | .contact-form .is-style-outlined .grunion-field-wrap textarea { |
| 515 | padding: var(--jetpack--contact-form--input-padding, 16px); |
| 516 | padding-left: calc(var(--notch-width) + 4px); |
| 517 | padding-right: calc(var(--notch-width) + 4px); |
| 518 | } |
| 519 | |
| 520 | .contact-form .is-style-outlined .contact-form-dropdown__menu .ui-menu-item-wrapper { |
| 521 | padding-left: calc(var(--notch-width) + 4px); |
| 522 | padding-right: calc(var(--notch-width) + 4px); |
| 523 | } |
| 524 | |
| 525 | .contact-form .is-style-animated .grunion-field-wrap { |
| 526 | --left-offset: calc(var(--jetpack--contact-form--input-padding-left, 16px) + var(--jetpack--contact-form--border-size)); |
| 527 | --label-left: max(var(--left-offset), var(--jetpack--contact-form--border-radius)); |
| 528 | --field-padding: calc(var(--label-left) - var(--jetpack--contact-form--border-size)); |
| 529 | } |
| 530 | |
| 531 | .contact-form .is-style-animated .grunion-field-wrap input { |
| 532 | outline: none; |
| 533 | } |
| 534 | |
| 535 | .contact-form .is-style-animated .grunion-field-wrap textarea { |
| 536 | padding: var(--jetpack--contact-form--input-padding, 16px); |
| 537 | outline: none; |
| 538 | } |
| 539 | |
| 540 | .contact-form .is-style-animated .grunion-field-wrap:not(.no-label) > input, |
| 541 | .contact-form .is-style-animated .grunion-field-wrap:not(.no-label) > textarea, |
| 542 | .contact-form .is-style-animated .grunion-field-wrap:not(.no-label) .contact-form-dropdown__button |
| 543 | { |
| 544 | padding-top: 1.4em; |
| 545 | padding-left: var(--field-padding); |
| 546 | padding-right: var(--field-padding); |
| 547 | } |
| 548 | |
| 549 | .contact-form .is-style-animated .grunion-field-wrap .contact-form-dropdown__menu .ui-menu-item-wrapper { |
| 550 | padding-left: var(--field-padding); |
| 551 | padding-right: var(--field-padding); |
| 552 | } |
| 553 | |
| 554 | .contact-form .is-style-animated .grunion-field-checkbox-multiple-wrap, |
| 555 | .contact-form .is-style-animated .grunion-field-radio-wrap { |
| 556 | background-color: var(--jetpack--contact-form--input-background); |
| 557 | } |
| 558 | |
| 559 | .contact-form .is-style-animated .grunion-field-checkbox-multiple-wrap .grunion-checkbox-multiple-options, |
| 560 | .contact-form .is-style-animated .grunion-field-radio-wrap .grunion-radio-options { |
| 561 | padding-bottom: var(--jetpack--contact-form--input-padding, 16px); |
| 562 | padding-top: 1.8em; |
| 563 | flex-grow: 1 |
| 564 | } |
| 565 | |
| 566 | .contact-form .is-style-animated .grunion-field-wrap .animated-label__label { |
| 567 | position: absolute; |
| 568 | top: 50%; |
| 569 | left: var(--label-left); |
| 570 | width: 100%; |
| 571 | max-width: 100%; |
| 572 | box-sizing: border-box; |
| 573 | pointer-events: none; |
| 574 | margin: 0; |
| 575 | transform: translateY(-50%); |
| 576 | transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); |
| 577 | } |
| 578 | |
| 579 | .contact-form .is-style-animated .grunion-field-textarea-wrap .animated-label__label { |
| 580 | transform: unset; |
| 581 | top: var(--jetpack--contact-form--input-padding-top, 16px); |
| 582 | } |
| 583 | |
| 584 | .contact-form .is-style-animated .grunion-field-wrap .grunion-field:focus ~ .animated-label__label, |
| 585 | .contact-form .is-style-animated .grunion-field-wrap .grunion-field:not(:placeholder-shown) ~ .animated-label__label, |
| 586 | .contact-form .is-style-animated .grunion-field-wrap .grunion-field.has-placeholder ~ .animated-label__label |
| 587 | { |
| 588 | font-size: 0.75em; |
| 589 | transform: translateY(0); |
| 590 | top: calc(2px + var(--jetpack--contact-form--border-size)); |
| 591 | } |
| 592 | |
| 593 | .contact-form .is-style-animated .grunion-field-wrap .grunion-checkbox-multiple-options ~ .animated-label__label, |
| 594 | .contact-form .is-style-animated .grunion-field-wrap .grunion-radio-options ~ .animated-label__label { |
| 595 | top: 0; |
| 596 | left: 0; |
| 597 | transform: translateY(0); |
| 598 | } |
| 599 | |
| 600 | .contact-form .is-style-below .grunion-field-wrap .below-label__label { |
| 601 | margin-left: var(--jetpack--contact-form--border-size); |
| 602 | } |
| 603 |