@jjlmoya/utils-diy 1.18.0 → 1.19.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-diy",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,14 +1,23 @@
1
1
  .ec-root {
2
+ box-sizing: border-box;
2
3
  width: 100%;
3
4
  max-width: 72rem;
4
5
  margin: 0 auto;
6
+ container-type: inline-size;
5
7
  overflow-x: clip;
6
8
  }
7
9
 
10
+ .ec-root *,
11
+ .ec-root *::before,
12
+ .ec-root *::after {
13
+ box-sizing: border-box;
14
+ }
15
+
8
16
  .ec-grid {
9
17
  display: grid;
10
18
  grid-template-columns: 1fr;
11
19
  gap: 2rem;
20
+ min-width: 0;
12
21
  }
13
22
 
14
23
  @media (min-width: 1024px) {
@@ -18,6 +27,7 @@
18
27
  }
19
28
 
20
29
  .ec-panel-left {
30
+ min-width: 0;
21
31
  background: rgba(255, 255, 255, 0.7);
22
32
  backdrop-filter: blur(12px);
23
33
  border: 1px solid rgba(255, 255, 255, 0.4);
@@ -36,6 +46,7 @@
36
46
  padding: 0.375rem;
37
47
  border-radius: 1rem;
38
48
  max-width: 100%;
49
+ min-width: 0;
39
50
  }
40
51
 
41
52
  .ec-tab-btn {
@@ -682,3 +693,56 @@
682
693
  min-height: 3.15rem;
683
694
  }
684
695
  }
696
+
697
+ @container (max-width: 720px) {
698
+ .ec-grid {
699
+ gap: 1rem;
700
+ }
701
+
702
+ .ec-panel-left,
703
+ .ec-result-inner,
704
+ .ec-viz-card {
705
+ min-width: 0;
706
+ padding: 0.875rem;
707
+ border-radius: 1rem;
708
+ }
709
+
710
+ .ec-tabs {
711
+ display: grid;
712
+ grid-template-columns: repeat(3, minmax(0, 1fr));
713
+ gap: 0.25rem;
714
+ overflow: hidden;
715
+ }
716
+
717
+ .ec-tab-btn {
718
+ min-width: 0;
719
+ padding: 0.55rem 0.35rem;
720
+ font-size: 0.75rem;
721
+ line-height: 1.15;
722
+ white-space: normal;
723
+ overflow-wrap: anywhere;
724
+ }
725
+
726
+ .ec-tab-icon {
727
+ flex-shrink: 0;
728
+ font-size: 1rem;
729
+ }
730
+
731
+ .ec-inputs-grid,
732
+ .ec-custom-grid,
733
+ .ec-parts-grid {
734
+ grid-template-columns: minmax(0, 1fr);
735
+ gap: 1rem;
736
+ }
737
+
738
+ .ec-waste-row {
739
+ gap: 1rem;
740
+ align-items: flex-start;
741
+ padding: 0.875rem;
742
+ overflow: hidden;
743
+ }
744
+
745
+ .ec-waste-info {
746
+ align-items: flex-start;
747
+ }
748
+ }
@@ -1,7 +1,9 @@
1
1
  .pp-root {
2
+ box-sizing: border-box;
2
3
  width: 100%;
3
4
  max-width: 1100px;
4
5
  margin: 0 auto;
6
+ container-type: inline-size;
5
7
  background: #fff;
6
8
  border: 1px solid #e2e8f0;
7
9
  border-radius: 1.5rem;
@@ -9,6 +11,12 @@
9
11
  overflow: hidden;
10
12
  }
11
13
 
14
+ .pp-root *,
15
+ .pp-root *::before,
16
+ .pp-root *::after {
17
+ box-sizing: border-box;
18
+ }
19
+
12
20
  .theme-dark .pp-root {
13
21
  background: #1e1e2e;
14
22
  border-color: #2d2d3f;
@@ -18,6 +26,7 @@
18
26
  .pp-grid {
19
27
  display: grid;
20
28
  grid-template-columns: 1fr;
29
+ min-width: 0;
21
30
  }
22
31
 
23
32
  @media (min-width: 1024px) {
@@ -27,6 +36,7 @@
27
36
  }
28
37
 
29
38
  .pp-inputs {
39
+ min-width: 0;
30
40
  padding: 2rem;
31
41
  background: #f8fafc;
32
42
  display: flex;
@@ -624,3 +634,70 @@
624
634
  width: min(100%, 70vw);
625
635
  }
626
636
  }
637
+
638
+ @container (max-width: 720px) {
639
+ .pp-root {
640
+ border-radius: 0.875rem;
641
+ }
642
+
643
+ .pp-inputs {
644
+ padding: 1rem;
645
+ gap: 1.25rem;
646
+ border-right: 0;
647
+ border-bottom: 1px solid #e2e8f0;
648
+ }
649
+
650
+ .theme-dark .pp-inputs {
651
+ border-bottom-color: #2d2d3f;
652
+ }
653
+
654
+ .pp-row {
655
+ grid-template-columns: minmax(0, 1fr);
656
+ gap: 0.75rem;
657
+ }
658
+
659
+ .pp-toggle-label {
660
+ align-items: flex-start;
661
+ }
662
+
663
+ .pp-preview {
664
+ min-height: 360px;
665
+ padding: 3.25rem 1rem;
666
+ overflow: hidden;
667
+ }
668
+
669
+ .pp-frame-wrapper {
670
+ width: min(100%, 76%);
671
+ max-height: 320px;
672
+ }
673
+
674
+ .pp-border-left {
675
+ left: 0.35rem;
676
+ align-items: flex-start;
677
+ padding-right: 0;
678
+ transform: translateY(-50%);
679
+ }
680
+
681
+ .pp-border-right {
682
+ right: 0.35rem;
683
+ align-items: flex-end;
684
+ padding-left: 0;
685
+ transform: translateY(-50%);
686
+ }
687
+
688
+ .pp-border-val {
689
+ font-size: 0.95rem;
690
+ }
691
+
692
+ .pp-border-tag,
693
+ .pp-border-unit {
694
+ font-size: 0.55rem;
695
+ }
696
+
697
+ .pp-border-tag {
698
+ letter-spacing: 0.04em;
699
+ max-width: 2.75rem;
700
+ overflow-wrap: anywhere;
701
+ text-align: inherit;
702
+ }
703
+ }
@@ -22,6 +22,7 @@
22
22
  }
23
23
 
24
24
  .sc-root {
25
+ box-sizing: border-box;
25
26
  width: 100%;
26
27
  max-width: 1100px;
27
28
  margin: 1.5rem auto;
@@ -31,7 +32,15 @@
31
32
  overflow-x: clip;
32
33
  }
33
34
 
35
+ .sc-root *,
36
+ .sc-root *::before,
37
+ .sc-root *::after {
38
+ box-sizing: border-box;
39
+ }
40
+
34
41
  .sc-card {
42
+ width: 100%;
43
+ max-width: 100%;
35
44
  background: var(--sc-bg);
36
45
  border-radius: 2rem;
37
46
  overflow: hidden;