@nuvler/theme-default 1.1.2 → 1.1.7

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/theme.css CHANGED
@@ -475,20 +475,16 @@ html {
475
475
  .nuvler-not-found-cloud-svg {
476
476
  position: absolute;
477
477
  z-index: 2;
478
+ display: block;
478
479
  top: 0;
479
480
  left: 50%;
480
481
  width: 82%;
482
+ height: auto;
481
483
  aspect-ratio: 640 / 420;
482
484
  transform: translateX(-50%);
483
485
  color: var(--color-primary);
484
486
  }
485
487
 
486
- .nuvler-not-found-cloud-svg svg {
487
- display: block;
488
- width: 100%;
489
- height: 100%;
490
- }
491
-
492
488
  .nuvler-not-found-code {
493
489
  position: absolute;
494
490
  z-index: 1;
@@ -1812,6 +1808,21 @@ select {
1812
1808
  line-height: 1.3;
1813
1809
  }
1814
1810
 
1811
+ .mini-banner-link-label {
1812
+ display: inline-flex;
1813
+ align-items: center;
1814
+ width: fit-content;
1815
+ margin-top: 8px;
1816
+ color: var(--color-primary);
1817
+ font-size: 14px;
1818
+ font-weight: 800;
1819
+ }
1820
+
1821
+ .mini-banner-link-label::after {
1822
+ content: "→";
1823
+ margin-left: 6px;
1824
+ }
1825
+
1815
1826
  a.mini-banner-card:hover .mini-banner-image > img {
1816
1827
  transform: scale(1.025);
1817
1828
  }
@@ -2205,16 +2216,20 @@ a.mini-banner-card:focus-visible {
2205
2216
 
2206
2217
  .image-text-media {
2207
2218
  overflow: hidden;
2208
- aspect-ratio: 4 / 3;
2219
+ aspect-ratio: auto;
2209
2220
  border-radius: var(--radius-md);
2210
- background: #eef0ea;
2221
+ background: transparent;
2222
+ }
2223
+
2224
+ .image-text-media img {
2225
+ display: block;
2226
+ width: 100%;
2227
+ height: auto;
2211
2228
  }
2212
2229
 
2213
- .image-text-media img,
2214
2230
  .image-text-media .store-image-placeholder {
2231
+ min-height: 320px;
2215
2232
  width: 100%;
2216
- height: 100%;
2217
- object-fit: cover;
2218
2233
  }
2219
2234
 
2220
2235
  .image-text-copy > span {
@@ -2524,7 +2539,7 @@ a.mini-banner-card:focus-visible {
2524
2539
  .product-card-image > .store-image-placeholder {
2525
2540
  width: 100%;
2526
2541
  height: 100%;
2527
- object-fit: cover;
2542
+ object-fit: contain;
2528
2543
  transition: transform 300ms ease;
2529
2544
  }
2530
2545
 
@@ -2560,7 +2575,7 @@ a.mini-banner-card:focus-visible {
2560
2575
  }
2561
2576
 
2562
2577
  .product-card:hover .product-card-image img {
2563
- transform: scale(1.035);
2578
+ transform: none;
2564
2579
  }
2565
2580
 
2566
2581
  .store-image-placeholder {
@@ -2633,6 +2648,7 @@ a.mini-banner-card:focus-visible {
2633
2648
  color: var(--store-muted);
2634
2649
  font-size: 12px;
2635
2650
  line-height: 1.2;
2651
+ text-decoration: line-through;
2636
2652
  }
2637
2653
 
2638
2654
  .product-card-price strong {
@@ -2844,6 +2860,94 @@ a.mini-banner-card:focus-visible {
2844
2860
  gap: var(--space-3);
2845
2861
  }
2846
2862
 
2863
+ .home-brands-grid[data-columns="1"] {
2864
+ grid-template-columns: repeat(1, minmax(0, 1fr));
2865
+ }
2866
+
2867
+ .home-brands-grid[data-columns="2"] {
2868
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2869
+ }
2870
+
2871
+ .home-brands-grid[data-columns="3"] {
2872
+ grid-template-columns: repeat(3, minmax(0, 1fr));
2873
+ }
2874
+
2875
+ .home-brands-grid[data-columns="4"] {
2876
+ grid-template-columns: repeat(4, minmax(0, 1fr));
2877
+ }
2878
+
2879
+ .home-brands-grid[data-columns="5"] {
2880
+ grid-template-columns: repeat(5, minmax(0, 1fr));
2881
+ }
2882
+
2883
+ .home-brands-grid[data-columns="6"] {
2884
+ grid-template-columns: repeat(6, minmax(0, 1fr));
2885
+ }
2886
+
2887
+ .brands-carousel {
2888
+ position: relative;
2889
+ padding-top: 46px;
2890
+ }
2891
+
2892
+ .brands-carousel-track {
2893
+ display: flex;
2894
+ align-items: stretch;
2895
+ gap: var(--space-3);
2896
+ overflow-x: auto;
2897
+ padding: 4px 0 22px;
2898
+ scroll-behavior: smooth;
2899
+ scroll-snap-type: x mandatory;
2900
+ scrollbar-width: none;
2901
+ }
2902
+
2903
+ .brands-carousel-track::-webkit-scrollbar {
2904
+ display: none;
2905
+ }
2906
+
2907
+ .brands-carousel-track > article,
2908
+ .brands-carousel-track > a {
2909
+ display: grid;
2910
+ min-width: 160px;
2911
+ min-height: 104px;
2912
+ flex: 0 0 calc((100% - 48px) / 5);
2913
+ place-items: center;
2914
+ overflow: hidden;
2915
+ border: 1px solid var(--store-line);
2916
+ border-radius: var(--radius-md);
2917
+ background: var(--store-surface);
2918
+ padding: var(--space-4);
2919
+ scroll-snap-align: start;
2920
+ text-align: center;
2921
+ }
2922
+
2923
+ .brands-carousel-track img {
2924
+ width: 100%;
2925
+ max-width: 150px;
2926
+ max-height: 54px;
2927
+ object-fit: contain;
2928
+ }
2929
+
2930
+ .brands-carousel-track strong {
2931
+ font-size: 14px;
2932
+ }
2933
+
2934
+ .brands-carousel .carousel-arrow {
2935
+ top: 0;
2936
+ width: 34px;
2937
+ height: 34px;
2938
+ transform: none;
2939
+ background: var(--store-surface);
2940
+ }
2941
+
2942
+ .brands-carousel .carousel-arrow-prev {
2943
+ right: 42px;
2944
+ left: auto;
2945
+ }
2946
+
2947
+ .brands-carousel .carousel-arrow-next {
2948
+ right: 0;
2949
+ }
2950
+
2847
2951
  .home-brands-grid > article,
2848
2952
  .home-brands-grid > a {
2849
2953
  display: grid;
@@ -4195,7 +4299,7 @@ a.mini-banner-card:focus-visible {
4195
4299
  .product-carousel-track { gap: 12px; padding-bottom: 16px; }
4196
4300
  .product-carousel-item { flex-basis: calc((100% - 36px) / 4); min-width: 205px; }
4197
4301
  .product-card { border-radius: 8px; }
4198
- .product-card-image { aspect-ratio: 1 / 1.05; }
4302
+ .product-card-image { aspect-ratio: 5 / 4; }
4199
4303
  .product-card-content { padding: 12px; }
4200
4304
  .product-category { margin-bottom: 5px; font-size: 8px; }
4201
4305
  .product-card h3 { min-height: 38px; font-size: 13px; line-height: 1.35; }
@@ -4497,10 +4601,27 @@ a.mini-banner-card:focus-visible {
4497
4601
  grid-template-columns: 1fr;
4498
4602
  }
4499
4603
 
4500
- .home-brands-grid {
4604
+ .home-brands-grid[data-columns="1"] {
4605
+ grid-template-columns: repeat(1, minmax(0, 1fr));
4606
+ }
4607
+
4608
+ .home-brands-grid[data-columns="2"] {
4609
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4610
+ }
4611
+
4612
+ .home-brands-grid[data-columns="3"],
4613
+ .home-brands-grid[data-columns="4"],
4614
+ .home-brands-grid[data-columns="5"],
4615
+ .home-brands-grid[data-columns="6"] {
4501
4616
  grid-template-columns: repeat(3, minmax(0, 1fr));
4502
4617
  }
4503
4618
 
4619
+ .brands-carousel-track > article,
4620
+ .brands-carousel-track > a {
4621
+ min-width: 0;
4622
+ flex-basis: calc((100% - 24px) / 3);
4623
+ }
4624
+
4504
4625
  .benefits-grid > div + div {
4505
4626
  border-top: 1px solid var(--store-line);
4506
4627
  border-left: 0;
@@ -4698,10 +4819,23 @@ a.mini-banner-card:focus-visible {
4698
4819
  font-size: 16px;
4699
4820
  }
4700
4821
 
4701
- .home-brands-grid {
4822
+ .home-brands-grid[data-columns="1"] {
4823
+ grid-template-columns: repeat(1, minmax(0, 1fr));
4824
+ }
4825
+
4826
+ .home-brands-grid[data-columns="2"],
4827
+ .home-brands-grid[data-columns="3"],
4828
+ .home-brands-grid[data-columns="4"],
4829
+ .home-brands-grid[data-columns="5"],
4830
+ .home-brands-grid[data-columns="6"] {
4702
4831
  grid-template-columns: repeat(2, minmax(0, 1fr));
4703
4832
  }
4704
4833
 
4834
+ .brands-carousel-track > article,
4835
+ .brands-carousel-track > a {
4836
+ flex-basis: calc((100% - 12px) / 2);
4837
+ }
4838
+
4705
4839
  .benefits-section {
4706
4840
  padding: 24px 0;
4707
4841
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvler/theme-default",
3
- "version": "1.1.2",
3
+ "version": "1.1.7",
4
4
  "description": "Tema padrão oficial da Nuvler",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -65,7 +65,7 @@
65
65
  "react": "^19.0.0"
66
66
  },
67
67
  "dependencies": {
68
- "@nuvler/theme-sdk": "^1.4.2"
68
+ "@nuvler/theme-sdk": "^1.4.3"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/react": "^19.0.0",