grocery-app/frontend/src/styles/components/ImageUploadSection.css

98 lines
1.5 KiB
CSS

/* Image Upload Section */
.image-upload-section {
margin-bottom: 1.5rem;
}
.image-upload-title {
font-size: 1em;
font-weight: 600;
margin-bottom: 0.8rem;
color: #333;
}
.image-upload-error {
background: #f8d7da;
border: 1px solid #f5c2c7;
color: #842029;
padding: 0.75rem;
border-radius: 6px;
margin-bottom: 0.8rem;
font-size: 0.9em;
line-height: 1.4;
}
.image-upload-content {
border: 2px dashed #ccc;
border-radius: 8px;
padding: 1rem;
background: #f9f9f9;
}
.image-upload-options {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.image-upload-btn {
padding: 0.8rem 1rem;
font-size: 1em;
border: none;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
font-weight: 500;
}
.image-upload-btn.camera {
background: #007bff;
color: white;
}
.image-upload-btn.camera:hover {
background: #0056b3;
}
.image-upload-btn.gallery {
background: #6c757d;
color: white;
}
.image-upload-btn.gallery:hover {
background: #545b62;
}
.image-upload-preview {
position: relative;
max-width: 300px;
margin: 0 auto;
}
.image-upload-preview img {
width: 100%;
border-radius: 8px;
display: block;
}
.image-upload-remove {
position: absolute;
top: 8px;
right: 8px;
background: rgba(255, 0, 0, 0.8);
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
font-size: 1.2em;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.image-upload-remove:hover {
background: rgba(255, 0, 0, 1);
}