/* Theme Name: Quiztech Theme Theme URI: https://quiztech.com Description: Quiztech theme Author: Ruben Ramirez Author URI: https://redlotusaustin.com Template: generatepress Version: 0.1 */ /* Assessment Builder Styles */ .quiztech-assessment-builder-area .entry-content { max-width: none; /* Allow content to take full width if needed */ } #assessment-builder-container { display: flex; flex-wrap: wrap; /* Allow wrapping on smaller screens */ gap: 20px; /* Space between panes */ margin-top: 20px; } #assessment-builder-library { flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */ min-width: 280px; /* Minimum width before wrapping */ border: 1px solid #ddd; padding: 15px; background-color: #f9f9f9; box-sizing: border-box; } #assessment-builder-current { flex: 2 1 500px; /* Takes up more space */ min-width: 400px; border: 1px solid #ddd; padding: 15px; background-color: #fff; box-sizing: border-box; } #library-questions-list, #current-assessment-questions { min-height: 200px; /* Ensure panes have some height */ max-height: 400px; /* Limit height and allow scrolling if needed */ overflow-y: auto; /* Add scrollbar if content exceeds max-height */ border: 1px dashed #eee; padding: 10px; margin-top: 10px; margin-bottom: 15px; } /* Add some basic styling for list items (placeholders) */ .library-question-item, .selected-question-item { padding: 8px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; } .library-question-item:last-child, .selected-question-item:last-child { border-bottom: none; } #assessment-summary { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; } /* Responsive adjustments (optional example) */ @media (max-width: 768px) { #assessment-builder-container { flex-direction: column; } #assessment-builder-library, #assessment-builder-current { flex-basis: auto; /* Reset basis when stacked */ min-width: 0; } } /* Drag and Drop Styles */ .ui-sortable-placeholder { border: 1px dashed #ccc; background-color: #f0f0f0; height: 40px; /* Adjust height to match item height */ margin-bottom: 8px; /* Match item margin/padding */ visibility: visible !important; /* Ensure placeholder is visible */ } .dragging-helper { opacity: 0.8; border: 1px dashed #aaa; background-color: #fff; z-index: 9999; /* Ensure helper is on top */ } /* Style for selected items in the right pane */ #current-assessment-questions .selected-question-item { cursor: move; /* Indicate items are draggable/sortable */ background-color: #fefefe; } /* Optional: Style adjustments for library items */ #assessment-builder-library .library-question-item { cursor: grab; } #assessment-builder-library .library-question-item:active { cursor: grabbing; }