diff --git a/public/userarea/imported.php b/public/userarea/imported.php index 5ce05739..50c9d9dd 100644 --- a/public/userarea/imported.php +++ b/public/userarea/imported.php @@ -1411,6 +1411,61 @@ $gridMeta = [ background: #fff; } + /* Card-header azioni sticky sotto la topbar */ + :root { + --actions-top: 0px; + /* posizione verticale barra azioni: abbassa/alza questo */ + --actions-height: 58px; + /* altezza reale del card-header azioni */ + } + + .card-header.sticky-actions { + position: sticky; + top: var(--actions-top); + z-index: 40; + background: #fff; + } + + /* La barra di scroll superiore segue sempre il card-header sticky */ + .top-scrollbar { + top: calc(var(--actions-top) + var(--actions-height)) !important; + } + + /* Tastino toggle sticky */ + .sticky-toggle-btn { + border: 1px solid #ced4da; + background: #fff; + color: #adb5bd; + transition: all .15s; + } + + .sticky-toggle-btn:hover { + background: #f1f3f5; + color: #6c757d; + } + + .sticky-toggle-btn.active { + background: #0d6efd; + border-color: #0d6efd; + color: #fff; + } + + .sticky-toggle-btn.active:hover { + background: #0b5ed7; + color: #fff; + } + + /* Icona ruotata quando sbloccato (puntina "storta") */ + .sticky-toggle-btn:not(.active) i { + transform: rotate(45deg); + } + + /* Quando la classe è tolta dal card-header, non è più sticky */ + .card-header.actions-unpinned { + position: static !important; + top: auto !important; + } + = 2): ?>.grid-top .grid-cell:nth-child(3) { position: sticky !important; left: 360px; @@ -1514,8 +1569,9 @@ $gridMeta = [