| @@ -12,13 +12,8 @@ | ||
| 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 | - | |
| 21 | 16 | #frm_style_sidebar .accordion-section-title::after { |
| 22 | 17 | right: 0; |
| 23 | 18 | color: var(--grey-400); |
| 24 | 19 | } |
| @@ -29,8 +24,9 @@ | ||
| 29 | 24 | } |
| 30 | 25 | |
| 31 | 26 | #frm_active_style_form:not(.frm_hidden), |
| 32 | 27 | #frm_sample_form { |
| 28 | + | |
| 33 | 29 | /* Without this a small form with a max-width of 480px for example doesn't get centered in the preview space. */ |
| 34 | 30 | display: flex; |
| 35 | 31 | } |
| 36 | 32 | |
| @@ -35,8 +31,9 @@ | ||
| 35 | 31 | } |
| 36 | 32 | |
| 37 | 33 | #frm_active_style_form > .frm_forms, |
| 38 | 34 | #frm_sample_form > .frm_forms { |
| 35 | + | |
| 39 | 36 | /* This gives small form containers more space. */ |
| 40 | 37 | flex: 1; |
| 41 | 38 | padding: 0 10px; /* Match the extra padding around fields on builder */ |
| 42 | 39 | } |
| @@ -48,9 +45,8 @@ | ||
| 48 | 45 | border-radius: 6px; |
| 49 | 46 | cursor: pointer; |
| 50 | 47 | box-sizing: border-box; |
| 51 | 48 | border: 1px solid transparent; /* Add a transparent border so an active style card doesn't cause the box to resize. */ |
| 52 | - background-color: #fff; | |
| 53 | 49 | margin-bottom: 15px; |
| 54 | 50 | width: 100%; |
| 55 | 51 | padding: 14px; |
| 56 | 52 | box-shadow: var(--box-shadow-sm); |
| @@ -63,8 +59,9 @@ | ||
| 63 | 59 | color: var(--grey-500); |
| 64 | 60 | } |
| 65 | 61 | |
| 66 | 62 | .frm-style-card.frm-currently-set-style-card .frm-style-card-title-wrapper svg { |
| 63 | + | |
| 67 | 64 | /* The checkmark circle should be blue. */ |
| 68 | 65 | color: var(--primary-500); |
| 69 | 66 | } |
| 70 | 67 | |
| @@ -116,8 +113,9 @@ | ||
| 116 | 113 | gap: var(--gap-sm); |
| 117 | 114 | } |
| 118 | 115 | |
| 119 | 116 | .frm-style-card-preview + div .dropdown { |
| 117 | + | |
| 120 | 118 | /* Give it a z-index boost to avoid the border from the bottom of the card from overlapping the dropdown */ |
| 121 | 119 | z-index: 1; |
| 122 | 120 | } |
| 123 | 121 | |
| @@ -126,9 +124,9 @@ | ||
| 126 | 124 | font-size: 14px; |
| 127 | 125 | } |
| 128 | 126 | |
| 129 | 127 | .frm-style-card-title { |
| 130 | - max-width: calc( 100% - 20px ); | |
| 128 | + max-width: calc(100% - 20px); | |
| 131 | 129 | text-overflow: ellipsis; |
| 132 | 130 | overflow: hidden; |
| 133 | 131 | display: inline-block; |
| 134 | 132 | white-space: nowrap; |
| @@ -162,12 +160,13 @@ | ||
| 162 | 160 | cursor: pointer; |
| 163 | 161 | font-weight: 400; |
| 164 | 162 | |
| 165 | 163 | /* |
| 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. | |
| 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. | |
| 168 | 167 | */ |
| 169 | - z-index: 2; | |
| 168 | + z-index: 3; | |
| 170 | 169 | } |
| 171 | 170 | |
| 172 | 171 | #frm_style_preview .frm_floating_style_button.frm_hidden { |
| 173 | 172 | display: none; |
| @@ -182,8 +181,9 @@ | ||
| 182 | 181 | } |
| 183 | 182 | |
| 184 | 183 | .frm_pro_form .frm_form_field.frm_lite_style, |
| 185 | 184 | .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,22 +223,15 @@ | ||
| 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 | + | |
| 227 | 228 | /* The long "Reset to defaults" option name requires extra space. There's normally a 160px min-width. */ |
| 228 | 229 | min-width: 200px; |
| 229 | 230 | } |
| 230 | 231 | |
| 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 | -} | |
| 232 | +#frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select:not(.flatpickr-monthDropdown-months) { | |
| 239 | 233 | |
| 240 | -#frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select { | |
| 241 | 234 | /* Prevent back end styles from shrinking dropdowns. But leave datepicker dropdowns alone. */ |
| 242 | 235 | width: var(--auto-width); |
| 243 | 236 | max-width: 100%; |
| 244 | 237 | } |
| @@ -246,9 +239,10 @@ | ||
| 246 | 239 | #frm_style_preview select { |
| 247 | 240 | appearance: none; /* Hide the default icon */ |
| 248 | 241 | } |
| 249 | 242 | |
| 250 | -#frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year) { | |
| 243 | +#frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year):not(.frm-ranking-position) { | |
| 244 | + | |
| 251 | 245 | /* |
| 252 | 246 | The styler preview doesn't use .wp-core-ui which results in a funny looking dropdown arrow. |
| 253 | 247 | 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. |
| 254 | 248 | The SVG is arrow-down-alt2 from Dashicons. |
| @@ -253,9 +247,11 @@ | ||
| 253 | 247 | 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. |
| 254 | 248 | The SVG is arrow-down-alt2 from Dashicons. |
| 255 | 249 | This needs to be important because of a background-image: none !important rule that gets applied in front end CSS. |
| 256 | 250 | */ |
| 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; | |
| 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; | |
| 258 | 254 | |
| 259 | 255 | padding-right: 24px; /* Add enough padding for the icon. */ |
| 260 | 256 | } |
| 261 | 257 | |
| @@ -263,9 +259,9 @@ | ||
| 263 | 259 | #frm_style_preview input[type="checkbox"]:checked { |
| 264 | 260 | background-color: unset; |
| 265 | 261 | } |
| 266 | 262 | |
| 267 | -#frm_style_preview input[type="checkbox"]:checked:before { | |
| 263 | +#frm_style_preview input[type="checkbox"]:checked::before { | |
| 268 | 264 | content: ""; |
| 269 | 265 | position: relative; |
| 270 | 266 | left: 1px; |
| 271 | 267 | } |
| @@ -274,9 +270,9 @@ | ||
| 274 | 270 | Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css |
| 275 | 271 | The label in the preview should use the label color setting. |
| 276 | 272 | */ |
| 277 | 273 | #frm_style_preview .frm_form_field > label:first-child { |
| 278 | - color: var(--label-color); | |
| 274 | + color: var(--label-color); | |
| 279 | 275 | font-size: var(--font-size); |
| 280 | 276 | } |
| 281 | 277 | |
| 282 | 278 | .frm-color-blocks { |
| @@ -281,9 +277,9 @@ | ||
| 281 | 277 | |
| 282 | 278 | .frm-color-blocks { |
| 283 | 279 | display: grid; |
| 284 | 280 | justify-content: center; |
| 285 | - grid-template-columns: repeat(auto-fit, minmax(20px, max-content)); | |
| 281 | + grid-template-columns: repeat(auto-fit, minmax(20px, max-content)); | |
| 286 | 282 | max-width: 60px; |
| 287 | 283 | } |
| 288 | 284 | |
| 289 | 285 | .frm-color-blocks > div { |
| @@ -354,9 +350,9 @@ | ||
| 354 | 350 | } |
| 355 | 351 | |
| 356 | 352 | .frm-input-style-example > div { |
| 357 | 353 | max-width: 46px; |
| 358 | - width: calc( 100% - 8px ); | |
| 354 | + width: calc(100% - 8px); | |
| 359 | 355 | height: 2px; |
| 360 | 356 | background-color: var(--text-color); |
| 361 | 357 | } |
| 362 | 358 | |
| @@ -361,11 +357,9 @@ | ||
| 361 | 357 | } |
| 362 | 358 | |
| 363 | 359 | #frm_loading_style_placeholder, |
| 364 | 360 | #frm_style_preview.frm-loading-style-template .frm_forms, |
| 365 | -#frm_default_style_cards_wrapper .dropdown-item.frm-apply-style, | |
| 366 | -.frm-currently-set-style-card .dropdown-item.frm-apply-style | |
| 367 | -{ | |
| 361 | +.frm-currently-set-style-card .dropdown-item.frm-apply-style { | |
| 368 | 362 | display: none; |
| 369 | 363 | } |
| 370 | 364 | |
| 371 | 365 | #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder { |
| @@ -371,9 +365,9 @@ | ||
| 371 | 365 | #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder { |
| 372 | 366 | display: block; |
| 373 | 367 | text-align: center; |
| 374 | 368 | position: absolute; |
| 375 | - top: calc( 50% - 35px ); | |
| 369 | + top: calc(50% - 35px); | |
| 376 | 370 | left: 50%; |
| 377 | 371 | transform: translateX(-50%) translateY(-50%); |
| 378 | 372 | } |
| 379 | 373 | |
| @@ -385,9 +379,9 @@ | ||
| 385 | 379 | display: flex; |
| 386 | 380 | } |
| 387 | 381 | |
| 388 | 382 | #frm_style_template_modal .frm_warning_style span { |
| 389 | - flex: 1; | |
| 383 | + flex: 1; | |
| 390 | 384 | } |
| 391 | 385 | |
| 392 | 386 | #frm_style_template_modal .frm_warning_style a:focus { |
| 393 | 387 | box-shadow: none; |
| @@ -412,8 +406,9 @@ | ||
| 412 | 406 | |
| 413 | 407 | body.rtl .frm-style-card-separator { |
| 414 | 408 | margin: 0 6px 0 0; |
| 415 | 409 | } |
| 410 | + | |
| 416 | 411 | /* End RTL Styling */ |
| 417 | 412 | |
| 418 | 413 | .frm-styles-globally-disabled #frm_new_style_trigger, |
| 419 | 414 | .frm-styles-globally-disabled .frm_toggle, |
| @@ -422,10 +417,145 @@ | ||
| 422 | 417 | pointer-events: none; |
| 423 | 418 | opacity: 0.5; |
| 424 | 419 | } |
| 425 | 420 | |
| 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 | + | |
| 426 | 555 | @media only screen and (max-width: 782px) { |
| 427 | - #frm_style_preview .with_frm_style .frm_radio input[type=radio], | |
| 428 | - #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] { | |
| 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"] { | |
| 429 | 559 | width: 18px !important; |
| 430 | 560 | } |
| 431 | 561 | } |