271 lines
4.3 KiB
CSS
271 lines
4.3 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
overflow: hidden;
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
#renderCanvas {
|
|
width: 100%;
|
|
height: 100vh;
|
|
display: block;
|
|
touch-action: none;
|
|
}
|
|
|
|
.controls {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
color: white;
|
|
max-width: 350px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.idle-controls {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
color: white;
|
|
width: 320px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.controls h2 {
|
|
margin-bottom: 15px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.input-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.input-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-size: 12px;
|
|
color: #aaa;
|
|
}
|
|
|
|
input[type="text"],
|
|
textarea {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #444;
|
|
border-radius: 4px;
|
|
background: #2a2a2a;
|
|
color: white;
|
|
font-size: 12px;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 60px;
|
|
}
|
|
|
|
button {
|
|
width: 100%;
|
|
padding: 10px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
button:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.status {
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
display: none;
|
|
}
|
|
|
|
.status.show {
|
|
display: block;
|
|
}
|
|
|
|
.status.success {
|
|
background: rgba(76, 175, 80, 0.2);
|
|
color: #4caf50;
|
|
}
|
|
|
|
.status.error {
|
|
background: rgba(244, 67, 54, 0.2);
|
|
color: #f44336;
|
|
}
|
|
|
|
.status.info {
|
|
background: rgba(33, 150, 243, 0.2);
|
|
color: #2196f3;
|
|
}
|
|
|
|
.checkbox-group {
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.checkbox-group > label {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.checkbox-group label > span {
|
|
flex: 1;
|
|
color: white;
|
|
display: inline-block;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
margin-right: 10px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.collapse-btn {
|
|
margin-right: 10px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: none;
|
|
color: #aaa;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
transition: all 0.3s ease;
|
|
transform-origin: center;
|
|
user-select: none;
|
|
flex-shrink: 0;
|
|
width: 32px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.collapse-btn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
}
|
|
|
|
.collapse-btn.collapsed {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.param-group {
|
|
margin-top: 10px;
|
|
padding-left: 28px;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease;
|
|
}
|
|
|
|
.param-group.collapsed {
|
|
max-height: 0 !important;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.param-item {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.param-item label {
|
|
display: block;
|
|
font-size: 11px;
|
|
color: #aaa;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.param-item input[type="range"] {
|
|
width: 100%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.param-value {
|
|
display: inline-block;
|
|
min-width: 50px;
|
|
text-align: right;
|
|
font-size: 11px;
|
|
color: #4caf50;
|
|
}
|
|
|
|
.expression-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.expression-item {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.expression-item input[type="checkbox"] {
|
|
width: 14px;
|
|
height: 14px;
|
|
margin: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.expression-item label {
|
|
flex: 1;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.expression-item input[type="number"] {
|
|
width: 50px;
|
|
padding: 2px 4px;
|
|
border: 1px solid #444;
|
|
border-radius: 3px;
|
|
background: #2a2a2a;
|
|
color: white;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
}
|
|
|
|
.expression-item .duration-label {
|
|
font-size: 10px;
|
|
color: #888;
|
|
white-space: nowrap;
|
|
}
|