t2av_eval / frontend /src /styles.css
ChaitanyaChakkaVsk's picture
Added a view guidelines button in eval page.
19ff2d5
Raw
History Blame
5 kB
body {
margin: 0;
font-family: Arial, sans-serif;
background: #f5f5f5;
color: #1f2933;
}
.container {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 20px;
padding: 20px;
}
.card {
background: white;
border-radius: 12px;
padding: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.video-card {
align-self: start;
max-height: calc(100vh - 40px);
position: sticky;
top: 20px;
}
.annotation-card {
max-height: calc(100vh - 40px);
overflow-y: auto;
overscroll-behavior: contain;
}
textarea.rationale-input {
width: 100%;
min-height: 50px;
margin-top: 8px;
padding: 10px;
box-sizing: border-box;
font: inherit;
}
button {
padding: 8px 14px;
margin-right: 10px;
border-radius: 8px;
border: none;
cursor: pointer;
}
.controls {
margin-top: 16px;
}
.nav-controls {
display: flex;
gap: 10px;
}
.tag {
background: #e9eefc;
padding: 6px 10px;
border-radius: 999px;
display: inline-block;
margin-right: 8px;
margin-bottom: 8px;
}
.metadata-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.metadata-row span {
background: #f0f4f8;
border: 1px solid #d9e2ec;
border-radius: 999px;
color: #334e68;
font-size: 13px;
padding: 5px 9px;
}
.save-btn {
background: black;
color: white;
}
button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
input {
border: 1px solid #c8d0d8;
font: inherit;
padding: 9px 10px;
}
.t2av-shell input,
.t2av-shell button,
.t2av-shell .save-btn {
border-radius: 8px;
}
.count-field {
display: grid;
gap: 6px;
font-weight: 700;
max-width: 160px;
margin-bottom: 6px;
}
.count-field input {
font-weight: 400;
}
/* ---- event-major evaluation layout ---- */
.event-card {
border: 1px solid var(--line, #e3e8ef);
border-radius: 10px;
padding: 14px 16px;
margin-bottom: 16px;
background: var(--surface, #fff);
}
.event-card-header h4 {
margin: 4px 0 4px;
}
.event-modality {
font-family: var(--mono, monospace);
font-size: 11px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--accent, #35507a);
}
.event-definition {
margin: 0 0 4px;
font-size: 13.5px;
}
.event-axis-rows {
display: grid;
gap: 14px;
}
.axis-item-row {
border-top: 1px solid var(--line, #eef2f6);
padding-top: 12px;
}
.axis-item-row-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 4px;
}
.axis-item-title {
font-weight: 600;
}
.axis-item-summary {
margin: 0 0 8px;
font-size: 13px;
}
.video-level-axes {
margin-top: 20px;
padding-top: 12px;
border-top: 2px solid var(--line, #e3e8ef);
}
.axis-context {
background: var(--paper, #f4f4f1);
border-radius: 8px;
padding: 10px 14px;
margin-bottom: 4px;
}
.axis-context-label {
font-family: var(--mono, monospace);
font-size: 11px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--accent, #35507a);
display: block;
margin-bottom: 4px;
}
.axis-context p {
margin: 0;
font-size: 13.5px;
}
.eval-progress {
font-weight: 600;
margin-bottom: 12px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.guideline-toggle-btn {
font-weight: 600;
font-size: 13px;
padding: 7px 14px;
border: 1px solid var(--line, #d9e2ec);
background: var(--surface, #fff);
color: var(--ink, #1f2933);
white-space: nowrap;
}
.guideline-toggle-btn:hover {
background: var(--paper, #f4f4f1);
}
.missing-videos-banner,
.save-error-banner {
margin-bottom: 16px;
}
.retry-btn {
margin-top: 8px;
display: inline-block;
}
/* ---- guideline / training page extras ---- */
.start-panel {
display: grid;
gap: 14px;
border-top: 1px solid var(--line, #e3e8ef);
padding-top: 20px;
margin-top: 20px;
}
.name-field {
display: grid;
gap: 6px;
font-weight: 700;
max-width: 360px;
}
.validation-hint {
margin: 0;
font-size: 13px;
}
.start-btn {
justify-self: start;
}
.collision-warning {
max-width: 640px;
}
.confirmation-row {
display: flex;
align-items: flex-start;
gap: 10px;
line-height: 1.4;
margin: 10px 0;
}
.confirmation-row input {
margin-top: 2px;
}
.training-video {
max-width: 480px;
margin-top: 12px;
}
.qualification-panel {
display: grid;
gap: 12px;
justify-items: start;
}
.qualification-status {
font-weight: 600;
}
.qualification-success {
max-width: 640px;
}
.completion-code-panel .completion-code-label {
margin-bottom: 4px;
font-weight: 600;
}
.completion-code-value {
font-family: var(--mono, monospace);
font-size: 22px;
font-weight: 700;
letter-spacing: 0.04em;
background: var(--surface, #fff);
border: 1px solid var(--line, #e3e8ef);
border-radius: 8px;
padding: 10px 14px;
display: inline-block;
margin: 4px 0 12px;
}
@media (max-width: 820px) {
.container {
grid-template-columns: 1fr;
}
.video-card,
.annotation-card {
max-height: none;
overflow: visible;
position: static;
}
}