client/addons/admin/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

314 lines
4.7 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;
}
.admin-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: 1fr;
gap: 2rem;
padding: 1rem;
}
.action-sections {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
.admin-section {
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.player-list-section {
grid-column: span 2;
grid-row: span 2;
}
.player-list {
list-style: none;
overflow-y: auto;
flex-grow: 1;
height: 0;
min-height: 400px;
}
.player-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid #eee;
transition: background-color 0.3s;
}
.player-item:hover {
background-color: #f8f9fa;
}
.player-info {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.player-name {
font-weight: 500;
}
.player-role {
font-size: 0.875rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-weight: bold;
}
.role-admin {
background-color: #dc3545;
color: white;
}
.role-mod {
background-color: #ffc107;
color: black;
}
.role-player {
background-color: #28a745;
color: white;
}
.player-money {
font-size: 0.875rem;
color: #28a745;
}
.player-actions {
display: flex;
gap: 0.5rem;
}
.action-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: background-color 0.3s;
}
.action-btn:disabled {
background-color: #6c757d;
cursor: not-allowed;
opacity: 0.65;
}
.promote-btn {
background-color: #28a745;
color: white;
}
.promote-btn:hover:not(:disabled) {
background-color: #218838;
}
.demote-btn {
background-color: #dc3545;
color: white;
}
.demote-btn:hover:not(:disabled) {
background-color: #c82333;
}
.message-btn {
background-color: #007bff;
color: white;
}
.message-btn:hover:not(:disabled) {
background-color: #0056b3;
}
.search-bar {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.search-input {
flex: 1;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
}
.form-group label {
font-weight: 500;
color: #333;
}
.form-group input {
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
.submit-btn {
background-color: #007bff;
color: white;
padding: 0.75rem 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s;
}
.submit-btn:hover {
background-color: #0056b3;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 2rem;
border-radius: 8px;
min-width: 400px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.modal-header h2 {
margin: 0;
}
.close-modal {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #666;
}
.close-modal:hover {
color: #333;
}
.badge {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.875rem;
font-weight: bold;
}
.badge-online {
background-color: #28a745;
color: white;
}
.badge-offline {
background-color: #dc3545;
color: white;
}
.filter-bar {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.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;
}