driver.css
487 lines
| 1 | /* === Driver.js Base === */ |
| 2 | .driver-active .driver-overlay, |
| 3 | .driver-active * { |
| 4 | pointer-events: none |
| 5 | } |
| 6 | |
| 7 | .driver-active .driver-active-element, |
| 8 | .driver-active .driver-active-element *, |
| 9 | .driver-popover, |
| 10 | .driver-popover * { |
| 11 | pointer-events: auto |
| 12 | } |
| 13 | |
| 14 | @keyframes animate-fade-in { |
| 15 | 0% { |
| 16 | opacity: 0 |
| 17 | } |
| 18 | |
| 19 | to { |
| 20 | opacity: 1 |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | .driver-fade .driver-overlay { |
| 25 | animation: animate-fade-in .2s ease-in-out |
| 26 | } |
| 27 | |
| 28 | .driver-popover { |
| 29 | all: unset; |
| 30 | box-sizing: border-box; |
| 31 | color: #2d2d2d; |
| 32 | margin: 0; |
| 33 | padding: 15px; |
| 34 | border-radius: 5px; |
| 35 | min-width: 250px; |
| 36 | max-width: 300px; |
| 37 | box-shadow: 0 1px 10px #0006; |
| 38 | z-index: 1000000000; |
| 39 | position: fixed; |
| 40 | top: 0; |
| 41 | right: 0; |
| 42 | background-color: #fff |
| 43 | } |
| 44 | |
| 45 | .driver-popover * { |
| 46 | font-family: Helvetica Neue, Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif |
| 47 | } |
| 48 | |
| 49 | .driver-popover-title { |
| 50 | font: 19px/normal sans-serif; |
| 51 | font-weight: 700; |
| 52 | display: block; |
| 53 | position: relative; |
| 54 | line-height: 1.5; |
| 55 | zoom: 1; |
| 56 | margin: 0 |
| 57 | } |
| 58 | |
| 59 | .driver-popover-close-btn { |
| 60 | all: unset; |
| 61 | position: absolute; |
| 62 | top: 0; |
| 63 | right: 0; |
| 64 | width: 32px; |
| 65 | height: 28px; |
| 66 | cursor: pointer; |
| 67 | font-size: 18px; |
| 68 | font-weight: 500; |
| 69 | color: #d2d2d2; |
| 70 | z-index: 1; |
| 71 | text-align: center; |
| 72 | transition: color; |
| 73 | transition-duration: .2s |
| 74 | } |
| 75 | |
| 76 | .driver-popover-close-btn:hover, |
| 77 | .driver-popover-close-btn:focus { |
| 78 | color: #2d2d2d |
| 79 | } |
| 80 | |
| 81 | .driver-popover-title[style*=block]+.driver-popover-description { |
| 82 | margin-top: 5px |
| 83 | } |
| 84 | |
| 85 | .driver-popover-description { |
| 86 | margin-bottom: 0; |
| 87 | font: 14px/normal sans-serif; |
| 88 | line-height: 1.5; |
| 89 | font-weight: 400; |
| 90 | zoom: 1 |
| 91 | } |
| 92 | |
| 93 | .driver-popover-footer { |
| 94 | margin-top: 15px; |
| 95 | text-align: right; |
| 96 | zoom: 1; |
| 97 | display: flex; |
| 98 | align-items: center; |
| 99 | justify-content: space-between |
| 100 | } |
| 101 | |
| 102 | .driver-popover-progress-text { |
| 103 | font-size: 13px; |
| 104 | font-weight: 400; |
| 105 | color: #727272; |
| 106 | zoom: 1 |
| 107 | } |
| 108 | |
| 109 | .driver-popover-footer button { |
| 110 | all: unset; |
| 111 | display: inline-block; |
| 112 | box-sizing: border-box; |
| 113 | padding: 3px 7px; |
| 114 | text-decoration: none; |
| 115 | text-shadow: 1px 1px 0 #fff; |
| 116 | background-color: #fff; |
| 117 | color: #2d2d2d; |
| 118 | font: 12px/normal sans-serif; |
| 119 | cursor: pointer; |
| 120 | outline: 0; |
| 121 | zoom: 1; |
| 122 | line-height: 1.3; |
| 123 | border: 1px solid #ccc; |
| 124 | border-radius: 3px |
| 125 | } |
| 126 | |
| 127 | .driver-popover-footer .driver-popover-btn-disabled { |
| 128 | opacity: .5; |
| 129 | pointer-events: none |
| 130 | } |
| 131 | |
| 132 | :not(body):has(>.driver-active-element) { |
| 133 | overflow: hidden !important |
| 134 | } |
| 135 | |
| 136 | .driver-no-interaction, |
| 137 | .driver-no-interaction * { |
| 138 | pointer-events: none !important |
| 139 | } |
| 140 | |
| 141 | .driver-popover-footer button:hover, |
| 142 | .driver-popover-footer button:focus { |
| 143 | background-color: #f7f7f7 |
| 144 | } |
| 145 | |
| 146 | .driver-popover-navigation-btns { |
| 147 | display: flex; |
| 148 | flex-grow: 1; |
| 149 | justify-content: flex-end |
| 150 | } |
| 151 | |
| 152 | .driver-popover-navigation-btns button+button { |
| 153 | margin-left: 4px |
| 154 | } |
| 155 | |
| 156 | .driver-popover-arrow { |
| 157 | content: ""; |
| 158 | position: absolute; |
| 159 | border: 5px solid #fff |
| 160 | } |
| 161 | |
| 162 | .driver-popover-arrow-side-over { |
| 163 | display: none |
| 164 | } |
| 165 | |
| 166 | .driver-popover-arrow-side-left { |
| 167 | left: 100%; |
| 168 | border-right-color: transparent; |
| 169 | border-bottom-color: transparent; |
| 170 | border-top-color: transparent |
| 171 | } |
| 172 | |
| 173 | .driver-popover-arrow-side-right { |
| 174 | right: 100%; |
| 175 | border-left-color: transparent; |
| 176 | border-bottom-color: transparent; |
| 177 | border-top-color: transparent |
| 178 | } |
| 179 | |
| 180 | .driver-popover-arrow-side-top { |
| 181 | top: 100%; |
| 182 | border-right-color: transparent; |
| 183 | border-bottom-color: transparent; |
| 184 | border-left-color: transparent |
| 185 | } |
| 186 | |
| 187 | .driver-popover-arrow-side-bottom { |
| 188 | bottom: 100%; |
| 189 | border-left-color: transparent; |
| 190 | border-top-color: transparent; |
| 191 | border-right-color: transparent |
| 192 | } |
| 193 | |
| 194 | .driver-popover-arrow-side-center { |
| 195 | display: none |
| 196 | } |
| 197 | |
| 198 | .driver-popover-arrow-side-left.driver-popover-arrow-align-start, |
| 199 | .driver-popover-arrow-side-right.driver-popover-arrow-align-start { |
| 200 | top: 15px |
| 201 | } |
| 202 | |
| 203 | .driver-popover-arrow-side-top.driver-popover-arrow-align-start, |
| 204 | .driver-popover-arrow-side-bottom.driver-popover-arrow-align-start { |
| 205 | left: 15px |
| 206 | } |
| 207 | |
| 208 | .driver-popover-arrow-align-end.driver-popover-arrow-side-left, |
| 209 | .driver-popover-arrow-align-end.driver-popover-arrow-side-right { |
| 210 | bottom: 15px |
| 211 | } |
| 212 | |
| 213 | .driver-popover-arrow-side-top.driver-popover-arrow-align-end, |
| 214 | .driver-popover-arrow-side-bottom.driver-popover-arrow-align-end { |
| 215 | right: 15px |
| 216 | } |
| 217 | |
| 218 | .driver-popover-arrow-side-left.driver-popover-arrow-align-center, |
| 219 | .driver-popover-arrow-side-right.driver-popover-arrow-align-center { |
| 220 | top: 50%; |
| 221 | margin-top: -5px |
| 222 | } |
| 223 | |
| 224 | .driver-popover-arrow-side-top.driver-popover-arrow-align-center, |
| 225 | .driver-popover-arrow-side-bottom.driver-popover-arrow-align-center { |
| 226 | left: 50%; |
| 227 | margin-left: -5px |
| 228 | } |
| 229 | |
| 230 | .driver-popover-arrow-none { |
| 231 | display: none |
| 232 | } |
| 233 | |
| 234 | /* === Superb Addons Tour Overrides === */ |
| 235 | |
| 236 | /* --- Popover Container --- */ |
| 237 | .superbaddons-guided-tour-popover.driver-popover { |
| 238 | min-width: 300px; |
| 239 | max-width: 340px; |
| 240 | padding: 20px 24px; |
| 241 | border-radius: 12px 12px 0 0; |
| 242 | box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06); |
| 243 | border-top: 3px solid #6448e7; |
| 244 | font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 245 | } |
| 246 | |
| 247 | .superbaddons-guided-tour-popover.driver-popover * { |
| 248 | font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 249 | } |
| 250 | |
| 251 | /* --- Slide-in animation --- */ |
| 252 | @keyframes superbaddons-tour-slide-in { |
| 253 | 0% { |
| 254 | opacity: 0; |
| 255 | transform: translateY(8px); |
| 256 | } |
| 257 | |
| 258 | 100% { |
| 259 | opacity: 1; |
| 260 | transform: translateY(0); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | .driver-fade .superbaddons-guided-tour-popover.driver-popover { |
| 265 | animation: superbaddons-tour-slide-in 0.25s ease-out; |
| 266 | } |
| 267 | |
| 268 | /* --- Title --- */ |
| 269 | .superbaddons-guided-tour-popover .driver-popover-title { |
| 270 | font-size: 16px; |
| 271 | font-weight: 700; |
| 272 | color: #263238; |
| 273 | line-height: 1.4; |
| 274 | } |
| 275 | |
| 276 | /* --- Description --- */ |
| 277 | .superbaddons-guided-tour-popover .driver-popover-description { |
| 278 | font-size: 13px; |
| 279 | font-weight: 400; |
| 280 | color: #546E7A; |
| 281 | line-height: 1.6; |
| 282 | margin-top: 8px; |
| 283 | } |
| 284 | |
| 285 | /* --- Close Button --- */ |
| 286 | .superbaddons-guided-tour-popover .driver-popover-close-btn { |
| 287 | top: 12px; |
| 288 | right: 12px; |
| 289 | width: 28px; |
| 290 | height: 28px; |
| 291 | border-radius: 6px; |
| 292 | font-size: 16px; |
| 293 | color: #90A4AE; |
| 294 | display: flex; |
| 295 | align-items: center; |
| 296 | justify-content: center; |
| 297 | transition: background-color 150ms ease, color 200ms ease; |
| 298 | } |
| 299 | |
| 300 | .superbaddons-guided-tour-popover .driver-popover-close-btn:hover, |
| 301 | .superbaddons-guided-tour-popover .driver-popover-close-btn:focus { |
| 302 | background-color: #F5F5F5; |
| 303 | color: #263238; |
| 304 | } |
| 305 | |
| 306 | /* --- Arrow (larger) --- */ |
| 307 | .superbaddons-guided-tour-popover .driver-popover-arrow { |
| 308 | border-width: 8px; |
| 309 | z-index: 1; |
| 310 | } |
| 311 | |
| 312 | /* --- Footer --- */ |
| 313 | .superbaddons-guided-tour-popover .driver-popover-footer { |
| 314 | margin-top: 16px; |
| 315 | } |
| 316 | |
| 317 | /* --- Buttons: shared base --- */ |
| 318 | .superbaddons-guided-tour-popover .driver-popover-footer button { |
| 319 | font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 320 | font-size: 13px; |
| 321 | font-weight: 600; |
| 322 | padding: 8px 16px; |
| 323 | border-radius: 6px; |
| 324 | line-height: 1.3; |
| 325 | text-shadow: none; |
| 326 | transition: background-color 150ms ease, border-color 150ms ease; |
| 327 | } |
| 328 | |
| 329 | /* Previous button: secondary */ |
| 330 | .superbaddons-guided-tour-popover .driver-popover-prev-btn { |
| 331 | background-color: #FFFFFF; |
| 332 | border: 1px solid #CFD8DC; |
| 333 | color: #263238; |
| 334 | } |
| 335 | |
| 336 | .superbaddons-guided-tour-popover .driver-popover-prev-btn:hover, |
| 337 | .superbaddons-guided-tour-popover .driver-popover-prev-btn:focus { |
| 338 | background-color: #F5F5F5; |
| 339 | border-color: #B0BEC5; |
| 340 | } |
| 341 | |
| 342 | /* Next button: primary */ |
| 343 | .superbaddons-guided-tour-popover .driver-popover-next-btn { |
| 344 | background-color: #6448e7; |
| 345 | border: 1px solid #6448e7; |
| 346 | color: #FFFFFF; |
| 347 | } |
| 348 | |
| 349 | .superbaddons-guided-tour-popover .driver-popover-next-btn:hover, |
| 350 | .superbaddons-guided-tour-popover .driver-popover-next-btn:focus { |
| 351 | background-color: #7e63fc; |
| 352 | border-color: #7e63fc; |
| 353 | } |
| 354 | |
| 355 | /* --- Progress Bar (absolute bottom, acts as card bottom edge) --- */ |
| 356 | .superbaddons-tour-progress { |
| 357 | position: absolute; |
| 358 | left: 0; |
| 359 | right: 0; |
| 360 | bottom: -6px; |
| 361 | height: 6px; |
| 362 | background-color: #E0E0E0; |
| 363 | border-radius: 0 0 12px 12px; |
| 364 | overflow: hidden; |
| 365 | } |
| 366 | |
| 367 | .superbaddons-tour-progress-fill { |
| 368 | height: 100%; |
| 369 | background-color: #6448e7; |
| 370 | transition: width 0.3s ease; |
| 371 | } |
| 372 | |
| 373 | /* --- Step Counter (footer left) --- */ |
| 374 | .superbaddons-tour-progress-counter { |
| 375 | font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 376 | font-size: 12px; |
| 377 | font-weight: 600; |
| 378 | color: #90A4AE; |
| 379 | } |
| 380 | |
| 381 | /* --- Click-target Pulse Animation --- */ |
| 382 | @keyframes superbaddons-tour-pulse { |
| 383 | |
| 384 | 0%, |
| 385 | 100% { |
| 386 | box-shadow: 0 0 0 0 rgba(100, 72, 231, 0.4); |
| 387 | } |
| 388 | |
| 389 | 50% { |
| 390 | box-shadow: 0 0 0 6px rgba(100, 72, 231, 0); |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | .superbaddons-tour-click-target { |
| 395 | animation: superbaddons-tour-pulse 2s ease-in-out infinite; |
| 396 | } |
| 397 | |
| 398 | /* --- Action Hint Callout --- */ |
| 399 | .superbaddons-tour-action-hint { |
| 400 | display: flex; |
| 401 | align-items: center; |
| 402 | gap: 6px; |
| 403 | margin-top: 12px; |
| 404 | padding: 8px 12px; |
| 405 | background-color: #F3F0FD; |
| 406 | border-radius: 6px; |
| 407 | font-size: 12px; |
| 408 | font-weight: 500; |
| 409 | color: #6448e7; |
| 410 | } |
| 411 | |
| 412 | .superbaddons-tour-action-hint svg { |
| 413 | flex-shrink: 0; |
| 414 | } |
| 415 | |
| 416 | /* --- Loading Hint Callout --- */ |
| 417 | .superbaddons-tour-loading-hint { |
| 418 | display: flex; |
| 419 | align-items: center; |
| 420 | gap: 8px; |
| 421 | margin-top: 12px; |
| 422 | padding: 8px 12px; |
| 423 | background-color: #FFF8E1; |
| 424 | border-radius: 6px; |
| 425 | font-size: 12px; |
| 426 | font-weight: 500; |
| 427 | color: #F59E0B; |
| 428 | } |
| 429 | |
| 430 | @keyframes superbaddons-tour-spin { |
| 431 | to { |
| 432 | transform: rotate(360deg); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | .superbaddons-tour-loading-spinner { |
| 437 | width: 14px; |
| 438 | height: 14px; |
| 439 | border: 2px solid #FDE68A; |
| 440 | border-top-color: #F59E0B; |
| 441 | border-radius: 50%; |
| 442 | animation: superbaddons-tour-spin 0.8s linear infinite; |
| 443 | flex-shrink: 0; |
| 444 | } |
| 445 | |
| 446 | /* --- Completion Step --- */ |
| 447 | .superbaddons-tour-complete.driver-popover { |
| 448 | border-top-color: #00BC87; |
| 449 | text-align: center; |
| 450 | padding: 28px 24px; |
| 451 | } |
| 452 | |
| 453 | .superbaddons-tour-complete .driver-popover-title { |
| 454 | font-size: 18px; |
| 455 | } |
| 456 | |
| 457 | .superbaddons-tour-complete .driver-popover-footer { |
| 458 | justify-content: center; |
| 459 | } |
| 460 | |
| 461 | .superbaddons-tour-complete .driver-popover-next-btn { |
| 462 | background-color: #00BC87; |
| 463 | border-color: #00BC87; |
| 464 | } |
| 465 | |
| 466 | .superbaddons-tour-complete .driver-popover-next-btn:hover, |
| 467 | .superbaddons-tour-complete .driver-popover-next-btn:focus { |
| 468 | background-color: #09c590; |
| 469 | border-color: #09c590; |
| 470 | } |
| 471 | |
| 472 | .superbaddons-tour-complete .superbaddons-tour-complete-icon { |
| 473 | display: block; |
| 474 | margin: 0 auto 12px; |
| 475 | } |
| 476 | |
| 477 | |
| 478 | /* --- Modal interactivity during tours --- */ |
| 479 | .driver-active .superbaddons-admindashboard-modal-wrapper, |
| 480 | .driver-active .superbaddons-admindashboard-modal-wrapper * { |
| 481 | pointer-events: auto; |
| 482 | } |
| 483 | |
| 484 | /* --- Overflow Hidden Utility --- */ |
| 485 | .superb-addons-guided-tour-overflow-hidden { |
| 486 | overflow: hidden !important; |
| 487 | } |