booking
/
includes
/
page-setup-wizard
/
step-booking-form-template
/
_src
/
step-booking-form-template.css
step-booking-form-template.css in Booking Calendar 11.9, at includes/page-setup-wizard/step-booking-form-template/_src/step-booking-form-template.css
| 1 | /** |
| 2 | * Reusable Booking Form template selector presentation. |
| 3 | * |
| 4 | * @package Booking Calendar |
| 5 | */ |
| 6 | |
| 7 | .wpbc_setup_wizard__booking-form-layout { |
| 8 | display: grid; |
| 9 | grid-template-columns: minmax(0, 1fr); |
| 10 | gap: 18px; |
| 11 | } |
| 12 | |
| 13 | .wpbc_setup_wizard__template-library, |
| 14 | .wpbc_setup_wizard__booking-form-usage-panel, |
| 15 | .wpbc_setup_wizard__template-preview-panel { |
| 16 | min-width: 0; |
| 17 | border: 1px solid var(--wpbc-wizard-border); |
| 18 | border-radius: 6px; |
| 19 | background: #fff; |
| 20 | box-shadow: 0 2px 8px rgba(25, 35, 45, 0.04); |
| 21 | } |
| 22 | |
| 23 | .wpbc_setup_wizard__template-library { |
| 24 | padding: 18px; |
| 25 | } |
| 26 | |
| 27 | .wpbc_setup_wizard__template-library h2, |
| 28 | .wpbc_setup_wizard__template-preview-toolbar h2 { |
| 29 | margin: 0; |
| 30 | font-size: 19px; |
| 31 | font-weight: 600; |
| 32 | } |
| 33 | |
| 34 | .wpbc_setup_wizard__template-controls { |
| 35 | display: grid; |
| 36 | grid-template-columns: auto minmax(280px, 1fr) minmax(0, 620px); |
| 37 | min-width: 0; |
| 38 | align-items: center; |
| 39 | gap: 20px; |
| 40 | } |
| 41 | |
| 42 | .wpbc_setup_wizard__template-controls h2 { |
| 43 | white-space: nowrap; |
| 44 | } |
| 45 | |
| 46 | .wpbc_setup_wizard__template-search { |
| 47 | display: block; |
| 48 | margin: 0; |
| 49 | border: 1px solid #aeb6bf; |
| 50 | border-radius: 4px; |
| 51 | background: #fff; |
| 52 | color: #507593; |
| 53 | } |
| 54 | |
| 55 | .wpbc_setup_wizard__template-search:focus-within { |
| 56 | border-color: var(--wp-admin-theme-color, #2271b1); |
| 57 | box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1); |
| 58 | } |
| 59 | |
| 60 | .wpbc_setup_wizard__template-search input[type="search"] { |
| 61 | width: 100%; |
| 62 | min-height: 38px; |
| 63 | margin: 0; |
| 64 | padding: 7px 10px; |
| 65 | border: 0; |
| 66 | background: transparent; |
| 67 | box-shadow: none; |
| 68 | } |
| 69 | |
| 70 | .wpbc_setup_wizard__template-filters { |
| 71 | display: flex; |
| 72 | width: 100%; |
| 73 | min-width: 0; |
| 74 | max-width: 100%; |
| 75 | flex-flow: row nowrap; |
| 76 | align-items: stretch; |
| 77 | overflow-x: auto; |
| 78 | overflow-y: hidden; |
| 79 | justify-self: end; |
| 80 | margin: 0; |
| 81 | border-bottom: 1px solid #dcdcde; |
| 82 | scrollbar-width: thin; |
| 83 | white-space: nowrap; |
| 84 | } |
| 85 | |
| 86 | .wpbc_setup_wizard__template-filter { |
| 87 | position: relative; |
| 88 | flex: 0 0 auto; |
| 89 | min-height: 38px; |
| 90 | padding: 6px 9px 8px; |
| 91 | border: 0; |
| 92 | background: transparent; |
| 93 | color: #3c434a; |
| 94 | cursor: pointer; |
| 95 | font-size: 12px; |
| 96 | } |
| 97 | |
| 98 | .wpbc_setup_wizard__template-filter:hover, |
| 99 | .wpbc_setup_wizard__template-filter.is-active { |
| 100 | color: var(--wp-admin-theme-color, #2271b1); |
| 101 | } |
| 102 | |
| 103 | .wpbc_setup_wizard__template-filter.is-active::after { |
| 104 | position: absolute; |
| 105 | right: 8px; |
| 106 | bottom: -1px; |
| 107 | left: 8px; |
| 108 | height: 2px; |
| 109 | background: var(--wp-admin-theme-color, #2271b1); |
| 110 | content: ""; |
| 111 | } |
| 112 | |
| 113 | .wpbc_setup_wizard__template-filter:focus-visible { |
| 114 | outline: 2px solid var(--wp-admin-theme-color, #2271b1); |
| 115 | outline-offset: -3px; |
| 116 | } |
| 117 | |
| 118 | .wpbc_setup_wizard__template-grid { |
| 119 | display: grid; |
| 120 | grid-auto-flow: column; |
| 121 | grid-auto-columns: minmax(210px, calc(25% - 7.5px)); |
| 122 | gap: 10px; |
| 123 | align-content: start; |
| 124 | overflow-x: auto; |
| 125 | overflow-y: hidden; |
| 126 | margin-top: 20px; |
| 127 | padding: 1px 1px 10px; |
| 128 | scrollbar-width: thin; |
| 129 | } |
| 130 | |
| 131 | .wpbc_setup_wizard__template-card { |
| 132 | min-width: 0; |
| 133 | border: 1px solid var(--wpbc-wizard-border); |
| 134 | border-radius: 5px; |
| 135 | background: #fff; |
| 136 | } |
| 137 | |
| 138 | .wpbc_setup_wizard__template-card:hover, |
| 139 | .wpbc_setup_wizard__template-card:focus-within { |
| 140 | border-color: var(--wp-admin-theme-color, #2271b1); |
| 141 | } |
| 142 | |
| 143 | .wpbc_setup_wizard__template-card.is-selected { |
| 144 | border-color: var(--wp-admin-theme-color, #2271b1); |
| 145 | box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1); |
| 146 | } |
| 147 | |
| 148 | .wpbc_setup_wizard__template-card > label { |
| 149 | display: grid; |
| 150 | gap: 8px; |
| 151 | height: 100%; |
| 152 | padding: 9px; |
| 153 | box-sizing: border-box; |
| 154 | cursor: pointer; |
| 155 | } |
| 156 | |
| 157 | .wpbc_setup_wizard__template-card-preview { |
| 158 | display: flex; |
| 159 | min-height: 132px; |
| 160 | align-items: center; |
| 161 | justify-content: center; |
| 162 | overflow: hidden; |
| 163 | border: 1px solid #e2e7ec; |
| 164 | border-radius: 4px; |
| 165 | background: #f4f6f8; |
| 166 | } |
| 167 | |
| 168 | .wpbc_setup_wizard__template-card-preview img { |
| 169 | display: block; |
| 170 | width: 100%; |
| 171 | max-width: none; |
| 172 | height: 100%; |
| 173 | max-height: 148px; |
| 174 | object-fit: contain; |
| 175 | } |
| 176 | |
| 177 | .wpbc_setup_wizard__template-card-heading { |
| 178 | display: grid; |
| 179 | grid-template-columns: 20px minmax(0, 1fr); |
| 180 | align-items: start; |
| 181 | gap: 7px; |
| 182 | } |
| 183 | |
| 184 | .wpbc_setup_wizard__template-card-heading strong { |
| 185 | font-size: 13px; |
| 186 | font-weight: 500; |
| 187 | line-height: 1.35; |
| 188 | } |
| 189 | |
| 190 | .wpbc_setup_wizard__template-card input[type="radio"] { |
| 191 | position: absolute; |
| 192 | opacity: 0; |
| 193 | pointer-events: none; |
| 194 | } |
| 195 | |
| 196 | .wpbc_setup_wizard__template-card .wpbc_setup_wizard__radio-mark { |
| 197 | display: inline-block; |
| 198 | width: 18px; |
| 199 | height: 18px; |
| 200 | border: 2px solid #aeb6bf; |
| 201 | border-radius: 50%; |
| 202 | box-sizing: border-box; |
| 203 | background: #fff; |
| 204 | } |
| 205 | |
| 206 | .wpbc_setup_wizard__template-card.is-selected .wpbc_setup_wizard__radio-mark { |
| 207 | border: 6px solid var(--wp-admin-theme-color, #2271b1); |
| 208 | } |
| 209 | |
| 210 | .wpbc_setup_wizard__template-card:focus-within .wpbc_setup_wizard__radio-mark { |
| 211 | box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color, #2271b1); |
| 212 | } |
| 213 | |
| 214 | .wpbc_setup_wizard__template-image-placeholder { |
| 215 | display: grid; |
| 216 | place-items: center; |
| 217 | gap: 5px; |
| 218 | padding: 16px; |
| 219 | box-sizing: border-box; |
| 220 | color: #718096; |
| 221 | text-align: center; |
| 222 | } |
| 223 | |
| 224 | .wpbc_setup_wizard__template-card-preview > [hidden], |
| 225 | .wpbc_setup_wizard__template-card[hidden], |
| 226 | .wpbc_setup_wizard__template-empty[hidden], |
| 227 | .wpbc_setup_wizard__template-preview-loader[hidden], |
| 228 | .wpbc_setup_wizard__template-preview-error[hidden], |
| 229 | .wpbc_setup_wizard__template-inline-preview[hidden], |
| 230 | .wpbc_setup_wizard__template-preview-stage iframe[hidden] { |
| 231 | display: none !important; |
| 232 | } |
| 233 | |
| 234 | .wpbc_setup_wizard__template-empty { |
| 235 | margin: 14px 0 0; |
| 236 | padding: 12px; |
| 237 | border-radius: 4px; |
| 238 | background: #f0f6fc; |
| 239 | color: var(--wpbc-wizard-muted); |
| 240 | } |
| 241 | |
| 242 | .wpbc_setup_wizard__template-catalog-unavailable { |
| 243 | margin: 14px 0 0; |
| 244 | padding: 12px; |
| 245 | border: 1px solid var(--wpbc-wizard-warning-border); |
| 246 | border-inline-start: 4px solid var(--wpbc-wizard-warning-accent); |
| 247 | border-radius: 6px; |
| 248 | background: var(--wpbc-wizard-warning-background); |
| 249 | color: var(--wpbc-wizard-warning-text); |
| 250 | } |
| 251 | |
| 252 | .wpbc_setup_wizard__template-library .wpbc_setup_wizard__field-error--group:empty { |
| 253 | display: none; |
| 254 | min-height: 0; |
| 255 | margin: 0; |
| 256 | } |
| 257 | |
| 258 | .wpbc_setup_wizard__template-preview-panel { |
| 259 | display: grid; |
| 260 | grid-template-rows: auto minmax(600px, 1fr) auto auto; |
| 261 | overflow: hidden; |
| 262 | } |
| 263 | |
| 264 | .wpbc_setup_wizard__template-preview-toolbar { |
| 265 | display: flex; |
| 266 | align-items: center; |
| 267 | justify-content: space-between; |
| 268 | gap: 16px; |
| 269 | padding: 13px 16px; |
| 270 | border-bottom: 1px solid #e2e7ec; |
| 271 | } |
| 272 | |
| 273 | .wpbc_setup_wizard__booking-form-usage-panel { |
| 274 | width: min(100%, 900px); |
| 275 | justify-self: center; |
| 276 | padding: 20px 28px; |
| 277 | box-sizing: border-box; |
| 278 | } |
| 279 | |
| 280 | .wpbc_setup_wizard__booking-form-usage { |
| 281 | display: grid; |
| 282 | min-width: 0; |
| 283 | margin: 0; |
| 284 | padding: 0; |
| 285 | border: 0; |
| 286 | gap: 10px; |
| 287 | } |
| 288 | |
| 289 | .wpbc_setup_wizard__booking-form-usage legend { |
| 290 | padding: 0; |
| 291 | color: #1d2327; |
| 292 | font-size: 15px; |
| 293 | font-weight: 600; |
| 294 | line-height: 1.35; |
| 295 | margin-bottom: 15px; |
| 296 | } |
| 297 | |
| 298 | .wpbc_setup_wizard__booking-form-usage-options { |
| 299 | display: flex; |
| 300 | min-width: 0; |
| 301 | align-items: stretch; |
| 302 | gap: 12px; |
| 303 | } |
| 304 | |
| 305 | .wpbc_setup_wizard__booking-form-usage-option { |
| 306 | display: grid; |
| 307 | grid-template-columns: auto minmax(0, 1fr); |
| 308 | min-width: 0; |
| 309 | flex: 1 1 0; |
| 310 | align-items: start; |
| 311 | gap: 10px; |
| 312 | margin: 0; |
| 313 | padding: 13px 15px; |
| 314 | border: 1px solid #c3c4c7; |
| 315 | border-radius: 4px; |
| 316 | background: #fff; |
| 317 | cursor: pointer; |
| 318 | } |
| 319 | |
| 320 | .wpbc_setup_wizard__booking-form-usage-option.is-selected { |
| 321 | border-color: var(--wp-admin-theme-color, #2271b1); |
| 322 | box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1); |
| 323 | } |
| 324 | |
| 325 | .wpbc_setup_wizard__booking-form-usage-option:focus-within { |
| 326 | outline: 2px solid var(--wp-admin-theme-color, #2271b1); |
| 327 | outline-offset: 1px; |
| 328 | } |
| 329 | |
| 330 | .wpbc_setup_wizard__booking-form-usage-option input[type="radio"] { |
| 331 | margin: 2px 0 0; |
| 332 | } |
| 333 | |
| 334 | .wpbc_setup_wizard__booking-form-usage-option span { |
| 335 | display: grid; |
| 336 | min-width: 0; |
| 337 | gap: 2px; |
| 338 | } |
| 339 | |
| 340 | .wpbc_setup_wizard__booking-form-usage-option strong { |
| 341 | font-size: 14px; |
| 342 | font-weight: 600; |
| 343 | line-height: 1.3; |
| 344 | } |
| 345 | |
| 346 | .wpbc_setup_wizard__booking-form-usage-option small { |
| 347 | color: var(--wpbc-wizard-muted); |
| 348 | font-size: 12px; |
| 349 | line-height: 1.45; |
| 350 | } |
| 351 | |
| 352 | .wpbc_setup_wizard__booking-form-usage .wpbc_setup_wizard__field-error--group:empty { |
| 353 | display: none; |
| 354 | min-height: 0; |
| 355 | margin: 0; |
| 356 | } |
| 357 | |
| 358 | .wpbc_setup_wizard__template-preview-heading, |
| 359 | .wpbc_setup_wizard__template-preview-actions { |
| 360 | display: flex; |
| 361 | align-items: center; |
| 362 | gap: 10px; |
| 363 | } |
| 364 | |
| 365 | .wpbc_setup_wizard__template-preview-heading > span { |
| 366 | display: inline-flex; |
| 367 | align-items: center; |
| 368 | gap: 6px; |
| 369 | color: var(--wpbc-wizard-muted); |
| 370 | font-size: 12px; |
| 371 | } |
| 372 | |
| 373 | .wpbc_setup_wizard__template-preview-heading > span i { |
| 374 | display: inline-block; |
| 375 | width: 9px; |
| 376 | height: 9px; |
| 377 | border-radius: 50%; |
| 378 | background: #00a32a; |
| 379 | } |
| 380 | |
| 381 | .wpbc_setup_wizard__template-preview-actions .button { |
| 382 | display: inline-flex; |
| 383 | align-items: center; |
| 384 | gap: 6px; |
| 385 | } |
| 386 | |
| 387 | .wpbc_setup_wizard__template-preview-stage { |
| 388 | position: relative; |
| 389 | display: block; |
| 390 | min-height: 600px; |
| 391 | overflow: hidden; |
| 392 | padding: 14px; |
| 393 | background: #eef2f5; |
| 394 | } |
| 395 | |
| 396 | .wpbc_setup_wizard__template-inline-preview { |
| 397 | display: block; |
| 398 | width: 100%; |
| 399 | min-height: 600px; |
| 400 | box-sizing: border-box; |
| 401 | } |
| 402 | |
| 403 | .wpbc_setup_wizard__template-inline-preview .wpbc_theme_preview { |
| 404 | display: block; |
| 405 | width: 100%; |
| 406 | min-height: 600px; |
| 407 | padding: 20px; |
| 408 | border: 1px solid #d9dfe5; |
| 409 | border-radius: 5px; |
| 410 | background: #fff; |
| 411 | box-shadow: 0 8px 24px rgba(29, 35, 39, 0.08); |
| 412 | box-sizing: border-box; |
| 413 | } |
| 414 | |
| 415 | .wpbc_setup_wizard__template-inline-preview .wpbc_theme_real_preview { |
| 416 | position: relative; |
| 417 | width: 100%; |
| 418 | min-height: 558px; |
| 419 | } |
| 420 | |
| 421 | .wpbc_setup_wizard__template-preview-stage iframe { |
| 422 | display: block; |
| 423 | width: 100%; |
| 424 | max-width: none; |
| 425 | height: 680px; |
| 426 | border: 1px solid #d9dfe5; |
| 427 | border-radius: 5px; |
| 428 | background: #fff; |
| 429 | box-shadow: 0 8px 24px rgba(29, 35, 39, 0.08); |
| 430 | } |
| 431 | |
| 432 | .wpbc_setup_wizard__template-preview-stage.is-loading iframe, |
| 433 | .wpbc_setup_wizard__template-preview-stage.is-loading .wpbc_setup_wizard__template-inline-preview { |
| 434 | opacity: 0.35; |
| 435 | } |
| 436 | |
| 437 | .wpbc_setup_wizard__template-preview-loader, |
| 438 | .wpbc_setup_wizard__template-preview-error { |
| 439 | position: absolute; |
| 440 | z-index: 2; |
| 441 | top: 50%; |
| 442 | left: 50%; |
| 443 | display: flex; |
| 444 | max-width: calc(100% - 48px); |
| 445 | align-items: center; |
| 446 | gap: 8px; |
| 447 | padding: 12px 16px; |
| 448 | border: 1px solid #d9dfe5; |
| 449 | border-radius: 5px; |
| 450 | background: #fff; |
| 451 | box-shadow: 0 4px 16px rgba(29, 35, 39, 0.12); |
| 452 | color: #50575e; |
| 453 | text-align: center; |
| 454 | transform: translate(-50%, -50%); |
| 455 | } |
| 456 | |
| 457 | .wpbc_setup_wizard__template-preview-loader .spinner { |
| 458 | float: none; |
| 459 | margin: 0; |
| 460 | visibility: visible; |
| 461 | } |
| 462 | |
| 463 | .wpbc_setup_wizard__template-preview-error { |
| 464 | color: #8a2424; |
| 465 | } |
| 466 | |
| 467 | .wpbc_setup_wizard__template-preview-details { |
| 468 | display: grid; |
| 469 | grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); |
| 470 | gap: 20px; |
| 471 | padding: 14px 16px; |
| 472 | border-top: 1px solid #e2e7ec; |
| 473 | } |
| 474 | |
| 475 | .wpbc_setup_wizard__template-preview-details > div { |
| 476 | display: grid; |
| 477 | align-content: start; |
| 478 | gap: 6px; |
| 479 | } |
| 480 | |
| 481 | .wpbc_setup_wizard__template-preview-details strong, |
| 482 | .wpbc_setup_wizard__template-preview-details code, |
| 483 | .wpbc_setup_wizard__template-preview-details p { |
| 484 | overflow-wrap: anywhere; |
| 485 | } |
| 486 | |
| 487 | .wpbc_setup_wizard__template-preview-details code { |
| 488 | width: fit-content; |
| 489 | padding: 2px 5px; |
| 490 | background: #f0f0f1; |
| 491 | color: #50575e; |
| 492 | } |
| 493 | |
| 494 | .wpbc_setup_wizard__template-preview-shortcode { |
| 495 | display: flex; |
| 496 | min-width: 0; |
| 497 | align-items: center; |
| 498 | flex-wrap: wrap; |
| 499 | gap: 5px; |
| 500 | color: var(--wpbc-wizard-muted); |
| 501 | font-size: 12px; |
| 502 | } |
| 503 | |
| 504 | .wpbc_setup_wizard__template-preview-details p { |
| 505 | margin: 0; |
| 506 | padding-left: 20px; |
| 507 | border-left: 1px solid #dcdcde; |
| 508 | color: var(--wpbc-wizard-muted); |
| 509 | } |
| 510 | |
| 511 | .wpbc_setup_wizard__template-preview-note { |
| 512 | display: flex; |
| 513 | align-items: flex-start; |
| 514 | gap: 8px; |
| 515 | margin: 0; |
| 516 | padding: 10px 16px; |
| 517 | border: 1px solid var(--wpbc-wizard-info-border); |
| 518 | border-inline-start: 4px solid var(--wpbc-wizard-info-accent); |
| 519 | background: var(--wpbc-wizard-info-background); |
| 520 | color: var(--wpbc-wizard-info-copy); |
| 521 | font-size: 12px; |
| 522 | border-top-right-radius: 0 !important; |
| 523 | border-top-left-radius: 0 !important; |
| 524 | } |
| 525 | |
| 526 | [dir="rtl"] .wpbc_setup_wizard__template-preview-details p { |
| 527 | padding-right: 20px; |
| 528 | padding-left: 0; |
| 529 | border-right: 1px solid #dcdcde; |
| 530 | border-left: 0; |
| 531 | } |
| 532 | |
| 533 | @media screen and (max-width: 1160px) { |
| 534 | .wpbc_setup_wizard__template-controls { |
| 535 | grid-template-columns: auto minmax(0, 1fr); |
| 536 | gap: 12px; |
| 537 | } |
| 538 | |
| 539 | .wpbc_setup_wizard__template-filters { |
| 540 | grid-column: 1 / -1; |
| 541 | justify-self: stretch; |
| 542 | } |
| 543 | |
| 544 | } |
| 545 | |
| 546 | @media screen and (max-width: 960px) { |
| 547 | .wpbc_setup_wizard__template-grid { |
| 548 | grid-auto-columns: minmax(220px, 260px); |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | @media screen and (max-width: 600px) { |
| 553 | .wpbc_setup_wizard__template-controls { |
| 554 | grid-template-columns: minmax(0, 1fr); |
| 555 | } |
| 556 | |
| 557 | .wpbc_setup_wizard__template-filters { |
| 558 | grid-column: auto; |
| 559 | } |
| 560 | |
| 561 | .wpbc_setup_wizard__template-preview-details { |
| 562 | grid-template-columns: 1fr; |
| 563 | } |
| 564 | |
| 565 | .wpbc_setup_wizard__template-preview-toolbar, |
| 566 | .wpbc_setup_wizard__template-preview-actions { |
| 567 | align-items: stretch; |
| 568 | } |
| 569 | |
| 570 | .wpbc_setup_wizard__template-preview-toolbar { |
| 571 | flex-direction: column; |
| 572 | } |
| 573 | |
| 574 | .wpbc_setup_wizard__booking-form-usage-options, |
| 575 | .wpbc_setup_wizard__template-preview-actions { |
| 576 | flex-direction: column; |
| 577 | } |
| 578 | |
| 579 | .wpbc_setup_wizard__template-preview-stage, |
| 580 | .wpbc_setup_wizard__template-preview-stage iframe, |
| 581 | .wpbc_setup_wizard__template-inline-preview, |
| 582 | .wpbc_setup_wizard__template-inline-preview .wpbc_theme_preview { |
| 583 | min-height: 420px; |
| 584 | height: 420px; |
| 585 | } |
| 586 | |
| 587 | .wpbc_setup_wizard__template-inline-preview .wpbc_theme_preview { |
| 588 | overflow: auto; |
| 589 | padding: 10px; |
| 590 | } |
| 591 | |
| 592 | .wpbc_setup_wizard__template-inline-preview .wpbc_theme_real_preview { |
| 593 | min-height: 398px; |
| 594 | } |
| 595 | |
| 596 | .wpbc_setup_wizard__template-preview-details p, |
| 597 | [dir="rtl"] .wpbc_setup_wizard__template-preview-details p { |
| 598 | padding: 14px 0 0; |
| 599 | border: 0; |
| 600 | border-top: 1px solid #dcdcde; |
| 601 | } |
| 602 | } |
| 603 |