| 1 |
/* |
| 2 |
This file is added to the visual styler admin page, accessed from the style tab. |
| 3 |
*/ |
| 4 |
|
| 5 |
#frm_styler_wrapper { |
| 6 |
display: flex; |
| 7 |
flex-direction: row; |
| 8 |
} |
| 9 |
|
| 10 |
#frm_style_sidebar .frm-inner-content { |
| 11 |
padding-left: 0; |
| 12 |
padding-right: 0; |
| 13 |
padding-bottom: 0; |
| 14 |
} |
| 15 |
|
| 16 |
#frm_style_sidebar .accordion-section-title::after { |
| 17 |
right: 0; |
| 18 |
color: var(--grey-400); |
| 19 |
} |
| 20 |
|
| 21 |
#frm_active_style_form:not(.frm_hidden) ~ #frm_sample_form, |
| 22 |
.frm-style-card-info { |
| 23 |
display: none; |
| 24 |
} |
| 25 |
|
| 26 |
#frm_active_style_form:not(.frm_hidden), |
| 27 |
#frm_sample_form { |
| 28 |
/* Without this a small form with a max-width of 480px for example doesn't get centered in the preview space. */ |
| 29 |
display: flex; |
| 30 |
} |
| 31 |
|
| 32 |
#frm_active_style_form > .frm_forms, |
| 33 |
#frm_sample_form > .frm_forms { |
| 34 |
/* This gives small form containers more space. */ |
| 35 |
flex: 1; |
| 36 |
padding: 0 10px; /* Match the extra padding around fields on builder */ |
| 37 |
} |
| 38 |
|
| 39 |
.frm-style-card { |
| 40 |
display: flex; |
| 41 |
flex-direction: row; |
| 42 |
align-items: center; |
| 43 |
border-radius: 6px; |
| 44 |
cursor: pointer; |
| 45 |
box-sizing: border-box; |
| 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; |
| 48 |
margin-bottom: 15px; |
| 49 |
width: 100%; |
| 50 |
padding: 14px; |
| 51 |
box-shadow: var(--box-shadow-sm); |
| 52 |
position: relative; |
| 53 |
background-color: var(--preview-background-color); |
| 54 |
} |
| 55 |
|
| 56 |
.frm-style-card .frm-dropdown-toggle svg, |
| 57 |
#frm_styling_form .frm-dropdown-toggle svg { |
| 58 |
color: var(--grey-500); |
| 59 |
} |
| 60 |
|
| 61 |
.frm-style-card.frm-currently-set-style-card .frm-style-card-title-wrapper svg { |
| 62 |
/* The checkmark circle should be blue. */ |
| 63 |
color: var(--primary-500); |
| 64 |
} |
| 65 |
|
| 66 |
.frm-style-card.frm-dark-style .frm-style-card-title, |
| 67 |
.frm-style-card.frm-dark-style.frm-locked-style .frm-style-card-title-wrapper svg, |
| 68 |
.frm-style-card.frm-dark-style .frm-dropdown-toggle svg, |
| 69 |
.frm-style-card.frm-dark-style .frm-style-card-info { |
| 70 |
color: #fff; |
| 71 |
} |
| 72 |
|
| 73 |
.frm-style-card > div:first-child { |
| 74 |
display: flex; |
| 75 |
flex: 1; |
| 76 |
flex-direction: column; |
| 77 |
gap: var(--gap-sm); |
| 78 |
} |
| 79 |
|
| 80 |
.frm-style-card.frm_hidden { |
| 81 |
display: none; |
| 82 |
} |
| 83 |
|
| 84 |
.frm-style-card:hover { |
| 85 |
box-shadow: var(--box-shadow-lg); |
| 86 |
} |
| 87 |
|
| 88 |
.frm-active-style-card { |
| 89 |
box-shadow: none; |
| 90 |
border: 1px solid var(--primary-500); |
| 91 |
} |
| 92 |
|
| 93 |
.frm-style-card-title-wrapper { |
| 94 |
display: flex; |
| 95 |
gap: var(--gap-2xs); |
| 96 |
align-items: center; |
| 97 |
} |
| 98 |
|
| 99 |
#frm_style_sidebar .frm-style-card .dropdown { |
| 100 |
overflow: visible; |
| 101 |
padding-left: 0; |
| 102 |
align-self: flex-start; |
| 103 |
} |
| 104 |
|
| 105 |
.frm-style-card-preview { |
| 106 |
pointer-events: none; |
| 107 |
border-radius: 6px 6px 0 0; |
| 108 |
display: flex; |
| 109 |
flex-direction: row; |
| 110 |
align-items: center; |
| 111 |
gap: var(--gap-sm); |
| 112 |
} |
| 113 |
|
| 114 |
.frm-style-card-preview + div .dropdown { |
| 115 |
/* Give it a z-index boost to avoid the border from the bottom of the card from overlapping the dropdown */ |
| 116 |
z-index: 1; |
| 117 |
} |
| 118 |
|
| 119 |
.frm-style-card-pagination { |
| 120 |
text-align: center; |
| 121 |
font-size: 14px; |
| 122 |
} |
| 123 |
|
| 124 |
.frm-style-card-title { |
| 125 |
max-width: calc( 100% - 20px ); |
| 126 |
text-overflow: ellipsis; |
| 127 |
overflow: hidden; |
| 128 |
display: inline-block; |
| 129 |
white-space: nowrap; |
| 130 |
font-size: 14px; |
| 131 |
} |
| 132 |
|
| 133 |
.frm-currently-set-style-card .frm-style-card-info { |
| 134 |
display: inline; |
| 135 |
color: var(--grey-700); |
| 136 |
opacity: 0.6; |
| 137 |
} |
| 138 |
|
| 139 |
.frm-locked-style .frm-style-card-title { |
| 140 |
color: var(--grey); |
| 141 |
} |
| 142 |
|
| 143 |
.frm-style-card-title svg { |
| 144 |
margin-right: 5px; |
| 145 |
} |
| 146 |
|
| 147 |
#frm_style_preview .frm_button_submit { |
| 148 |
transition: none !important; /* Avoid the preview updates from transitioning between one another. */ |
| 149 |
} |
| 150 |
|
| 151 |
#frm_style_preview .frm_floating_style_button { |
| 152 |
box-shadow: var(--box-shadow-xl); |
| 153 |
position: fixed; |
| 154 |
bottom: 20px; |
| 155 |
display: flex; |
| 156 |
align-items: center; |
| 157 |
cursor: pointer; |
| 158 |
font-weight: 400; |
| 159 |
|
| 160 |
/* |
| 161 |
When a background image is set the children in the fieldset have a z-index of 1. |
| 162 |
The Ranking Field contains elements with a higher z-index of 2. |
| 163 |
Set to 3 so the floating buttons get priority when clicking if they overlap a form element. |
| 164 |
*/ |
| 165 |
z-index: 3; |
| 166 |
} |
| 167 |
|
| 168 |
#frm_style_preview .frm_floating_style_button.frm_hidden { |
| 169 |
display: none; |
| 170 |
} |
| 171 |
|
| 172 |
#frm_edit_style { |
| 173 |
transform: translateX(-20px); |
| 174 |
} |
| 175 |
|
| 176 |
#frm_toggle_sample_form { |
| 177 |
right: 40px; |
| 178 |
} |
| 179 |
|
| 180 |
.frm_pro_form .frm_form_field.frm_lite_style, |
| 181 |
.frm_pro_form .frm_lite_style { |
| 182 |
/* |
| 183 |
Hide textarea, radio buttons, and checkboxes in the sample form in Pro. |
| 184 |
Instead these elements are rendered again in Pro inside of a repeater. |
| 185 |
*/ |
| 186 |
display: none !important; |
| 187 |
} |
| 188 |
|
| 189 |
#frm_style_sidebar .frm_form_field input[type="checkbox"], |
| 190 |
#frm_style_sidebar .frm_form_field input[type="radio"] { |
| 191 |
vertical-align: middle; |
| 192 |
} |
| 193 |
|
| 194 |
.styling_settings .frm_image_preview_wrapper { |
| 195 |
width: 100%; |
| 196 |
} |
| 197 |
|
| 198 |
.styling_settings .frm_image_preview_wrapper .frm_choose_image_box { |
| 199 |
margin-left: 0; |
| 200 |
} |
| 201 |
|
| 202 |
.ui-datepicker-inline.ui-datepicker { |
| 203 |
max-width: 19em; |
| 204 |
} |
| 205 |
|
| 206 |
.frm-style-card-wrapper { |
| 207 |
margin-top: 20px; |
| 208 |
} |
| 209 |
|
| 210 |
.frm-style-card-wrapper:not(.frm-styles-enabled) { |
| 211 |
opacity: 0.5; |
| 212 |
pointer-events: none; |
| 213 |
} |
| 214 |
|
| 215 |
/* When styles are disabled we don't want the active card to look like it is Applied. */ |
| 216 |
.frm-style-card-wrapper:not(.frm-styles-enabled) .frm-currently-set-style-card .frm-style-card-title-wrapper svg, |
| 217 |
.frm-style-card-wrapper:not(.frm-styles-enabled) .frm-currently-set-style-card .frm-style-card-info { |
| 218 |
display: none; |
| 219 |
} |
| 220 |
|
| 221 |
/* Style the hamburger menu (used in Style cards, and on the Style "Edit" page beside the Style name. */ |
| 222 |
.frm-style-options-menu { |
| 223 |
/* The long "Reset to defaults" option name requires extra space. There's normally a 160px min-width. */ |
| 224 |
min-width: 200px; |
| 225 |
} |
| 226 |
|
| 227 |
/* |
| 228 |
Do not set this for frm_inside_container as it requires a custom line height value. |
| 229 |
Target .frm_primary_label so we avoid other labels like star rating stars. |
| 230 |
Time fields use a div instead of a label, so don't target by the primary label by tag type. |
| 231 |
*/ |
| 232 |
#frm_style_preview .frm_form_field:not(.frm_inside_container) > .frm_primary_label { |
| 233 |
line-height: var(--line-height); |
| 234 |
} |
| 235 |
|
| 236 |
#frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select { |
| 237 |
/* Prevent back end styles from shrinking dropdowns. But leave datepicker dropdowns alone. */ |
| 238 |
width: var(--auto-width); |
| 239 |
max-width: 100%; |
| 240 |
} |
| 241 |
|
| 242 |
#frm_style_preview select { |
| 243 |
appearance: none; /* Hide the default icon */ |
| 244 |
} |
| 245 |
|
| 246 |
#frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year):not(.frm-ranking-position) { |
| 247 |
/* |
| 248 |
The styler preview doesn't use .wp-core-ui which results in a funny looking dropdown arrow. |
| 249 |
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. |
| 250 |
The SVG is arrow-down-alt2 from Dashicons. |
| 251 |
This needs to be important because of a background-image: none !important rule that gets applied in front end CSS. |
| 252 |
*/ |
| 253 |
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; |
| 254 |
background-repeat: no-repeat !important; |
| 255 |
background-position: right 5px top 55% !important; |
| 256 |
|
| 257 |
padding-right: 24px; /* Add enough padding for the icon. */ |
| 258 |
} |
| 259 |
|
| 260 |
/* Unset frm_admin checkbox styling in the preview. */ |
| 261 |
#frm_style_preview input[type="checkbox"]:checked { |
| 262 |
background-color: unset; |
| 263 |
} |
| 264 |
|
| 265 |
#frm_style_preview input[type="checkbox"]:checked:before { |
| 266 |
content: ""; |
| 267 |
position: relative; |
| 268 |
left: 1px; |
| 269 |
} |
| 270 |
|
| 271 |
/* |
| 272 |
Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css |
| 273 |
The label in the preview should use the label color setting. |
| 274 |
*/ |
| 275 |
#frm_style_preview .frm_form_field > label:first-child { |
| 276 |
color: var(--label-color); |
| 277 |
font-size: var(--font-size); |
| 278 |
} |
| 279 |
|
| 280 |
.frm-color-blocks { |
| 281 |
display: grid; |
| 282 |
justify-content: center; |
| 283 |
grid-template-columns: repeat(auto-fit, minmax(20px, max-content)); |
| 284 |
max-width: 60px; |
| 285 |
} |
| 286 |
|
| 287 |
.frm-color-blocks > div { |
| 288 |
border: 1.5px solid var(--grey-100); |
| 289 |
box-shadow: var(--box-shadow-sm); |
| 290 |
border-radius: 22px; |
| 291 |
height: 28px; |
| 292 |
width: 28px; |
| 293 |
box-sizing: border-box; |
| 294 |
flex-shrink: 0; |
| 295 |
} |
| 296 |
|
| 297 |
/* Remove link styling from the back icon on the edit page. */ |
| 298 |
#frm_styling_form h2 > a { |
| 299 |
color: var(--grey-500); |
| 300 |
margin-right: 10px; |
| 301 |
} |
| 302 |
|
| 303 |
#frm_styling_form p > a svg { |
| 304 |
position: relative; |
| 305 |
bottom: 2px; |
| 306 |
} |
| 307 |
.frm-style-card-separator { |
| 308 |
background-color: var(--grey-300); |
| 309 |
width: 2px; |
| 310 |
height: 20px; |
| 311 |
margin-left: 6px; |
| 312 |
} |
| 313 |
|
| 314 |
.frm-mini-form-style { |
| 315 |
display: flex; |
| 316 |
gap: var(--gap-xs); |
| 317 |
width: 100%; |
| 318 |
} |
| 319 |
|
| 320 |
.frm-button-style-example { |
| 321 |
background-color: var(--submit-bg-color); |
| 322 |
border: 1px solid var(--grey-500); |
| 323 |
border-color: var(--submit-border-color); |
| 324 |
border-radius: var(--submit-border-radius); |
| 325 |
width: 60px; |
| 326 |
height: 16px; |
| 327 |
display: flex; |
| 328 |
align-items: center; |
| 329 |
justify-content: center; |
| 330 |
} |
| 331 |
|
| 332 |
.frm-button-style-example > div { |
| 333 |
width: 32px; |
| 334 |
height: 2px; |
| 335 |
background-color: var(--submit-text-color); |
| 336 |
} |
| 337 |
|
| 338 |
.frm-input-style-example { |
| 339 |
border-width: var(--field-border-width); |
| 340 |
border-style: var(--field-border-style); |
| 341 |
border-color: var(--border-color); |
| 342 |
border-radius: var(--border-radius); |
| 343 |
background-color: var(--bg-color); |
| 344 |
max-width: 138px; |
| 345 |
width: 100%; |
| 346 |
height: 16px; |
| 347 |
display: flex; |
| 348 |
align-items: center; |
| 349 |
padding-left: 10px; |
| 350 |
flex: 1; |
| 351 |
} |
| 352 |
|
| 353 |
.frm-input-style-example > div { |
| 354 |
max-width: 46px; |
| 355 |
width: calc( 100% - 8px ); |
| 356 |
height: 2px; |
| 357 |
background-color: var(--text-color); |
| 358 |
} |
| 359 |
|
| 360 |
#frm_loading_style_placeholder, |
| 361 |
#frm_style_preview.frm-loading-style-template .frm_forms, |
| 362 |
#frm_default_style_cards_wrapper .dropdown-item.frm-apply-style, |
| 363 |
.frm-currently-set-style-card .dropdown-item.frm-apply-style |
| 364 |
{ |
| 365 |
display: none; |
| 366 |
} |
| 367 |
|
| 368 |
#frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder { |
| 369 |
display: block; |
| 370 |
text-align: center; |
| 371 |
position: absolute; |
| 372 |
top: calc( 50% - 35px ); |
| 373 |
left: 50%; |
| 374 |
transform: translateX(-50%) translateY(-50%); |
| 375 |
} |
| 376 |
|
| 377 |
#frm_loading_style_placeholder strong { |
| 378 |
display: block; |
| 379 |
} |
| 380 |
|
| 381 |
#frm_style_template_modal .frm_warning_style { |
| 382 |
display: flex; |
| 383 |
} |
| 384 |
|
| 385 |
#frm_style_template_modal .frm_warning_style span { |
| 386 |
flex: 1; |
| 387 |
} |
| 388 |
|
| 389 |
#frm_style_template_modal .frm_warning_style a:focus { |
| 390 |
box-shadow: none; |
| 391 |
} |
| 392 |
|
| 393 |
/* Break the new style trigger into a separate line on small screens to avoid overlapping with the Enable Formidable styling toggle. */ |
| 394 |
#frm_style_sidebar > .frm-flex-justify { |
| 395 |
gap: var(--gap-sm); |
| 396 |
flex-wrap: wrap; |
| 397 |
} |
| 398 |
|
| 399 |
/* RTL Styling */ |
| 400 |
body.rtl #frm_toggle_sample_form { |
| 401 |
right: unset; |
| 402 |
left: 40px; |
| 403 |
} |
| 404 |
|
| 405 |
body.rtl .frm-input-style-example { |
| 406 |
padding-left: 0; |
| 407 |
padding-right: 10px; |
| 408 |
} |
| 409 |
|
| 410 |
body.rtl .frm-style-card-separator { |
| 411 |
margin: 0 6px 0 0; |
| 412 |
} |
| 413 |
/* End RTL Styling */ |
| 414 |
|
| 415 |
.frm-styles-globally-disabled #frm_new_style_trigger, |
| 416 |
.frm-styles-globally-disabled .frm_toggle, |
| 417 |
.frm-styles-globally-disabled .frm_on_label, |
| 418 |
.frm-styles-globally-disabled ~ #frm_style_preview #frm_edit_style { |
| 419 |
pointer-events: none; |
| 420 |
opacity: 0.5; |
| 421 |
} |
| 422 |
|
| 423 |
.formidable_page_formidable-styles .frm-right-panel .accordion-section-title:before, |
| 424 |
.formidable_page_formidable-styles .frm-right-panel .accordion-section-title:after { |
| 425 |
content: '' !important; |
| 426 |
} |
| 427 |
.formidable_page_formidable-styles .frm-right-panel .open .accordion-section-title > .frmsvg:last-child { |
| 428 |
transform: rotate(180deg); |
| 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 |
.control-section:hover .accordion-section-title { |
| 439 |
background: transparent !important; |
| 440 |
border-bottom-color: transparent; |
| 441 |
} |
| 442 |
.frm-style-settings-hover { |
| 443 |
width: 100%; |
| 444 |
position: absolute; |
| 445 |
top:0; |
| 446 |
left: 0; |
| 447 |
height: 58px; |
| 448 |
background: white; |
| 449 |
border-radius: var(--small-radius); |
| 450 |
box-shadow: var(--button-shadow); |
| 451 |
z-index: 0; |
| 452 |
transition: 0.25s opacity ease, 0.3s transform cubic-bezier(0.165, 0.84, 0.44, 1); |
| 453 |
} |
| 454 |
.frm-style-settings-hover.frm-animating { |
| 455 |
opacity: 0.45; |
| 456 |
} |
| 457 |
.frm-right-panel .accordion-section-content { |
| 458 |
background: transparent; |
| 459 |
padding: 0; |
| 460 |
overflow: initial; |
| 461 |
} |
| 462 |
|
| 463 |
.frm-right-panel .accordion-section-content > .inside { |
| 464 |
padding: 15px; |
| 465 |
} |
| 466 |
.frm-quick-settings .frm_form_field .frm-style-item-heading, |
| 467 |
.frm-right-panel .accordion-section-content > .inside .frm-style-item-heading { |
| 468 |
line-height: 36px; |
| 469 |
} |
| 470 |
.frm-right-panel .accordion-section-content > .inside .frm-style-item-heading .frm_help { |
| 471 |
display: inline-block; |
| 472 |
line-height: 13px; |
| 473 |
} |
| 474 |
|
| 475 |
.frm-right-panel .accordion-section-content .inside a { |
| 476 |
font-size: inherit; |
| 477 |
} |
| 478 |
.frm-right-panel .control-section.open h3 { |
| 479 |
border-bottom: none; |
| 480 |
} |
| 481 |
|
| 482 |
.js .frm-right-panel .control-section .accordion-section-title:focus, |
| 483 |
.js .frm-right-panel .control-section .accordion-section-title:hover { |
| 484 |
color: var(--grey-900); |
| 485 |
} |
| 486 |
.js .frm-right-panel .control-section.open h3.accordion-section-title { |
| 487 |
box-shadow: var(--button-shadow); |
| 488 |
background: white !important; |
| 489 |
border-radius: var(--small-radius); |
| 490 |
} |
| 491 |
|
| 492 |
.js .frm-right-panel .control-section .accordion-section-title:hover:before { |
| 493 |
color: var(--grey-700); |
| 494 |
} |
| 495 |
.frm-right-panel .accordion-section { |
| 496 |
border: none; |
| 497 |
position: relative; |
| 498 |
padding-bottom: 2px; |
| 499 |
} |
| 500 |
.frm-right-panel .accordion-section-title > .frmsvg:first-child { |
| 501 |
margin: 0 10px 0 0; |
| 502 |
color: var(--grey); |
| 503 |
} |
| 504 |
.frm-right-panel .accordion-section-title:hover > .frmsvg:first-child { |
| 505 |
color: var(--grey-900); |
| 506 |
} |
| 507 |
.frm-right-panel .accordion-section-title > .frmsvg:last-child { |
| 508 |
margin-right: 15px !important; |
| 509 |
} |
| 510 |
.frm-right-panel .open .accordion-section-title > .frmsvg:last-child { |
| 511 |
transform: rotate(180deg); |
| 512 |
} |
| 513 |
.frm-right-panel .open.accordion-section { |
| 514 |
border-bottom: 1px solid var(--grey-300); |
| 515 |
} |
| 516 |
.frm-right-panel h3.accordion-section-title { |
| 517 |
padding: 17px 15px !important; |
| 518 |
background: transparent; |
| 519 |
line-height: var(--leading); |
| 520 |
color: var(--grey-500); |
| 521 |
font-size: var(--text-md); |
| 522 |
font-weight: 400; |
| 523 |
} |
| 524 |
.styling_settings .accordion-container { |
| 525 |
position: relative; |
| 526 |
} |
| 527 |
.styling_settings .accordion-container .outer-border { |
| 528 |
position: relative; |
| 529 |
z-index: 1; |
| 530 |
} |
| 531 |
.styling_settings .accordion-section-title button { |
| 532 |
border: none; |
| 533 |
background: none; |
| 534 |
float: right; |
| 535 |
} |
| 536 |
@media only screen and (max-width: 782px) { |
| 537 |
#frm_style_preview .with_frm_style .frm_radio input[type=radio], |
| 538 |
#frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] { |
| 539 |
width: 18px !important; |
| 540 |
} |
| 541 |
} |
| 542 |
|