Skip to content

Commit a13c349

Browse files
committed
style: Start button green, Stop button red with btn-success class
1 parent e5e9407 commit a13c349

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

public/css/style.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,30 @@ cap-widget {
369369
box-shadow: 0 8px 32px rgba(239, 68, 68, 0.45);
370370
}
371371

372+
.btn-danger:disabled {
373+
opacity: 0.6;
374+
cursor: not-allowed;
375+
transform: none;
376+
}
377+
378+
.btn-success {
379+
background: linear-gradient(135deg, var(--accent-green), #059669);
380+
color: #fff;
381+
box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
382+
}
383+
384+
.btn-success:hover {
385+
color: #fff;
386+
transform: translateY(-2px);
387+
box-shadow: 0 8px 32px rgba(16, 185, 129, 0.45);
388+
}
389+
390+
.btn-success:disabled {
391+
opacity: 0.6;
392+
cursor: not-allowed;
393+
transform: none;
394+
}
395+
372396
.btn-warning {
373397
background: linear-gradient(135deg, #f59e0b, #d97706);
374398
color: #fff;

public/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3231,7 +3231,7 @@ async function renderServerDetail(serverId) {
32313231
</div>
32323232
<div style="display:flex;gap:8px;flex-wrap:wrap">
32333233
<button class="btn ${s.currentState === 'running' ? 'btn-ghost' : 'btn-success'} btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','start',event)" ${s.currentState === 'running' ? 'disabled' : ''}>Start</button>
3234-
<button class="btn btn-warning btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','stop',event)" ${s.currentState !== 'running' ? 'disabled' : ''}>Stop</button>
3234+
<button class="btn btn-danger btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','stop',event)" ${s.currentState !== 'running' ? 'disabled' : ''}>Stop</button>
32353235
<button class="btn btn-ghost btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','restart',event)" ${s.currentState !== 'running' ? 'disabled' : ''}>Restart</button>
32363236
</div>
32373237
</div>

0 commit comments

Comments
 (0)