- Add HTML, CSS, and JS for the Heroprompt feature - Implement a three-panel UI for workspaces and files - Add logic for creating/deleting workspaces in localStorage - Enable adding directories and selecting files for
267 lines
4.7 KiB
CSS
267 lines
4.7 KiB
CSS
/* Heroprompt-specific styles */
|
|
|
|
.heroprompt-container {
|
|
display: flex;
|
|
gap: 1rem;
|
|
height: calc(100vh - 200px);
|
|
}
|
|
|
|
.workspaces-panel {
|
|
flex: 0 0 280px;
|
|
min-width: 280px;
|
|
}
|
|
|
|
.workspace-details {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.instructions-panel {
|
|
flex: 0 0 350px;
|
|
min-width: 350px;
|
|
}
|
|
|
|
/* Workspace list styling */
|
|
.workspace-item {
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
border: none !important;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.workspace-item:hover {
|
|
background-color: var(--bs-gray-100);
|
|
}
|
|
|
|
[data-bs-theme="dark"] .workspace-item:hover {
|
|
background-color: var(--bs-gray-800);
|
|
}
|
|
|
|
.workspace-item.active {
|
|
background-color: var(--bs-primary);
|
|
color: white;
|
|
}
|
|
|
|
.workspace-item.active:hover {
|
|
background-color: var(--bs-primary);
|
|
}
|
|
|
|
/* Directory and file styling */
|
|
.directory-item {
|
|
border: 1px solid var(--bs-border-color);
|
|
border-radius: 0.375rem;
|
|
margin-bottom: 1rem;
|
|
background-color: var(--bs-body-bg);
|
|
}
|
|
|
|
.directory-header {
|
|
background-color: var(--bs-gray-50);
|
|
border-bottom: 1px solid var(--bs-border-color);
|
|
padding: 0.75rem 1rem;
|
|
font-weight: 600;
|
|
border-radius: 0.375rem 0.375rem 0 0;
|
|
}
|
|
|
|
[data-bs-theme="dark"] .directory-header {
|
|
background-color: var(--bs-gray-800);
|
|
}
|
|
|
|
.file-list {
|
|
padding: 0.5rem;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.file-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5rem;
|
|
border-radius: 0.25rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.file-item:hover {
|
|
background-color: var(--bs-gray-100);
|
|
}
|
|
|
|
[data-bs-theme="dark"] .file-item:hover {
|
|
background-color: var(--bs-gray-700);
|
|
}
|
|
|
|
.file-item.selected {
|
|
background-color: var(--bs-success-bg-subtle);
|
|
border: 1px solid var(--bs-success-border-subtle);
|
|
}
|
|
|
|
.file-item input[type="checkbox"] {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.file-name {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Empty state styling */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: var(--bs-text-muted);
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Button styling */
|
|
.btn-group-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Toast styling */
|
|
.toast {
|
|
min-width: 300px;
|
|
}
|
|
|
|
/* Instructions panel styling */
|
|
.instructions-panel textarea {
|
|
resize: vertical;
|
|
min-height: 200px;
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.instructions-panel .card-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 1200px) {
|
|
.heroprompt-container {
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
|
|
.workspaces-panel,
|
|
.workspace-details,
|
|
.instructions-panel {
|
|
flex: none;
|
|
min-width: auto;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.instructions-panel {
|
|
order: 3;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.heroprompt-container {
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
|
|
.workspaces-panel,
|
|
.workspace-details,
|
|
.instructions-panel {
|
|
flex: none;
|
|
min-width: auto;
|
|
margin-bottom: 1rem;
|
|
}
|
|
}
|
|
|
|
/* Selection counter */
|
|
.selection-counter {
|
|
font-size: 0.875rem;
|
|
color: var(--bs-text-muted);
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.selection-counter.has-selection {
|
|
color: var(--bs-success);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Directory path styling */
|
|
.directory-path {
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
font-size: 0.75rem;
|
|
color: var(--bs-text-muted);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Workspace name input */
|
|
.workspace-name-input {
|
|
border: 1px solid var(--bs-border-color);
|
|
border-radius: 0.25rem;
|
|
padding: 0.5rem;
|
|
width: 100%;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Loading state */
|
|
.loading-spinner {
|
|
display: inline-block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
border: 2px solid var(--bs-border-color);
|
|
border-radius: 50%;
|
|
border-top-color: var(--bs-primary);
|
|
animation: spin 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* File type icons */
|
|
.file-icon {
|
|
margin-right: 0.5rem;
|
|
width: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.file-icon.file-md::before {
|
|
content: "📝";
|
|
}
|
|
|
|
.file-icon.file-v::before {
|
|
content: "⚡";
|
|
}
|
|
|
|
.file-icon.file-js::before {
|
|
content: "📜";
|
|
}
|
|
|
|
.file-icon.file-css::before {
|
|
content: "🎨";
|
|
}
|
|
|
|
.file-icon.file-html::before {
|
|
content: "🌐";
|
|
}
|
|
|
|
.file-icon.file-json::before {
|
|
content: "📋";
|
|
}
|
|
|
|
.file-icon.file-yaml::before {
|
|
content: "⚙️";
|
|
}
|
|
|
|
.file-icon.file-txt::before {
|
|
content: "📄";
|
|
}
|
|
|
|
.file-icon.file-default::before {
|
|
content: "📁";
|
|
} |