quiztech_theme/style.css

229 lines
5 KiB
CSS

/*
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;
}
/* Quiztech Dashboard Styles */
.quiztech-dashboard-widgets {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
gap: 20px;
margin-top: 20px;
}
.dashboard-widget {
border: 1px solid #e0e0e0;
padding: 15px 20px;
background-color: #fff;
box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.dashboard-widget h2 {
margin-top: 0;
margin-bottom: 15px;
font-size: 1.2em;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.dashboard-widget h3 {
margin-top: 15px;
margin-bottom: 10px;
font-size: 1em;
color: #555;
}
/* Quick Links Widget */
.quick-links ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.quick-links li {
margin: 0;
}
.quick-links a.button,
.quick-links span.button.disabled {
display: inline-block;
padding: 8px 15px;
text-decoration: none;
border: 1px solid #ccc;
border-radius: 3px;
background-color: #f7f7f7;
color: #555;
text-align: center;
}
.quick-links a.button:hover {
background-color: #f0f0f0;
border-color: #999;
color: #333;
}
.quick-links span.button.disabled {
background-color: #eee;
color: #aaa;
cursor: not-allowed;
}
/* Statistics Widget */
.statistics p {
margin: 0 0 10px 0;
font-size: 0.95em;
}
.statistics strong {
margin-right: 5px;
}
/* Recent Activity Widget */
.recent-activity .activity-section {
margin-bottom: 15px;
}
.recent-activity ul {
list-style: none;
margin: 0 0 10px 0;
padding: 0;
font-size: 0.9em;
color: #333;
}
.recent-activity li {
padding: 5px 0;
border-bottom: 1px dotted #eee;
margin: 0;
}
.recent-activity li:last-child {
border-bottom: none;
}
.recent-activity strong {
color: #0073aa;
}
.recent-activity em {
color: #555;
}