| @@ -24,9 +24,8 @@ | ||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | #frm_active_style_form:not(.frm_hidden), |
| 27 | 27 | #frm_sample_form { |
| 28 | - | |
| 29 | 28 | /* Without this a small form with a max-width of 480px for example doesn't get centered in the preview space. */ |
| 30 | 29 | display: flex; |
| 31 | 30 | } |
| 32 | 31 | |
| @@ -31,9 +30,8 @@ | ||
| 31 | 30 | } |
| 32 | 31 | |
| 33 | 32 | #frm_active_style_form > .frm_forms, |
| 34 | 33 | #frm_sample_form > .frm_forms { |
| 35 | - | |
| 36 | 34 | /* This gives small form containers more space. */ |
| 37 | 35 | flex: 1; |
| 38 | 36 | padding: 0 10px; /* Match the extra padding around fields on builder */ |
| 39 | 37 | } |
| @@ -45,8 +43,9 @@ | ||
| 45 | 43 | border-radius: 6px; |
| 46 | 44 | cursor: pointer; |
| 47 | 45 | box-sizing: border-box; |
| 48 | 46 | border: 1px solid transparent; /* Add a transparent border so an active style card doesn't cause the box to resize. */ |
| 47 | + background-color: #fff; | |
| 49 | 48 | margin-bottom: 15px; |
| 50 | 49 | width: 100%; |
| 51 | 50 | padding: 14px; |
| 52 | 51 | box-shadow: var(--box-shadow-sm); |
| @@ -59,9 +58,8 @@ | ||
| 59 | 58 | color: var(--grey-500); |
| 60 | 59 | } |
| 61 | 60 | |
| 62 | 61 | .frm-style-card.frm-currently-set-style-card .frm-style-card-title-wrapper svg { |
| 63 | - | |
| 64 | 62 | /* The checkmark circle should be blue. */ |
| 65 | 63 | color: var(--primary-500); |
| 66 | 64 | } |
| 67 | 65 | |
| @@ -113,9 +111,8 @@ | ||
| 113 | 111 | gap: var(--gap-sm); |
| 114 | 112 | } |
| 115 | 113 | |
| 116 | 114 | .frm-style-card-preview + div .dropdown { |
| 117 | - | |
| 118 | 115 | /* Give it a z-index boost to avoid the border from the bottom of the card from overlapping the dropdown */ |
| 119 | 116 | z-index: 1; |
| 120 | 117 | } |
| 121 | 118 | |
| @@ -124,9 +121,9 @@ | ||
| 124 | 121 | font-size: 14px; |
| 125 | 122 | } |
| 126 | 123 | |
| 127 | 124 | .frm-style-card-title { |
| 128 | - max-width: calc(100% - 20px); | |
| 125 | + max-width: calc( 100% - 20px ); | |
| 129 | 126 | text-overflow: ellipsis; |
| 130 | 127 | overflow: hidden; |
| 131 | 128 | display: inline-block; |
| 132 | 129 | white-space: nowrap; |
| @@ -181,9 +178,8 @@ | ||
| 181 | 178 | } |
| 182 | 179 | |
| 183 | 180 | .frm_pro_form .frm_form_field.frm_lite_style, |
| 184 | 181 | .frm_pro_form .frm_lite_style { |
| 185 | - | |
| 186 | 182 | /* |
| 187 | 183 | Hide textarea, radio buttons, and checkboxes in the sample form in Pro. |
| 188 | 184 | Instead these elements are rendered again in Pro inside of a repeater. |
| 189 | 185 | */ |
| @@ -223,15 +219,13 @@ | ||
| 223 | 219 | } |
| 224 | 220 | |
| 225 | 221 | /* Style the hamburger menu (used in Style cards, and on the Style "Edit" page beside the Style name. */ |
| 226 | 222 | .frm-style-options-menu { |
| 227 | - | |
| 228 | 223 | /* The long "Reset to defaults" option name requires extra space. There's normally a 160px min-width. */ |
| 229 | 224 | min-width: 200px; |
| 230 | 225 | } |
| 231 | 226 | |
| 232 | 227 | #frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select:not(.flatpickr-monthDropdown-months) { |
| 233 | - | |
| 234 | 228 | /* Prevent back end styles from shrinking dropdowns. But leave datepicker dropdowns alone. */ |
| 235 | 229 | width: var(--auto-width); |
| 236 | 230 | max-width: 100%; |
| 237 | 231 | } |
| @@ -240,9 +234,8 @@ | ||
| 240 | 234 | appearance: none; /* Hide the default icon */ |
| 241 | 235 | } |
| 242 | 236 | |
| 243 | 237 | #frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year):not(.frm-ranking-position) { |
| 244 | - | |
| 245 | 238 | /* |
| 246 | 239 | The styler preview doesn't use .wp-core-ui which results in a funny looking dropdown arrow. |
| 247 | 240 | Restore the WordPress background image defined in /wp-admin/css/forms.css for preview selects so they appear nicer and more consistent with other dropdowns. |
| 248 | 241 | The SVG is arrow-down-alt2 from Dashicons. |
| @@ -247,9 +240,9 @@ | ||
| 247 | 240 | Restore the WordPress background image defined in /wp-admin/css/forms.css for preview selects so they appear nicer and more consistent with other dropdowns. |
| 248 | 241 | The SVG is arrow-down-alt2 from Dashicons. |
| 249 | 242 | This needs to be important because of a background-image: none !important rule that gets applied in front end CSS. |
| 250 | 243 | */ |
| 251 | - background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") !important; | |
| 244 | + background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') !important; | |
| 252 | 245 | background-repeat: no-repeat !important; |
| 253 | 246 | background-position: right 5px top 55% !important; |
| 254 | 247 | |
| 255 | 248 | padding-right: 24px; /* Add enough padding for the icon. */ |
| @@ -259,9 +252,9 @@ | ||
| 259 | 252 | #frm_style_preview input[type="checkbox"]:checked { |
| 260 | 253 | background-color: unset; |
| 261 | 254 | } |
| 262 | 255 | |
| 263 | -#frm_style_preview input[type="checkbox"]:checked::before { | |
| 256 | +#frm_style_preview input[type="checkbox"]:checked:before { | |
| 264 | 257 | content: ""; |
| 265 | 258 | position: relative; |
| 266 | 259 | left: 1px; |
| 267 | 260 | } |
| @@ -270,9 +263,9 @@ | ||
| 270 | 263 | Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css |
| 271 | 264 | The label in the preview should use the label color setting. |
| 272 | 265 | */ |
| 273 | 266 | #frm_style_preview .frm_form_field > label:first-child { |
| 274 | - color: var(--label-color); | |
| 267 | + color: var(--label-color); | |
| 275 | 268 | font-size: var(--font-size); |
| 276 | 269 | } |
| 277 | 270 | |
| 278 | 271 | .frm-color-blocks { |
| @@ -277,9 +270,9 @@ | ||
| 277 | 270 | |
| 278 | 271 | .frm-color-blocks { |
| 279 | 272 | display: grid; |
| 280 | 273 | justify-content: center; |
| 281 | - grid-template-columns: repeat(auto-fit, minmax(20px, max-content)); | |
| 274 | + grid-template-columns: repeat(auto-fit, minmax(20px, max-content)); | |
| 282 | 275 | max-width: 60px; |
| 283 | 276 | } |
| 284 | 277 | |
| 285 | 278 | .frm-color-blocks > div { |
| @@ -301,9 +294,8 @@ | ||
| 301 | 294 | #frm_styling_form p > a svg { |
| 302 | 295 | position: relative; |
| 303 | 296 | bottom: 2px; |
| 304 | 297 | } |
| 305 | - | |
| 306 | 298 | .frm-style-card-separator { |
| 307 | 299 | background-color: var(--grey-300); |
| 308 | 300 | width: 2px; |
| 309 | 301 | height: 20px; |
| @@ -350,9 +342,9 @@ | ||
| 350 | 342 | } |
| 351 | 343 | |
| 352 | 344 | .frm-input-style-example > div { |
| 353 | 345 | max-width: 46px; |
| 354 | - width: calc(100% - 8px); | |
| 346 | + width: calc( 100% - 8px ); | |
| 355 | 347 | height: 2px; |
| 356 | 348 | background-color: var(--text-color); |
| 357 | 349 | } |
| 358 | 350 | |
| @@ -357,9 +349,11 @@ | ||
| 357 | 349 | } |
| 358 | 350 | |
| 359 | 351 | #frm_loading_style_placeholder, |
| 360 | 352 | #frm_style_preview.frm-loading-style-template .frm_forms, |
| 361 | -.frm-currently-set-style-card .dropdown-item.frm-apply-style { | |
| 353 | +#frm_default_style_cards_wrapper .dropdown-item.frm-apply-style, | |
| 354 | +.frm-currently-set-style-card .dropdown-item.frm-apply-style | |
| 355 | +{ | |
| 362 | 356 | display: none; |
| 363 | 357 | } |
| 364 | 358 | |
| 365 | 359 | #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder { |
| @@ -365,9 +359,9 @@ | ||
| 365 | 359 | #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder { |
| 366 | 360 | display: block; |
| 367 | 361 | text-align: center; |
| 368 | 362 | position: absolute; |
| 369 | - top: calc(50% - 35px); | |
| 363 | + top: calc( 50% - 35px ); | |
| 370 | 364 | left: 50%; |
| 371 | 365 | transform: translateX(-50%) translateY(-50%); |
| 372 | 366 | } |
| 373 | 367 | |
| @@ -379,9 +373,9 @@ | ||
| 379 | 373 | display: flex; |
| 380 | 374 | } |
| 381 | 375 | |
| 382 | 376 | #frm_style_template_modal .frm_warning_style span { |
| 383 | - flex: 1; | |
| 377 | + flex: 1; | |
| 384 | 378 | } |
| 385 | 379 | |
| 386 | 380 | #frm_style_template_modal .frm_warning_style a:focus { |
| 387 | 381 | box-shadow: none; |
| @@ -406,9 +400,8 @@ | ||
| 406 | 400 | |
| 407 | 401 | body.rtl .frm-style-card-separator { |
| 408 | 402 | margin: 0 6px 0 0; |
| 409 | 403 | } |
| 410 | - | |
| 411 | 404 | /* End RTL Styling */ |
| 412 | 405 | |
| 413 | 406 | .frm-styles-globally-disabled #frm_new_style_trigger, |
| 414 | 407 | .frm-styles-globally-disabled .frm_toggle, |
| @@ -417,17 +410,15 @@ | ||
| 417 | 410 | pointer-events: none; |
| 418 | 411 | opacity: 0.5; |
| 419 | 412 | } |
| 420 | 413 | |
| 421 | -.formidable_page_formidable-styles .frm-right-panel .accordion-section-title::before, | |
| 422 | -.formidable_page_formidable-styles .frm-right-panel .accordion-section-title::after { | |
| 423 | - content: "" !important; | |
| 414 | +.formidable_page_formidable-styles .frm-right-panel .accordion-section-title:before, | |
| 415 | +.formidable_page_formidable-styles .frm-right-panel .accordion-section-title:after { | |
| 416 | + content: '' !important; | |
| 424 | 417 | } |
| 425 | - | |
| 426 | 418 | .formidable_page_formidable-styles .frm-right-panel .open .accordion-section-title > .frmsvg:last-child { |
| 427 | 419 | transform: rotate(180deg); |
| 428 | 420 | } |
| 429 | - | |
| 430 | 421 | .formidable_page_formidable-styles .frm-right-panel .accordion-section-title > .frmsvg:last-child { |
| 431 | 422 | position: absolute; |
| 432 | 423 | top: 0; |
| 433 | 424 | bottom: 0; |
| @@ -434,18 +425,16 @@ | ||
| 434 | 425 | right: 0; |
| 435 | 426 | margin: auto; |
| 436 | 427 | color: var(--grey); |
| 437 | 428 | } |
| 438 | - | |
| 439 | 429 | .control-section:hover .accordion-section-title { |
| 440 | 430 | background: transparent !important; |
| 441 | 431 | border-bottom-color: transparent; |
| 442 | 432 | } |
| 443 | - | |
| 444 | 433 | .frm-style-settings-hover { |
| 445 | 434 | width: 100%; |
| 446 | 435 | position: absolute; |
| 447 | - top: 0; | |
| 436 | + top:0; | |
| 448 | 437 | left: 0; |
| 449 | 438 | height: 58px; |
| 450 | 439 | background: white; |
| 451 | 440 | border-radius: var(--small-radius); |
| @@ -452,13 +441,11 @@ | ||
| 452 | 441 | box-shadow: var(--button-shadow); |
| 453 | 442 | z-index: 0; |
| 454 | 443 | transition: 0.25s opacity ease, 0.3s transform cubic-bezier(0.165, 0.84, 0.44, 1); |
| 455 | 444 | } |
| 456 | - | |
| 457 | 445 | .frm-style-settings-hover.frm-animating { |
| 458 | 446 | opacity: 0.45; |
| 459 | 447 | } |
| 460 | - | |
| 461 | 448 | .frm-right-panel .accordion-section-content { |
| 462 | 449 | background: transparent; |
| 463 | 450 | padding: 0; |
| 464 | 451 | overflow: initial; |
| @@ -466,14 +453,12 @@ | ||
| 466 | 453 | |
| 467 | 454 | .frm-right-panel .accordion-section-content > .inside { |
| 468 | 455 | padding: 15px; |
| 469 | 456 | } |
| 470 | - | |
| 471 | 457 | .frm-quick-settings .frm_form_field .frm-style-item-heading, |
| 472 | 458 | .frm-right-panel .accordion-section-content > .inside .frm-style-item-heading { |
| 473 | 459 | line-height: 36px; |
| 474 | 460 | } |
| 475 | - | |
| 476 | 461 | .frm-right-panel .accordion-section-content > .inside .frm-style-item-heading .frm_help { |
| 477 | 462 | display: inline-block; |
| 478 | 463 | line-height: 13px; |
| 479 | 464 | } |
| @@ -480,9 +465,8 @@ | ||
| 480 | 465 | |
| 481 | 466 | .frm-right-panel .accordion-section-content .inside a { |
| 482 | 467 | font-size: inherit; |
| 483 | 468 | } |
| 484 | - | |
| 485 | 469 | .frm-right-panel .control-section.open h3 { |
| 486 | 470 | border-bottom: none; |
| 487 | 471 | } |
| 488 | 472 | |
| @@ -489,9 +473,8 @@ | ||
| 489 | 473 | .js .frm-right-panel .control-section .accordion-section-title:focus, |
| 490 | 474 | .js .frm-right-panel .control-section .accordion-section-title:hover { |
| 491 | 475 | color: var(--grey-900); |
| 492 | 476 | } |
| 493 | - | |
| 494 | 477 | .js .frm-right-panel .control-section.open h3.accordion-section-title { |
| 495 | 478 | box-shadow: var(--button-shadow); |
| 496 | 479 | background: white !important; |
| 497 | 480 | border-radius: var(--small-radius); |
| @@ -496,39 +479,32 @@ | ||
| 496 | 479 | background: white !important; |
| 497 | 480 | border-radius: var(--small-radius); |
| 498 | 481 | } |
| 499 | 482 | |
| 500 | -.js .frm-right-panel .control-section .accordion-section-title:hover::before { | |
| 483 | +.js .frm-right-panel .control-section .accordion-section-title:hover:before { | |
| 501 | 484 | color: var(--grey-700); |
| 502 | 485 | } |
| 503 | - | |
| 504 | 486 | .frm-right-panel .accordion-section { |
| 505 | 487 | border: none; |
| 506 | 488 | position: relative; |
| 507 | 489 | padding-bottom: 2px; |
| 508 | 490 | } |
| 509 | - | |
| 510 | 491 | .frm-right-panel .accordion-section-title > .frmsvg:first-child { |
| 511 | 492 | margin: 0 10px 0 0; |
| 512 | 493 | color: var(--grey); |
| 513 | 494 | } |
| 514 | - | |
| 515 | 495 | .frm-right-panel .accordion-section-title:hover > .frmsvg:first-child { |
| 516 | 496 | color: var(--grey-900); |
| 517 | 497 | } |
| 518 | - | |
| 519 | 498 | .frm-right-panel .accordion-section-title > .frmsvg:last-child { |
| 520 | 499 | margin-right: 15px !important; |
| 521 | 500 | } |
| 522 | - | |
| 523 | 501 | .frm-right-panel .open .accordion-section-title > .frmsvg:last-child { |
| 524 | 502 | transform: rotate(180deg); |
| 525 | 503 | } |
| 526 | - | |
| 527 | 504 | .frm-right-panel .open.accordion-section { |
| 528 | 505 | border-bottom: 1px solid var(--grey-300); |
| 529 | 506 | } |
| 530 | - | |
| 531 | 507 | .frm-right-panel h3.accordion-section-title { |
| 532 | 508 | padding: 17px 15px !important; |
| 533 | 509 | background: transparent; |
| 534 | 510 | line-height: var(--leading); |
| @@ -535,27 +511,22 @@ | ||
| 535 | 511 | color: var(--grey-500); |
| 536 | 512 | font-size: var(--text-md); |
| 537 | 513 | font-weight: 400; |
| 538 | 514 | } |
| 539 | - | |
| 540 | 515 | .styling_settings .accordion-container { |
| 541 | 516 | position: relative; |
| 542 | 517 | } |
| 543 | - | |
| 544 | 518 | .styling_settings .accordion-container .outer-border { |
| 545 | 519 | position: relative; |
| 546 | 520 | z-index: 1; |
| 547 | 521 | } |
| 548 | - | |
| 549 | 522 | .styling_settings .accordion-section-title button { |
| 550 | 523 | border: none; |
| 551 | 524 | background: none; |
| 552 | 525 | float: right; |
| 553 | 526 | } |
| 554 | - | |
| 555 | 527 | @media only screen and (max-width: 782px) { |
| 556 | - | |
| 557 | - #frm_style_preview .with_frm_style .frm_radio input[type="radio"], | |
| 558 | - #frm_style_preview .with_frm_style .frm_checkbox input[type="checkbox"] { | |
| 528 | + #frm_style_preview .with_frm_style .frm_radio input[type=radio], | |
| 529 | + #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] { | |
| 559 | 530 | width: 18px !important; |
| 560 | 531 | } |
| 561 | 532 | } |