diff --git a/static/css/base/reset.css b/static/css/base/reset.css index 227c2a59..9617291f 100644 --- a/static/css/base/reset.css +++ b/static/css/base/reset.css @@ -21,4 +21,4 @@ html[dir='rtl'] .fa-sign-out-alt { transform: rotate(180deg); } /* Utility: hide elements without inline style="" (CSP-safe) */ -.hidden { display: none; } \ No newline at end of file +.hidden { display: none !important; } diff --git a/static/css/components/multiSelect.css b/static/css/components/multiSelect.css index 1b39ce1c..39c48cd6 100644 --- a/static/css/components/multiSelect.css +++ b/static/css/components/multiSelect.css @@ -34,7 +34,7 @@ min-width: 0; } -.batch-action-bar { +.batch-selection-bar { display: flex; align-items: center; justify-content: space-between; @@ -43,21 +43,11 @@ padding: 10px 20px; border-radius: 12px; margin: 0 0 12px; - opacity: 0; - max-height: 0; + height: 60px; overflow: hidden; transform: translateY(-8px); transition: opacity 0.2s, max-height 0.25s, transform 0.2s, margin 0.2s, padding 0.2s; - pointer-events: none; -} - -.batch-action-bar.visible { - opacity: 1; - max-height: 60px; - transform: translateY(0); pointer-events: auto; - padding: 10px 20px; - margin: 0 0 12px; } .batch-bar-left { @@ -140,7 +130,7 @@ accent-color: #ff5e3a; } -[data-theme="dark"] .batch-action-bar { +[data-theme="dark"] .batch-selection-bar { background-color: #1e293b; border-color: #334155; color: #e2e8f0; diff --git a/static/css/layout/content.css b/static/css/layout/content.css index 061954d6..f4685c96 100644 --- a/static/css/layout/content.css +++ b/static/css/layout/content.css @@ -16,7 +16,9 @@ .actions-bar { display: flex; justify-content: space-between; - margin-bottom: 20px; + margin: 0 0 12px; + height: 60px; + padding: 10px; } .action-buttons { @@ -36,3 +38,51 @@ height: 300px; grid-column: 1 / -1; } + +/* invisible element, permits building of drag element without altering display */ +.drag-preview { + position: absolute; + top: -9999px; + left: -9999px; + pointer-events: none; + width: 360px; +} + +.dragged-items > div { + position: relative; + display: inline-block; + padding: 4px; + width: 360px; + background-color: white; + height: 46px; +} + +.dragged-items > div.fading { + -webkit-mask-image: linear-gradient(to bottom, white 20%, transparent); + mask-image: linear-gradient(to bottom, white 20%, transparent); +} + +.dragged-items-badge { + position: absolute; + top: 0; + right: 0; + + transform: translate(50%, -50%); + + background: red; + color: white; + + border-radius: 50%; + min-width: 20px; + height: 20px; + + display: flex; + align-items: center; + justify-content: center; + + font-size: 12px; + font-weight: bold; + + padding: 2px; +} + diff --git a/static/index.html b/static/index.html index a9fdb626..3989ff6b 100644 --- a/static/index.html +++ b/static/index.html @@ -204,7 +204,7 @@