119 lines
2.2 KiB
CSS
119 lines
2.2 KiB
CSS
/* AddImageModal - custom styles for unique components */
|
|
|
|
.add-image-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1em;
|
|
margin: 2em 0;
|
|
}
|
|
|
|
.add-image-option-btn {
|
|
padding: var(--spacing-lg);
|
|
border: var(--border-width-medium) solid var(--color-border-light);
|
|
border-radius: var(--border-radius-lg);
|
|
background: var(--color-bg-surface);
|
|
font-size: var(--font-size-lg);
|
|
cursor: pointer;
|
|
transition: var(--transition-base);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--spacing-sm);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.add-image-option-btn:hover {
|
|
border-color: var(--color-primary);
|
|
background: var(--color-bg-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.add-image-option-btn.camera {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.add-image-option-btn.gallery {
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.add-image-preview-container {
|
|
margin: 1.5em 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.add-image-preview {
|
|
position: relative;
|
|
width: 250px;
|
|
height: 250px;
|
|
border: var(--border-width-medium) solid var(--color-border-light);
|
|
border-radius: var(--border-radius-lg);
|
|
overflow: hidden;
|
|
background: var(--color-gray-100);
|
|
}
|
|
|
|
.add-image-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.add-image-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.5em;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
padding: 0;
|
|
}
|
|
|
|
.add-image-remove:hover {
|
|
background: rgba(255, 0, 0, 1);
|
|
}
|
|
|
|
/* Mobile Responsive Styles */
|
|
@media (max-width: 768px) {
|
|
.add-image-preview-container {
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.add-image-preview {
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
|
|
.add-image-option-btn {
|
|
padding: 1rem;
|
|
font-size: 1rem;
|
|
min-height: 44px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.add-image-preview {
|
|
width: 180px;
|
|
height: 180px;
|
|
}
|
|
|
|
.add-image-option-btn {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.add-image-remove {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 1.3em;
|
|
}
|
|
}
|