my_gallery/css/bottomSheet.css
2026-02-22 01:17:13 +01:00

100 lines
1.7 KiB
CSS

/* ===============================
BOTTOM SHEET (menu ⋮)
=============================== */
.bottom-sheet {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
/* 🔥 Altezza dinamica: abbastanza grande per mostrare tutto */
height: 60vh;
max-height: 80vh;
background: rgba(255,255,255,0.95);
backdrop-filter: blur(6px);
border-top: 1px solid #ddd;
box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
display: none;
flex-direction: column;
z-index: 9999;
overflow-y: auto; /* 🔥 Scroll verticale */
}
.bottom-sheet.open {
display: flex;
}
/* Header con la "maniglia" */
.sheet-header {
height: 16px;
display: flex;
justify-content: center;
align-items: center;
}
.sheet-header::before {
content: "";
width: 40px;
height: 4px;
background: #bbb;
border-radius: 4px;
}
/* Contenuto del menu (ordinamento, filtri, ecc.) */
.sheet-content {
padding: 20px;
}
/* Miniature (usate nel bottom sheet delle foto, non in quello delle opzioni) */
.sheet-gallery {
display: flex;
flex-direction: row;
overflow-x: auto;
padding: 10px;
gap: 10px;
}
.sheet-item {
width: 90px;
height: 90px;
border-radius: 10px;
overflow: hidden;
flex-shrink: 0;
box-shadow: 0 2px 6px rgba(0,0,0,0.25);
background: #eee;
}
.sheet-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Pulsanti del menu ⋮ */
.sheet-btn {
width: 100%;
padding: 12px;
margin-bottom: 8px;
text-align: left;
background: #f5f5f5;
border: none;
border-radius: 8px;
font-size: 15px;
cursor: pointer;
}
.sheet-btn:hover {
background: #e8e8e8;
}
/* Titoli delle sezioni */
#optionsSheet h3 {
margin-top: 20px;
margin-bottom: 10px;
font-size: 16px;
color: #444;
}