Repository navigation
Expand file tree
/
Copy pathteacher.css
More file actions
104 lines (102 loc) · 6.87 KB
/
Copy pathteacher.css
File metadata and controls
104 lines (102 loc) · 6.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
:root {
color-scheme: light;
--ink: #17363b;
--muted: #587176;
--paper: #f3f7f5;
--surface: #fff;
--line: #ccdad7;
--teal: #087e82;
--teal-dark: #075e62;
--red: #a63c35;
--green: #1d6a4c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 "Avenir Next", Avenir, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button, a, input, textarea { border-radius: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid #d18b1f; outline-offset: 2px; }
[hidden] { display: none !important; }
.teacher-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 10px max(18px, calc((100vw - 1240px) / 2)); background: #123f46; color: #fff; }
.teacher-header nav { display: flex; align-items: center; gap: 16px; }
.teacher-header a { color: #e4f4ef; text-underline-offset: 3px; }
.brand { color: #fff !important; font-size: 19px; font-weight: 800; text-decoration: none; }
.page-shell { width: min(1240px, calc(100% - 32px)); margin: 28px auto 64px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; }
h2 { margin-bottom: 12px; font-size: 20px; }
h3 { margin-bottom: 10px; font-size: 16px; }
.eyebrow { margin-bottom: 6px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.dashboard-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.status-line { min-height: 24px; color: var(--muted); }
.status-line[data-kind="error"] { color: var(--red); }
.status-line[data-kind="success"] { color: var(--green); }
.access-panel, .class-sidebar, .class-workspace { background: var(--surface); border: 1px solid var(--line); }
.access-panel { max-width: 760px; margin: 0 auto; padding: clamp(20px, 5vw, 42px); border-top: 5px solid var(--teal); }
.access-panel > p:not(.eyebrow) { color: var(--muted); }
.form-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-section label, .compact-form label, .inline-edit label { display: block; margin: 12px 0 5px; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #9eb4b1; background: #fff; color: var(--ink); }
textarea { min-height: 94px; resize: vertical; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.primary-button, .secondary-button, .danger-button, .quiet-button { min-height: 42px; padding: 8px 14px; border: 1px solid transparent; font-weight: 700; }
.primary-button { background: var(--teal); color: #fff; }
.primary-button:hover { background: var(--teal-dark); }
.secondary-button { border-color: var(--line); background: #fff; color: var(--ink); }
.danger-button { border-color: #e2b8b4; background: #fff7f6; color: var(--red); }
.quiet-button { min-height: 36px; background: transparent; color: #fff; border-color: #72918d; }
.notice { margin-top: 18px; padding: 14px; border-left: 4px solid var(--gold, #d18b1f); background: #fff9e9; }
.stack-list { display: grid; gap: 8px; }
.list-item { padding: 12px; border: 1px solid var(--line); background: #fff; }
.list-item p:last-child { margin-bottom: 0; }
.list-item-meta { color: var(--muted); font-size: 13px; }
.list-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.metric-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric { min-height: 92px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.metric strong { display: block; margin-bottom: 4px; color: var(--teal-dark); font-size: 24px; }
.metric span { color: var(--muted); font-size: 13px; }
.teacher-layout { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); align-items: start; gap: 16px; }
.class-sidebar, .class-workspace { min-width: 0; padding: 18px; }
.compact-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.class-button { width: 100%; text-align: left; }
.class-button[aria-pressed="true"] { border-color: var(--teal); background: #edf7f3; }
.class-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.class-heading p { color: var(--muted); }
.class-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.inline-edit { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(150px, 1.5fr) auto; align-items: end; gap: 8px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line); }
.inline-edit label { margin: 0; }
.workspace-tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 16px; border-bottom: 1px solid var(--line); }
.workspace-tabs button { flex: 0 0 auto; min-height: 42px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 700; }
.workspace-tabs button[aria-current="page"] { border-bottom-color: var(--teal); color: var(--ink); }
.workspace-content { min-height: 220px; padding-top: 18px; }
.workspace-content form { max-width: 720px; }
.workspace-content form > button { margin-top: 14px; }
.assignment-card, .announcement-card, .session-card, .material-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.assignment-card h3, .announcement-card h3, .session-card h3, .material-card h3 { margin-bottom: 5px; }
.assignment-card p, .announcement-card p, .session-card p, .material-card p { white-space: pre-wrap; }
.grade-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(180px, 2fr) minmax(90px, 130px) auto; gap: 8px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.grade-row textarea { min-height: 72px; }
.empty-state { padding: 24px 0; color: var(--muted); }
.empty-state h2 { color: var(--ink); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.student-submission { display: grid; gap: 8px; margin-top: 12px; }
.student-submission label { font-weight: 700; }
@media (max-width: 820px) {
.teacher-layout { grid-template-columns: 1fr; }
.metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.class-heading { flex-direction: column; }
.class-actions { justify-content: start; }
}
@media (max-width: 560px) {
.teacher-header { align-items: flex-start; flex-direction: column; padding: 12px 16px; }
.teacher-header nav { width: 100%; justify-content: space-between; }
.page-shell { width: calc(100% - 24px); margin-top: 18px; }
.metric-row { gap: 8px; }
.metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inline-form { grid-template-columns: 1fr; }
.inline-edit { grid-template-columns: 1fr; }
.grade-row { grid-template-columns: 1fr 1fr; }
.grade-row textarea { grid-column: 1 / -1; }
}