475 lines
13 KiB
CSS
475 lines
13 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 */
|
|
}
|
|
|
|
|
|
/* --- Global Quiztech Theme Styles --- */
|
|
|
|
/* General Content Area */
|
|
.quiztech-content-area {
|
|
font-family: var(--quiztech-font-body);
|
|
color: var(--quiztech-text-primary);
|
|
}
|
|
|
|
/* Page Title */
|
|
.quiztech-page-title {
|
|
font-family: var(--quiztech-font-heading);
|
|
font-weight: 600;
|
|
color: var(--quiztech-text-primary);
|
|
margin-bottom: 25px; /* Consistent spacing */
|
|
}
|
|
|
|
/* Section Title */
|
|
.quiztech-section-title {
|
|
font-family: var(--quiztech-font-heading);
|
|
font-weight: 600;
|
|
font-size: 18px; /* Slightly smaller than page title */
|
|
color: var(--quiztech-text-primary);
|
|
margin-top: 30px;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 5px;
|
|
border-bottom: 1px solid var(--quiztech-border-light);
|
|
}
|
|
|
|
/* Tables */
|
|
.quiztech-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 20px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.quiztech-table th,
|
|
.quiztech-table td {
|
|
padding: 12px 15px;
|
|
text-align: left;
|
|
border: 1px solid var(--quiztech-border-light);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.quiztech-table th {
|
|
background-color: var(--quiztech-widget-bg); /* Use widget bg for header */
|
|
font-weight: 600;
|
|
color: var(--quiztech-text-primary);
|
|
}
|
|
|
|
.quiztech-table tbody tr:nth-child(odd) td {
|
|
/* Optional alternating row color - use widget bg for subtle difference */
|
|
/* background-color: var(--quiztech-widget-bg); */
|
|
}
|
|
|
|
.quiztech-table tbody tr:hover td {
|
|
background-color: rgba(0, 0, 0, 0.02); /* Subtle hover */
|
|
}
|
|
|
|
/* Forms */
|
|
.quiztech-form p {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.quiztech-label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
color: var(--quiztech-text-secondary);
|
|
}
|
|
|
|
.quiztech-input,
|
|
.quiztech-textarea,
|
|
.quiztech-select {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid var(--quiztech-border-light);
|
|
border-radius: 4px;
|
|
background-color: var(--quiztech-widget-bg);
|
|
color: var(--quiztech-text-primary);
|
|
font-family: var(--quiztech-font-body);
|
|
font-size: 14px;
|
|
box-sizing: border-box; /* Include padding and border in element's total width and height */
|
|
transition: border-color 0.2s ease;
|
|
}
|
|
|
|
.quiztech-input:focus,
|
|
.quiztech-textarea:focus,
|
|
.quiztech-select:focus {
|
|
outline: none;
|
|
border-color: var(--quiztech-accent-primary);
|
|
box-shadow: 0 0 0 1px var(--quiztech-accent-primary);
|
|
}
|
|
|
|
.quiztech-textarea {
|
|
min-height: 100px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.quiztech-button {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
text-decoration: none;
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
font-family: var(--quiztech-font-body);
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
margin-right: 5px; /* Spacing between adjacent buttons */
|
|
}
|
|
|
|
.quiztech-button-primary {
|
|
background-color: var(--quiztech-accent-primary);
|
|
color: #FFFFFF;
|
|
border-color: var(--quiztech-accent-primary);
|
|
}
|
|
|
|
.quiztech-button-primary:hover {
|
|
background-color: #0d36a8; /* Darker blue */
|
|
border-color: #0d36a8;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.quiztech-button-secondary {
|
|
background-color: var(--quiztech-widget-bg);
|
|
color: var(--quiztech-text-secondary);
|
|
border-color: var(--quiztech-border-light);
|
|
}
|
|
|
|
.quiztech-button-secondary:hover {
|
|
background-color: #f0f0f0; /* Slightly darker background */
|
|
border-color: #cccccc;
|
|
color: var(--quiztech-text-primary);
|
|
}
|
|
|
|
.quiztech-button-small {
|
|
padding: 5px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Links */
|
|
.quiztech-link {
|
|
color: var(--quiztech-accent-primary);
|
|
text-decoration: none;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.quiztech-link:hover {
|
|
color: #0d36a8; /* Darker blue */
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Inline Forms (like Send Invite row) */
|
|
.quiztech-form-inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px; /* Spacing between elements */
|
|
flex-wrap: wrap; /* Allow wrapping */
|
|
}
|
|
|
|
.quiztech-form-inline .quiztech-label {
|
|
margin-bottom: 0; /* Remove bottom margin for inline */
|
|
}
|
|
|
|
.quiztech-form-inline .quiztech-input {
|
|
width: auto; /* Allow input to size based on content/size attribute */
|
|
flex-grow: 1; /* Allow input to take available space */
|
|
}
|
|
|
|
/* Status Messages */
|
|
.quiztech-status-message {
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
color: var(--quiztech-text-secondary);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Dark Mode Styles */
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--quiztech-widget-bg: #2a2a2e; /* Dark grey background */
|
|
--quiztech-widget-shadow: 0px 2px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow on dark */
|
|
--quiztech-text-primary: #e0e0e0; /* Light grey primary text */
|
|
--quiztech-text-secondary: #a0a0a0; /* Medium grey secondary text */
|
|
--quiztech-accent-primary: #2868e7; /* Slightly brighter blue for contrast */
|
|
--quiztech-border-light: #444444; /* Darker border color */
|
|
}
|
|
|
|
.quick-links a.button:hover {
|
|
background-color: #1c54c4; /* Slightly darker blue for hover */
|
|
}
|
|
|
|
.quick-links span.button.disabled {
|
|
color: #777; /* Adjust disabled text color for better contrast */
|
|
background-color: #3f3f44; /* Darker disabled background */
|
|
}
|
|
}
|