T.AI / src /components /GradingResults.css
Aaron Meslin
start
c82f7c8
Raw
History Blame Contribute Delete
3.31 kB
:root {
--primary: #1E3A8A;
--primary-dark: #172554;
--primary-light: #BFDBFE;
--secondary: #334155;
--secondary-light: #CBD5E1;
--success: #16A34A;
--background: #F1F5F9;
--surface: #FFFFFF;
--text: #111827;
--text-secondary: #dde3ed;
--border: #D1D5DB;
--gradient: linear-gradient(135deg, #1E3A8A 0%, #9333EA 100%);
}
/* General Styles */
body {
font-family: "Inter", sans-serif;
background: var(--background);
color: var(--text);
margin: 0;
padding: 0;
}
.container {
display: flex;
min-height: 100vh;
}
/* Sidebar */
.sidebar {
width: 300px;
background: var(--surface);
border-right: 2px solid var(--border);
padding: 2rem;
overflow-y: auto;
transition: width 0.3s ease;
position: fixed;
height: 100vh;
left: 0;
top: 0;
}
.sidebar h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 1.5rem;
border-bottom: 3px solid var(--primary);
padding-bottom: 0.75rem;
}
.submission-list {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.submission-item {
padding: 1rem;
border-radius: 8px;
border: 2px solid var(--border);
cursor: pointer;
font-weight: 600;
transition: all 0.2s ease;
display: flex;
justify-content: space-between;
color: black;
}
.submission-item:hover, .submission-item.active {
background: var(--primary-light);
border-color: var(--primary);
}
.submission-id {
font-weight: 700;
color: black;
margin-right: auto;
}
.submission-score {
font-weight: 700;
color: black;
margin-left: 40px;
}
.total-score {
color: white;
}
.id-text {
color: white;
}
/* Main Content */
.main-content {
flex: 1;
padding: 2.5rem;
transition: margin-left 0.3s ease;
margin-left: 300px;
}
.results-header {
background: var(--gradient);
padding: 2.5rem;
text-align: center;
color: white;
border-radius: 12px;
margin-bottom: 2rem;
}
.results-header h2 {
font-size: 1.75rem;
font-weight: 700;
margin: 0;
}
/* Grading Results */
.grading-results {
background: var(--surface);
border-radius: 12px;
padding: 2.5rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.question-card {
background: var(--secondary-light);
padding: 1.75rem;
border-radius: 12px;
margin-bottom: 1.75rem;
border-left: 6px solid var(--primary);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.question-card h3 {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 1.25rem;
}
.grader-feedback {
background: var(--surface);
padding: 1.25rem;
border-left: 6px solid var(--secondary);
border-radius: 8px;
margin-top: 1.25rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.grader-feedback h4 {
font-size: 1.25rem;
font-weight: 700;
color: var(--secondary);
margin-bottom: 0.75rem;
}
.criteria-list {
list-style: none;
padding: 0;
margin-top: 1.75rem;
}
.criteria-item {
padding: 1.25rem;
border-bottom: 2px solid var(--border);
}
.criteria-item:last-child {
border-bottom: none;
}
.criteria-score {
font-weight: 700;
color: var(--primary);
}
/* Responsive */
@media (max-width: 768px) {
.sidebar {
width: 100%;
position: relative;
border-right: none;
border-bottom: 2px solid var(--border);
height: auto;
}
.main-content {
margin-left: 0;
}
}