diff --git a/modules/web.html b/modules/web.html index 4c92611..df4277c 100644 --- a/modules/web.html +++ b/modules/web.html @@ -10,50 +10,20 @@ --success:#47d18b; --danger:#ff6b6b; --glass: rgba(255,255,255,0.03); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; } - html,body{height:100%; margin:0; background:linear-gradient(180deg,#071018,#0b1220 60%); color:#e6eef6; overflow: hidden;} + html,body{height:100%; margin:0; background:linear-gradient(180deg,#071018,#0b1220 60%); color:#eef2f6; overflow: hidden;} .container{max-width:1400px; margin:18px auto; padding:18px; display:flex; flex-direction:column; gap:12px} h1{margin:0; font-size:22px; font-weight:700} .layout{display:flex; gap:14px; height:calc(100vh - 140px);} - .panel{ - background:var(--panel); - border-radius:10px; - padding:12px; - box-shadow: 0 6px 18px rgba(2,8,16,0.6); - display:flex; - flex-direction:column; - overflow:hidden; - transition: box-shadow 0.3s ease; - } + .panel{background:var(--panel); border-radius:10px; padding:12px; box-shadow: 0 6px 18px rgba(2,8,16,0.6); display:flex; flex-direction:column; overflow:hidden} .left{flex:1.2; min-width:420px} .right{flex:1; display:flex; flex-direction:column; gap:12px} - - /* Collapsible Header Styling */ - .frame-title{ - font-size:16px; - color:var(--muted); - margin-bottom:8px; - display: flex; - justify-content: space-between; - align-items: center; - cursor: pointer; - user-select: none; - padding: 4px 0; - transition: color 0.2s ease; - } + + .frame-title{ font-size:16px; color:var(--muted); margin-bottom:8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; padding: 4px 0; transition: color 0.2s ease; } .frame-title:hover { color: #fff; } - .frame-title::after { - content: '▼'; - font-size: 10px; - transition: transform 0.3s ease-in-out; /* Smoother arrow rotation */ - opacity: 0.5; - } + .frame-title::after { content: '▼'; font-size: 10px; transition: transform 0.3s ease; opacity: 0.5; } - /* Collapsed States */ - .box { - /* Adds a smooth animation when sections collapse or expand */ - transition: flex-grow 0.4s cubic-bezier(0.4, 0, 0.2, 1); - } - .box.collapsed { flex-grow: 0 !important; flex-shrink: 0; } + .box { transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1); } + .box.collapsed { flex-grow: 0 !important; flex-shrink: 0; flex-basis: auto !important; } .box.collapsed .collapsible-content { display: none; } .box.collapsed .frame-title::after { transform: rotate(-90deg); } .box.collapsed .frame-title { margin-bottom: 0; } @@ -64,88 +34,58 @@ .progress-bar{flex:1; height:9px; background:var(--glass); border-radius:8px; overflow:hidden; position:relative} .progress-fill{height:100%; width:0%; background:linear-gradient(90deg,var(--accent), #6cc7ff); transition:width 0.2s linear} - button, .btn{ - background:transparent; - border:1px solid rgba(255,255,255,0.06); - padding:8px 12px; - border-radius:8px; - color:inherit; - cursor:pointer; - /* Enhanced transition for smoother feedback */ - transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; - } - button:hover, .btn:hover { - background-color: var(--glass); - transform: translateY(-1px); /* Adds a subtle lift effect */ - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); - } - button:active, .btn:active { - transform: translateY(0); /* Adds a press-down effect */ - } + button, .btn{ background:transparent; border:1px solid rgba(255,255,255,0.06); padding:8px 12px; border-radius:8px; color:inherit; cursor:pointer; transition: background-color 0.2s ease, transform 0.15s ease; } + button:hover, .btn:hover { background-color: var(--glass); transform: translateY(-1px); } + button:active, .btn:active { transform: translateY(0); } .btn.activated { background:linear-gradient(90deg, #9ed3ff46, #5bbbff2a); border-color: #5bbbff55; } .btn.primary{background:linear-gradient(90deg,var(--accent), #6cc7ff); color:#001; border:none; font-weight:600} .btn.primary:hover { background:linear-gradient(90deg, #3399ee, #5bbaff); } - .list{background:#07121a; border-radius:8px; padding:8px; overflow:auto; border:1px solid rgba(255,255,255,0.02)} - - /* --- HIDE PLAYLIST SCROLLBAR --- */ - #playlist-box { - scrollbar-width: none; /* For Firefox */ - } - #playlist-box::-webkit-scrollbar { - display: none; /* For Chrome, Safari, and other WebKit browsers */ - } - + .list{background:#07121a; border-radius:8px; padding:8px; border:1px solid rgba(255,255,255,0.02)} ul.playlist{list-style:none; padding:6px; margin:0; font-family: "Consolas",monospace; font-size:13px;} - ul.playlist li{ - padding:6px 8px; - border-radius:6px; - display:flex; - justify-content:space-between; - gap:8px; - transition: background-color 0.2s ease, transform 0.15s ease; /* Smoother hover transition */ - } - ul.playlist li:hover{ - background:rgba(255,255,255,0.04); - transform: translateX(2px); /* Subtle move effect on hover */ - } + ul.playlist li{ padding:6px 8px; border-radius:6px; display:flex; justify-content:space-between; gap:8px; transition: background-color 0.2s ease, transform 0.15s ease; } + ul.playlist li:hover{ background:rgba(255,255,255,0.04); transform: translateX(2px); } ul.playlist li.current{background:rgba(62,166,255,0.08)} ul.playlist li.selected{background:rgba(62, 165, 255, 0.305)} ul.playlist li.pointer{background:rgba(255,255,255,0.04)} .controls{display:flex; gap:8px; margin-top:8px} - .two-col{display:flex; gap:8px; align-items:flex-start; height:100%} .box{display:flex; flex-direction:column; gap:8px; flex-grow: 1; overflow: hidden;} - .listbox{height:100%; min-height:100px; overflow:auto; border-radius:6px; background:var(--card); padding:8px; font-size:14px; scrollbar-width: none;} - - .listbox div.item{ - padding:6px; - border-radius:6px; - transition: background-color 0.2s ease, transform 0.15s ease; /* Smoother hover transition */ - } - .listbox div.item:hover{ - background:rgba(255,255,255,0.04); - cursor:pointer; - transform: translateX(2px); /* Subtle move effect on hover */ - } + .listbox{height:100%; min-height:100px; overflow:auto; border-radius:6px; background:var(--card); padding:8px; font-size:14px;} + .listbox div.item{ padding:6px; border-radius:6px; transition: background-color 0.2s ease; } + .listbox div.item:hover{background:rgba(255,255,255,0.04); cursor:pointer} .listbox div.item.selected{background:rgba(62, 165, 255, 0.305)} + + #section-playlist { + flex: 1 1 0; /* Let it grow and shrink, with a zero basis */ + min-height: 150px; /* Ensure it's always at least this tall */ + } + #section-queue { + flex: 0 0 160px; /* Don't grow, don't shrink, and have a fixed height */ + } + + #playlist-box, #queue-box { + height: 100%; + overflow-y: auto; + scrollbar-width: none; /* For Firefox */ + } + #playlist-box::-webkit-scrollbar, #queue-box::-webkit-scrollbar { + display: none; /* For Chrome, Safari, etc. */ + } - /* --- QUEUE ALWAYS VISIBLE --- */ - /* This makes the Queue section non-collapsible and always visible. */ #section-queue .frame-title { - cursor: default; /* Remove the pointer cursor */ + cursor: default; } #section-queue .frame-title::after { - display: none; /* Hide the collapse arrow icon */ + display: none; /* Hide collapse arrow */ } .small{font-size:12px; color:var(--muted)} - .row{display:flex; gap:8px; align-items:center} .muted{color:var(--muted); font-size:13px} .footer{display:flex; justify-content:space-between; gap:8px; align-items:center; margin-top:8px} .directory-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; flex-grow:1; overflow:hidden} #keybinds {display: flex; gap: 10px; align-items: center; white-space: nowrap; } - #keybinds kbd {background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 2px 6px; font-family: "Consolas", monospace; font-size: 12px; color: #e6eef6; } + #keybinds kbd {background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 2px 6px; font-family: "Consolas", monospace; font-size: 12px; } @media (max-width:800px){ html, body{overflow: auto; height: auto} @@ -155,8 +95,10 @@ .directory-grid {grid-template-columns: 1fr; height: auto; overflow: visible} .listbox {min-height: 200px} button, .btn {padding: 10px 14px} - .box { flex-grow: 0; } .panel.right { height: auto; } + + /* On mobile, revert to a stacking layout instead of sticky */ + #section-playlist, #section-queue { flex: 1 1 auto; } } @@ -202,7 +144,7 @@