@jjdenhertog/ai-driven-development
Version:
AI-driven development workflow with learning capabilities for Claude
229 lines (198 loc) • 4.28 kB
CSS
/* Component specific container */
.container {
height: 100%;
display: flex;
flex-direction: column;
padding: 1.5rem;
}
/* Header with feature title and actions */
.header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--border-color);
}
.featureTitle {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Status select with colored border */
.statusSelect {
padding: 0.5rem 0.75rem;
border: 1px solid var(--border-color);
border-left: 3px solid var(--border-color);
border-radius: 0.5rem;
background: var(--bg-tertiary);
color: var(--text-primary);
font-size: 0.875rem;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: all 0.2s;
width: auto;
}
.statusSelect:focus {
outline: none;
background: var(--bg-secondary);
border-color: var(--accent-color);
}
/* Status-based colors for select */
.statusSelect.status-draft {
border-left-color: var(--text-tertiary);
}
.statusSelect.status-ready {
border-left-color: #3b82f6;
}
.statusSelect.status-reviewing {
border-left-color: #6366f1;
}
.statusSelect.status-questions {
border-left-color: #f59e0b;
}
.statusSelect.status-reviewed {
border-left-color: #8b5cf6;
}
.statusSelect.status-approved {
border-left-color: #10b981;
}
.unsaved {
color: var(--warning-color);
font-size: 0.813rem;
white-space: nowrap;
}
.headerActions {
display: flex;
gap: 0.5rem;
align-items: center;
margin-left: auto;
}
/* Form container */
.form {
flex: 1;
display: flex;
flex-direction: column;
gap: 2rem;
overflow-y: auto;
padding-right: 0.5rem;
padding-bottom: 2rem;
min-height: 0;
}
/* Metadata section */
.metadata {
display: flex;
gap: 2rem;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
}
.metadataItem {
display: flex;
gap: 0.5rem;
font-size: 0.813rem;
}
.metadataLabel {
color: var(--text-secondary);
}
/* Images section specific styles */
.imagesSection {
display: flex;
flex-direction: column;
gap: 1rem;
}
.imagesList {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}
.imageItem {
position: relative;
border-radius: 0.5rem;
border: 1px solid var(--border-color);
display: flex;
flex-direction: column;
}
.imageWrapper {
width: 100%;
aspect-ratio: 1;
position: relative;
overflow: hidden;
border-radius: 0.5rem 0.5rem 0 0;
}
.imageThumbnail {
width: 100%;
height: 100%;
object-fit: cover;
}
.removeImageButton {
position: absolute;
top: 0.5rem;
right: 0.5rem;
width: 2rem;
height: 2rem;
padding: 0;
border: none;
border-radius: 50%;
background: rgba(0, 0, 0, 0.7);
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
}
.removeImageButton:hover {
background: rgba(0, 0, 0, 0.9);
}
.uploadSection {
display: flex;
align-items: center;
gap: 1rem;
}
.uploadInput {
display: none;
}
/* Image Description Styles */
.imageDescription {
padding: 0.5rem;
font-size: 0.75rem;
border-top: 1px solid var(--border-color);
background: var(--bg-secondary);
}
.descriptionText {
cursor: pointer;
padding: 0.25rem;
border-radius: 0.25rem;
color: var(--text-secondary);
transition: all 0.2s;
min-height: 1.5rem;
display: flex;
align-items: center;
}
.descriptionText:hover {
background: rgba(255, 255, 255, 0.1);
}
.placeholderText {
opacity: 0.5;
font-style: italic;
}
.descriptionInput {
width: 100%;
padding: 0.25rem 0.5rem;
border: 1px solid var(--accent-color);
border-radius: 0.25rem;
font-size: 0.75rem;
background: var(--bg-primary);
color: var(--text-primary);
}
.descriptionInput:focus {
outline: none;
border-color: var(--accent-color);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}