Skip to content

Commit 6ef9f79

Browse files
Adjust header styles for better responsiveness
1 parent 9041b4e commit 6ef9f79

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

index.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@
5252
.header-name { display:flex; flex-direction:column; min-width:0; flex-shrink:1; }
5353
.header-name strong {
5454
color:#fff; font-size:1rem; font-weight:700;
55-
letter-spacing:.02em; line-height:1.2;
55+
letter-spacing:.02em; line-height:1.15;
56+
white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
57+
}
58+
.header-name small {
59+
color:var(--verde-light); font-size:.58rem; font-weight:600;
60+
letter-spacing:.07em; text-transform:uppercase;
5661
white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
5762
}
5863
.header-right {
@@ -149,7 +154,8 @@
149154
/* ── MOBILE ── */
150155
@media (max-width:700px) {
151156
.header-logo-img { height:34px; }
152-
.header-name strong { font-size:.88rem; }
157+
.header-name strong { font-size:.85rem; }
158+
.header-name small { font-size:.55rem; display:block; }
153159
.header-title { display:none; }
154160
.status-badge { font-size:.65rem; padding:4px 9px; }
155161

@@ -159,10 +165,17 @@
159165
.grafico-item:first-child { border-right:none; border-bottom:1px solid var(--border); }
160166
}
161167

162-
/* ── telas muito pequenas (< 380px) ── */
163-
@media (max-width:380px) {
164-
.header-name strong { font-size:.75rem; }
168+
/* ── telas muito pequenas (< 420px) ── */
169+
@media (max-width:420px) {
170+
.header-name strong { font-size:.78rem; }
171+
.header-name small { font-size:.5rem; display:block; }
172+
.header-logo-img { height:30px; }
165173
.status-badge { font-size:.6rem; padding:4px 7px; gap:4px; }
174+
}
175+
176+
/* ── telas minúsculas (< 340px) ── */
177+
@media (max-width:340px) {
178+
.header-name small { display:none; }
166179
.header-divider { display:none; }
167180
}
168181
</style>
@@ -177,6 +190,7 @@
177190
<div class="header-divider"></div>
178191
<div class="header-name">
179192
<strong>Vansan Therm</strong>
193+
<small>Monitoramento Inteligente</small>
180194
</div>
181195
</div>
182196
<div class="header-right">

0 commit comments

Comments
 (0)