@sailingrotevista/rotevista-dash 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/style.css +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sailingrotevista/rotevista-dash",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Dashboard pubblica per Bavaria 39 Rotevista",
5
5
  "main": "index.html",
6
6
  "publishConfig": {
package/style.css CHANGED
@@ -67,6 +67,7 @@ body {
67
67
  width: 100%;
68
68
  box-sizing: border-box;
69
69
  flex: 1;
70
+ container-type: size; /* TRUCCO MAGICO: Rende il box misurabile per i suoi figli */
70
71
  }
71
72
 
72
73
  /* ==========================================================================
@@ -86,7 +87,17 @@ body {
86
87
  .label { color: #666; font-size: 0.6rem; font-weight: bold; text-transform: uppercase; }
87
88
  .unit { color: #888; font-size: 0.55rem; font-weight: bold; }
88
89
 
89
- .value { color: #fff; font-size: 2.4rem; font-weight: 600; line-height: 0.9; letter-spacing: -1px; transition: color 0.3s ease; padding-bottom: 5px; }
90
+ /* Numeri standard (con grafico) */
91
+ .value {
92
+ color: #fff;
93
+ /* clamp: minimo 1.8rem, preferito 30% altezza box, massimo 3.5rem */
94
+ font-size: clamp(1.8rem, 30cqh, 3.5rem);
95
+ font-weight: 600;
96
+ line-height: 0.9;
97
+ letter-spacing: -1px;
98
+ transition: color 0.3s ease;
99
+ padding-bottom: 5px;
100
+ }
90
101
  .value-large { margin-top: auto; font-size: clamp(2.4rem, 7.5vh, 4.5rem); line-height: 0.85; }
91
102
 
92
103
  /* ==========================================================================