- Added comprehensive CSS styles for the Interview Wizard Modal, improving layout and responsiveness. - Introduced markdown editing capabilities with a toolbar for text areas, allowing for rich text input. - Enhanced step rendering logic to support optional prompt text for each step. - Updated the modal structure to include sticky navigation and improved content organization. - Refactored existing rendering methods to utilize new CSS classes for better styling consistency.
290 lines
5.7 KiB
CSS
290 lines
5.7 KiB
CSS
/*
|
|
|
|
This CSS file will be included with your plugin, and
|
|
available in the app when your plugin is enabled.
|
|
|
|
If your plugin does not need CSS, delete this file.
|
|
|
|
*/
|
|
|
|
/* Profile selection visual feedback */
|
|
.profile-selected {
|
|
background-color: var(--interactive-hover);
|
|
border-left: 3px solid var(--interactive-accent);
|
|
padding-left: calc(var(--size-4-2) - 3px);
|
|
}
|
|
|
|
.profile-selected .setting-item-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Interview wizard styles */
|
|
.interview-prompt {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.interview-warning {
|
|
background-color: var(--background-modifier-error);
|
|
color: var(--text-error);
|
|
padding: 0.5em;
|
|
border-radius: 4px;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.interview-note {
|
|
color: var(--text-muted);
|
|
font-size: 0.9em;
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
.loop-items-list {
|
|
margin: 1em 0;
|
|
padding: 1em;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.loop-items-list ul {
|
|
margin: 0.5em 0;
|
|
padding-left: 1.5em;
|
|
}
|
|
|
|
.loop-items-list li {
|
|
margin: 0.25em 0;
|
|
}
|
|
|
|
/* TextArea improvements */
|
|
.setting-item textarea {
|
|
width: 100% !important;
|
|
min-height: 150px;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* Interview Wizard Modal Layout */
|
|
.mindnet-wizard-modal.modal {
|
|
width: clamp(720px, 88vw, 1100px) !important;
|
|
height: clamp(640px, 86vh, 920px) !important;
|
|
max-width: 90vw !important;
|
|
max-height: 90vh !important;
|
|
}
|
|
|
|
.mindnet-wizard-modal .modal-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mindnet-wizard-modal .modal-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mindnet-wizard-modal .modal-content-header {
|
|
flex-shrink: 0;
|
|
padding: 1em;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.mindnet-wizard-modal .modal-content-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 1.5em;
|
|
min-height: 0; /* Important for flex scrolling */
|
|
}
|
|
|
|
.mindnet-wizard-modal .modal-content-footer {
|
|
flex-shrink: 0;
|
|
padding: 1em;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
background-color: var(--background-primary);
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* Full-width inputs in wizard */
|
|
.mindnet-wizard-modal .setting-item {
|
|
width: 100%;
|
|
}
|
|
|
|
.mindnet-wizard-modal .setting-item-control {
|
|
width: 100%;
|
|
}
|
|
|
|
.mindnet-wizard-modal .setting-item-control textarea {
|
|
width: 100% !important;
|
|
min-height: 240px;
|
|
flex-grow: 1;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.mindnet-wizard-modal .setting-item-control input[type="text"] {
|
|
width: 100% !important;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Single column layout for step content */
|
|
.mindnet-wizard-modal .step-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
gap: 1em;
|
|
}
|
|
|
|
.mindnet-wizard-modal .step-content .setting-item {
|
|
width: 100%;
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
/* Navigation buttons layout */
|
|
.mindnet-wizard-modal .interview-navigation {
|
|
display: flex;
|
|
gap: 0.5em;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.mindnet-wizard-modal .interview-navigation .setting-item {
|
|
margin: 0;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
/* Markdown toolbar styles */
|
|
.markdown-toolbar {
|
|
display: flex;
|
|
gap: 0.25em;
|
|
padding: 0.5em;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 4px 4px 0 0;
|
|
}
|
|
|
|
.markdown-toolbar-button {
|
|
padding: 0.25em 0.5em;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background: var(--background-primary);
|
|
cursor: pointer;
|
|
font-size: 0.9em;
|
|
min-width: 2em;
|
|
transition: background-color 0.1s;
|
|
}
|
|
|
|
.markdown-toolbar-button:hover {
|
|
background: var(--interactive-hover);
|
|
}
|
|
|
|
.markdown-toolbar-button:active {
|
|
background: var(--interactive-active);
|
|
}
|
|
|
|
/* Markdown editor container */
|
|
.markdown-editor-container {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.markdown-editor-wrapper {
|
|
width: 100%;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.markdown-preview-container {
|
|
width: 100%;
|
|
min-height: 240px;
|
|
padding: 1em;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background: var(--background-primary);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.markdown-preview-container .markdown-preview-view {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Ensure textarea in editor wrapper takes full width */
|
|
.markdown-editor-wrapper .setting-item {
|
|
width: 100%;
|
|
margin: 0;
|
|
border: none;
|
|
}
|
|
|
|
.markdown-editor-wrapper .setting-item-control {
|
|
width: 100%;
|
|
}
|
|
|
|
.markdown-editor-wrapper textarea {
|
|
border: none !important;
|
|
border-radius: 0 !important;
|
|
padding: 1em !important;
|
|
}
|
|
|
|
/* Field container with vertical layout */
|
|
.mindnet-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin: 14px 0 18px;
|
|
width: 100%;
|
|
}
|
|
|
|
.mindnet-field__label {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
line-height: 1.2;
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.mindnet-field__desc {
|
|
font-size: 13px;
|
|
opacity: 0.85;
|
|
line-height: 1.35;
|
|
white-space: normal;
|
|
overflow: visible;
|
|
text-overflow: clip;
|
|
display: block;
|
|
width: 100%;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.mindnet-field__input {
|
|
width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.mindnet-field textarea,
|
|
.mindnet-field input[type="text"] {
|
|
width: 100% !important;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Ensure no truncation in field descriptions */
|
|
.mindnet-field__desc,
|
|
.mindnet-field__label {
|
|
white-space: normal !important;
|
|
overflow: visible !important;
|
|
text-overflow: clip !important;
|
|
}
|
|
|
|
/* Remove any truncation from Setting component labels when inside mindnet-field */
|
|
.mindnet-field .setting-item-name {
|
|
white-space: normal !important;
|
|
overflow: visible !important;
|
|
text-overflow: clip !important;
|
|
}
|