| 1 |
/* Modern accessible admin styles */ |
| 2 |
|
| 3 |
/* Hide duplicate h2 inside tokens list when already wrapped in a postbox */ |
| 4 |
.postbox .accua_forms_token_list > h2 { |
| 5 |
display: none; |
| 6 |
} |
| 7 |
|
| 8 |
/* Form edit page: title field (mirrors WP core #poststuff #titlediv styling) */ |
| 9 |
#accua_forms_edit_page #titlediv { |
| 10 |
margin-top: 10px; |
| 11 |
margin-bottom: 20px; |
| 12 |
} |
| 13 |
|
| 14 |
#accua_forms_edit_page #titlediv #title { |
| 15 |
padding: 3px 8px; |
| 16 |
font-size: 1.7em; |
| 17 |
line-height: 100%; |
| 18 |
height: 1.7em; |
| 19 |
width: 100%; |
| 20 |
outline: none; |
| 21 |
margin: 0; |
| 22 |
background-color: #fff; |
| 23 |
} |
| 24 |
|
| 25 |
/* ========================================================================== |
| 26 |
Widget Accordion Animation (form field editor) |
| 27 |
Uses CSS transitions instead of jQuery slideDown/slideUp for smoother UX |
| 28 |
========================================================================== */ |
| 29 |
|
| 30 |
/* Widget-inside: collapsed state (default) - use display:none like original */ |
| 31 |
#accua_forms_edit_page #widgets-right .widget .widget-inside { |
| 32 |
display: none; |
| 33 |
} |
| 34 |
|
| 35 |
/* Widget-inside: expanded state (.open class on parent .widget) */ |
| 36 |
#accua_forms_edit_page #widgets-right .widget.open .widget-inside { |
| 37 |
display: block; |
| 38 |
} |
| 39 |
|
| 40 |
/* Rotate caret icon when widget is open */ |
| 41 |
#accua_forms_edit_page #widgets-right .widget.open a.widget-action:after { |
| 42 |
transform: rotate(90deg); |
| 43 |
} |
| 44 |
|
| 45 |
/* Respect reduced motion preference for accessibility */ |
| 46 |
@media (prefers-reduced-motion: reduce) { |
| 47 |
#accua_forms_edit_page #widgets-right a.widget-action:after { |
| 48 |
transition: none; |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
input[type="text"].accua_form_value, textarea.accua_form_value { |
| 53 |
width: 95%; |
| 54 |
margin-right: 5%; |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
#accua_forms_edit_page .sidebar-name-arrow { |
| 59 |
display: none !important; |
| 60 |
} |
| 61 |
|
| 62 |
#accua_forms_edit_page .widget-control-actions br.clear { |
| 63 |
display: none; |
| 64 |
} |
| 65 |
/* |
| 66 |
#accua_forms_edit_page #widgets-left .widget-holder, #accua_forms_edit_page #widgets-right .widgets-sortables { |
| 67 |
overflow-y: scroll !important; |
| 68 |
overflow-x: hidden !important; |
| 69 |
height: 400px; |
| 70 |
min-height: 400px; |
| 71 |
}*/ |
| 72 |
|
| 73 |
#accua_forms_edit_page .widget-liquid-left { |
| 74 |
width: 100% !important; |
| 75 |
} |
| 76 |
|
| 77 |
#accua_forms_edit_page #widgets-left .widget { |
| 78 |
width: 98% !important; |
| 79 |
margin-bottom: 7px !important; |
| 80 |
float: none !important; |
| 81 |
} |
| 82 |
|
| 83 |
.accua-form-widget-scroll-wrapper { |
| 84 |
width: 100% !important; |
| 85 |
} |
| 86 |
|
| 87 |
.accua-form-widget-scroll-wrapper .ui-resizable-handle, #accua_form_preview_area_wrapper .ui-resizable-handle { |
| 88 |
background: #ddd; |
| 89 |
bottom: -10px; |
| 90 |
height: 7px; |
| 91 |
border-radius: 3px; |
| 92 |
} |
| 93 |
|
| 94 |
.accua-form-widget-scroll-wrapper.ui-resizable > *:first-child { |
| 95 |
/*min-height: auto !important; |
| 96 |
height: 100% !important; |
| 97 |
max-height: none !important;*/ |
| 98 |
width: auto !important; |
| 99 |
/*overflow-y: scroll !important; |
| 100 |
overflow-x: hidden !important;*/ |
| 101 |
margin: 0 !important; |
| 102 |
padding: 0 !important; |
| 103 |
} |
| 104 |
|
| 105 |
.accua-form-widget-scroll-wrapper > *:first-child p.description { |
| 106 |
padding-top: 5px; |
| 107 |
} |
| 108 |
|
| 109 |
/* Widget header - flex layout for proper centering */ |
| 110 |
#accua_forms_edit_page #widgets-right .widget-top { |
| 111 |
display: flex; |
| 112 |
align-items: center; |
| 113 |
} |
| 114 |
|
| 115 |
#accua_forms_edit_page #widgets-right .widget-title-action { |
| 116 |
position: static; |
| 117 |
order: 2; |
| 118 |
display: flex; |
| 119 |
align-items: center; |
| 120 |
height: auto; |
| 121 |
flex-shrink: 0; |
| 122 |
} |
| 123 |
|
| 124 |
#accua_forms_edit_page #widgets-right .widget-title { |
| 125 |
flex: 1; |
| 126 |
min-width: 0; |
| 127 |
order: 1; |
| 128 |
} |
| 129 |
|
| 130 |
/* Widget toggle button */ |
| 131 |
#accua_forms_edit_page #widgets-right a.widget-action { |
| 132 |
position: static; |
| 133 |
display: flex; |
| 134 |
align-items: center; |
| 135 |
justify-content: center; |
| 136 |
width: 2.5rem; |
| 137 |
color: #555d66; |
| 138 |
text-decoration: none; |
| 139 |
box-shadow: none; |
| 140 |
outline: none; |
| 141 |
} |
| 142 |
|
| 143 |
#accua_forms_edit_page #widgets-right a.widget-action:hover, |
| 144 |
#accua_forms_edit_page #widgets-right a.widget-action:focus, |
| 145 |
#accua_forms_edit_page #widgets-right a.widget-action:active { |
| 146 |
color: #23282d; |
| 147 |
text-decoration: none; |
| 148 |
box-shadow: none; |
| 149 |
} |
| 150 |
|
| 151 |
#accua_forms_edit_page #widgets-right a.widget-action:after { |
| 152 |
content: "\f140"; |
| 153 |
font: 400 1.25rem/1 dashicons; |
| 154 |
-webkit-font-smoothing: antialiased; |
| 155 |
-moz-osx-font-smoothing: grayscale; |
| 156 |
} |
| 157 |
|
| 158 |
#accua_forms_edit_page #widgets-right a.widget-action:focus:after { |
| 159 |
box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); |
| 160 |
border-radius: 50%; |
| 161 |
} |
| 162 |
|
| 163 |
/* Add field button (+) in available fields list */ |
| 164 |
#accua_forms_edit_page #widget-list .widget-title-action { |
| 165 |
position: static; |
| 166 |
display: flex; |
| 167 |
align-items: center; |
| 168 |
height: auto; |
| 169 |
order: 2; |
| 170 |
flex-shrink: 0; |
| 171 |
} |
| 172 |
|
| 173 |
#accua_forms_edit_page #widget-list .widget-top { |
| 174 |
display: flex; |
| 175 |
align-items: center; |
| 176 |
} |
| 177 |
|
| 178 |
#accua_forms_edit_page #widget-list .widget-title { |
| 179 |
flex: 1; |
| 180 |
min-width: 0; |
| 181 |
order: 1; |
| 182 |
} |
| 183 |
|
| 184 |
/* Hide expand caret in available fields list (not needed there) */ |
| 185 |
#accua_forms_edit_page #widget-list a.widget-action { |
| 186 |
display: none; |
| 187 |
} |
| 188 |
|
| 189 |
#accua_forms_edit_page #widget-list a.widget-add-action { |
| 190 |
display: flex; |
| 191 |
align-items: center; |
| 192 |
justify-content: center; |
| 193 |
width: 2.5rem; |
| 194 |
color: #50575e; |
| 195 |
text-decoration: none; |
| 196 |
box-shadow: none; |
| 197 |
outline: none; |
| 198 |
} |
| 199 |
|
| 200 |
#accua_forms_edit_page #widget-list a.widget-add-action:hover, |
| 201 |
#accua_forms_edit_page #widget-list a.widget-add-action:focus { |
| 202 |
color: #135e96; |
| 203 |
} |
| 204 |
|
| 205 |
#accua_forms_edit_page #widget-list a.widget-add-action:after { |
| 206 |
content: "\f502"; |
| 207 |
font: 400 1.25rem/1 dashicons; |
| 208 |
-webkit-font-smoothing: antialiased; |
| 209 |
-moz-osx-font-smoothing: grayscale; |
| 210 |
} |
| 211 |
|
| 212 |
#accua_forms_edit_page #widget-list a.widget-add-action:focus:after { |
| 213 |
box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); |
| 214 |
border-radius: 50%; |
| 215 |
} |
| 216 |
|
| 217 |
#accua_forms_edit_page .sidebar-name { |
| 218 |
cursor: auto !important; |
| 219 |
} |
| 220 |
|
| 221 |
|
| 222 |
/* ========================================================================== |
| 223 |
Tab component |
| 224 |
========================================================================== */ |
| 225 |
|
| 226 |
/* --- Shared base --- */ |
| 227 |
|
| 228 |
.accua-tabs:not(.is-initialized) > .accua-tabs__panel:not(:first-of-type) { |
| 229 |
display: none; |
| 230 |
} |
| 231 |
|
| 232 |
/* High-specificity hide: prevent flash of customise/other panels before JS initializes */ |
| 233 |
#accua_forms_edit_page #accua_tabs:not(.is-initialized) > .accua-tabs__panel:not(:first-of-type) { |
| 234 |
display: none !important; |
| 235 |
} |
| 236 |
|
| 237 |
.accua-tabs__panel[hidden] { |
| 238 |
display: none !important; |
| 239 |
} |
| 240 |
|
| 241 |
.accua-tabs__tablist { |
| 242 |
display: flex; |
| 243 |
margin: 0; |
| 244 |
padding: 0; |
| 245 |
} |
| 246 |
|
| 247 |
.accua-tabs__tab { |
| 248 |
background: none; |
| 249 |
border: none; |
| 250 |
cursor: pointer; |
| 251 |
font-family: inherit; |
| 252 |
font-size: 13px; |
| 253 |
line-height: 1.4; |
| 254 |
white-space: nowrap; |
| 255 |
transition: color 0.15s ease, background-color 0.15s ease; |
| 256 |
} |
| 257 |
|
| 258 |
.accua-tabs__tab:focus-visible { |
| 259 |
outline: 2px solid var(--wp-admin-theme-color, #3858e9); |
| 260 |
outline-offset: -2px; |
| 261 |
border-radius: 2px; |
| 262 |
} |
| 263 |
|
| 264 |
/* --- Primary variant (outer/main tabs) — underline indicator --- */ |
| 265 |
|
| 266 |
.accua-tabs--primary > .accua-tabs__tablist, |
| 267 |
.accua-tabs--primary > .accua-tabs__header > .accua-tabs__tablist { |
| 268 |
border-bottom: 1px solid #c3c4c7; |
| 269 |
gap: 0; |
| 270 |
} |
| 271 |
|
| 272 |
.accua-tabs--primary .accua-tabs__tab { |
| 273 |
padding: 12px 16px; |
| 274 |
color: #50575e; |
| 275 |
font-weight: 400; |
| 276 |
border-bottom: 2px solid transparent; |
| 277 |
margin-bottom: -1px; |
| 278 |
} |
| 279 |
|
| 280 |
.accua-tabs--primary .accua-tabs__tab:hover { |
| 281 |
color: var(--wp-admin-theme-color, #3858e9); |
| 282 |
} |
| 283 |
|
| 284 |
.accua-tabs--primary .accua-tabs__tab[aria-selected="true"] { |
| 285 |
color: #1d2327; |
| 286 |
font-weight: 600; |
| 287 |
border-bottom-color: var(--wp-admin-theme-color, #3858e9); |
| 288 |
} |
| 289 |
|
| 290 |
.accua-tabs--primary > .accua-tabs__panel, #accua_form_preview_pane { |
| 291 |
padding: 1rem 0; |
| 292 |
} |
| 293 |
|
| 294 |
/* Form builder utility rules */ |
| 295 |
#accua_form_use_ajax .accua_form_value { |
| 296 |
margin-right: 6px; |
| 297 |
} |
| 298 |
|
| 299 |
#accua_form_use_ajax label { |
| 300 |
cursor: pointer; |
| 301 |
} |
| 302 |
|
| 303 |
#accua_form_use_ajax, #accua_form_layout { |
| 304 |
clear: both; |
| 305 |
line-height: 25px; |
| 306 |
} |
| 307 |
|
| 308 |
#accua_form_layout { |
| 309 |
margin-bottom: 9px; |
| 310 |
} |
| 311 |
|
| 312 |
#accua_form_layout select { |
| 313 |
display: block; |
| 314 |
margin-top: 4px; |
| 315 |
margin-left: 0; |
| 316 |
width: 100%; |
| 317 |
max-width: 280px; |
| 318 |
} |
| 319 |
|
| 320 |
#accua_forms_edit_page { |
| 321 |
--fields-col-height: calc(100vh - 200px); |
| 322 |
} |
| 323 |
|
| 324 |
#accua_forms_edit_page #accua_tabs { |
| 325 |
position: relative; |
| 326 |
margin-top: 20px; |
| 327 |
display: grid; |
| 328 |
grid-template-columns: 1fr 1fr; |
| 329 |
gap: 0 16px; |
| 330 |
} |
| 331 |
|
| 332 |
/* 3-column grid when Fields tab is active — preview is 50% of total width */ |
| 333 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="fields"]:not([hidden])) { |
| 334 |
grid-template-columns: 3fr 7fr calc(50% - 8px); |
| 335 |
} |
| 336 |
|
| 337 |
/* Tablist header spans full width */ |
| 338 |
#accua_forms_edit_page #accua_tabs > .accua-tabs__header { |
| 339 |
grid-column: 1 / -1; |
| 340 |
} |
| 341 |
|
| 342 |
/* Panels fill column 1 by default */ |
| 343 |
#accua_forms_edit_page #accua_tabs > .accua-tabs__panel { |
| 344 |
grid-column: 1; |
| 345 |
grid-row: 2; |
| 346 |
} |
| 347 |
|
| 348 |
/* Panels without preview span all columns */ |
| 349 |
#accua_forms_edit_page #accua_tabs > .accua-tabs__panel[data-tab="messages"], |
| 350 |
#accua_forms_edit_page #accua_tabs > .accua-tabs__panel[data-tab="retention"], |
| 351 |
#accua_forms_edit_page #accua_tabs > .accua-tabs__panel[data-tab="google_ads"], |
| 352 |
#accua_forms_edit_page #accua_tabs > .accua-tabs__panel[data-tab="tokens"] { |
| 353 |
grid-column: 1 / -1; |
| 354 |
align-content: start; |
| 355 |
} |
| 356 |
|
| 357 |
/* Fields panel: dissolve into parent grid so children become grid items */ |
| 358 |
#accua_forms_edit_page #accua_tabs > [data-tab="fields"]:not([hidden]) { |
| 359 |
display: contents; |
| 360 |
} |
| 361 |
|
| 362 |
/* Available fields — column 1, scrollable */ |
| 363 |
#accua_forms_edit_page #accua_tabs > [data-tab="fields"]:not([hidden]) > .widget-liquid-left { |
| 364 |
grid-column: 1; |
| 365 |
grid-row: 2; |
| 366 |
width: auto; |
| 367 |
float: none; |
| 368 |
min-width: 0; |
| 369 |
padding-top: 1rem; |
| 370 |
padding-right: 4px; |
| 371 |
max-height: var(--fields-col-height); |
| 372 |
overflow-y: auto; |
| 373 |
overflow-x: hidden; |
| 374 |
align-self: start; |
| 375 |
} |
| 376 |
|
| 377 |
/* Drop zone — column 2 */ |
| 378 |
#accua_forms_edit_page #accua_tabs > [data-tab="fields"]:not([hidden]) > .widget-liquid-right { |
| 379 |
grid-column: 2; |
| 380 |
grid-row: 2; |
| 381 |
width: auto; |
| 382 |
float: none; |
| 383 |
margin: 0; |
| 384 |
min-width: 0; |
| 385 |
padding-top: 1rem; |
| 386 |
align-self: start; |
| 387 |
} |
| 388 |
|
| 389 |
/* Column titles — consistent styling across all three columns */ |
| 390 |
#accua_forms_edit_page #accua_tabs > [data-tab="fields"]:not([hidden]) > .widget-liquid-left > h2, |
| 391 |
#accua_forms_edit_page #accua_tabs > [data-tab="fields"]:not([hidden]) > .widget-liquid-right h2, |
| 392 |
#accua_forms_edit_page .accua-form-preview-pane > h2 { |
| 393 |
margin: 0 0 12px 0; |
| 394 |
padding: 0; |
| 395 |
font-size: 1.3em; |
| 396 |
font-weight: 600; |
| 397 |
color: #1d2327; |
| 398 |
line-height: 1.4; |
| 399 |
} |
| 400 |
|
| 401 |
/* Available fields filter input */ |
| 402 |
.accua-fields-filter { |
| 403 |
display: block; |
| 404 |
width: 98%; |
| 405 |
padding: 10px; |
| 406 |
margin-bottom: 7px; |
| 407 |
font-size: 14px; |
| 408 |
border: 1px solid #dcdcde; |
| 409 |
border-radius: 0; |
| 410 |
box-sizing: border-box; |
| 411 |
background: #fff; |
| 412 |
} |
| 413 |
|
| 414 |
.accua-fields-filter:focus { |
| 415 |
border-color: #2271b1; |
| 416 |
box-shadow: 0 0 0 1px #2271b1; |
| 417 |
outline: none; |
| 418 |
} |
| 419 |
|
| 420 |
/* Preview pane — column 3 (or 2 for non-fields tabs), scrollable */ |
| 421 |
#accua_forms_edit_page .accua-form-preview-pane { |
| 422 |
grid-column: 2; |
| 423 |
grid-row: 2; |
| 424 |
min-height: 200px; |
| 425 |
border-left: 1px solid #e0e0e0; |
| 426 |
padding-left: 16px; |
| 427 |
align-self: start; |
| 428 |
} |
| 429 |
|
| 430 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="fields"]:not([hidden])) > .accua-form-preview-pane { |
| 431 |
grid-column: 3; |
| 432 |
grid-row: 2; |
| 433 |
} |
| 434 |
|
| 435 |
/* 3-column grid when Appearance tab is active — preview is 50% of total width */ |
| 436 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="customise"]:not([hidden])) { |
| 437 |
grid-template-columns: 5fr 5fr calc(50% - 8px); |
| 438 |
} |
| 439 |
|
| 440 |
#accua_forms_edit_page #accua_tabs > [data-tab="customise"]:not([hidden]) { |
| 441 |
display: contents; |
| 442 |
} |
| 443 |
|
| 444 |
#accua_forms_edit_page #accua_tabs > [data-tab="customise"]:not([hidden]) > .accua-customise-columns { |
| 445 |
display: contents; |
| 446 |
} |
| 447 |
|
| 448 |
#accua_forms_edit_page #accua_tabs > [data-tab="customise"]:not([hidden]) > .accua-customise-columns > .accua-style-column:first-child { |
| 449 |
grid-column: 1; |
| 450 |
grid-row: 2; |
| 451 |
min-width: 0; |
| 452 |
padding-top: 16px; |
| 453 |
} |
| 454 |
|
| 455 |
#accua_forms_edit_page #accua_tabs > [data-tab="customise"]:not([hidden]) > .accua-customise-columns > .accua-style-column:last-child { |
| 456 |
grid-column: 2; |
| 457 |
grid-row: 2; |
| 458 |
min-width: 0; |
| 459 |
padding-top: 16px; |
| 460 |
} |
| 461 |
|
| 462 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="customise"]:not([hidden])) > .accua-form-preview-pane { |
| 463 |
grid-column: 3; |
| 464 |
grid-row: 2; |
| 465 |
} |
| 466 |
|
| 467 |
#accua_forms_edit_page .accua-form-preview-pane[hidden] { |
| 468 |
display: none; |
| 469 |
} |
| 470 |
|
| 471 |
@media screen and (max-width: 1200px) { |
| 472 |
#accua_forms_edit_page #accua_tabs { |
| 473 |
grid-template-columns: 1fr; |
| 474 |
} |
| 475 |
/* Fields tab: 2-column grid (available | inserted), preview below */ |
| 476 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="fields"]:not([hidden])) { |
| 477 |
grid-template-columns: 3fr 7fr; |
| 478 |
} |
| 479 |
#accua_forms_edit_page #accua_tabs > [data-tab="fields"]:not([hidden]) > .widget-liquid-left { |
| 480 |
grid-column: 1; |
| 481 |
grid-row: 2; |
| 482 |
max-height: none; |
| 483 |
overflow-y: visible; |
| 484 |
} |
| 485 |
#accua_forms_edit_page #accua_tabs > [data-tab="fields"]:not([hidden]) > .widget-liquid-right { |
| 486 |
grid-column: 2; |
| 487 |
grid-row: 2; |
| 488 |
max-height: none; |
| 489 |
overflow-y: visible; |
| 490 |
} |
| 491 |
/* Customise tab: 2-column grid (style cols side by side), preview below */ |
| 492 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="customise"]:not([hidden])) { |
| 493 |
grid-template-columns: 1fr 1fr; |
| 494 |
} |
| 495 |
#accua_forms_edit_page #accua_tabs > [data-tab="customise"]:not([hidden]) > .accua-customise-columns > .accua-style-column:first-child { |
| 496 |
grid-column: 1; |
| 497 |
grid-row: 2; |
| 498 |
padding-top: 16px; |
| 499 |
} |
| 500 |
#accua_forms_edit_page #accua_tabs > [data-tab="customise"]:not([hidden]) > .accua-customise-columns > .accua-style-column:last-child { |
| 501 |
grid-column: 2; |
| 502 |
grid-row: 2; |
| 503 |
padding-top: 16px; |
| 504 |
} |
| 505 |
#accua_forms_edit_page #accua_tabs > .accua-tabs__panel { |
| 506 |
grid-column: 1; |
| 507 |
} |
| 508 |
#accua_forms_edit_page .accua-form-preview-pane, |
| 509 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="fields"]:not([hidden])) > .accua-form-preview-pane, |
| 510 |
#accua_forms_edit_page #accua_tabs:has(> [data-tab="customise"]:not([hidden])) > .accua-form-preview-pane { |
| 511 |
grid-column: 1 / -1; |
| 512 |
grid-row: 3; |
| 513 |
border-left: none; |
| 514 |
padding-left: 0; |
| 515 |
border-top: 1px solid #e0e0e0; |
| 516 |
padding-top: 16px; |
| 517 |
max-height: none; |
| 518 |
overflow-y: visible; |
| 519 |
} |
| 520 |
} |
| 521 |
|
| 522 |
.accua-forms-metabox-holder { |
| 523 |
float: left; |
| 524 |
margin-right: 2%; |
| 525 |
width: 47%; |
| 526 |
} |
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
/* Delete form button — modern WordPress destructive action */ |
| 531 |
#accua_forms_edit_page form#delete_form input[type="submit"] { |
| 532 |
background: none; |
| 533 |
border: none; |
| 534 |
color: #d63638; |
| 535 |
cursor: pointer; |
| 536 |
font-size: 13px; |
| 537 |
text-decoration: none; |
| 538 |
padding: 4px 8px; |
| 539 |
border-radius: 2px; |
| 540 |
transition: color 0.15s ease, background-color 0.15s ease; |
| 541 |
} |
| 542 |
|
| 543 |
#accua_forms_edit_page form#delete_form input[type="submit"]:hover { |
| 544 |
background: #d63638; |
| 545 |
color: #fff; |
| 546 |
} |
| 547 |
|
| 548 |
#accua_forms_edit_page form#delete_form input[type="submit"]:focus-visible { |
| 549 |
outline: 2px solid #d63638; |
| 550 |
outline-offset: 1px; |
| 551 |
} |
| 552 |
|
| 553 |
/* Tab header actions alignment */ |
| 554 |
.accua_tabs_actions { |
| 555 |
display: flex; |
| 556 |
align-items: center; |
| 557 |
gap: 12px; |
| 558 |
padding-right: 4px; |
| 559 |
} |
| 560 |
|
| 561 |
/* Tabs header with flexbox layout — tablist + actions side-by-side */ |
| 562 |
.accua-tabs__header { |
| 563 |
display: flex; |
| 564 |
justify-content: space-between; |
| 565 |
align-items: stretch; |
| 566 |
margin-bottom: 0; |
| 567 |
border-bottom: 1px solid #c3c4c7; |
| 568 |
} |
| 569 |
|
| 570 |
/* Override the shared tablist border-bottom — the header provides the full-width line instead */ |
| 571 |
.accua-tabs--primary > .accua-tabs__header > .accua-tabs__tablist { |
| 572 |
border-bottom: none; |
| 573 |
} |
| 574 |
|
| 575 |
/* Default message preview — faithful rendering of email content */ |
| 576 |
[data-tab="messages"] .defalut_content_message { |
| 577 |
margin-top: 8px; |
| 578 |
padding: 0; |
| 579 |
overflow: auto; |
| 580 |
max-height: 300px; |
| 581 |
} |
| 582 |
|
| 583 |
[data-tab="messages"] .defalut_message { |
| 584 |
padding-top: 12px; |
| 585 |
font-weight: 600; |
| 586 |
font-size: 13px; |
| 587 |
color: #50575e; |
| 588 |
} |
| 589 |
|
| 590 |
[data-tab="messages"] .wp-editor-wrap { |
| 591 |
margin-top: 10px; |
| 592 |
} |
| 593 |
|
| 594 |
[data-tab="messages"] input.accua_form_check_override[type="checkbox"] { |
| 595 |
margin-right: 5px; |
| 596 |
} |
| 597 |
|
| 598 |
/* Radio group — vertical stack with clickable labels */ |
| 599 |
.accua-radio-group { |
| 600 |
margin: 0; |
| 601 |
padding: 0; |
| 602 |
border: 0; |
| 603 |
} |
| 604 |
|
| 605 |
.accua-radio-group label { |
| 606 |
display: block; |
| 607 |
padding: 4px 0; |
| 608 |
cursor: pointer; |
| 609 |
} |
| 610 |
|
| 611 |
.accua-radio-group input[type="radio"] { |
| 612 |
margin: 0 6px 0 0; |
| 613 |
vertical-align: middle; |
| 614 |
} |
| 615 |
|
| 616 |
[data-tab="messages"] .accua_form_value[disabled] { |
| 617 |
color: #BBBBBB; |
| 618 |
} |
| 619 |
|
| 620 |
/* Submissions page: vertical spacing when action rows wrap */ |
| 621 |
#accua_forms_submissions_list_page .tablenav .actions { |
| 622 |
margin-bottom: 6px; |
| 623 |
} |
| 624 |
|
| 625 |
/* Submissions page: expandable long values */ |
| 626 |
/* Single text copy: the link itself is truncated while collapsed. A duplicated |
| 627 |
preview (the old <details>/<summary> structure) made browser find-in-page |
| 628 |
count every match in these cells twice. */ |
| 629 |
.accua-expandable-cell { |
| 630 |
display: flex; |
| 631 |
align-items: baseline; |
| 632 |
} |
| 633 |
|
| 634 |
.accua-expandable-cell .accua-expandable-text { |
| 635 |
flex: 0 1 auto; |
| 636 |
min-width: 0; |
| 637 |
overflow: hidden; |
| 638 |
white-space: nowrap; |
| 639 |
text-overflow: ellipsis; |
| 640 |
} |
| 641 |
|
| 642 |
.accua-expandable-cell .accua-expandable-toggle { |
| 643 |
flex: none; |
| 644 |
background: none; |
| 645 |
border: 0; |
| 646 |
padding: 0 0 0 3px; |
| 647 |
cursor: pointer; |
| 648 |
color: #2271b1; |
| 649 |
font-size: 11px; |
| 650 |
line-height: inherit; |
| 651 |
} |
| 652 |
|
| 653 |
/* Expanded: lift the truncation; pre-line keeps the line breaks of multi-line |
| 654 |
values (URLs have none, they just wrap — anywhere handles unbroken strings) */ |
| 655 |
.accua-expandable-cell.open .accua-expandable-text { |
| 656 |
overflow: visible; |
| 657 |
white-space: pre-line; |
| 658 |
overflow-wrap: anywhere; |
| 659 |
} |
| 660 |
|
| 661 |
.accua-expandable-cell.open .accua-expandable-toggle { |
| 662 |
font-size: 13px; |
| 663 |
} |
| 664 |
|
| 665 |
#accua_form_preview_area_wrapper { |
| 666 |
position: relative; |
| 667 |
width: 100%; |
| 668 |
overflow: unset; |
| 669 |
} |
| 670 |
|
| 671 |
#accua_form_preview_area_wrapper .ui-resizable-handle.ui-resizable-s{ |
| 672 |
display: none !important; |
| 673 |
} |
| 674 |
|
| 675 |
#accua_form_preview_area { |
| 676 |
/* position: absolute; |
| 677 |
top: 0; |
| 678 |
left: 0; |
| 679 |
bottom: 0; |
| 680 |
right: 0;*/ |
| 681 |
width: 100%; |
| 682 |
height: 100%; |
| 683 |
border: none; |
| 684 |
min-height: 400px; |
| 685 |
} |
| 686 |
|
| 687 |
/* Fields page: invalid-field highlight. Core only paints .form-invalid when |
| 688 |
the wrapper is also .form-required, so cover every .form-field here. */ |
| 689 |
#accua_forms_fields_page .form-field.form-invalid input, |
| 690 |
#accua_forms_fields_page .form-field.form-invalid textarea, |
| 691 |
#accua_forms_fields_page .form-field.form-invalid select { |
| 692 |
border-color: #d63638; |
| 693 |
box-shadow: 0 0 0 1px #d63638; |
| 694 |
} |
| 695 |
|
| 696 |
/* Fields page: inline slug validation message */ |
| 697 |
#accua_forms_fields_page .accua-slug-feedback { |
| 698 |
color: #d63638; |
| 699 |
margin: 4px 0 0; |
| 700 |
} |
| 701 |
|
| 702 |
/* Fields page: separator above the essential-columns checkbox — the last |
| 703 |
option of the editor, kept visually apart because it only affects the |
| 704 |
submissions-list columns, never how the field renders in forms. */ |
| 705 |
#field-section-essential-column hr { |
| 706 |
margin: 1.5em 0; |
| 707 |
border: 0; |
| 708 |
border-top: 1px solid #dcdcde; |
| 709 |
} |
| 710 |
|
| 711 |
/* Fields page: live preview panel (top of #col-right, above the list table). |
| 712 |
The panel h3 keeps the default heading margin so "Live preview" aligns |
| 713 |
with the editor heading in the left column. */ |
| 714 |
#accua-field-preview-panel { |
| 715 |
margin: 0 0 24px; |
| 716 |
} |
| 717 |
|
| 718 |
#accua-field-preview-wrapper { |
| 719 |
position: relative; |
| 720 |
border: 1px solid #c3c4c7; |
| 721 |
border-radius: 2px; |
| 722 |
background: #fff; |
| 723 |
overflow: hidden; |
| 724 |
} |
| 725 |
|
| 726 |
/* The frame starts compact (below the 80px measure floor, so the first |
| 727 |
render can only grow it) and every height change animates: the preview |
| 728 |
never appears oversized and never snaps — it grows to its measured size. */ |
| 729 |
#accua-field-preview { |
| 730 |
display: block; |
| 731 |
width: 100%; |
| 732 |
height: 48px; |
| 733 |
border: 0; |
| 734 |
transition: height 0.25s ease, opacity 0.15s linear; |
| 735 |
} |
| 736 |
|
| 737 |
/* Preview loading state - Modern accessible design */ |
| 738 |
#accua_form_preview_area_wrapper.accua-form-preview-loading { |
| 739 |
position: relative; |
| 740 |
} |
| 741 |
|
| 742 |
#accua_form_preview_area_wrapper.accua-form-preview-loading::after { |
| 743 |
content: ""; |
| 744 |
position: absolute; |
| 745 |
top: 0; |
| 746 |
left: 0; |
| 747 |
right: 0; |
| 748 |
bottom: 0; |
| 749 |
background: rgba(255, 255, 255, 0.85); |
| 750 |
z-index: 10; |
| 751 |
} |
| 752 |
|
| 753 |
#accua_form_preview_area_wrapper.accua-form-preview-loading::before { |
| 754 |
content: ""; |
| 755 |
position: absolute; |
| 756 |
top: 50%; |
| 757 |
left: 50%; |
| 758 |
width: 28px; |
| 759 |
height: 28px; |
| 760 |
margin: -14px 0 0 -14px; |
| 761 |
border: 3px solid #2271b1; |
| 762 |
border-top-color: transparent; |
| 763 |
border-radius: 50%; |
| 764 |
z-index: 11; |
| 765 |
animation: accua-form-loading-spin 0.75s linear infinite; |
| 766 |
} |
| 767 |
|
| 768 |
/* Fields page preview: subtler loading treatment than the form editor's |
| 769 |
veil + large spinner — the frame keeps its size, the content is fully |
| 770 |
hidden (the white wrapper shows through) and a small WP-size spinner |
| 771 |
sits centered. Opacity 0 matters: the settle logic reveals the frame |
| 772 |
only after its load event, i.e. with stylesheets applied, so a document |
| 773 |
still loading its CSS can never flash unstyled. No layout impact. */ |
| 774 |
#accua-field-preview-wrapper.accua-form-preview-loading #accua-field-preview { |
| 775 |
opacity: 0; |
| 776 |
} |
| 777 |
|
| 778 |
#accua-field-preview-wrapper.accua-form-preview-loading::before { |
| 779 |
content: ""; |
| 780 |
position: absolute; |
| 781 |
top: 50%; |
| 782 |
left: 50%; |
| 783 |
width: 16px; |
| 784 |
height: 16px; |
| 785 |
margin: -8px 0 0 -8px; |
| 786 |
border: 2px solid #c3c4c7; |
| 787 |
border-top-color: #2271b1; |
| 788 |
border-radius: 50%; |
| 789 |
z-index: 11; |
| 790 |
animation: accua-form-loading-spin 0.75s linear infinite; |
| 791 |
} |
| 792 |
|
| 793 |
/* Reduce motion for users who prefer it (EAA/WCAG compliance) */ |
| 794 |
@media (prefers-reduced-motion: reduce) { |
| 795 |
#accua_form_preview_area_wrapper.accua-form-preview-loading::before, |
| 796 |
#accua-field-preview-wrapper.accua-form-preview-loading::before { |
| 797 |
animation: none; |
| 798 |
border-color: #2271b1; |
| 799 |
opacity: 0.6; |
| 800 |
} |
| 801 |
|
| 802 |
#accua-field-preview { |
| 803 |
transition: none; |
| 804 |
} |
| 805 |
} |
| 806 |
|
| 807 |
@keyframes accua-form-loading-spin { |
| 808 |
to { |
| 809 |
transform: rotate(360deg); |
| 810 |
} |
| 811 |
} |
| 812 |
|
| 813 |
#accua_forms_edit_page #dialog_token { |
| 814 |
padding: 0 20px 20px; |
| 815 |
} |
| 816 |
|
| 817 |
#accua_forms_edit_page .defalut_content_message { |
| 818 |
word-wrap: break-word; |
| 819 |
overflow-wrap: break-word; |
| 820 |
} |
| 821 |
|
| 822 |
.accua_forms_admin_page textarea { |
| 823 |
resize: vertical; |
| 824 |
} |
| 825 |
/* |
| 826 |
.widget-content p{ |
| 827 |
width: 47%; |
| 828 |
float: left; |
| 829 |
margin-right: 5px; |
| 830 |
} |
| 831 |
*/.widget-title h3, .widget-title h4 { |
| 832 |
padding: 10px; |
| 833 |
font-size: 14px; |
| 834 |
min-width: 0; |
| 835 |
word-wrap: break-word; |
| 836 |
} |
| 837 |
|
| 838 |
#accua_forms_edit_page .widget-title h4 { |
| 839 |
white-space: normal; |
| 840 |
overflow: visible; |
| 841 |
text-overflow: clip; |
| 842 |
} |
| 843 |
|
| 844 |
.widget-control-remove.delete{ |
| 845 |
color: #b32d2e; |
| 846 |
} |
| 847 |
|
| 848 |
|
| 849 |
/* Save button states - WordPress-style inline feedback (DRY: shared between global and field save buttons) */ |
| 850 |
.accua_form_save_settings_button, |
| 851 |
.accua-field-save-btn { |
| 852 |
position: relative; |
| 853 |
min-width: 80px; |
| 854 |
transition: background-color 0.2s ease, border-color 0.2s ease; |
| 855 |
} |
| 856 |
|
| 857 |
/* Saving state - border spinner animation with visible text */ |
| 858 |
.accua_form_save_settings_button.accua-saving-active, |
| 859 |
.accua-field-save-btn.accua-saving-active { |
| 860 |
pointer-events: none; |
| 861 |
border-color: transparent !important; |
| 862 |
background-image: none; |
| 863 |
animation: accua-btn-border-spin 0.8s linear infinite; |
| 864 |
box-shadow: inset 0 0 0 2px #0073aa; |
| 865 |
} |
| 866 |
|
| 867 |
@keyframes accua-btn-border-spin { |
| 868 |
0% { box-shadow: inset 0 0 0 2px #0073aa, inset 0 -20px 0 0 rgba(0, 115, 170, 0.1); } |
| 869 |
25% { box-shadow: inset 0 0 0 2px #0073aa, inset 20px 0 0 0 rgba(0, 115, 170, 0.1); } |
| 870 |
50% { box-shadow: inset 0 0 0 2px #0073aa, inset 0 20px 0 0 rgba(0, 115, 170, 0.1); } |
| 871 |
75% { box-shadow: inset 0 0 0 2px #0073aa, inset -20px 0 0 0 rgba(0, 115, 170, 0.1); } |
| 872 |
100% { box-shadow: inset 0 0 0 2px #0073aa, inset 0 -20px 0 0 rgba(0, 115, 170, 0.1); } |
| 873 |
} |
| 874 |
|
| 875 |
/* Saved state - green background with checkmark after text */ |
| 876 |
.accua_form_save_settings_button.accua-saved-active, |
| 877 |
.accua-field-save-btn.accua-saved-active { |
| 878 |
background-color: #00a32a !important; |
| 879 |
border-color: #00a32a !important; |
| 880 |
color: #fff !important; |
| 881 |
} |
| 882 |
|
| 883 |
.accua_form_save_settings_button.accua-saved-active::after, |
| 884 |
.accua-field-save-btn.accua-saved-active::after { |
| 885 |
content: ' ✓'; |
| 886 |
font-weight: bold; |
| 887 |
} |
| 888 |
|
| 889 |
/* Error state */ |
| 890 |
.accua_form_save_settings_button.accua-error, |
| 891 |
.accua-field-save-btn.accua-error { |
| 892 |
background-color: #d63638 !important; |
| 893 |
border-color: #d63638 !important; |
| 894 |
color: #fff !important; |
| 895 |
} |
| 896 |
|
| 897 |
/* Reduce motion for accessibility */ |
| 898 |
@media (prefers-reduced-motion: reduce) { |
| 899 |
.accua_form_save_settings_button.accua-saving-active, |
| 900 |
.accua-field-save-btn.accua-saving-active { |
| 901 |
animation: none; |
| 902 |
box-shadow: inset 0 0 0 2px #0073aa; |
| 903 |
} |
| 904 |
} |
| 905 |
|
| 906 |
.widgets-holder-wrap.dashed{ |
| 907 |
border: 2px dashed #c3c4c7; |
| 908 |
} |
| 909 |
.widgets-holder-wrap.dashed h3 { |
| 910 |
padding: 20px !important; |
| 911 |
} |
| 912 |
.widgets-holder-wrap.dashed .widgets-sortables.ui-sortable { |
| 913 |
margin-top: 22px !important; |
| 914 |
margin-bottom: 22px !important; |
| 915 |
} |
| 916 |
|
| 917 |
[data-tab="customise"] .accua_form_value[type="text"]{ |
| 918 |
width: 67%; |
| 919 |
float: right; |
| 920 |
} |
| 921 |
[data-tab="customise"] .wp-picker-input-wrap .accua_form_value[type="text"]{ |
| 922 |
width: 100%; |
| 923 |
float: right; |
| 924 |
} |
| 925 |
|
| 926 |
/* ============================================ |
| 927 |
Grafica e generali - Redesigned Style Editor |
| 928 |
============================================ */ |
| 929 |
|
| 930 |
/* Two-column layout */ |
| 931 |
.accua-customise-columns { |
| 932 |
display: flex; |
| 933 |
flex-wrap: wrap; |
| 934 |
gap: 30px; |
| 935 |
} |
| 936 |
|
| 937 |
[data-tab="customise"] .accua-style-column { |
| 938 |
flex: 1 1 calc(50% - 15px); |
| 939 |
min-width: 280px; |
| 940 |
box-sizing: border-box; |
| 941 |
} |
| 942 |
|
| 943 |
/* Section headers */ |
| 944 |
[data-tab="customise"] h2 { |
| 945 |
font-size: 1.3em; |
| 946 |
font-weight: 600; |
| 947 |
color: #1d2327; |
| 948 |
margin: 16px 0 12px 0; |
| 949 |
padding: 0; |
| 950 |
line-height: 1.4; |
| 951 |
} |
| 952 |
|
| 953 |
[data-tab="customise"] h2:first-of-type { |
| 954 |
margin-top: 0; |
| 955 |
} |
| 956 |
|
| 957 |
/* General section paragraphs */ |
| 958 |
.accua-customise-columns > .accua-style-column > p { |
| 959 |
margin: 0 0 12px 0; |
| 960 |
padding: 0; |
| 961 |
font-size: 13px; |
| 962 |
line-height: 1.5; |
| 963 |
} |
| 964 |
|
| 965 |
/* Style row - consistent height with inline inputs */ |
| 966 |
.accua-style-row { |
| 967 |
display: flex; |
| 968 |
align-items: flex-start; /* Changed from center to allow vertical expansion */ |
| 969 |
gap: 8px; |
| 970 |
padding: 6px 8px; |
| 971 |
margin: 0 -8px; |
| 972 |
min-height: 40px; /* Minimum height for consistency */ |
| 973 |
background: transparent; |
| 974 |
border: none; |
| 975 |
border-radius: 3px; |
| 976 |
box-sizing: border-box; |
| 977 |
transition: background-color 0.15s ease; |
| 978 |
} |
| 979 |
|
| 980 |
/* Align checkbox and label to the top when color picker is open */ |
| 981 |
.accua-style-row .accua-style-toggle, |
| 982 |
.accua-style-row .accua-style-content { |
| 983 |
padding-top: 4px; /* Align with first row of content */ |
| 984 |
} |
| 985 |
|
| 986 |
/* Active state when checkbox is checked */ |
| 987 |
.accua-style-row:has(input[type="checkbox"]:checked) { |
| 988 |
background: #f0f6fc; |
| 989 |
} |
| 990 |
|
| 991 |
/* Hover state for better interactivity feedback */ |
| 992 |
.accua-style-row:hover { |
| 993 |
background: #f6f7f7; |
| 994 |
} |
| 995 |
|
| 996 |
.accua-style-row:has(input[type="checkbox"]:checked):hover { |
| 997 |
background: #e8f2fb; |
| 998 |
} |
| 999 |
|
| 1000 |
/* Toggle column (checkbox) */ |
| 1001 |
.accua-style-toggle { |
| 1002 |
flex: 0 0 18px; |
| 1003 |
} |
| 1004 |
|
| 1005 |
.accua-style-toggle input[type="checkbox"] { |
| 1006 |
margin: 0; |
| 1007 |
cursor: pointer; |
| 1008 |
} |
| 1009 |
|
| 1010 |
/* Content column - inline layout, allows vertical expansion for color picker */ |
| 1011 |
.accua-style-content { |
| 1012 |
flex: 1; |
| 1013 |
display: flex; |
| 1014 |
flex-direction: row; |
| 1015 |
flex-wrap: wrap; /* Allow wrapping for color picker to go below */ |
| 1016 |
align-items: flex-start; |
| 1017 |
gap: 10px; |
| 1018 |
min-width: 0; |
| 1019 |
} |
| 1020 |
|
| 1021 |
/* CSS Property label - compact inline style */ |
| 1022 |
.accua-style-label { |
| 1023 |
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; |
| 1024 |
font-size: 12px; |
| 1025 |
font-weight: 500; |
| 1026 |
color: #50575e; |
| 1027 |
min-width: 120px; |
| 1028 |
flex-shrink: 0; |
| 1029 |
cursor: pointer; |
| 1030 |
} |
| 1031 |
|
| 1032 |
.accua-style-row:has(input[type="checkbox"]:checked) .accua-style-label { |
| 1033 |
color: #135e96; |
| 1034 |
font-weight: 600; |
| 1035 |
} |
| 1036 |
|
| 1037 |
/* Text input styling */ |
| 1038 |
.accua-style-content input[type="text"]:not(.wp-color-picker) { |
| 1039 |
width: 100px; |
| 1040 |
padding: 4px 8px; |
| 1041 |
font-size: 12px; |
| 1042 |
border: 1px solid #8c8f94; |
| 1043 |
border-radius: 3px; |
| 1044 |
background: #fff; |
| 1045 |
box-sizing: border-box; |
| 1046 |
} |
| 1047 |
|
| 1048 |
.accua-style-content input[type="text"]:not(.wp-color-picker):focus { |
| 1049 |
border-color: #2271b1; |
| 1050 |
outline: none; |
| 1051 |
box-shadow: 0 0 0 1px #2271b1; |
| 1052 |
} |
| 1053 |
|
| 1054 |
/* Hide input when checkbox is unchecked */ |
| 1055 |
.accua-style-row:not(:has(input[type="checkbox"]:checked)) .accua-style-content input[type="text"]:not(.wp-color-picker), |
| 1056 |
.accua-style-row:not(:has(input[type="checkbox"]:checked)) .accua-style-content .wp-picker-container { |
| 1057 |
display: none; |
| 1058 |
} |
| 1059 |
|
| 1060 |
/* Help text - hidden (redundant with labels) */ |
| 1061 |
.accua-style-help { |
| 1062 |
display: none !important; |
| 1063 |
} |
| 1064 |
|
| 1065 |
/* Color swatch button - compact */ |
| 1066 |
.accua-style-content .wp-picker-container .wp-color-result { |
| 1067 |
height: 28px; |
| 1068 |
min-height: 28px; |
| 1069 |
border-radius: 3px; |
| 1070 |
box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); |
| 1071 |
margin: 0; |
| 1072 |
} |
| 1073 |
|
| 1074 |
/* Hide the "Seleziona un colore" label text - we show hex value instead */ |
| 1075 |
.accua-style-content .wp-picker-container .wp-color-result-text { |
| 1076 |
display: none; |
| 1077 |
} |
| 1078 |
|
| 1079 |
/* Hex input field - ALWAYS visible and styled */ |
| 1080 |
.accua-style-content .wp-picker-container .wp-picker-input-wrap { |
| 1081 |
display: inline-flex !important; /* Force always visible - WordPress hides by default */ |
| 1082 |
align-items: center; |
| 1083 |
gap: 4px; |
| 1084 |
margin-left: 6px; |
| 1085 |
} |
| 1086 |
|
| 1087 |
/* Hide only the screen reader text, not the entire label (which contains the input!) */ |
| 1088 |
.accua-style-content .wp-picker-container .wp-picker-input-wrap label .screen-reader-text { |
| 1089 |
position: absolute; |
| 1090 |
clip: rect(1px, 1px, 1px, 1px); |
| 1091 |
width: 1px; |
| 1092 |
height: 1px; |
| 1093 |
overflow: hidden; |
| 1094 |
padding: 0; |
| 1095 |
margin: -1px; |
| 1096 |
} |
| 1097 |
|
| 1098 |
.accua-style-content .wp-picker-container .wp-color-picker { |
| 1099 |
display: inline-block !important; /* Force always visible */ |
| 1100 |
width: 80px !important; |
| 1101 |
padding: 4px 6px; |
| 1102 |
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; |
| 1103 |
font-size: 12px; |
| 1104 |
border: 1px solid #8c8f94; |
| 1105 |
border-radius: 3px; |
| 1106 |
background: #fff; |
| 1107 |
box-sizing: border-box; |
| 1108 |
height: 28px; |
| 1109 |
} |
| 1110 |
|
| 1111 |
.accua-style-content .wp-picker-container .wp-color-picker:focus { |
| 1112 |
border-color: #2271b1; |
| 1113 |
outline: none; |
| 1114 |
box-shadow: 0 0 0 1px #2271b1; |
| 1115 |
} |
| 1116 |
|
| 1117 |
/* Clear button styling - compact */ |
| 1118 |
.accua-style-content .wp-picker-container .wp-picker-clear { |
| 1119 |
padding: 4px 8px; |
| 1120 |
font-size: 11px; |
| 1121 |
line-height: 1.4; |
| 1122 |
height: 28px; |
| 1123 |
margin: 0; |
| 1124 |
} |
| 1125 |
|
| 1126 |
/* Color picker container - appears below the checkbox/label row */ |
| 1127 |
.accua-style-content .wp-picker-container { |
| 1128 |
flex-basis: 100%; |
| 1129 |
display: flex; |
| 1130 |
flex-wrap: wrap; |
| 1131 |
align-items: center; |
| 1132 |
gap: 6px; |
| 1133 |
} |
| 1134 |
|
| 1135 |
/* Iris color picker holder - below the controls */ |
| 1136 |
.accua-style-content .wp-picker-container .wp-picker-holder { |
| 1137 |
position: relative; |
| 1138 |
z-index: 1; |
| 1139 |
flex-basis: 100%; |
| 1140 |
margin-top: 4px; |
| 1141 |
} |
| 1142 |
|
| 1143 |
/* Style row to accommodate expanded color picker */ |
| 1144 |
.accua-style-row:has(.wp-picker-active) { |
| 1145 |
z-index: 1; |
| 1146 |
} |
| 1147 |
|
| 1148 |
/* Responsive adjustments */ |
| 1149 |
@media screen and (max-width: 1200px) { |
| 1150 |
[data-tab="customise"] .accua-style-column { |
| 1151 |
flex: 1 1 100%; |
| 1152 |
} |
| 1153 |
|
| 1154 |
[data-tab="customise"] h2:not(:first-of-type) { |
| 1155 |
margin-top: 30px; |
| 1156 |
} |
| 1157 |
} |
| 1158 |
|
| 1159 |
/* ========================================================================== |
| 1160 |
Settings page — Tab panel overrides |
| 1161 |
========================================================================== */ |
| 1162 |
|
| 1163 |
#accua_settings_tabs > .accua-tabs__panel { |
| 1164 |
min-height: 0; |
| 1165 |
background: transparent; |
| 1166 |
padding: 20px 0 0; |
| 1167 |
} |
| 1168 |
|
| 1169 |
/* Retention panel — transparent background */ |
| 1170 |
[data-tab="retention"] { |
| 1171 |
min-height: 0; |
| 1172 |
background: transparent; |
| 1173 |
padding: 20px 10px 10px; |
| 1174 |
} |
| 1175 |
|
| 1176 |
/* Full-width panels in settings tabs */ |
| 1177 |
#accua_settings_tabs .accua-forms-metabox-holder { |
| 1178 |
float: none; |
| 1179 |
width: auto; |
| 1180 |
margin-right: 0; |
| 1181 |
} |
| 1182 |
|
| 1183 |
/* ========================================================================== |
| 1184 |
Settings page — Section layout |
| 1185 |
Uses native WordPress .postbox + .inside for grouped settings sections. |
| 1186 |
Only custom overrides below for grid layout and minor adjustments. |
| 1187 |
========================================================================== */ |
| 1188 |
|
| 1189 |
/* Postbox header h2: match native .hndle padding without cursor:move */ |
| 1190 |
.postbox > .postbox-header > h2 { |
| 1191 |
padding: 1rem 12px; |
| 1192 |
margin: 0; |
| 1193 |
} |
| 1194 |
|
| 1195 |
/* Danger variant */ |
| 1196 |
.postbox.accua-danger-zone { |
| 1197 |
border-color: #d63638; |
| 1198 |
} |
| 1199 |
|
| 1200 |
/* Messages tab — 2-column grid */ |
| 1201 |
.accua-settings-grid { |
| 1202 |
display: grid; |
| 1203 |
grid-template-columns: repeat(2, 1fr); |
| 1204 |
gap: 16px; |
| 1205 |
} |
| 1206 |
|
| 1207 |
.accua-settings-grid > .postbox { |
| 1208 |
min-height: 320px; |
| 1209 |
margin-bottom: 0; |
| 1210 |
} |
| 1211 |
|
| 1212 |
@media screen and (max-width: 1200px) { |
| 1213 |
.accua-settings-grid { |
| 1214 |
grid-template-columns: 1fr; |
| 1215 |
} |
| 1216 |
} |
| 1217 |
|
| 1218 |
/* ========================================================================== |
| 1219 |
Form edit page layout — Fields tab helpers |
| 1220 |
========================================================================== */ |
| 1221 |
|
| 1222 |
#accua_tabs [data-tab="fields"] #widgets-left { |
| 1223 |
padding-top: 0; |
| 1224 |
margin-right: 0; |
| 1225 |
} |
| 1226 |
|
| 1227 |
#accua_tabs [data-tab="fields"] #widgets-right { |
| 1228 |
width: 100%; |
| 1229 |
} |
| 1230 |
|
| 1231 |
#accua_tabs [data-tab="fields"] #widgets-right .widgets-holder-wrap { |
| 1232 |
margin-top: 0; |
| 1233 |
} |
| 1234 |
|
| 1235 |
/* note */ |
| 1236 |
|
| 1237 |
input#delete-sub-data, input#delete-note { |
| 1238 |
background: none; |
| 1239 |
border: none; |
| 1240 |
padding: 0; |
| 1241 |
text-decoration: underline; |
| 1242 |
cursor: pointer; |
| 1243 |
} |
| 1244 |
input#delete-note { |
| 1245 |
display: inline-block; |
| 1246 |
} |
| 1247 |
.system-note .note_content { |
| 1248 |
padding: 10px; |
| 1249 |
background: #efefef; |
| 1250 |
position: relative; |
| 1251 |
line-height: 18px; |
| 1252 |
font-size: 14px; |
| 1253 |
} |
| 1254 |
.system-note .note_content::after { |
| 1255 |
content: ""; |
| 1256 |
display: block; |
| 1257 |
position: absolute; |
| 1258 |
bottom: -10px; |
| 1259 |
left: 20px; |
| 1260 |
width: 0; |
| 1261 |
height: 0; |
| 1262 |
border-width: 10px 10px 0 0; |
| 1263 |
border-style: solid; |
| 1264 |
border-color: #efefef transparent; |
| 1265 |
} |
| 1266 |
.system-note p.meta, form#delete-note { |
| 1267 |
padding: 10px; |
| 1268 |
color: #999; |
| 1269 |
margin: 0; |
| 1270 |
display: inline-block; |
| 1271 |
} |
| 1272 |
form#delete-note { |
| 1273 |
padding: 0; |
| 1274 |
} |
| 1275 |
|
| 1276 |
/* Lead status row: select + tooltip + progress aligned */ |
| 1277 |
.accua-lead-status-row { |
| 1278 |
display: flex; |
| 1279 |
align-items: center; |
| 1280 |
gap: 4px; |
| 1281 |
margin-bottom: 16px; |
| 1282 |
} |
| 1283 |
|
| 1284 |
.accua-lead-status-row .dashicons-editor-help { |
| 1285 |
color: #787c82; |
| 1286 |
cursor: pointer; |
| 1287 |
} |
| 1288 |
|
| 1289 |
|
| 1290 |
|
| 1291 |
th#lead_status { |
| 1292 |
width: 200px; |
| 1293 |
} |
| 1294 |
|
| 1295 |
/* ============================================ |
| 1296 |
Restore Default Button Styles |
| 1297 |
============================================ */ |
| 1298 |
|
| 1299 |
.accua-restore-default-wrapper { |
| 1300 |
margin-top: 12px; |
| 1301 |
padding-top: 12px; |
| 1302 |
border-top: 1px solid #f0f0f1; |
| 1303 |
} |
| 1304 |
|
| 1305 |
.accua-restore-default-wrapper .description { |
| 1306 |
color: #787c82; |
| 1307 |
font-size: 12px; |
| 1308 |
font-style: italic; |
| 1309 |
margin-left: 8px; |
| 1310 |
} |
| 1311 |
|
| 1312 |
/* Success state */ |
| 1313 |
.accua-restore-default-btn.accua-restored { |
| 1314 |
color: #00a32a !important; |
| 1315 |
} |
| 1316 |
|
| 1317 |
/* Error state */ |
| 1318 |
.accua-restore-default-btn.accua-error { |
| 1319 |
color: #d63638 !important; |
| 1320 |
} |
| 1321 |
|
| 1322 |
/* ========================================================================== |
| 1323 |
Dashboard page |
| 1324 |
========================================================================== */ |
| 1325 |
|
| 1326 |
#accua-forms-graph-content { |
| 1327 |
padding: 20px; |
| 1328 |
} |
| 1329 |
|
| 1330 |
#accua-form-report-graph { |
| 1331 |
height: 300px; |
| 1332 |
} |
| 1333 |
|
| 1334 |
#accua_dashboard_page .postbox > .inside { |
| 1335 |
padding: 20px; |
| 1336 |
} |
| 1337 |
|
| 1338 |
/* Single submission page */ |
| 1339 |
#accua_forms_submissions_list_page #poststuff .postbox > .inside { |
| 1340 |
padding: 16px; |
| 1341 |
} |
| 1342 |
|
| 1343 |
#accua_forms_submissions_list_page #poststuff #note_site_user { |
| 1344 |
width: 100%; |
| 1345 |
margin-bottom: 8px; |
| 1346 |
} |
| 1347 |
|
| 1348 |
#accua_forms_submissions_list_page #accua-notes-form { |
| 1349 |
margin-bottom: 12px; |
| 1350 |
} |
| 1351 |
|
| 1352 |
#accua_forms_submissions_list_page #post-body-content .widefat td:first-child { |
| 1353 |
width: 140px; |
| 1354 |
font-weight: 600; |
| 1355 |
} |
| 1356 |
|
| 1357 |
#accua_forms_submissions_list_page #post-body-content .widefat .accua-field-value { |
| 1358 |
white-space: pre-wrap; |
| 1359 |
} |
| 1360 |
|
| 1361 |
#accua_forms_submissions_list_page #post-body-content .postbox + .postbox { |
| 1362 |
margin-top: 20px; |
| 1363 |
} |
| 1364 |
|
| 1365 |
#accua_forms_submissions_list_page #postbox-container-1 .postbox + .postbox { |
| 1366 |
margin-top: 20px; |
| 1367 |
} |
| 1368 |
|
| 1369 |
#accua_forms_submissions_list_page #postbox-container-1 .inside p:first-child { |
| 1370 |
margin-top: 0; |
| 1371 |
} |
| 1372 |
|
| 1373 |
#accua_dashboard_page .submitdelete { |
| 1374 |
color: #b32d2e; |
| 1375 |
} |
| 1376 |
|
| 1377 |
#accua_dashboard_page .submitdelete:hover { |
| 1378 |
color: #a00; |
| 1379 |
} |
| 1380 |
|
| 1381 |
#accua_dashboard_page td.column-afs_referrer, |
| 1382 |
#accua_dashboard_page td.column-afs_uri { |
| 1383 |
overflow: hidden; |
| 1384 |
white-space: nowrap; |
| 1385 |
text-overflow: ellipsis; |
| 1386 |
} |
| 1387 |
|
| 1388 |
#accua_dashboard_page .column-actions { |
| 1389 |
white-space: nowrap; |
| 1390 |
} |
| 1391 |
|
| 1392 |
/* Without the core 'fixed' table class (dropped for content-based column sizing) |
| 1393 |
the URL columns need an explicit cap, or they grow to the full URL width and |
| 1394 |
the CSS truncation + [+] expandable widget never kick in. */ |
| 1395 |
#accua_forms_submissions_list_page td.column-referrer, |
| 1396 |
#accua_forms_submissions_list_page td.column-uri { |
| 1397 |
max-width: 15em; |
| 1398 |
overflow: hidden; |
| 1399 |
white-space: nowrap; |
| 1400 |
text-overflow: ellipsis; |
| 1401 |
} |
| 1402 |
|
| 1403 |
/* Actions column: the quick-action links (Open | Trash | Spam, ...) must never |
| 1404 |
wrap — with auto table layout the column widens to fit them on one row. */ |
| 1405 |
#accua_forms_submissions_list_page .column-singlesub { |
| 1406 |
white-space: nowrap; |
| 1407 |
} |
| 1408 |
|
| 1409 |
/* Field-value columns: CSS-truncated to one line like the URL columns, so |
| 1410 |
long values (messages) collapse behind the [+] widget expandable-cells.js |
| 1411 |
builds; the expanded state below renders the visitor's line breaks. */ |
| 1412 |
#accua_forms_submissions_list_page .wp-list-table td[class*="column-_field_"] { |
| 1413 |
max-width: 25em; |
| 1414 |
overflow: hidden; |
| 1415 |
white-space: nowrap; |
| 1416 |
text-overflow: ellipsis; |
| 1417 |
} |
| 1418 |
|
| 1419 |
/* Single-submission values: preserve the line breaks the visitor typed — a |
| 1420 |
blank line between paragraphs renders as paragraph spacing (values are |
| 1421 |
esc_html'd, so CSS is the only safe layer for this). */ |
| 1422 |
#accua_forms_submissions_list_page .accua-field-value { |
| 1423 |
white-space: pre-line; |
| 1424 |
} |
| 1425 |
|
| 1426 |
/* Icon-only buttons: the label lives in the title/aria-label attributes. |
| 1427 |
Custom SVGs (assets/img/expand-rows.svg, collapse-rows.svg) applied as a |
| 1428 |
mask so the icon takes the button's text color, hover state included. |
| 1429 |
The button becomes a flex container so the icon is centered exactly, |
| 1430 |
independent of the .button line-height/min-height metrics that differ |
| 1431 |
between WordPress releases. */ |
| 1432 |
#accua_forms_submissions_list_page .accua-toggle-rows { |
| 1433 |
display: inline-flex; |
| 1434 |
align-items: center; |
| 1435 |
justify-content: center; |
| 1436 |
vertical-align: top; |
| 1437 |
} |
| 1438 |
|
| 1439 |
#accua_forms_submissions_list_page .accua-toggle-rows .accua-rows-icon { |
| 1440 |
display: block; |
| 1441 |
width: 16px; |
| 1442 |
height: 16px; |
| 1443 |
background-color: currentColor; |
| 1444 |
} |
| 1445 |
|
| 1446 |
#accua_forms_submissions_list_page .accua-toggle-rows .accua-rows-icon-expand { |
| 1447 |
-webkit-mask: url(../img/expand-rows.svg) center / contain no-repeat; |
| 1448 |
mask: url(../img/expand-rows.svg) center / contain no-repeat; |
| 1449 |
} |
| 1450 |
|
| 1451 |
#accua_forms_submissions_list_page .accua-toggle-rows .accua-rows-icon-collapse { |
| 1452 |
-webkit-mask: url(../img/collapse-rows.svg) center / contain no-repeat; |
| 1453 |
mask: url(../img/collapse-rows.svg) center / contain no-repeat; |
| 1454 |
} |
| 1455 |
|
| 1456 |
#accua_forms_submissions_list_page .submitdelete.deletion { |
| 1457 |
color: #b32d2e; |
| 1458 |
} |
| 1459 |
|
| 1460 |
#accua_forms_submissions_list_page .submitdelete.deletion:hover { |
| 1461 |
color: #a00; |
| 1462 |
} |
| 1463 |
|
| 1464 |
/* Notes */ |
| 1465 |
.accua-note { |
| 1466 |
padding: 12px 0; |
| 1467 |
border-top: 1px solid #f0f0f1; |
| 1468 |
} |
| 1469 |
|
| 1470 |
.accua-note:first-child { |
| 1471 |
border-top: none; |
| 1472 |
padding-top: 0; |
| 1473 |
} |
| 1474 |
|
| 1475 |
.accua-note-content { |
| 1476 |
white-space: pre-wrap; |
| 1477 |
margin-bottom: 4px; |
| 1478 |
} |
| 1479 |
|
| 1480 |
.accua-note-meta { |
| 1481 |
color: #787c82; |
| 1482 |
font-size: 12px; |
| 1483 |
margin: 0; |
| 1484 |
} |
| 1485 |
|
| 1486 |
.accua-note-meta .row-actions { |
| 1487 |
position: static; |
| 1488 |
padding: 0; |
| 1489 |
} |
| 1490 |
|
| 1491 |
.accua-note-meta .button-link { |
| 1492 |
color: #b32d2e; |
| 1493 |
text-decoration: none; |
| 1494 |
font-size: 12px; |
| 1495 |
} |
| 1496 |
|
| 1497 |
.accua-note-meta .button-link:hover, |
| 1498 |
.accua-note-meta .button-link:focus { |
| 1499 |
color: #a00; |
| 1500 |
text-decoration: underline; |
| 1501 |
} |
| 1502 |
|
| 1503 |
|
| 1504 |
/* Dashboard "Last 10 submissions": center cells vertically against the taller lead-status select */ |
| 1505 |
.widefat.accua-last-submissions td { |
| 1506 |
vertical-align: middle; |
| 1507 |
} |
| 1508 |
|