Files
plant-app/src/pages/MyPlants.css
T
NillanHendrix ce2d03f7d6 Initial commit: React + Vite plant app with footer navigation
- Wiki page with 8 plant entries, search, and category/difficulty filters
- Calendar page with monthly grid, task scheduling, and upcoming tasks
- My Plants page with personal collection, health tracking, and add/edit/remove
- Footer navigation with Wiki, Calendar, and My Plants tabs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 07:10:40 +02:00

293 lines
4.8 KiB
CSS

.myplants {
padding: 24px 20px 100px;
max-width: 680px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
text-align: left;
}
.myplants-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 20px;
gap: 12px;
}
.myplants-header h1 {
margin: 0 0 6px;
font-size: 28px;
letter-spacing: -0.5px;
}
.myplants-header p {
color: var(--text);
font-size: 15px;
margin: 0;
}
.add-plant-btn {
padding: 9px 16px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
flex-shrink: 0;
transition: opacity 0.15s;
}
.add-plant-btn:hover {
opacity: 0.85;
}
.plants-empty {
text-align: center;
padding: 60px 20px;
color: var(--text);
}
.empty-emoji {
font-size: 48px;
display: block;
margin-bottom: 12px;
}
.plants-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.plant-card {
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
}
.plant-card-header {
width: 100%;
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
background: transparent;
border: none;
cursor: pointer;
text-align: left;
color: var(--text-h);
font-size: 15px;
transition: background 0.15s;
}
.plant-card-header:hover {
background: var(--accent-bg);
}
.plant-emoji {
font-size: 24px;
flex-shrink: 0;
}
.plant-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
.plant-species {
font-size: 12px;
color: var(--text);
font-style: italic;
}
.health-badge {
font-size: 12px;
padding: 3px 9px;
border-radius: 999px;
flex-shrink: 0;
}
.health-thriving { background: #d1fae5; color: #065f46; }
.health-good { background: #dbeafe; color: #1e40af; }
.health-needs-care { background: #fef9c3; color: #854d0e; }
.health-critical { background: #fee2e2; color: #991b1b; }
@media (prefers-color-scheme: dark) {
.health-thriving { background: rgba(6,95,70,0.3); color: #6ee7b7; }
.health-good { background: rgba(30,64,175,0.3); color: #93c5fd; }
.health-needs-care { background: rgba(133,77,14,0.3); color: #fde68a; }
.health-critical { background: rgba(153,27,27,0.3); color: #fca5a5; }
}
.plant-chevron {
font-size: 11px;
color: var(--text);
flex-shrink: 0;
}
.plant-card-body {
padding: 12px 16px 16px;
border-top: 1px solid var(--border);
}
.plant-meta {
display: flex;
gap: 12px;
margin-bottom: 12px;
}
.meta-item {
flex: 1;
background: var(--code-bg);
border-radius: 8px;
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
.meta-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text);
}
.meta-value {
font-size: 14px;
color: var(--text-h);
}
.plant-notes {
font-size: 14px;
color: var(--text);
line-height: 1.5;
margin: 0 0 12px;
font-style: italic;
}
.plant-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.action-btn {
padding: 7px 14px;
border-radius: 8px;
border: 1px solid var(--border);
background: transparent;
color: var(--text-h);
font-size: 13px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
}
.action-btn:hover {
background: var(--accent-bg);
border-color: var(--accent-border);
}
.water-btn {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.water-btn:hover {
opacity: 0.85;
background: var(--accent);
}
.remove-btn:hover {
background: #fee2e2;
border-color: #fca5a5;
color: #991b1b;
}
@media (prefers-color-scheme: dark) {
.remove-btn:hover {
background: rgba(153,27,27,0.3);
border-color: #fca5a5;
color: #fca5a5;
}
}
/* Modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.4);
z-index: 100;
display: flex;
align-items: flex-end;
justify-content: center;
padding: 0;
}
.modal {
background: var(--bg);
border-radius: 20px 20px 0 0;
padding: 24px 20px 40px;
width: 100%;
max-width: 560px;
max-height: 90svh;
overflow-y: auto;
}
.modal h2 {
margin: 0 0 20px;
font-size: 20px;
}
.plant-form {
display: flex;
flex-direction: column;
gap: 14px;
}
.plant-form label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
color: var(--text);
text-transform: uppercase;
letter-spacing: 0.4px;
}
.plant-form input,
.plant-form select,
.plant-form textarea {
padding: 9px 12px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text-h);
font-size: 15px;
outline: none;
transition: border-color 0.2s;
font-family: inherit;
}
.plant-form input:focus,
.plant-form select:focus,
.plant-form textarea:focus {
border-color: var(--accent);
}
.form-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
margin-top: 4px;
}