All checks were successful
Build & Deploy Costco Grocery List / build (push) Successful in 1m10s
Build & Deploy Costco Grocery List / verify-images (push) Successful in 3s
Build & Deploy Costco Grocery List / deploy (push) Successful in 11s
Build & Deploy Costco Grocery List / notify (push) Successful in 1s
339 lines
5.3 KiB
CSS
339 lines
5.3 KiB
CSS
/* Manage Household Component */
|
|
.manage-household {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Section Styling */
|
|
.manage-section {
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 2rem;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.manage-section h2 {
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.section-description {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Household Name Section */
|
|
.name-display {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.name-display h3 {
|
|
font-size: 1.5rem;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.edit-name-form {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.edit-name-form input {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
background: var(--background);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Invite Code Section */
|
|
.invite-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.invite-code {
|
|
background: var(--background);
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 6px;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 1rem;
|
|
color: var(--primary);
|
|
border: 2px solid var(--border);
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.section-error {
|
|
color: var(--danger);
|
|
margin: 0 0 0.75rem 0;
|
|
}
|
|
|
|
.manage-household-join-policy-toggle {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.invite-controls {
|
|
display: flex;
|
|
gap: 0.8rem;
|
|
align-items: end;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.invite-controls label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.3rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.invite-controls select {
|
|
min-width: 120px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 0.45rem 0.6rem;
|
|
background: var(--background);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.invite-links-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.8rem;
|
|
}
|
|
|
|
.invite-link-card {
|
|
border: 1px solid var(--border);
|
|
background: var(--background);
|
|
border-radius: 8px;
|
|
padding: 0.9rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.invite-link-token,
|
|
.invite-link-meta {
|
|
margin: 0;
|
|
}
|
|
|
|
.invite-link-token {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.invite-link-meta {
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.invite-link-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Members Section */
|
|
.members-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.member-card {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.25rem;
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
transition: all 0.2s;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.member-card:hover {
|
|
background: var(--card-hover);
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.member-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.member-name {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.member-role {
|
|
font-size: 0.85rem;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
width: fit-content;
|
|
text-transform: capitalize;
|
|
background: var(--primary-light, rgba(0, 122, 255, 0.1));
|
|
color: var(--primary);
|
|
}
|
|
|
|
.member-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Danger Zone */
|
|
.danger-zone {
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
.danger-zone h2 {
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary,
|
|
.btn-secondary,
|
|
.btn-danger {
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-primary,
|
|
.btn-secondary {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover,
|
|
.btn-secondary:hover {
|
|
background: var(--primary-dark, #0056b3);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: var(--danger-dark, #c82333);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 0.4rem 0.75rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.btn-danger:disabled {
|
|
background: var(--text-secondary);
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.manage-section {
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.name-display {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.edit-name-form {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.edit-name-form input {
|
|
width: 100%;
|
|
min-width: unset;
|
|
}
|
|
|
|
.edit-name-form button {
|
|
width: 100%;
|
|
}
|
|
|
|
.member-card {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.member-actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.member-actions button {
|
|
flex: 1;
|
|
}
|
|
|
|
.invite-actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.invite-actions button {
|
|
width: 100%;
|
|
}
|
|
|
|
.invite-code {
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.invite-controls {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.invite-controls label,
|
|
.invite-controls select,
|
|
.invite-controls button {
|
|
width: 100%;
|
|
}
|
|
|
|
.invite-link-actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.invite-link-actions button {
|
|
flex: 1;
|
|
}
|
|
}
|