photo_server_json_flutter_c.../public/css/header.css
2026-03-05 17:07:30 +01:00

85 lines
No EOL
2.1 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ===============================
Header compatto
=============================== */
header {
padding: 4px 10px; /* era 10px 15px */
background: #333;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
}
/* Titolo più piccolo e senza margini extra */
header h1 {
font-size: 18px; /* ridotto */
line-height: 1.1;
margin: 0;
}
/* Contenitore bottoni in alto a destra */
.top-buttons {
display: flex;
gap: 6px; /* era 10px */
}
/* Bottoni icona più compatti */
.icon-btn {
background: none;
border: none;
font-size: 18px; /* era 22px */
padding: 3px 6px; /* era 6px 10px */
cursor: pointer;
border-radius: 6px;
color: white;
line-height: 1;
min-height: 32px; /* tap target minimo desktop */
min-width: 32px;
}
.icon-btn:hover {
background: rgba(255,255,255,0.15);
}
/* Logout rotondo: riduciamo la “bolla” */
.icon-btn.logout-btn {
--size: 28px; /* era 36px */
width: var(--size);
height: var(--size);
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
}
/* PNG del logout in scala con lheader */
.logout-icon {
width: 18px; /* era 22px */
height: 18px;
display: block;
filter: brightness(0) invert(1);
image-rendering: -webkit-optimize-contrast;
}
/* ===============================
Visibilità Logout robusta
=============================== */
/* Base: nascosto (prima del login o se non autenticato) */
#logoutBtn {
display: none;
}
/* Quando autenticato, mostra il bottone coerente con gli altri icon-btn */
body.authenticated #logoutBtn {
display: inline-flex;
align-items: center;
justify-content: center;
}
/* Se esistono regole più forti altrove che lo nascondono,
puoi temporaneamente forzare:
body.authenticated #logoutBtn { display: inline-flex !important; } */