Made changes to CSS and merged together.

This commit is contained in:
2025-12-17 22:50:13 -05:00
parent 6d506fc636
commit 2402645911
29 changed files with 764 additions and 1396 deletions

View File

@@ -0,0 +1,36 @@
.actions {
display: flex;
gap: 3rem;
justify-content: center;
margin-top: 0.5rem;
}
.actions button {
padding: 1rem 2.2rem;
border-radius: 12px;
border: 0;
cursor: pointer;
font-weight: 700;
font-size: 1.25rem;
transition: background 0.18s;
min-width: 120px;
}
/* Unified error style */
.error {
color: #e53e3e;
margin-top: 0.7rem;
text-align: center;
background: rgba(255, 107, 107, 0.1);
border-radius: 8px;
padding: 1rem;
}
@media (max-width: 480px) {
.actions {
gap: 1.2rem;
}
.actions button {
padding: 0.8rem 1.2rem;
font-size: 1.05rem;
min-width: 90px;
}

View File

@@ -0,0 +1,54 @@
/* Base button style */
.btn {
font-weight: 600;
border: none;
border-radius: 8px;
padding: 0.7rem 1.5rem;
font-size: 1.1rem;
cursor: pointer;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
transition:
background 0.18s,
color 0.18s;
display: inline-block;
}
/* Primary button (e.g., Save, Confirm) */
.btn-primary {
background: #667eea;
color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
background: #5a67d8;
}
/* Secondary button (e.g., Cancel) */
.btn-secondary {
background: #f3f3f3;
color: #666;
}
.btn-secondary:hover,
.btn-secondary:focus {
background: #e2e8f0;
}
/* Danger button (e.g., Delete) */
.btn-danger {
background: #ef4444;
color: #fff;
}
.btn-danger:hover,
.btn-danger:focus {
background: #dc2626;
}
/* Green button (e.g., Confirm) */
.btn-green {
background: #22c55e;
color: #fff;
}
.btn-green:hover,
.btn-green:focus {
background: #16a34a;
}

View File

@@ -0,0 +1,75 @@
.edit-view,
.child-edit-view,
.reward-edit-view,
.task-edit-view {
max-width: 400px;
margin: 2rem auto;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 24px #667eea22;
padding: 2rem 2.2rem 1.5rem 2.2rem;
}
.edit-view h2,
.child-edit-view h2,
.reward-edit-view h2,
.task-edit-view h2 {
text-align: center;
margin-bottom: 1.5rem;
color: #667eea;
}
.form-group,
.reward-form label,
.task-form label {
display: block;
margin-bottom: 1.1rem;
font-weight: 500;
color: #444;
width: 100%;
}
input[type='text'],
input[type='number'],
.reward-form input[type='text'],
.reward-form input[type='number'],
.task-form input[type='text'],
.task-form input[type='number'] {
display: block;
width: 100%;
margin-top: 0.4rem;
padding: 0.5rem;
border-radius: 7px;
border: 1px solid #cbd5e1;
font-size: 1rem;
background: #f8fafc;
box-sizing: border-box;
}
.btn.cancel,
button[type='button'] {
background: #f3f3f3;
color: #666;
}
.btn.save,
button[type='submit'] {
background: #667eea;
color: #fff;
border: none;
border-radius: 8px;
padding: 0.6rem 1.4rem;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: background 0.18s;
}
.btn.save:hover,
button[type='submit']:hover:not(:disabled) {
background: #5a67d8;
}
.loading-message {
text-align: center;
color: #666;
margin-bottom: 1.2rem;
}

View File

@@ -0,0 +1,108 @@
/* Root layout */
.layout-root {
width: 100%;
min-height: 100vh;
height: 100vh;
display: flex;
flex-direction: column;
padding: 0;
background: var(--header-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}
/* Top bar */
.topbar {
display: flex;
align-items: stretch;
padding: 5px 5px;
height: 48px;
width: 100%;
box-sizing: border-box;
}
/* Back button container and login button container */
.back-btn-container,
.login-btn-container {
height: 100%;
display: flex;
align-items: center;
flex: 1 1 0;
}
.back-btn-container {
justify-content: flex-start;
}
.login-btn-container {
justify-content: flex-end;
}
/* Spacer for layouts without a center nav */
.spacer {
flex: 1 1 auto;
}
/* Back button */
.back-btn {
background: var(--button-bg, #fff);
border: 0;
padding: 0.6rem 1rem;
border-radius: 8px 8px 0 0;
cursor: pointer;
color: var(--button-text, #667eea);
font-weight: 600;
height: 100%;
box-sizing: border-box;
display: flex;
align-items: center;
}
/* Login button inside login-btn container */
.login-btn {
background: var(--button-bg, #fff);
border: 0;
padding: 0.6rem 1rem;
border-radius: 8px 8px 0 0;
cursor: pointer;
color: var(--button-text, #667eea);
font-weight: 600;
height: 100%;
display: flex;
align-items: center;
}
/* Main content area */
.main-content {
flex: 1 1 auto;
width: 100%;
justify-content: center;
align-items: flex-start;
box-sizing: border-box;
min-height: 0;
height: 0;
overflow: hidden;
overflow-y: visible;
}
/* App version display */
.app-version {
position: fixed;
right: 18px;
bottom: 12px;
font-size: 0.92rem;
color: var(--app-version, #cbd5e1);
opacity: 0.85;
z-index: 100;
pointer-events: none;
user-select: none;
font-family: monospace;
}
/* Responsive adjustments */
@media (max-width: 480px) {
.back-btn,
.login-btn button {
padding: 0.45rem 0.75rem;
font-size: 0.6rem;
height: 100%;
}
}

View File

@@ -0,0 +1,120 @@
/* List container */
.listbox {
flex: 1 1 auto;
max-width: 480px;
width: 100%;
max-height: calc(100vh - 4.5rem);
overflow-y: auto;
margin: 0.2rem 0 0 0;
display: flex;
flex-direction: column;
gap: 0.7rem;
background: #fff5;
padding: 0.2rem 0.2rem 0.2rem;
border-radius: 12px;
}
/* List item */
.list-item {
display: flex;
align-items: center;
border: 2px outset #38c172;
border-radius: 8px;
padding: 0.2rem 1rem;
background: #f8fafc;
font-size: 1.05rem;
font-weight: 500;
transition: border 0.18s;
margin-bottom: 0.2rem;
margin-left: 0.2rem;
margin-right: 0.2rem;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
box-sizing: border-box;
}
.list-item.bad {
border-color: #e53e3e;
background: #fff5f5;
}
.list-item.good {
border-color: #38c172;
background: #f0fff4;
}
/* Image styles */
.list-image {
width: 36px;
height: 36px;
object-fit: cover;
border-radius: 8px;
margin-right: 0.7rem;
background: #eee;
flex-shrink: 0;
}
/* Name/label styles */
.list-name {
flex: 1;
text-align: left;
font-weight: 600;
}
/* Points/cost/requested text */
.list-value {
min-width: 60px;
text-align: right;
font-weight: 600;
}
/* Delete button */
.delete-btn {
background: transparent;
border: none;
border-radius: 50%;
padding: 0.15rem;
margin-left: 0.7rem;
cursor: pointer;
display: flex;
align-items: center;
transition:
background 0.15s,
box-shadow 0.15s;
width: 2rem;
height: 2rem;
opacity: 0.92;
}
.delete-btn:hover {
background: #ffeaea;
box-shadow: 0 0 0 2px #ef444422;
opacity: 1;
}
.delete-btn svg {
display: block;
}
/* Checkbox */
.list-checkbox {
margin-left: 1rem;
width: 1.2em;
height: 1.2em;
accent-color: #667eea;
cursor: pointer;
}
/* Loading, error, empty states */
.loading,
.empty {
margin: 1.2rem 0;
color: #888;
font-size: 1.15rem;
font-weight: 600;
text-align: center;
line-height: 1.5;
}
/* Separator (if needed) */
.list-separator {
height: 0px;
background: #0000;
margin: 0rem 0.2rem;
border-radius: 0px;
}

View File

@@ -0,0 +1,112 @@
.layout {
display: flex;
justify-content: center;
align-items: flex-start;
}
.main {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
width: 100%;
}
.loading {
color: white;
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
/* Modal Backdrop and Modal */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 1200;
}
.modal {
background: #fff;
color: #222;
padding: 1.5rem 2rem;
border-radius: 12px;
min-width: 240px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
text-align: center;
}
/* Dialog Message */
.dialog-message {
font-size: 1.08rem;
color: #444;
font-weight: 500;
margin-bottom: 1.2rem;
text-align: center;
}
.dialog-message .child-name {
color: #667eea;
font-weight: 700;
margin-left: 2px;
}
/* Info Sections (Reward/Task) */
.info,
.reward-info,
.task-info {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}
.image,
.reward-image,
.task-image {
width: 72px;
height: 72px;
object-fit: cover;
border-radius: 8px;
background: #eee;
}
.details,
.reward-details,
.task-details {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.name,
.reward-name,
.task-name {
font-weight: 600;
font-size: 1.1rem;
}
.points,
.reward-points,
.task-points {
color: #667eea;
font-weight: 500;
font-size: 1rem;
}
/* Responsive Adjustments */
@media (max-width: 900px) {
.layout {
flex-direction: column;
align-items: stretch;
}
}
@media (max-width: 480px) {
.main {
gap: 1rem;
}
.modal {
padding: 1rem;
min-width: 0;
}
}