
All checks were successful
Build / Build (push) Successful in 28s
This commit removes the `tasks.json` file from the `.vscode` directory. Additionally, it enhances the documentation in `fnc_buyItem.sqf` and `fnc_buyVehicle.sqf` by providing clearer descriptions of item and vehicle types. The `fnc_handlePurchase.sqf` has also been updated to improve variable scoping for better code clarity.
234 lines
3.5 KiB
CSS
234 lines
3.5 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
line-height: 1.6;
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
header {
|
|
background-color: #333;
|
|
color: white;
|
|
padding: 1rem 0;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.garage-stats {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.vehicles-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.vehicle-card {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
transition: transform 0.3s;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.vehicle-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.vehicle-image {
|
|
width: 100%;
|
|
height: 200px;
|
|
background-color: #eee;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
.vehicle-info {
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.vehicle-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.vehicle-name {
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.vehicle-status {
|
|
font-size: 0.875rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-available {
|
|
background-color: #28a745;
|
|
color: white;
|
|
}
|
|
|
|
.status-in-use {
|
|
background-color: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.status-maintenance {
|
|
background-color: #ffc107;
|
|
color: black;
|
|
}
|
|
|
|
.vehicle-details {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.detail-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.detail-label {
|
|
font-size: 0.875rem;
|
|
color: #666;
|
|
}
|
|
|
|
.detail-value {
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.vehicle-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: auto;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
.action-btn {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.spawn-btn {
|
|
background-color: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.spawn-btn:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.spawn-btn:disabled {
|
|
background-color: #6c757d;
|
|
cursor: not-allowed;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.spawn-btn:disabled:hover {
|
|
background-color: #6c757d;
|
|
}
|
|
|
|
.maintain-btn {
|
|
background-color: #ffc107;
|
|
color: black;
|
|
}
|
|
|
|
.maintain-btn:hover {
|
|
background-color: #d39e00;
|
|
}
|
|
|
|
.category-filters {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.filter-btn {
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background-color: #444;
|
|
color: white;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.filter-btn:hover {
|
|
background-color: #666;
|
|
}
|
|
|
|
.filter-btn.active {
|
|
background-color: #007bff;
|
|
}
|
|
|
|
.vehicle-stats {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
color: #666;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.stat-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.stat-green {
|
|
background-color: #28a745;
|
|
}
|
|
|
|
.stat-yellow {
|
|
background-color: #ffc107;
|
|
}
|
|
|
|
.stat-red {
|
|
background-color: #dc3545;
|
|
}
|