
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.
195 lines
3.1 KiB
CSS
195 lines
3.1 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;
|
|
}
|
|
|
|
.storage-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;
|
|
}
|
|
|
|
.sections-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: auto auto;
|
|
gap: 2rem;
|
|
padding: 1rem;
|
|
min-height: calc(100vh - 200px); /* Account for header and padding */
|
|
}
|
|
|
|
.equipment-section {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
transition: transform 0.3s;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.equipment-section h2 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 1.2rem;
|
|
color: #333;
|
|
}
|
|
|
|
.equipment-list {
|
|
list-style: none;
|
|
overflow-y: auto;
|
|
flex-grow: 1;
|
|
height: 0; /* This forces the flex-grow to work properly */
|
|
min-height: 400px;
|
|
}
|
|
|
|
.equipment-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem;
|
|
border-bottom: 1px solid #eee;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.equipment-item:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.equipment-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.item-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.item-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.item-type {
|
|
font-size: 0.875rem;
|
|
color: #666;
|
|
}
|
|
|
|
.item-quantity {
|
|
font-size: 0.875rem;
|
|
color: #28a745;
|
|
background: rgba(40, 167, 69, 0.1);
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.item-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.store-btn {
|
|
background-color: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.store-btn:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.equip-btn {
|
|
background-color: #28a745;
|
|
color: white;
|
|
}
|
|
|
|
.equip-btn:hover {
|
|
background-color: #218838;
|
|
}
|
|
|
|
.equip-btn:disabled {
|
|
background-color: #6c757d;
|
|
cursor: not-allowed;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.equipment-section.player-equipment {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.equipment-section.stored-equipment {
|
|
grid-column: span 1;
|
|
grid-row: span 2;
|
|
}
|