This commit is contained in:
hex
2025-05-19 20:34:51 -07:00
parent 11f14f5048
commit c5a60a6c13
8 changed files with 756 additions and 8 deletions

View File

@@ -349,7 +349,7 @@ footer .heart {
color: white;
}
.status-on.hold {
.status-on-hold {
background-color: var(--warning-color);
color: var(--text-dark);
}
@@ -626,6 +626,191 @@ footer .heart {
}
}
/* Admin Styles */
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
flex-wrap: wrap;
gap: 1rem;
}
.admin-title h1 {
margin-bottom: 0.2rem;
}
.admin-actions {
display: flex;
gap: 0.5rem;
}
.admin-games h2 {
margin-bottom: 1rem;
color: var(--accent-color);
}
.admin-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 2rem;
background-color: var(--bg-card);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.admin-table th,
.admin-table td {
padding: 1rem;
text-align: left;
vertical-align: middle;
border-bottom: 1px solid var(--border-color);
}
.admin-table th {
background-color: var(--primary-dark);
font-weight: 600;
color: var(--text-light);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.admin-table tbody tr:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.admin-table tbody tr:last-child td {
border-bottom: none;
}
.game-cover-cell {
width: 80px;
}
.game-cover-cell img {
width: 60px;
height: 80px;
object-fit: cover;
border-radius: 4px;
}
.no-cover-small {
width: 60px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
background: linear-gradient(45deg, var(--primary-dark), var(--primary-light));
color: rgba(255, 255, 255, 0.5);
border-radius: 4px;
}
.game-details-row {
display: flex;
gap: 1rem;
margin-top: 0.3rem;
font-size: 0.8rem;
opacity: 0.7;
}
.progress-bar-small {
height: 20px;
background-color: var(--border-color);
border-radius: 10px;
overflow: hidden;
position: relative;
width: 100%;
max-width: 120px;
}
.progress-text {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: 600;
color: white;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.action-buttons {
display: flex;
gap: 0.5rem;
}
.btn-small {
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
}
.edit-row {
background-color: rgba(0, 0, 0, 0.2);
}
.admin-edit-form {
padding: 1rem;
}
.form-group-row {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.progress-input {
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn-wide {
width: 100%;
margin-top: 1rem;
}
/* Login styles */
.login-container {
max-width: 400px;
margin: 0 auto;
background-color: var(--bg-card);
border-radius: 8px;
padding: 2rem;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.login-form {
margin-bottom: 1.5rem;
}
.login-footer {
text-align: center;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
}
.back-link {
color: var(--text-light);
text-decoration: none;
opacity: 0.7;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.back-link:hover {
opacity: 1;
color: var(--accent-color);
}
/* Responsive Adjustments */
@media (max-width: 768px) {
header .container {
@@ -646,4 +831,18 @@ footer .heart {
flex-direction: column;
gap: 0.5rem;
}
.admin-header {
flex-direction: column;
align-items: flex-start;
}
.form-group-row {
flex-direction: column;
}
.admin-table {
display: block;
overflow-x: auto;
}
}