You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 13:52:00 +01:00
i hate css
This commit is contained in:
@@ -14,7 +14,16 @@
|
||||
.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}
|
||||
.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;
|
||||
}
|
||||
.left{flex:1.2; min-width:420px}
|
||||
.right{flex:1; display:flex; flex-direction:column; gap:12px}
|
||||
|
||||
@@ -29,16 +38,21 @@
|
||||
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.2s;
|
||||
transition: transform 0.3s ease-in-out; /* Smoother arrow rotation */
|
||||
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.collapsed .collapsible-content { display: none; }
|
||||
.box.collapsed .frame-title::after { transform: rotate(-90deg); }
|
||||
@@ -49,25 +63,82 @@
|
||||
.progress-wrap{display:flex; gap:10px; align-items:center}
|
||||
.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; transition: background-color 0.12s ease}
|
||||
button:hover, .btn:hover {background-color: var(--glass);}
|
||||
.btn.activated { background:linear-gradient(90deg, #9ed3ff46, #5bbbff2a); }
|
||||
|
||||
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 */
|
||||
}
|
||||
.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 */
|
||||
}
|
||||
|
||||
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.12s ease;}
|
||||
ul.playlist li:hover{background:rgba(255,255,255,0.02)}
|
||||
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.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.12s ease;}
|
||||
.listbox div.item:hover{background:rgba(255,255,255,0.02); cursor:pointer}
|
||||
|
||||
.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 div.item.selected{background:rgba(62, 165, 255, 0.305)}
|
||||
|
||||
/* --- QUEUE ALWAYS VISIBLE --- */
|
||||
/* This makes the Queue section non-collapsible and always visible. */
|
||||
#section-queue .frame-title {
|
||||
cursor: default; /* Remove the pointer cursor */
|
||||
}
|
||||
#section-queue .frame-title::after {
|
||||
display: none; /* Hide the collapse arrow icon */
|
||||
}
|
||||
|
||||
.small{font-size:12px; color:var(--muted)}
|
||||
.row{display:flex; gap:8px; align-items:center}
|
||||
.muted{color:var(--muted); font-size:13px}
|
||||
@@ -84,7 +155,6 @@
|
||||
.directory-grid {grid-template-columns: 1fr; height: auto; overflow: visible}
|
||||
.listbox {min-height: 200px}
|
||||
button, .btn {padding: 10px 14px}
|
||||
/* Mobile accessibility fix: remove fixed heights so collapsed items actually shrink */
|
||||
.box { flex-grow: 0; }
|
||||
.panel.right { height: auto; }
|
||||
}
|
||||
@@ -132,7 +202,7 @@
|
||||
|
||||
<!-- Queue -->
|
||||
<div class="box" id="section-queue" style="flex-grow: 0;">
|
||||
<div class="frame-title" onclick="toggleSection('section-queue')">Queue</div>
|
||||
<div class="frame-title">Queue</div>
|
||||
<div class="collapsible-content listbox" id="queue-box" style="height: 140px;">
|
||||
<ul class="playlist" id="queue-ul"></ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user