face-age 2.4.7 → 2.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/faceage.css CHANGED
@@ -2471,7 +2471,6 @@ body {
2471
2471
  }
2472
2472
 
2473
2473
  /* History detail page (result + routines + products) */
2474
- #faceAge-module-body.section:has(.history-detail-page),
2475
2474
  #faceAge-module-body.widget:has(.history-detail-page),
2476
2475
  #faceAge-module-body.modal:has(.history-detail-page) {
2477
2476
  display: flex;
@@ -2481,16 +2480,19 @@ body {
2481
2480
  overflow: hidden;
2482
2481
  }
2483
2482
 
2483
+ #faceAge-module-body.section:has(.history-detail-page) {
2484
+ display: block;
2485
+ height: auto;
2486
+ min-height: 100%;
2487
+ overflow: visible;
2488
+ }
2489
+
2484
2490
  .history-detail-page {
2485
2491
  position: relative;
2486
2492
  display: flex;
2487
2493
  flex-direction: column;
2488
- flex: 1 1 0%;
2489
2494
  align-self: stretch;
2490
2495
  width: 100%;
2491
- height: 100%;
2492
- min-height: 0;
2493
- overflow: hidden;
2494
2496
  --history-detail-gutter: 16px;
2495
2497
  --skin-status-good: #22C55E;
2496
2498
  --skin-status-fair: #F59E0B;
@@ -2502,6 +2504,21 @@ body {
2502
2504
  background-color: #fff;
2503
2505
  }
2504
2506
 
2507
+ .history-detail-page.modal,
2508
+ .history-detail-page.widget {
2509
+ flex: 1 1 0%;
2510
+ height: 100%;
2511
+ min-height: 0;
2512
+ overflow: hidden;
2513
+ }
2514
+
2515
+ .history-detail-page.section {
2516
+ flex: 0 0 auto;
2517
+ height: auto;
2518
+ min-height: 0;
2519
+ overflow: visible;
2520
+ }
2521
+
2505
2522
  .history-detail-page .history-detail-back {
2506
2523
  position: sticky;
2507
2524
  top: 0;
@@ -2874,14 +2891,25 @@ body {
2874
2891
  }
2875
2892
 
2876
2893
  .history-detail-page .history-detail-content {
2894
+ box-sizing: border-box;
2895
+ padding: 8px var(--history-detail-gutter) 112px;
2896
+ }
2897
+
2898
+ .history-detail-page.modal .history-detail-content,
2899
+ .history-detail-page.widget .history-detail-content {
2877
2900
  flex: 1 1 auto;
2878
2901
  min-height: 0;
2879
2902
  overflow-x: hidden;
2880
2903
  overflow-y: auto;
2881
2904
  -webkit-overflow-scrolling: touch;
2882
2905
  scrollbar-gutter: stable;
2883
- padding: 8px var(--history-detail-gutter) 112px;
2884
- box-sizing: border-box;
2906
+ }
2907
+
2908
+ .history-detail-page.section .history-detail-content {
2909
+ flex: 0 0 auto;
2910
+ height: auto;
2911
+ min-height: 0;
2912
+ overflow: visible;
2885
2913
  }
2886
2914
 
2887
2915
  .history-detail-page .history-detail-section {
@@ -3158,7 +3186,8 @@ body {
3158
3186
  position: absolute;
3159
3187
  z-index: 50;
3160
3188
  left: 50%;
3161
- bottom: 12px;
3189
+ top: 0;
3190
+ bottom: auto;
3162
3191
  width: min(620px, calc(100% - 24px));
3163
3192
  gap: 3px;
3164
3193
  margin: 0;
@@ -3174,11 +3203,20 @@ body {
3174
3203
  backdrop-filter: blur(18px) saturate(155%);
3175
3204
  -webkit-backdrop-filter: blur(18px) saturate(155%);
3176
3205
  box-sizing: border-box;
3206
+ transform: translate3d(-50%, 0, 0);
3207
+ will-change: transform;
3208
+ }
3209
+
3210
+ .history-detail-page.modal .history-detail-tabs-header {
3211
+ position: fixed;
3212
+ top: auto;
3213
+ bottom: 12px;
3177
3214
  transform: translateX(-50%);
3215
+ will-change: auto;
3178
3216
  }
3179
3217
 
3180
- .history-detail-page.has-faceage-watermark .history-detail-tabs-header {
3181
- bottom: 20px;
3218
+ .history-detail-page.modal.has-faceage-watermark .history-detail-tabs-header {
3219
+ bottom: 28px;
3182
3220
  }
3183
3221
 
3184
3222
  .history-detail-page .history-detail-tab-active-pill {
@@ -3248,13 +3286,26 @@ body {
3248
3286
  flex: 1 1 auto;
3249
3287
  align-self: stretch;
3250
3288
  width: 100%;
3289
+ background: #fff;
3290
+ }
3291
+
3292
+ /* Modal/widget: lock to iframe viewport and scroll inside. */
3293
+ .analysis-result-page.modal,
3294
+ .analysis-result-page.widget {
3251
3295
  height: 100%;
3252
3296
  min-height: 0;
3253
3297
  overflow: hidden;
3254
- background: #fff;
3255
3298
  }
3256
3299
 
3257
- .analysis-result-page .analysis-result-panel {
3300
+ /* Section: grow with content so updateDimension can resize the iframe. */
3301
+ .analysis-result-page.section {
3302
+ height: auto;
3303
+ min-height: 100%;
3304
+ overflow: visible;
3305
+ }
3306
+
3307
+ .analysis-result-page.modal .analysis-result-panel,
3308
+ .analysis-result-page.widget .analysis-result-panel {
3258
3309
  flex: 1 1 auto;
3259
3310
  min-height: 0;
3260
3311
  height: 100%;
@@ -3262,20 +3313,40 @@ body {
3262
3313
  flex-direction: column;
3263
3314
  }
3264
3315
 
3265
- .analysis-result-page .recommendation_products,
3266
- .analysis-result-page .recommendation_products > div,
3267
- .analysis-result-page .recommendation_modal_window {
3316
+ .analysis-result-page.section .analysis-result-panel {
3317
+ flex: 0 0 auto;
3318
+ height: auto;
3319
+ min-height: 0;
3320
+ display: block;
3321
+ }
3322
+
3323
+ .analysis-result-page.modal .recommendation_products,
3324
+ .analysis-result-page.modal .recommendation_products > div,
3325
+ .analysis-result-page.modal .recommendation_modal_window,
3326
+ .analysis-result-page.widget .recommendation_products,
3327
+ .analysis-result-page.widget .recommendation_products > div,
3328
+ .analysis-result-page.widget .recommendation_modal_window {
3268
3329
  height: 100%;
3269
3330
  min-height: 0;
3270
3331
  }
3271
3332
 
3272
- .analysis-result-page .recommendation_modal_window {
3333
+ .analysis-result-page.modal .recommendation_modal_window,
3334
+ .analysis-result-page.widget .recommendation_modal_window {
3273
3335
  display: flex;
3274
3336
  flex-direction: column;
3275
3337
  overflow: hidden !important;
3276
3338
  max-height: 100%;
3277
3339
  }
3278
3340
 
3341
+ .analysis-result-page.section .recommendation_products,
3342
+ .analysis-result-page.section .recommendation_products > div,
3343
+ .analysis-result-page.section .recommendation_modal_window {
3344
+ height: auto;
3345
+ min-height: 100%;
3346
+ max-height: none;
3347
+ overflow: visible !important;
3348
+ }
3349
+
3279
3350
  .analysis-result-page .recommendation_modal_window .header_tools,
3280
3351
  .analysis-result-page .recommendation_modal_window .slider_header {
3281
3352
  flex: 0 0 auto;
@@ -3298,8 +3369,10 @@ body {
3298
3369
  margin-top: 16px;
3299
3370
  }
3300
3371
 
3301
- .analysis-result-page .recommendation_modal_window > .body,
3302
- .analysis-result-page .analysis-result-scan-scroll {
3372
+ .analysis-result-page.modal .recommendation_modal_window > .body,
3373
+ .analysis-result-page.modal .analysis-result-scan-scroll,
3374
+ .analysis-result-page.widget .recommendation_modal_window > .body,
3375
+ .analysis-result-page.widget .analysis-result-scan-scroll {
3303
3376
  flex: 1 1 auto;
3304
3377
  min-height: 0;
3305
3378
  overflow-x: hidden;
@@ -3310,6 +3383,17 @@ body {
3310
3383
  box-sizing: border-box;
3311
3384
  }
3312
3385
 
3386
+ .analysis-result-page.section .recommendation_modal_window > .body,
3387
+ .analysis-result-page.section .analysis-result-scan-scroll {
3388
+ flex: 0 0 auto;
3389
+ height: auto;
3390
+ min-height: 0;
3391
+ overflow: visible;
3392
+ padding-top: 16px;
3393
+ padding-bottom: 112px;
3394
+ box-sizing: border-box;
3395
+ }
3396
+
3313
3397
  .analysis-result-page .analysis-result-scan-scroll {
3314
3398
  scrollbar-gutter: stable;
3315
3399
  padding: 16px 16px 112px;
@@ -3332,7 +3416,8 @@ body {
3332
3416
  position: absolute;
3333
3417
  z-index: 1000;
3334
3418
  left: 50%;
3335
- bottom: 12px;
3419
+ top: 0;
3420
+ bottom: auto;
3336
3421
  width: min(620px, calc(100% - 24px));
3337
3422
  gap: 3px;
3338
3423
  margin: 0;
@@ -3348,11 +3433,21 @@ body {
3348
3433
  backdrop-filter: blur(18px) saturate(155%);
3349
3434
  -webkit-backdrop-filter: blur(18px) saturate(155%);
3350
3435
  box-sizing: border-box;
3436
+ transform: translate3d(-50%, 0, 0);
3437
+ will-change: transform;
3438
+ pointer-events: auto;
3439
+ }
3440
+
3441
+ .analysis-result-page.modal .history-detail-tabs-header {
3442
+ position: fixed;
3443
+ top: auto;
3444
+ bottom: 12px;
3351
3445
  transform: translateX(-50%);
3446
+ will-change: auto;
3352
3447
  }
3353
3448
 
3354
- .analysis-result-page.has-faceage-watermark .history-detail-tabs-header {
3355
- bottom: 20px;
3449
+ .analysis-result-page.modal.has-faceage-watermark .history-detail-tabs-header {
3450
+ bottom: 28px;
3356
3451
  }
3357
3452
 
3358
3453
  .analysis-result-page .history-detail-tab-active-pill {
@@ -3422,14 +3517,17 @@ body {
3422
3517
 
3423
3518
  @media (max-width: 768px) {
3424
3519
  .analysis-result-page .history-detail-tabs-header {
3425
- bottom: 8px;
3426
3520
  width: calc(100% - 16px);
3427
3521
  padding: 6px;
3428
3522
  border-radius: 19px;
3429
3523
  }
3430
3524
 
3431
- .analysis-result-page.has-faceage-watermark .history-detail-tabs-header {
3432
- bottom: 18px;
3525
+ .analysis-result-page.modal .history-detail-tabs-header {
3526
+ bottom: 8px;
3527
+ }
3528
+
3529
+ .analysis-result-page.modal.has-faceage-watermark .history-detail-tabs-header {
3530
+ bottom: 24px;
3433
3531
  }
3434
3532
 
3435
3533
  .analysis-result-page .history-detail-tab-active-pill {
@@ -3916,12 +4014,14 @@ body {
3916
4014
  .history-detail-page .history-detail-embed .routines_products {
3917
4015
  background: transparent !important;
3918
4016
  min-height: auto !important;
4017
+ height: auto !important;
3919
4018
  }
3920
4019
 
3921
4020
  .history-detail-page .history-detail-embed .recommendation_modal_window {
3922
4021
  background: transparent;
3923
4022
  box-shadow: none;
3924
4023
  height: auto !important;
4024
+ min-height: 0 !important;
3925
4025
  max-height: none !important;
3926
4026
  overflow: visible !important;
3927
4027
  }
@@ -4006,7 +4106,7 @@ body {
4006
4106
 
4007
4107
  .routine:not(.routine--product_row) .products {
4008
4108
  display: grid;
4009
- grid-template-columns: repeat(3, minmax(0, 1fr));
4109
+ grid-template-columns: repeat(4, minmax(0, 1fr));
4010
4110
  align-items: stretch;
4011
4111
  gap: 10px;
4012
4112
  margin: 0 0 10px;
@@ -4230,14 +4330,17 @@ body {
4230
4330
  }
4231
4331
 
4232
4332
  .history-detail-page .history-detail-tabs-header {
4233
- bottom: 8px;
4234
4333
  width: calc(100% - 16px);
4235
4334
  padding: 6px;
4236
4335
  border-radius: 19px;
4237
4336
  }
4238
4337
 
4239
- .history-detail-page.has-faceage-watermark .history-detail-tabs-header {
4240
- bottom: 18px;
4338
+ .history-detail-page.modal .history-detail-tabs-header {
4339
+ bottom: 8px;
4340
+ }
4341
+
4342
+ .history-detail-page.modal.has-faceage-watermark .history-detail-tabs-header {
4343
+ bottom: 24px;
4241
4344
  }
4242
4345
 
4243
4346
  .history-detail-page .history-detail-tab-active-pill {