added vehicle creation functionality

This commit is contained in:
2026-02-10 17:50:49 +02:00
parent 6a42099169
commit be91231b05
5 changed files with 164 additions and 85 deletions
+35 -50
View File
@@ -51,56 +51,6 @@
border-color: #667eea;
}
/* New vehicle form */
.vehicle-new-form {
padding: 10px 12px;
border-bottom: 1px solid #e0e0e0;
background: #f0f0ff;
}
.vehicle-new-form input {
width: 100%;
padding: 7px 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 13px;
box-sizing: border-box;
margin-bottom: 6px;
}
.vehicle-new-form input:focus {
outline: none;
border-color: #667eea;
}
.vehicle-new-actions {
display: flex;
gap: 6px;
}
.vehicle-new-actions button {
flex: 1;
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
border: 1px solid #ccc;
background: white;
color: #333;
transition: background 0.2s;
}
.vehicle-new-actions button:first-child {
background: #667eea;
color: white;
border-color: #667eea;
}
.vehicle-new-actions button:first-child:hover {
background: #5568d3;
}
/* Vehicle list */
.vehicle-list {
flex: 1;
@@ -367,6 +317,41 @@
cursor: not-allowed;
}
/* Vehicle form sections */
.vehicle-form-section {
margin-bottom: 20px;
}
.vehicle-form-actions {
display: flex;
gap: 10px;
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid #e0e0e0;
}
.vehicle-form-cancel {
padding: 8px 20px;
background: white;
color: #666;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
}
.vehicle-form-cancel:hover:not(:disabled) {
background: #f5f5f5;
border-color: #ccc;
}
.vehicle-form-cancel:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Responsive */
@media (max-width: 768px) {
.main {