This commit is contained in:
yinsx
2026-02-03 14:16:42 +08:00
parent f98ff21394
commit c10cfa7c33
12 changed files with 603 additions and 283 deletions

View File

@ -43,8 +43,55 @@ body {
overflow-y: auto;
}
.controls h2 {
margin-bottom: 15px;
.collapsible-panel {
z-index: 900;
}
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
position: sticky;
top: 0;
background: rgba(0, 0, 0, 0.9);
padding-bottom: 10px;
z-index: 1;
}
.panel-toggle {
width: auto;
min-width: 70px;
padding: 6px 10px;
margin-top: 0;
background: rgba(255, 255, 255, 0.1);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 6px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.panel-toggle:hover {
background: rgba(255, 255, 255, 0.2);
}
.panel-body {
transition: max-height 0.3s ease;
}
.panel-body.collapsed {
display: none;
}
.panel-collapsed {
background: rgba(0, 0, 0, 0.7);
}
.controls h2,
.idle-controls h2 {
margin: 0;
font-size: 18px;
}
@ -283,3 +330,33 @@ button:disabled {
color: #888;
white-space: nowrap;
}
@media (max-width: 900px) {
.controls,
.idle-controls {
position: fixed;
left: 12px;
right: 12px;
width: auto;
max-width: none;
padding: 14px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.controls {
top: 12px;
}
.idle-controls {
top: auto;
bottom: 12px;
}
.panel-header {
position: relative;
}
button {
font-size: 13px;
}
}