268 lines
7.3 KiB
CSS
268 lines
7.3 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 */
|
|
|
|
:root {
|
|
--quiztech-widget-bg: #FFFEFE;
|
|
--quiztech-widget-shadow: 0px 2px 50px rgba(0, 0, 0, 0.05);
|
|
--quiztech-widget-radius: 8px;
|
|
--quiztech-text-primary: #1E1F27;
|
|
--quiztech-text-secondary: #696A6F;
|
|
--quiztech-accent-primary: #0F41D2;
|
|
--quiztech-font-heading: 'Sora', sans-serif; /* Ensure font is loaded */
|
|
--quiztech-font-body: 'Inter', sans-serif; /* Ensure font is loaded */
|
|
--quiztech-border-light: #EAEAEB;
|
|
}
|
|
|
|
.quiztech-dashboard-widgets {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.dashboard-widget {
|
|
border: none; /* Removed border, rely on shadow */
|
|
padding: 20px; /* Adjusted padding */
|
|
background-color: var(--quiztech-widget-bg);
|
|
box-shadow: var(--quiztech-widget-shadow);
|
|
border-radius: var(--quiztech-widget-radius);
|
|
}
|
|
|
|
.dashboard-widget h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 20px; /* Adjusted margin */
|
|
font-family: var(--quiztech-font-heading);
|
|
font-weight: 600;
|
|
font-size: 16px; /* Adjusted size */
|
|
color: var(--quiztech-text-primary);
|
|
border-bottom: none; /* Removed border */
|
|
padding-bottom: 0; /* Removed padding */
|
|
}
|
|
|
|
.dashboard-widget h3 {
|
|
margin-top: 15px;
|
|
margin-bottom: 10px;
|
|
font-family: var(--quiztech-font-body); /* Changed font */
|
|
font-weight: 600; /* Adjusted weight */
|
|
font-size: 14px; /* Adjusted size */
|
|
color: var(--quiztech-text-primary); /* Adjusted color */
|
|
}
|
|
|
|
/* 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 {
|
|
display: inline-block;
|
|
padding: 10px 15px; /* Adjusted padding */
|
|
text-decoration: none;
|
|
border: none; /* Removed border */
|
|
border-radius: 6px; /* Adjusted radius */
|
|
background-color: var(--quiztech-accent-primary);
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
font-family: var(--quiztech-font-body);
|
|
font-weight: 500;
|
|
transition: background-color 0.2s ease; /* Added transition */
|
|
}
|
|
|
|
.quick-links a.button:hover {
|
|
background-color: #0d36a8; /* Darker blue for hover */
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.quick-links span.button.disabled {
|
|
display: inline-block;
|
|
padding: 10px 15px; /* Adjusted padding */
|
|
text-decoration: none;
|
|
border: none; /* Removed border */
|
|
border-radius: 6px; /* Adjusted radius */
|
|
background-color: var(--quiztech-border-light); /* Use light border color */
|
|
color: var(--quiztech-text-secondary); /* Use secondary text color */
|
|
text-align: center;
|
|
font-family: var(--quiztech-font-body);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Statistics Widget */
|
|
.statistics p {
|
|
margin: 0 0 8px 0; /* Adjusted margin */
|
|
font-size: 12px; /* Adjusted size */
|
|
font-family: var(--quiztech-font-body);
|
|
color: var(--quiztech-text-primary);
|
|
line-height: 1.3; /* Added line-height for clarity */
|
|
}
|
|
|
|
.statistics strong {
|
|
display: block; /* Place label above value */
|
|
margin: 0 0 4px 0; /* Adjusted margin */
|
|
font-family: var(--quiztech-font-body);
|
|
font-size: 10px; /* Adjusted size */
|
|
color: var(--quiztech-text-secondary);
|
|
font-weight: 400; /* Adjusted weight */
|
|
}
|
|
|
|
/* 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 and color handled by li */
|
|
}
|
|
|
|
.recent-activity li {
|
|
padding: 8px 0; /* Adjusted padding */
|
|
border-bottom: 1px solid var(--quiztech-border-light); /* Adjusted border */
|
|
margin: 0;
|
|
font-family: var(--quiztech-font-body);
|
|
font-size: 12px; /* Adjusted size */
|
|
color: var(--quiztech-text-secondary); /* Adjusted color */
|
|
}
|
|
|
|
.recent-activity li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.recent-activity strong {
|
|
color: var(--quiztech-text-primary); /* Adjusted color */
|
|
font-weight: 500; /* Adjusted weight */
|
|
}
|
|
|
|
.recent-activity em {
|
|
color: var(--quiztech-text-secondary); /* Adjusted color */
|
|
font-style: normal; /* Removed italics */
|
|
}
|
|
|