| @@ -12,8 +12,13 @@ | ||
| 12 | 12 | padding-right: 0; |
| 13 | 13 | padding-bottom: 0; |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | +#frm_style_sidebar .control-section:hover .accordion-section-title { | |
| 17 | + /* Normally an accordion has a white background but this doesn't look great with the padding on the accordion. */ | |
| 18 | + background-color: transparent !important; | |
| 19 | +} | |
| 20 | + | |
| 16 | 21 | #frm_style_sidebar .accordion-section-title::after { |
| 17 | 22 | right: 0; |
| 18 | 23 | color: var(--grey-400); |
| 19 | 24 | } |
| @@ -24,9 +29,8 @@ | ||
| 24 | 29 | } |
| 25 | 30 | |
| 26 | 31 | #frm_active_style_form:not(.frm_hidden), |
| 27 | 32 | #frm_sample_form { |
| 28 | - | |
| 29 | 33 | /* Without this a small form with a max-width of 480px for example doesn't get centered in the preview space. */ |
| 30 | 34 | display: flex; |
| 31 | 35 | } |
| 32 | 36 | |
| @@ -31,9 +35,8 @@ | ||
| 31 | 35 | } |
| 32 | 36 | |
| 33 | 37 | #frm_active_style_form > .frm_forms, |
| 34 | 38 | #frm_sample_form > .frm_forms { |
| 35 | - | |
| 36 | 39 | /* This gives small form containers more space. */ |
| 37 | 40 | flex: 1; |
| 38 | 41 | padding: 0 10px; /* Match the extra padding around fields on builder */ |
| 39 | 42 | } |
| @@ -45,8 +48,9 @@ | ||
| 45 | 48 | border-radius: 6px; |
| 46 | 49 | cursor: pointer; |
| 47 | 50 | box-sizing: border-box; |
| 48 | 51 | border: 1px solid transparent; /* Add a transparent border so an active style card doesn't cause the box to resize. */ |
| 52 | + background-color: #fff; | |
| 49 | 53 | margin-bottom: 15px; |
| 50 | 54 | width: 100%; |
| 51 | 55 | padding: 14px; |
| 52 | 56 | box-shadow: var(--box-shadow-sm); |
| @@ -59,9 +63,8 @@ | ||
| 59 | 63 | color: var(--grey-500); |
| 60 | 64 | } |
| 61 | 65 | |
| 62 | 66 | .frm-style-card.frm-currently-set-style-card .frm-style-card-title-wrapper svg { |
| 63 | - | |
| 64 | 67 | /* The checkmark circle should be blue. */ |
| 65 | 68 | color: var(--primary-500); |
| 66 | 69 | } |
| 67 | 70 | |
| @@ -113,9 +116,8 @@ | ||
| 113 | 116 | gap: var(--gap-sm); |
| 114 | 117 | } |
| 115 | 118 | |
| 116 | 119 | .frm-style-card-preview + div .dropdown { |
| 117 | - | |
| 118 | 120 | /* Give it a z-index boost to avoid the border from the bottom of the card from overlapping the dropdown */ |
| 119 | 121 | z-index: 1; |
| 120 | 122 | } |
| 121 | 123 | |
| @@ -124,9 +126,9 @@ | ||
| 124 | 126 | font-size: 14px; |
| 125 | 127 | } |
| 126 | 128 | |
| 127 | 129 | .frm-style-card-title { |
| 128 | - max-width: calc(100% - 20px); | |
| 130 | + max-width: calc( 100% - 20px ); | |
| 129 | 131 | text-overflow: ellipsis; |
| 130 | 132 | overflow: hidden; |
| 131 | 133 | display: inline-block; |
| 132 | 134 | white-space: nowrap; |
| @@ -160,13 +162,12 @@ | ||
| 160 | 162 | cursor: pointer; |
| 161 | 163 | font-weight: 400; |
| 162 | 164 | |
| 163 | 165 | /* |
| 164 | - When a background image is set the children in the fieldset have a z-index of 1. | |
| 165 | - The Ranking Field contains elements with a higher z-index of 2. | |
| 166 | - Set to 3 so the floating buttons get priority when clicking if they overlap a form element. | |
| 166 | + When a background image is set the children in the fieldset have a z-index of 1.\ | |
| 167 | + Set to 2 so the floating buttons get priority when clicking if they overlap a form element. | |
| 167 | 168 | */ |
| 168 | - z-index: 3; | |
| 169 | + z-index: 2; | |
| 169 | 170 | } |
| 170 | 171 | |
| 171 | 172 | #frm_style_preview .frm_floating_style_button.frm_hidden { |
| 172 | 173 | display: none; |
| @@ -181,9 +182,8 @@ | ||
| 181 | 182 | } |
| 182 | 183 | |
| 183 | 184 | .frm_pro_form .frm_form_field.frm_lite_style, |
| 184 | 185 | .frm_pro_form .frm_lite_style { |
| 185 | - | |
| 186 | 186 | /* |
| 187 | 187 | Hide textarea, radio buttons, and checkboxes in the sample form in Pro. |
| 188 | 188 | Instead these elements are rendered again in Pro inside of a repeater. |
| 189 | 189 | */ |
| @@ -223,15 +223,22 @@ | ||
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /* Style the hamburger menu (used in Style cards, and on the Style "Edit" page beside the Style name. */ |
| 226 | 226 | .frm-style-options-menu { |
| 227 | - | |
| 228 | 227 | /* The long "Reset to defaults" option name requires extra space. There's normally a 160px min-width. */ |
| 229 | 228 | min-width: 200px; |
| 230 | 229 | } |
| 231 | 230 | |
| 232 | -#frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select:not(.flatpickr-monthDropdown-months) { | |
| 231 | +/* | |
| 232 | +Do not set this for frm_inside_container as it requires a custom line height value. | |
| 233 | +Target .frm_primary_label so we avoid other labels like star rating stars. | |
| 234 | +Time fields use a div instead of a label, so don't target by the primary label by tag type. | |
| 235 | +*/ | |
| 236 | +#frm_style_preview .frm_form_field:not(.frm_inside_container) > .frm_primary_label { | |
| 237 | + line-height: var(--line-height); | |
| 238 | +} | |
| 233 | 239 | |
| 240 | +#frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select { | |
| 234 | 241 | /* Prevent back end styles from shrinking dropdowns. But leave datepicker dropdowns alone. */ |
| 235 | 242 | width: var(--auto-width); |
| 236 | 243 | max-width: 100%; |
| 237 | 244 | } |
| @@ -239,10 +246,9 @@ | ||
| 239 | 246 | #frm_style_preview select { |
| 240 | 247 | appearance: none; /* Hide the default icon */ |
| 241 | 248 | } |
| 242 | 249 | |
| 243 | -#frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year):not(.frm-ranking-position) { | |
| 244 | - | |
| 250 | +#frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year) { | |
| 245 | 251 | /* |
| 246 | 252 | The styler preview doesn't use .wp-core-ui which results in a funny looking dropdown arrow. |
| 247 | 253 | 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 | 254 | The SVG is arrow-down-alt2 from Dashicons. |
| @@ -247,11 +253,9 @@ | ||
| 247 | 253 | 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 | 254 | The SVG is arrow-down-alt2 from Dashicons. |
| 249 | 255 | This needs to be important because of a background-image: none !important rule that gets applied in front end CSS. |
| 250 | 256 | */ |
| 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; | |
| 252 | - background-repeat: no-repeat !important; | |
| 253 | - background-position: right 5px top 55% !important; | |
| 257 | + background: 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') no-repeat right 5px top 55% !important; | |
| 254 | 258 | |
| 255 | 259 | padding-right: 24px; /* Add enough padding for the icon. */ |
| 256 | 260 | } |
| 257 | 261 | |
| @@ -259,9 +263,9 @@ | ||
| 259 | 263 | #frm_style_preview input[type="checkbox"]:checked { |
| 260 | 264 | background-color: unset; |
| 261 | 265 | } |
| 262 | 266 | |
| 263 | -#frm_style_preview input[type="checkbox"]:checked::before { | |
| 267 | +#frm_style_preview input[type="checkbox"]:checked:before { | |
| 264 | 268 | content: ""; |
| 265 | 269 | position: relative; |
| 266 | 270 | left: 1px; |
| 267 | 271 | } |
| @@ -270,9 +274,9 @@ | ||
| 270 | 274 | Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css |
| 271 | 275 | The label in the preview should use the label color setting. |
| 272 | 276 | */ |
| 273 | 277 | #frm_style_preview .frm_form_field > label:first-child { |
| 274 | - color: var(--label-color); | |
| 278 | + color: var(--label-color); | |
| 275 | 279 | font-size: var(--font-size); |
| 276 | 280 | } |
| 277 | 281 | |
| 278 | 282 | .frm-color-blocks { |
| @@ -277,9 +281,9 @@ | ||
| 277 | 281 | |
| 278 | 282 | .frm-color-blocks { |
| 279 | 283 | display: grid; |
| 280 | 284 | justify-content: center; |
| 281 | - grid-template-columns: repeat(auto-fit, minmax(20px, max-content)); | |
| 285 | + grid-template-columns: repeat(auto-fit, minmax(20px, max-content)); | |
| 282 | 286 | max-width: 60px; |
| 283 | 287 | } |
| 284 | 288 | |
| 285 | 289 | .frm-color-blocks > div { |
| @@ -337,9 +341,8 @@ | ||
| 337 | 341 | .frm-input-style-example { |
| 338 | 342 | border-width: var(--field-border-width); |
| 339 | 343 | border-style: var(--field-border-style); |
| 340 | 344 | border-color: var(--border-color); |
| 341 | - border-radius: var(--border-radius); | |
| 342 | 345 | background-color: var(--bg-color); |
| 343 | 346 | max-width: 138px; |
| 344 | 347 | width: 100%; |
| 345 | 348 | height: 16px; |
| @@ -350,9 +353,9 @@ | ||
| 350 | 353 | } |
| 351 | 354 | |
| 352 | 355 | .frm-input-style-example > div { |
| 353 | 356 | max-width: 46px; |
| 354 | - width: calc(100% - 8px); | |
| 357 | + width: calc( 100% - 8px ); | |
| 355 | 358 | height: 2px; |
| 356 | 359 | background-color: var(--text-color); |
| 357 | 360 | } |
| 358 | 361 | |
| @@ -357,9 +360,11 @@ | ||
| 357 | 360 | } |
| 358 | 361 | |
| 359 | 362 | #frm_loading_style_placeholder, |
| 360 | 363 | #frm_style_preview.frm-loading-style-template .frm_forms, |
| 361 | -.frm-currently-set-style-card .dropdown-item.frm-apply-style { | |
| 364 | +#frm_default_style_cards_wrapper .dropdown-item.frm-apply-style, | |
| 365 | +.frm-currently-set-style-card .dropdown-item.frm-apply-style | |
| 366 | +{ | |
| 362 | 367 | display: none; |
| 363 | 368 | } |
| 364 | 369 | |
| 365 | 370 | #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder { |
| @@ -365,9 +370,9 @@ | ||
| 365 | 370 | #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder { |
| 366 | 371 | display: block; |
| 367 | 372 | text-align: center; |
| 368 | 373 | position: absolute; |
| 369 | - top: calc(50% - 35px); | |
| 374 | + top: calc( 50% - 35px ); | |
| 370 | 375 | left: 50%; |
| 371 | 376 | transform: translateX(-50%) translateY(-50%); |
| 372 | 377 | } |
| 373 | 378 | |
| @@ -379,9 +384,9 @@ | ||
| 379 | 384 | display: flex; |
| 380 | 385 | } |
| 381 | 386 | |
| 382 | 387 | #frm_style_template_modal .frm_warning_style span { |
| 383 | - flex: 1; | |
| 388 | + flex: 1; | |
| 384 | 389 | } |
| 385 | 390 | |
| 386 | 391 | #frm_style_template_modal .frm_warning_style a:focus { |
| 387 | 392 | box-shadow: none; |
| @@ -406,9 +411,8 @@ | ||
| 406 | 411 | |
| 407 | 412 | body.rtl .frm-style-card-separator { |
| 408 | 413 | margin: 0 6px 0 0; |
| 409 | 414 | } |
| 410 | - | |
| 411 | 415 | /* End RTL Styling */ |
| 412 | 416 | |
| 413 | 417 | .frm-styles-globally-disabled #frm_new_style_trigger, |
| 414 | 418 | .frm-styles-globally-disabled .frm_toggle, |
| @@ -417,145 +421,10 @@ | ||
| 417 | 421 | pointer-events: none; |
| 418 | 422 | opacity: 0.5; |
| 419 | 423 | } |
| 420 | 424 | |
| 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; | |
| 424 | -} | |
| 425 | - | |
| 426 | -.formidable_page_formidable-styles .frm-right-panel .open .accordion-section-title > .frmsvg:last-child { | |
| 427 | - transform: rotate(180deg); | |
| 428 | -} | |
| 429 | - | |
| 430 | -.formidable_page_formidable-styles .frm-right-panel .accordion-section-title > .frmsvg:last-child { | |
| 431 | - position: absolute; | |
| 432 | - top: 0; | |
| 433 | - bottom: 0; | |
| 434 | - right: 0; | |
| 435 | - margin: auto; | |
| 436 | - color: var(--grey); | |
| 437 | -} | |
| 438 | - | |
| 439 | -.control-section:hover .accordion-section-title { | |
| 440 | - background: transparent !important; | |
| 441 | - border-bottom-color: transparent; | |
| 442 | -} | |
| 443 | - | |
| 444 | -.frm-style-settings-hover { | |
| 445 | - width: 100%; | |
| 446 | - position: absolute; | |
| 447 | - top: 0; | |
| 448 | - left: 0; | |
| 449 | - height: 58px; | |
| 450 | - background: white; | |
| 451 | - border-radius: var(--small-radius); | |
| 452 | - box-shadow: var(--button-shadow); | |
| 453 | - z-index: 0; | |
| 454 | - transition: 0.25s opacity ease, 0.3s transform cubic-bezier(0.165, 0.84, 0.44, 1); | |
| 455 | -} | |
| 456 | - | |
| 457 | -.frm-style-settings-hover.frm-animating { | |
| 458 | - opacity: 0.45; | |
| 459 | -} | |
| 460 | - | |
| 461 | -.frm-right-panel .accordion-section-content { | |
| 462 | - background: transparent; | |
| 463 | - padding: 0; | |
| 464 | - overflow: initial; | |
| 465 | -} | |
| 466 | - | |
| 467 | -.frm-right-panel .accordion-section-content > .inside { | |
| 468 | - padding: 15px; | |
| 469 | -} | |
| 470 | - | |
| 471 | -.frm-quick-settings .frm_form_field .frm-style-item-heading, | |
| 472 | -.frm-right-panel .accordion-section-content > .inside .frm-style-item-heading { | |
| 473 | - line-height: 36px; | |
| 474 | -} | |
| 475 | - | |
| 476 | -.frm-right-panel .accordion-section-content > .inside .frm-style-item-heading .frm_help { | |
| 477 | - display: inline-block; | |
| 478 | - line-height: 13px; | |
| 479 | -} | |
| 480 | - | |
| 481 | -.frm-right-panel .accordion-section-content .inside a { | |
| 482 | - font-size: inherit; | |
| 483 | -} | |
| 484 | - | |
| 485 | -.frm-right-panel .control-section.open h3 { | |
| 486 | - border-bottom: none; | |
| 487 | -} | |
| 488 | - | |
| 489 | -.js .frm-right-panel .control-section .accordion-section-title:focus, | |
| 490 | -.js .frm-right-panel .control-section .accordion-section-title:hover { | |
| 491 | - color: var(--grey-900); | |
| 492 | -} | |
| 493 | - | |
| 494 | -.js .frm-right-panel .control-section.open h3.accordion-section-title { | |
| 495 | - box-shadow: var(--button-shadow); | |
| 496 | - background: white !important; | |
| 497 | - border-radius: var(--small-radius); | |
| 498 | -} | |
| 499 | - | |
| 500 | -.js .frm-right-panel .control-section .accordion-section-title:hover::before { | |
| 501 | - color: var(--grey-700); | |
| 502 | -} | |
| 503 | - | |
| 504 | -.frm-right-panel .accordion-section { | |
| 505 | - border: none; | |
| 506 | - position: relative; | |
| 507 | - padding-bottom: 2px; | |
| 508 | -} | |
| 509 | - | |
| 510 | -.frm-right-panel .accordion-section-title > .frmsvg:first-child { | |
| 511 | - margin: 0 10px 0 0; | |
| 512 | - color: var(--grey); | |
| 513 | -} | |
| 514 | - | |
| 515 | -.frm-right-panel .accordion-section-title:hover > .frmsvg:first-child { | |
| 516 | - color: var(--grey-900); | |
| 517 | -} | |
| 518 | - | |
| 519 | -.frm-right-panel .accordion-section-title > .frmsvg:last-child { | |
| 520 | - margin-right: 15px !important; | |
| 521 | -} | |
| 522 | - | |
| 523 | -.frm-right-panel .open .accordion-section-title > .frmsvg:last-child { | |
| 524 | - transform: rotate(180deg); | |
| 525 | -} | |
| 526 | - | |
| 527 | -.frm-right-panel .open.accordion-section { | |
| 528 | - border-bottom: 1px solid var(--grey-300); | |
| 529 | -} | |
| 530 | - | |
| 531 | -.frm-right-panel h3.accordion-section-title { | |
| 532 | - padding: 17px 15px !important; | |
| 533 | - background: transparent; | |
| 534 | - line-height: var(--leading); | |
| 535 | - color: var(--grey-500); | |
| 536 | - font-size: var(--text-md); | |
| 537 | - font-weight: 400; | |
| 538 | -} | |
| 539 | - | |
| 540 | -.styling_settings .accordion-container { | |
| 541 | - position: relative; | |
| 542 | -} | |
| 543 | - | |
| 544 | -.styling_settings .accordion-container .outer-border { | |
| 545 | - position: relative; | |
| 546 | - z-index: 1; | |
| 547 | -} | |
| 548 | - | |
| 549 | -.styling_settings .accordion-section-title button { | |
| 550 | - border: none; | |
| 551 | - background: none; | |
| 552 | - float: right; | |
| 553 | -} | |
| 554 | - | |
| 555 | 425 | @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"] { | |
| 426 | + #frm_style_preview .with_frm_style .frm_radio input[type=radio], | |
| 427 | + #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] { | |
| 559 | 428 | width: 18px !important; |
| 560 | 429 | } |
| 561 | 430 | } |