Files
tutor-service/internal/webapp/static/styles.css
2026-04-26 18:52:16 +09:00

317 lines
4.5 KiB
CSS

:root {
color-scheme: light;
--bg: #f5f7f4;
--surface: #ffffff;
--surface-muted: #eef2ec;
--text: #18201b;
--muted: #5b665f;
--line: #d8dfd5;
--accent: #19764b;
--accent-dark: #105c39;
--danger: #a93a2f;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: 0;
}
button,
input,
textarea,
select {
font: inherit;
}
.workspace {
display: grid;
grid-template-columns: minmax(260px, 320px) minmax(360px, 1fr) minmax(280px, 360px);
gap: 1px;
min-height: 100vh;
background: var(--line);
}
.setup-pane,
.practice-pane,
.feedback-pane {
background: var(--surface);
padding: 28px;
}
.practice-pane {
display: flex;
flex-direction: column;
gap: 22px;
}
.eyebrow {
margin: 0 0 10px;
color: var(--accent);
font-size: 12px;
font-weight: 750;
text-transform: uppercase;
}
h1,
h2 {
margin: 0;
line-height: 1.08;
}
h1 {
max-width: 9ch;
font-size: clamp(42px, 6vw, 74px);
}
h2 {
font-size: 22px;
}
.lede {
max-width: 28ch;
margin: 18px 0 30px;
color: var(--muted);
line-height: 1.5;
}
.stacked-form,
.answer-form {
display: grid;
gap: 14px;
}
.material-form,
.asset-form {
align-items: end;
display: grid;
gap: 14px;
grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
}
.wide-field {
grid-column: 1 / -1;
}
label {
display: grid;
gap: 7px;
color: var(--muted);
font-size: 13px;
font-weight: 650;
}
input,
textarea,
select {
width: 100%;
border: 1px solid var(--line);
border-radius: 6px;
background: #fbfcfa;
color: var(--text);
padding: 12px;
outline: none;
}
textarea {
min-height: 160px;
resize: vertical;
line-height: 1.45;
}
input:focus,
textarea:focus,
select:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(25, 118, 75, 0.12);
}
button {
min-height: 44px;
border: 0;
border-radius: 6px;
background: var(--accent);
color: #fff;
cursor: pointer;
font-weight: 750;
}
button:hover:not(:disabled) {
background: var(--accent-dark);
}
button:disabled {
cursor: not-allowed;
opacity: 0.48;
}
.status-line,
.error-line {
min-height: 20px;
margin: 18px 0 0;
font-size: 13px;
}
.status-line {
color: var(--muted);
}
.error-line {
color: var(--danger);
}
.section-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
}
.question-list {
display: grid;
gap: 10px;
}
.question-button {
border: 1px solid var(--line);
background: #fbfcfa;
color: var(--text);
padding: 16px;
min-height: 72px;
text-align: left;
}
.question-button[aria-pressed="true"] {
border-color: var(--accent);
background: var(--surface-muted);
}
.question-id {
display: block;
margin-bottom: 5px;
color: var(--accent);
font-size: 12px;
font-weight: 750;
}
.empty-state {
border: 1px dashed var(--line);
border-radius: 6px;
color: var(--muted);
padding: 18px;
}
.feedback {
display: grid;
gap: 16px;
margin-top: 22px;
}
.progress-heading {
margin-top: 34px;
}
.small-button {
min-height: 34px;
padding: 0 12px;
font-size: 12px;
}
.metric-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 10px;
padding: 10px 0;
border-bottom: 1px solid var(--line);
}
.grade {
color: var(--accent);
font-size: 38px;
font-weight: 800;
}
.readiness-value {
color: var(--accent);
font-size: 48px;
font-weight: 850;
line-height: 1;
}
.concept-pill {
display: inline-flex;
margin: 4px 6px 4px 0;
border: 1px solid var(--line);
border-radius: 999px;
padding: 6px 9px;
color: var(--muted);
font-size: 12px;
font-weight: 650;
}
.small-list {
margin: 0;
padding-left: 18px;
color: var(--muted);
line-height: 1.45;
}
.content-workspace {
border-top: 1px solid var(--line);
display: grid;
gap: 18px;
padding-top: 24px;
}
.ontology-view {
display: grid;
gap: 12px;
}
.summary-strip {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.summary-chip {
background: var(--surface-muted);
border-radius: 6px;
color: var(--muted);
font-size: 12px;
font-weight: 750;
padding: 9px 11px;
}
.prompt-text {
background: #fbfcfa;
border: 1px solid var(--line);
border-radius: 6px;
margin: 0;
padding: 14px;
white-space: pre-wrap;
}
@media (max-width: 980px) {
.workspace {
grid-template-columns: 1fr;
}
h1 {
max-width: 100%;
font-size: 42px;
}
.material-form,
.asset-form {
grid-template-columns: 1fr;
}
}