| @@ -112,8 +112,17 @@ | ||
| 112 | 112 | .merchant-quick-view-modal .merchant-freespb-wrapper { |
| 113 | 113 | display: none; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | +body.admin-bar .merchant-quick-view-modal { | |
| 117 | + top: 32px; | |
| 118 | +} | |
| 119 | +@media (max-width: 782px) { | |
| 120 | + body.admin-bar .merchant-quick-view-modal { | |
| 121 | + top: 46px; | |
| 122 | + } | |
| 123 | +} | |
| 124 | + | |
| 116 | 125 | .merchant-quick-view-overlay { |
| 117 | 126 | position: absolute; |
| 118 | 127 | z-index: 1; |
| 119 | 128 | top: 0; |
| @@ -124,15 +133,17 @@ | ||
| 124 | 133 | } |
| 125 | 134 | |
| 126 | 135 | .merchant-quick-view-loader { |
| 127 | 136 | position: absolute; |
| 128 | - z-index: 2; | |
| 137 | + top: 50%; | |
| 138 | + right: 50%; | |
| 139 | + -webkit-transform: translate(50%, -50%); | |
| 140 | + transform: translate(50%, -50%); | |
| 141 | + z-index: 5; | |
| 129 | 142 | display: -webkit-box; |
| 130 | 143 | display: -ms-flexbox; |
| 131 | 144 | display: flex; |
| 132 | 145 | font-size: 26px; |
| 133 | - -webkit-animation: merchant-fa-spin 0.75s linear infinite; | |
| 134 | - animation: merchant-fa-spin 0.75s linear infinite; | |
| 135 | 146 | opacity: 0; |
| 136 | 147 | visibility: hidden; |
| 137 | 148 | } |
| 138 | 149 | .merchant-quick-view-loader svg { |
| @@ -137,9 +148,11 @@ | ||
| 137 | 148 | } |
| 138 | 149 | .merchant-quick-view-loader svg { |
| 139 | 150 | width: 1em; |
| 140 | 151 | height: 1em; |
| 141 | - fill: #fff; | |
| 152 | + fill: #212121; | |
| 153 | + -webkit-animation: merchant-fa-spin 0.75s linear infinite; | |
| 154 | + animation: merchant-fa-spin 0.75s linear infinite; | |
| 142 | 155 | } |
| 143 | 156 | |
| 144 | 157 | .merchant-quick-view-inner { |
| 145 | 158 | position: relative; |
| @@ -144,8 +157,9 @@ | ||
| 144 | 157 | .merchant-quick-view-inner { |
| 145 | 158 | position: relative; |
| 146 | 159 | z-index: 3; |
| 147 | 160 | width: var(--mrc-qv-modal-width, 1000px); |
| 161 | + min-height: var(--mrc-qv-modal-height, 500px); | |
| 148 | 162 | max-height: var(--mrc-qv-modal-height, 500px); |
| 149 | 163 | max-width: 90vw; |
| 150 | 164 | padding: 35px; |
| 151 | 165 | background-color: #FFF; |
| @@ -182,8 +196,219 @@ | ||
| 182 | 196 | height: 1em; |
| 183 | 197 | fill: #fff; |
| 184 | 198 | } |
| 185 | 199 | |
| 200 | +.merchant-quick-view-layout-side-panel { | |
| 201 | + -webkit-box-align: stretch !important; | |
| 202 | + -ms-flex-align: stretch !important; | |
| 203 | + align-items: stretch !important; | |
| 204 | + -webkit-box-pack: end !important; | |
| 205 | + -ms-flex-pack: end !important; | |
| 206 | + justify-content: flex-end !important; | |
| 207 | +} | |
| 208 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-inner { | |
| 209 | + width: var(--mrc-qv-panel-width, 420px); | |
| 210 | + max-width: 90vw; | |
| 211 | + height: 100vh; | |
| 212 | + max-height: 100vh; | |
| 213 | + margin: 0; | |
| 214 | + overflow-y: auto; | |
| 215 | + display: -webkit-box; | |
| 216 | + display: -ms-flexbox; | |
| 217 | + display: flex; | |
| 218 | + -webkit-box-orient: vertical; | |
| 219 | + -webkit-box-direction: normal; | |
| 220 | + -ms-flex-direction: column; | |
| 221 | + flex-direction: column; | |
| 222 | + -webkit-transform: translateX(100%); | |
| 223 | + transform: translateX(100%); | |
| 224 | + -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease; | |
| 225 | + transition: opacity 0.3s ease, -webkit-transform 0.3s ease; | |
| 226 | + transition: transform 0.3s ease, opacity 0.3s ease; | |
| 227 | + transition: transform 0.3s ease, opacity 0.3s ease, -webkit-transform 0.3s ease; | |
| 228 | +} | |
| 229 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-inner.merchant-show { | |
| 230 | + -webkit-transform: translateX(0); | |
| 231 | + transform: translateX(0); | |
| 232 | +} | |
| 233 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-header { | |
| 234 | + -webkit-box-flex: 0; | |
| 235 | + -ms-flex: none; | |
| 236 | + flex: none; | |
| 237 | + display: -webkit-box; | |
| 238 | + display: -ms-flexbox; | |
| 239 | + display: flex; | |
| 240 | + -webkit-box-align: center; | |
| 241 | + -ms-flex-align: center; | |
| 242 | + align-items: center; | |
| 243 | + -webkit-box-pack: end; | |
| 244 | + -ms-flex-pack: end; | |
| 245 | + justify-content: flex-end; | |
| 246 | + gap: 10px; | |
| 247 | + padding-bottom: 15px; | |
| 248 | + margin-bottom: 15px; | |
| 249 | + border-bottom: 1px solid #eee; | |
| 250 | +} | |
| 251 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-content { | |
| 252 | + display: -webkit-box; | |
| 253 | + display: -ms-flexbox; | |
| 254 | + display: flex; | |
| 255 | + -webkit-box-orient: vertical; | |
| 256 | + -webkit-box-direction: normal; | |
| 257 | + -ms-flex-direction: column; | |
| 258 | + flex-direction: column; | |
| 259 | + -webkit-box-flex: 1; | |
| 260 | + -ms-flex: 1; | |
| 261 | + flex: 1; | |
| 262 | + min-height: 0; | |
| 263 | +} | |
| 264 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-content > div { | |
| 265 | + display: -webkit-box; | |
| 266 | + display: -ms-flexbox; | |
| 267 | + display: flex; | |
| 268 | + -webkit-box-orient: vertical; | |
| 269 | + -webkit-box-direction: normal; | |
| 270 | + -ms-flex-direction: column; | |
| 271 | + flex-direction: column; | |
| 272 | + -webkit-box-flex: 1; | |
| 273 | + -ms-flex: 1; | |
| 274 | + flex: 1; | |
| 275 | + min-height: 0; | |
| 276 | +} | |
| 277 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-row { | |
| 278 | + -webkit-box-orient: vertical; | |
| 279 | + -webkit-box-direction: normal; | |
| 280 | + -ms-flex-direction: column; | |
| 281 | + flex-direction: column; | |
| 282 | + -webkit-box-flex: 1; | |
| 283 | + -ms-flex: 1; | |
| 284 | + flex: 1; | |
| 285 | + min-height: 0; | |
| 286 | +} | |
| 287 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-column { | |
| 288 | + -webkit-box-flex: 0; | |
| 289 | + -ms-flex: none; | |
| 290 | + flex: none; | |
| 291 | + width: 100%; | |
| 292 | +} | |
| 293 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-column:last-child { | |
| 294 | + display: -webkit-box; | |
| 295 | + display: -ms-flexbox; | |
| 296 | + display: flex; | |
| 297 | + -webkit-box-orient: vertical; | |
| 298 | + -webkit-box-direction: normal; | |
| 299 | + -ms-flex-direction: column; | |
| 300 | + flex-direction: column; | |
| 301 | + -webkit-box-flex: 1; | |
| 302 | + -ms-flex: 1; | |
| 303 | + flex: 1; | |
| 304 | + min-height: 0; | |
| 305 | +} | |
| 306 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-summary { | |
| 307 | + -webkit-box-flex: 1; | |
| 308 | + -ms-flex: 1; | |
| 309 | + flex: 1; | |
| 310 | + min-height: 0; | |
| 311 | + max-height: none; | |
| 312 | + overflow-y: auto; | |
| 313 | +} | |
| 314 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-close-button, | |
| 315 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-nav-prev, | |
| 316 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-nav-next { | |
| 317 | + position: relative; | |
| 318 | + top: 0; | |
| 319 | + left: 0; | |
| 320 | + right: 0; | |
| 321 | + -webkit-transform: none; | |
| 322 | + transform: none; | |
| 323 | + width: 30px; | |
| 324 | + height: 30px; | |
| 325 | + background-color: transparent; | |
| 326 | + border-radius: 6px; | |
| 327 | + -webkit-transition: background-color 0.15s ease; | |
| 328 | + transition: background-color 0.15s ease; | |
| 329 | +} | |
| 330 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-close-button svg, | |
| 331 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-nav-prev svg, | |
| 332 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-nav-next svg { | |
| 333 | + width: 18px; | |
| 334 | + height: 18px; | |
| 335 | + fill: #212121; | |
| 336 | +} | |
| 337 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-close-button:hover, | |
| 338 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-nav-prev:hover, | |
| 339 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-nav-next:hover { | |
| 340 | + background-color: #f5f5f5; | |
| 341 | +} | |
| 342 | +.merchant-quick-view-layout-side-panel .merchant-quick-view-nav-next { | |
| 343 | + margin-right: auto; | |
| 344 | +} | |
| 345 | + | |
| 346 | +body.admin-bar .merchant-quick-view-layout-side-panel .merchant-quick-view-inner { | |
| 347 | + height: calc(100vh - 32px); | |
| 348 | +} | |
| 349 | +@media (max-width: 782px) { | |
| 350 | + body.admin-bar .merchant-quick-view-layout-side-panel .merchant-quick-view-inner { | |
| 351 | + height: calc(100vh - 46px); | |
| 352 | + } | |
| 353 | +} | |
| 354 | + | |
| 355 | +.merchant-quick-view-nav-prev, | |
| 356 | +.merchant-quick-view-nav-next { | |
| 357 | + position: absolute; | |
| 358 | + z-index: 4; | |
| 359 | + top: 50%; | |
| 360 | + -webkit-transform: translateY(-50%); | |
| 361 | + transform: translateY(-50%); | |
| 362 | + width: 48px; | |
| 363 | + height: 48px; | |
| 364 | + display: none; | |
| 365 | + -webkit-box-align: center; | |
| 366 | + -ms-flex-align: center; | |
| 367 | + align-items: center; | |
| 368 | + -webkit-box-pack: center; | |
| 369 | + -ms-flex-pack: center; | |
| 370 | + justify-content: center; | |
| 371 | + background-color: rgba(255, 255, 255, 0.1); | |
| 372 | + border-radius: 50%; | |
| 373 | + -webkit-transition: background-color 0.2s; | |
| 374 | + transition: background-color 0.2s; | |
| 375 | +} | |
| 376 | +.merchant-quick-view-nav-prev.merchant-quick-view-nav-visible, | |
| 377 | +.merchant-quick-view-nav-next.merchant-quick-view-nav-visible { | |
| 378 | + display: -webkit-box; | |
| 379 | + display: -ms-flexbox; | |
| 380 | + display: flex; | |
| 381 | +} | |
| 382 | +.merchant-quick-view-nav-prev svg, | |
| 383 | +.merchant-quick-view-nav-next svg { | |
| 384 | + width: 24px; | |
| 385 | + height: 24px; | |
| 386 | + fill: #fff; | |
| 387 | +} | |
| 388 | +.merchant-quick-view-nav-prev:hover, | |
| 389 | +.merchant-quick-view-nav-next:hover { | |
| 390 | + background-color: rgba(255, 255, 255, 0.2); | |
| 391 | +} | |
| 392 | + | |
| 393 | +.merchant-quick-view-nav-prev { | |
| 394 | + left: -65px; | |
| 395 | +} | |
| 396 | +@media (max-width: 768px) { | |
| 397 | + .merchant-quick-view-nav-prev { | |
| 398 | + left: 10px; | |
| 399 | + } | |
| 400 | +} | |
| 401 | + | |
| 402 | +.merchant-quick-view-nav-next { | |
| 403 | + right: -65px; | |
| 404 | +} | |
| 405 | +@media (max-width: 768px) { | |
| 406 | + .merchant-quick-view-nav-next { | |
| 407 | + right: 10px; | |
| 408 | + } | |
| 409 | +} | |
| 410 | + | |
| 186 | 411 | @-webkit-keyframes merchant-fa-spin { |
| 187 | 412 | 0% { |
| 188 | 413 | -webkit-transform: rotate(0deg); |
| 189 | 414 | transform: rotate(0deg); |
| @@ -549,6 +774,26 @@ | ||
| 549 | 774 | max-height: none !important; |
| 550 | 775 | } |
| 551 | 776 | .merchant-quick-view-thumbs-at-bottom .woocommerce-product-gallery { |
| 552 | 777 | max-height: none !important; |
| 778 | + } | |
| 779 | + .merchant-quick-view-layout-side-panel { | |
| 780 | + -webkit-box-pack: center !important; | |
| 781 | + -ms-flex-pack: center !important; | |
| 782 | + justify-content: center !important; | |
| 783 | + -webkit-box-align: end !important; | |
| 784 | + -ms-flex-align: end !important; | |
| 785 | + align-items: flex-end !important; | |
| 786 | + } | |
| 787 | + .merchant-quick-view-layout-side-panel .merchant-quick-view-inner { | |
| 788 | + width: 100%; | |
| 789 | + max-width: 100%; | |
| 790 | + height: 85vh; | |
| 791 | + max-height: 85vh; | |
| 792 | + -webkit-transform: translateY(100%); | |
| 793 | + transform: translateY(100%); | |
| 794 | + } | |
| 795 | + .merchant-quick-view-layout-side-panel .merchant-quick-view-inner.merchant-show { | |
| 796 | + -webkit-transform: translateY(0); | |
| 797 | + transform: translateY(0); | |
| 553 | 798 | } |
| 554 | 799 | } |