client/addons/store/ui/_site/styles.css
Jacob Schmidt 69f8f037df
All checks were successful
Build / Build (push) Successful in 28s
refactor: Remove tasks.json and update documentation in store functions
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.
2025-04-19 11:12:53 -05:00

201 lines
3.4 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 h1 {
text-align: center;
}
.categories-grid, .subcategories-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 2rem;
padding: 1rem;
margin-bottom: 2rem;
}
.category-tile, .subcategory-tile {
background-color: #444;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s;
aspect-ratio: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 1rem;
font-size: 1.3rem;
}
.category-tile:hover, .subcategory-tile:hover {
background-color: #666;
transform: translateY(-5px);
}
.category-tile.active, .subcategory-tile.active {
background-color: #007bff;
}
.category-tile i, .subcategory-tile i {
font-size: 2rem;
margin-bottom: 1rem;
}
.back-button {
background-color: #444;
color: white;
border: none;
border-radius: 4px;
padding: 0.5rem 1rem;
cursor: pointer;
margin-bottom: 1rem;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.back-button:hover {
background-color: #666;
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
padding: 1rem;
}
.product-card {
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.product-card:hover {
transform: translateY(-5px);
}
.product-image {
width: 100%;
height: 256px;
object-fit: cover;
background-color: #eee;
}
.product-info {
padding: 1rem;
}
.product-name {
font-size: 1.1rem;
margin-bottom: 0.5rem;
color: #333;
}
.product-price {
font-size: 1.2rem;
color: #007bff;
font-weight: bold;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.payment-select {
padding: 0.5rem;
border-radius: 4px;
background-color: white;
border: 1px solid #ddd;
font-size: 1rem;
}
.product-controls {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid #eee;
}
.quantity-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.quantity-btn {
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
width: 30px;
height: 30px;
font-size: 1.2rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.quantity-btn:hover {
background-color: #0056b3;
}
.quantity-display {
font-size: 1.1rem;
min-width: 40px;
text-align: center;
}
.buy-btn {
flex: 1;
background-color: #28a745;
color: white;
border: none;
border-radius: 4px;
padding: 0.5rem 1rem;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s;
}
.buy-btn:hover {
background-color: #218838;
}
.buy-btn:disabled {
background-color: #6c757d;
cursor: not-allowed;
}