jaycelu_Smart-Review/apps/smart-review-plugin/styles.css
2026-06-29 12:15:15 +08:00

995 lines
21 KiB
CSS

.smart-review-setting-note,
.smart-review-subtitle,
.smart-review-last-sync,
.smart-review-task-path,
.smart-review-meta-label,
.smart-review-empty-state,
.smart-review-metric-description,
.smart-review-section-heading p,
.smart-review-distribution-count {
color: var(--text-muted);
}
.smart-review-status-bar {
cursor: pointer;
}
.smart-review-status-bar:hover {
color: var(--text-accent);
}
.smart-review-status-bar-hidden {
display: none;
}
.smart-review-center {
--smart-review-panel-bg: var(--background-primary);
--smart-review-card-bg: var(--background-secondary);
--smart-review-border: var(--background-modifier-border);
--smart-review-hover: var(--background-modifier-hover);
--smart-review-accent-soft: color-mix(in srgb, var(--interactive-accent) 10%, var(--background-primary));
width: 100%;
max-width: none;
margin: 0;
container-name: smart-review-center;
container-type: inline-size;
padding: 24px clamp(14px, 3cqw, 32px);
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
background: var(--background-primary);
}
.theme-dark .smart-review-center {
--smart-review-accent-soft: color-mix(in srgb, var(--interactive-accent) 16%, var(--background-primary));
}
.smart-review-header {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 18px;
align-items: start;
margin-bottom: 20px;
}
.smart-review-header h1 {
margin: 0 0 6px;
font-size: 28px;
line-height: 1.15;
letter-spacing: 0;
}
.smart-review-subtitle,
.smart-review-section-heading p {
margin: 0;
font-size: var(--font-ui-medium);
line-height: 1.5;
}
.smart-review-header-actions {
display: flex;
flex-direction: column;
gap: 9px;
align-items: flex-end;
min-width: 0;
}
.smart-review-last-sync {
font-size: var(--font-ui-small);
white-space: nowrap;
}
.smart-review-action-row {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.smart-review-action-button,
.smart-review-link-button,
.smart-review-rating,
.smart-review-task-title {
border-radius: var(--radius-s);
}
.smart-review-action-button,
.smart-review-link-button,
.smart-review-rating {
border: 1px solid var(--background-modifier-border);
background: var(--interactive-normal);
color: var(--text-normal);
cursor: pointer;
box-shadow: none;
}
.smart-review-action-button {
height: auto;
min-height: 30px;
padding: 4px 10px;
font-size: var(--font-ui-small);
white-space: normal;
}
.smart-review-link-button {
height: auto;
min-height: 28px;
padding: 3px 9px;
color: var(--text-accent);
font-size: var(--font-ui-small);
}
.smart-review-action-button:hover,
.smart-review-link-button:hover,
.smart-review-rating:hover,
.smart-review-task-title:hover {
background: var(--background-modifier-hover);
}
.smart-review-plan-section,
.smart-review-task-flow,
.smart-review-heatmap-section,
.smart-review-distribution-card {
border: 1px solid var(--smart-review-border);
border-radius: var(--radius-m);
background: var(--smart-review-panel-bg);
}
.smart-review-plan-section,
.smart-review-task-flow,
.smart-review-heatmap-section {
margin: 16px 0;
padding: 16px;
}
.smart-review-section-heading {
margin-bottom: 14px;
}
.smart-review-section-heading h2,
.smart-review-distribution-card h3 {
margin: 0 0 5px;
font-size: 17px;
line-height: 1.25;
}
.smart-review-plan-group {
margin-top: 12px;
border: 1px solid var(--smart-review-border);
border-radius: var(--radius-m);
background: var(--smart-review-card-bg);
overflow: hidden;
}
.smart-review-plan-group-overdue {
border-color: color-mix(in srgb, var(--text-error) 35%, var(--background-modifier-border));
}
.smart-review-plan-group-today {
border-color: color-mix(in srgb, var(--interactive-accent) 35%, var(--background-modifier-border));
}
.smart-review-plan-group-heading {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-bottom: 1px solid var(--background-modifier-border);
}
.smart-review-plan-group-title {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.smart-review-plan-group-title h3 {
margin: 0;
font-size: 15px;
}
.smart-review-subtle-badge,
.smart-review-warning-badge,
.smart-review-state {
border-radius: 999px;
padding: 2px 8px;
background: var(--background-modifier-hover);
color: var(--text-muted);
font-size: var(--font-ui-smaller);
line-height: 1.4;
white-space: nowrap;
}
.smart-review-warning-badge,
.smart-review-state-overdue {
color: var(--text-error);
}
.smart-review-state-today {
color: var(--text-accent);
}
.smart-review-plan-list {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px;
}
.smart-review-plan-item {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
border: 1px solid var(--smart-review-border);
border-left-width: 3px;
border-radius: var(--radius-m);
padding: 10px 12px;
background: var(--smart-review-panel-bg);
}
.smart-review-plan-item-overdue {
border-left-color: var(--text-error);
}
.smart-review-plan-item-today {
border-left-color: var(--interactive-accent);
}
.smart-review-plan-item-next_7_days {
border-left-color: var(--background-modifier-border-hover);
}
.smart-review-plan-main {
min-width: 0;
}
.smart-review-plan-title-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: start;
}
.smart-review-task-title {
display: block;
width: 100%;
min-width: 0;
height: auto;
min-height: 0;
padding: 0;
border: 0;
appearance: none;
background: transparent;
box-shadow: none;
color: var(--text-normal);
cursor: pointer;
font-size: 15px;
font-weight: 650;
line-height: 1.35;
text-align: left;
white-space: normal;
overflow-wrap: anywhere;
}
.smart-review-task-path {
margin-top: 4px;
font-size: var(--font-ui-smaller);
line-height: 1.45;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.smart-review-plan-meta,
.smart-review-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.smart-review-meta-item,
.smart-review-tag {
display: inline-flex;
min-width: 0;
gap: 5px;
align-items: center;
border: 1px solid var(--smart-review-border);
border-radius: 999px;
padding: 3px 8px;
background: var(--smart-review-card-bg);
font-size: var(--font-ui-smaller);
line-height: 1.35;
}
.smart-review-meta-value {
color: var(--text-normal);
overflow-wrap: anywhere;
}
.smart-review-tag {
max-width: 220px;
color: var(--text-accent);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.smart-review-tag-more {
color: var(--text-muted);
}
.smart-review-rating-actions {
display: grid;
grid-template-columns: repeat(4, minmax(58px, 1fr));
gap: 6px;
}
.smart-review-task-actions,
.smart-review-managed-actions {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.smart-review-more-button {
width: 100%;
}
.smart-review-plan-group-paused,
.smart-review-plan-group-mastery_pending,
.smart-review-plan-group-mastered {
border-color: color-mix(in srgb, var(--text-muted) 35%, var(--background-modifier-border));
}
.smart-review-plan-group-mastery_candidate {
border-color: color-mix(in srgb, var(--interactive-accent) 35%, var(--background-modifier-border));
}
.smart-review-lifecycle-overview {
margin-top: 12px;
border: 1px solid var(--smart-review-border);
border-radius: var(--radius-m);
padding: 10px 12px;
background: var(--smart-review-card-bg);
}
.smart-review-lifecycle-heading {
display: flex;
flex-wrap: wrap;
gap: 6px 10px;
align-items: baseline;
margin-bottom: 8px;
}
.smart-review-lifecycle-heading h3 {
margin: 0;
font-size: 15px;
line-height: 1.35;
}
.smart-review-lifecycle-caption {
color: var(--text-muted);
font-size: var(--font-ui-smaller);
line-height: 1.45;
}
.smart-review-lifecycle-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.smart-review-lifecycle-chip {
height: auto;
min-height: 28px;
border: 1px solid var(--background-modifier-border);
border-radius: 999px;
padding: 4px 10px;
background: var(--background-primary);
color: var(--text-normal);
box-shadow: none;
cursor: pointer;
font-size: var(--font-ui-small);
line-height: 1.35;
}
.smart-review-lifecycle-chip:hover,
.smart-review-lifecycle-chip-active {
border-color: var(--interactive-accent);
background: var(--smart-review-accent-soft);
color: var(--text-accent);
}
.smart-review-lifecycle-overview .smart-review-plan-group {
margin-top: 10px;
}
.smart-review-managed-item {
grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
}
.smart-review-ai-connection {
margin: 14px 0;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
padding: 0 12px 8px;
background: var(--background-secondary);
}
.smart-review-modal-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 16px 0;
}
.smart-review-mastery-modal-shell {
width: min(980px, 92vw);
max-width: 92vw;
max-height: 88vh;
}
.smart-review-mastery-modal-shell .modal-content {
max-height: calc(88vh - 48px);
overflow-y: auto;
overflow-x: hidden;
}
.smart-review-mastery-modal {
width: 100%;
max-width: 100%;
box-sizing: border-box;
overflow-wrap: anywhere;
}
.smart-review-mastery-modal h2 {
margin-top: 0;
line-height: 1.25;
}
.smart-review-question,
.smart-review-result-item,
.smart-review-result-summary {
margin: 12px 0;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
padding: 12px;
background: var(--background-secondary);
overflow-wrap: anywhere;
}
.smart-review-question h3,
.smart-review-result-item h3 {
margin: 0 0 8px;
}
.smart-review-question p,
.smart-review-result-item p {
line-height: 1.55;
white-space: pre-wrap;
}
.smart-review-answer-input {
width: 100%;
max-width: 100%;
box-sizing: border-box;
min-height: 130px;
resize: vertical;
}
.smart-review-mastery-actions {
position: sticky;
bottom: 0;
z-index: 2;
margin: 12px -2px 0;
border-top: 1px solid var(--background-modifier-border);
padding-top: 10px;
background: var(--background-primary);
}
.smart-review-mastery-actions .setting-item-control {
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.smart-review-result-summary {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px;
}
.smart-review-result-summary p {
flex-basis: 100%;
margin: 4px 0 0;
}
.smart-review-result-pass {
border-color: color-mix(in srgb, var(--color-green) 45%, var(--background-modifier-border));
}
.smart-review-result-fail {
border-color: color-mix(in srgb, var(--text-error) 45%, var(--background-modifier-border));
}
.smart-review-result-next {
font-weight: 600;
}
.smart-review-rating {
min-height: 30px;
padding: 4px 8px;
background: var(--smart-review-card-bg);
font-size: var(--font-ui-smaller);
font-weight: 650;
text-align: center;
white-space: nowrap;
}
.smart-review-rating-again {
color: var(--text-error);
}
.smart-review-rating-good,
.smart-review-rating-easy {
color: var(--text-accent);
}
.smart-review-metrics-grid,
.smart-review-distributions-grid {
display: grid;
gap: 12px;
margin: 16px 0;
}
.smart-review-metrics-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.smart-review-metric-card {
min-width: 0;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
padding: 14px;
background: var(--smart-review-card-bg);
}
.smart-review-metric-value {
font-size: 30px;
font-weight: 750;
line-height: 1;
}
.smart-review-metric-label {
margin-top: 8px;
font-size: var(--font-ui-small);
font-weight: 650;
}
.smart-review-metric-description {
margin-top: 4px;
font-size: var(--font-ui-smaller);
line-height: 1.45;
}
.smart-review-task-flow-row {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 12px;
align-items: center;
}
.smart-review-task-flow-value {
font-size: 22px;
font-weight: 750;
color: var(--text-accent);
}
.smart-review-progress {
width: 100%;
height: 8px;
border-radius: 999px;
overflow: hidden;
background: var(--background-modifier-hover);
}
.smart-review-progress-fill {
height: 100%;
border-radius: 999px;
background: var(--interactive-accent);
}
.smart-review-heatmap-viewport {
--smart-review-heatmap-gap: clamp(2px, 0.22vw, 4px);
--smart-review-heatmap-row: clamp(8px, 0.72vw, 14px);
width: 100%;
max-width: 100%;
overflow: visible;
padding-bottom: 2px;
}
.smart-review-heatmap-months,
.smart-review-heatmap {
display: grid;
grid-template-columns: repeat(53, minmax(0, 1fr));
gap: var(--smart-review-heatmap-gap);
width: 100%;
min-width: 0;
}
.smart-review-heatmap-months {
margin: 0 0 8px;
color: var(--text-muted);
font-size: var(--font-ui-smaller);
}
.smart-review-heatmap-months span {
min-width: 0;
white-space: nowrap;
}
.smart-review-heatmap {
grid-template-rows: repeat(7, var(--smart-review-heatmap-row));
}
.smart-review-center .smart-review-heatmap-cell {
position: relative;
display: block;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
margin: 0;
padding: 0;
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
background-color: var(--background-secondary);
background-image: none;
box-shadow: none;
color: transparent;
cursor: pointer;
appearance: none;
line-height: 0;
font-size: 0;
overflow: visible;
}
.smart-review-heatmap-cell:hover,
.smart-review-heatmap-cell:focus-visible,
.smart-review-heatmap-cell-selected {
border-color: var(--interactive-accent);
outline: none;
}
.smart-review-heatmap-cell:focus-visible,
.smart-review-heatmap-cell-selected {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--interactive-accent) 24%, transparent);
}
.smart-review-heatmap-cell::after {
content: attr(data-tooltip);
position: absolute;
top: calc(100% + 8px);
left: 50%;
z-index: 20;
display: block;
min-width: 118px;
padding: 6px 8px;
border: 1px solid var(--smart-review-border);
border-radius: var(--radius-s);
background: var(--background-primary);
color: var(--text-normal);
box-shadow: var(--shadow-s);
font-size: var(--font-ui-smaller);
line-height: 1.35;
text-align: left;
pointer-events: none;
opacity: 0;
transform: translate(-50%, -2px);
transition: opacity 120ms ease, transform 120ms ease;
white-space: pre-line;
}
.smart-review-heatmap-cell::before {
content: "";
position: absolute;
top: calc(100% + 4px);
left: 50%;
z-index: 21;
width: 8px;
height: 8px;
border-left: 1px solid var(--smart-review-border);
border-top: 1px solid var(--smart-review-border);
background: var(--background-primary);
pointer-events: none;
opacity: 0;
transform: translate(-50%, 0) rotate(45deg);
transition: opacity 120ms ease;
}
.smart-review-heatmap-cell:hover::after,
.smart-review-heatmap-cell:focus-visible::after,
.smart-review-heatmap-cell:hover::before,
.smart-review-heatmap-cell:focus-visible::before {
opacity: 1;
}
.smart-review-heatmap-cell:hover::after,
.smart-review-heatmap-cell:focus-visible::after {
transform: translate(-50%, 0);
}
.smart-review-center .smart-review-heatmap-cell.smart-review-heatmap-level-1 {
background-color: color-mix(in srgb, var(--interactive-accent) 20%, var(--smart-review-card-bg));
}
.smart-review-center .smart-review-heatmap-cell.smart-review-heatmap-level-2 {
background-color: color-mix(in srgb, var(--interactive-accent) 38%, var(--smart-review-card-bg));
}
.smart-review-center .smart-review-heatmap-cell.smart-review-heatmap-level-3 {
background-color: color-mix(in srgb, var(--interactive-accent) 58%, var(--smart-review-card-bg));
}
.smart-review-center .smart-review-heatmap-cell.smart-review-heatmap-level-4 {
background-color: color-mix(in srgb, var(--interactive-accent) 78%, var(--smart-review-card-bg));
}
.smart-review-distributions-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.smart-review-distribution-card {
padding: 14px;
}
.smart-review-distribution-card:nth-child(3) {
grid-column: 1 / -1;
}
.smart-review-distribution-row {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 6px;
width: 100%;
height: auto;
margin-top: 10px;
padding: 6px 8px;
border: 1px solid transparent;
border-radius: var(--radius-s);
background: transparent;
color: var(--text-normal);
box-shadow: none;
cursor: pointer;
text-align: left;
justify-items: stretch;
align-items: stretch;
justify-content: stretch;
}
.smart-review-distribution-row:hover,
.smart-review-distribution-row-selected {
border-color: var(--background-modifier-border);
background: var(--background-modifier-hover);
}
.smart-review-distribution-label {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: center;
width: 100%;
min-width: 0;
justify-items: stretch;
text-align: left;
}
.smart-review-distribution-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
justify-self: start;
}
.smart-review-distribution-count {
justify-self: end;
text-align: right;
}
.smart-review-drilldown-panel {
grid-column: 1 / -1;
margin-top: 12px;
border: 1px solid var(--smart-review-border);
border-radius: var(--radius-m);
padding: 14px;
background: var(--smart-review-panel-bg);
scroll-margin-top: 16px;
transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.smart-review-drilldown-panel-focus {
border-color: var(--interactive-accent);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--interactive-accent) 24%, transparent);
background: var(--smart-review-accent-soft);
}
.smart-review-drilldown-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 10px;
}
.smart-review-drilldown-title {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.smart-review-drilldown-title h3 {
margin: 0;
font-size: 16px;
}
.smart-review-drilldown-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.smart-review-drilldown-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.smart-review-drilldown-row {
display: block;
border: 1px solid var(--smart-review-border);
border-radius: var(--radius-m);
padding: 10px 12px;
background: var(--smart-review-card-bg);
}
.smart-review-drilldown-main {
min-width: 0;
}
.smart-review-empty-state,
.smart-review-error {
border: 1px solid var(--smart-review-border);
border-radius: var(--radius-m);
padding: 12px;
background: var(--smart-review-card-bg);
line-height: 1.5;
}
.smart-review-empty-state-soft {
margin-bottom: 10px;
}
.smart-review-empty-inline {
margin: 10px;
padding: 8px 10px;
}
.smart-review-error {
margin: 12px 0;
border-color: var(--text-error);
color: var(--text-error);
}
@media (max-width: 900px) {
.smart-review-header,
.smart-review-plan-item,
.smart-review-task-flow-row {
grid-template-columns: 1fr;
}
.smart-review-header-actions,
.smart-review-action-row {
align-items: flex-start;
justify-content: flex-start;
}
.smart-review-last-sync {
white-space: normal;
}
.smart-review-metrics-grid,
.smart-review-distributions-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.smart-review-distribution-card:nth-child(3) {
grid-column: auto;
}
}
@media (max-width: 560px) {
.smart-review-center {
padding: 14px;
}
.smart-review-header h1 {
font-size: 24px;
}
.smart-review-metrics-grid,
.smart-review-distributions-grid,
.smart-review-rating-actions,
.smart-review-plan-title-row {
grid-template-columns: 1fr;
}
.smart-review-state {
justify-self: start;
}
.smart-review-mastery-modal-shell {
width: 96vw;
max-width: 96vw;
}
}
@container smart-review-center (max-width: 760px) {
.smart-review-header,
.smart-review-plan-item,
.smart-review-task-flow-row,
.smart-review-managed-item {
grid-template-columns: minmax(0, 1fr);
}
.smart-review-header-actions,
.smart-review-action-row {
align-items: flex-start;
justify-content: flex-start;
}
.smart-review-last-sync {
white-space: normal;
}
.smart-review-task-actions,
.smart-review-managed-actions {
width: 100%;
}
.smart-review-rating-actions,
.smart-review-metrics-grid,
.smart-review-distributions-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@container smart-review-center (max-width: 420px) {
.smart-review-header h1 {
font-size: 24px;
}
.smart-review-plan-title-row,
.smart-review-rating-actions,
.smart-review-metrics-grid,
.smart-review-distributions-grid {
grid-template-columns: minmax(0, 1fr);
}
.smart-review-state {
justify-self: start;
}
.smart-review-plan-group-heading {
align-items: flex-start;
}
}