feat: refine subtitle flow and study UI
This commit is contained in:
1 parent
6a6fd347bd
commit
0608b84664
24 files changed
+795
-730
No files matched your search
+228
-72
@@ -111,7 +111,9 @@ textarea:focus {
|
||||
.tag-filters,
|
||||
.tabs,
|
||||
.video-actions,
|
||||
.tool-row,
|
||||
.recording-controls,
|
||||
.sentence-controls,
|
||||
.study-side-actions,
|
||||
.lesson-meta,
|
||||
.recording-line {
|
||||
display: flex;
|
||||
@@ -154,11 +156,22 @@ textarea:focus {
|
||||
}
|
||||
|
||||
.chip {
|
||||
min-height: 30px;
|
||||
border-radius: 999px;
|
||||
padding: 0 10px;
|
||||
min-height: 34px;
|
||||
border-color: transparent;
|
||||
border-radius: 20px;
|
||||
padding: 0 14px;
|
||||
color: #27364a;
|
||||
background: #eef2f7;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.chip:hover {
|
||||
border-color: #cbd5e1;
|
||||
background: #f8fafc;
|
||||
box-shadow: 0 6px 16px rgba(15, 39, 66, 0.08);
|
||||
}
|
||||
|
||||
.chip.active {
|
||||
@@ -307,12 +320,12 @@ textarea:focus {
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
display: grid;
|
||||
grid-template-rows: minmax(320px, 1fr) auto auto auto auto;
|
||||
grid-template-rows: minmax(520px, 1fr) auto auto;
|
||||
}
|
||||
|
||||
.video-frame {
|
||||
position: relative;
|
||||
min-height: 320px;
|
||||
min-height: 520px;
|
||||
background: #0b1220;
|
||||
}
|
||||
|
||||
@@ -340,24 +353,119 @@ video {
|
||||
}
|
||||
|
||||
.tool-row {
|
||||
gap: 8px;
|
||||
padding: 9px 12px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
min-height: 71px;
|
||||
padding: 14px 16px;
|
||||
border-top: 1px solid var(--line);
|
||||
background: #fff;
|
||||
overflow-x: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.recording-controls {
|
||||
justify-content: flex-start;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sentence-controls {
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.study-side-actions {
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.tool-row button {
|
||||
min-width: 40px;
|
||||
min-width: 54px;
|
||||
min-height: 38px;
|
||||
border-radius: 10px;
|
||||
border-color: #d8e2ec;
|
||||
background: #f8fafc;
|
||||
font-weight: 650;
|
||||
white-space: nowrap;
|
||||
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.tool-row button:disabled {
|
||||
border-color: #e2e8f0;
|
||||
color: #98a2b3;
|
||||
background: #f1f5f9;
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.tool-row button:hover {
|
||||
border-color: #b9dcd5;
|
||||
background: var(--brand-soft);
|
||||
box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.sentence-controls button {
|
||||
min-width: 76px;
|
||||
color: #0f2742;
|
||||
border-color: #c8d7e6;
|
||||
background: #ffffff;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.sentence-controls #replayBtn {
|
||||
color: #fff;
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.sentence-controls #replayBtn:hover {
|
||||
border-color: #1e3a5f;
|
||||
background: #1e3a5f;
|
||||
box-shadow: 0 10px 24px rgba(15, 39, 66, 0.2);
|
||||
}
|
||||
|
||||
.sentence-controls #replayBtn:disabled {
|
||||
border-color: #d8e2ec;
|
||||
color: #98a2b3;
|
||||
background: #e8eef5;
|
||||
}
|
||||
|
||||
.study-side-actions .toggle {
|
||||
min-height: 42px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid #c8d7e6;
|
||||
border-radius: 999px;
|
||||
color: #0f2742;
|
||||
background: #f8fafc;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.study-side-actions .toggle:hover {
|
||||
border-color: #b9dcd5;
|
||||
background: var(--brand-soft);
|
||||
box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.study-side-actions .toggle input {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.study-side-actions #favoriteBtn {
|
||||
min-width: 68px;
|
||||
color: #0f2742;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.subtitle-card {
|
||||
@@ -720,36 +828,22 @@ video {
|
||||
}
|
||||
|
||||
.admin-ai-panel,
|
||||
.admin-subtitle-shift {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
|
||||
.admin-ai-panel h3,
|
||||
.admin-ai-panel p,
|
||||
.admin-subtitle-shift h3,
|
||||
.admin-subtitle-shift p {
|
||||
.admin-ai-panel p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-ai-panel h3,
|
||||
.admin-subtitle-shift h3 {
|
||||
.admin-ai-panel h3 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.admin-ai-panel p,
|
||||
.admin-subtitle-shift p {
|
||||
.admin-ai-panel p {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.admin-ai-actions,
|
||||
.admin-shift-actions {
|
||||
.admin-ai-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
@@ -938,7 +1032,7 @@ video {
|
||||
|
||||
.home-page {
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.home-topbar .brand {
|
||||
@@ -951,11 +1045,11 @@ video {
|
||||
|
||||
.home-shell {
|
||||
display: grid;
|
||||
grid-template-columns: 260px minmax(0, 1fr);
|
||||
gap: 18px;
|
||||
grid-template-columns: 280px minmax(0, 1fr);
|
||||
gap: 32px;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 20px 24px 40px;
|
||||
padding: 32px 40px 56px;
|
||||
}
|
||||
|
||||
.home-dashboard,
|
||||
@@ -966,17 +1060,17 @@ video {
|
||||
.home-dashboard {
|
||||
align-self: start;
|
||||
position: sticky;
|
||||
top: 82px;
|
||||
top: 94px;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.home-dashboard-title {
|
||||
padding: 14px;
|
||||
padding: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
border-radius: 16px;
|
||||
background: #fff;
|
||||
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
.home-dashboard-title span,
|
||||
@@ -999,20 +1093,29 @@ video {
|
||||
|
||||
.home-metrics {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.home-metric {
|
||||
min-height: 76px;
|
||||
min-height: 82px;
|
||||
display: grid;
|
||||
grid-template-columns: 38px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
text-align: left;
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
border-color: #edf1f6;
|
||||
border-radius: 16px;
|
||||
background: #fff;
|
||||
box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
|
||||
transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
|
||||
}
|
||||
|
||||
.home-metric:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: #cbd5e1;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
|
||||
}
|
||||
|
||||
.home-metric-icon {
|
||||
@@ -1035,7 +1138,8 @@ video {
|
||||
}
|
||||
|
||||
.home-metric strong {
|
||||
font-size: 24px;
|
||||
color: #0f2742;
|
||||
font-size: 28px;
|
||||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
@@ -1071,8 +1175,9 @@ video {
|
||||
}
|
||||
|
||||
.home-metric.active {
|
||||
border-color: #b9dcd5;
|
||||
background: #f0fbf8;
|
||||
border-color: #a7c7e8;
|
||||
background: #eef7ff;
|
||||
box-shadow: 0 18px 42px rgba(37, 99, 235, 0.11);
|
||||
}
|
||||
|
||||
.home-metric.active small {
|
||||
@@ -1084,7 +1189,7 @@ video {
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.home-heading h2 {
|
||||
@@ -1100,31 +1205,38 @@ video {
|
||||
|
||||
.home-categories {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
overflow-x: auto;
|
||||
padding: 2px 0 12px;
|
||||
padding: 2px 0 18px;
|
||||
}
|
||||
|
||||
.home-status {
|
||||
min-height: 22px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.home-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
gap: 14px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.home-card {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
border: 1px solid #edf1f6;
|
||||
border-radius: 16px;
|
||||
background: #fff;
|
||||
box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
|
||||
transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
|
||||
}
|
||||
|
||||
.home-card:hover {
|
||||
transform: translateY(-4px);
|
||||
border-color: #d6dee9;
|
||||
box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
.home-card-link {
|
||||
@@ -1139,12 +1251,12 @@ video {
|
||||
|
||||
.home-cover {
|
||||
position: relative;
|
||||
min-height: 138px;
|
||||
min-height: 180px;
|
||||
display: grid;
|
||||
align-content: space-between;
|
||||
padding: 14px;
|
||||
padding: 16px;
|
||||
color: #fff;
|
||||
background: #0f766e;
|
||||
background: #e5eaf1;
|
||||
}
|
||||
|
||||
.home-favorite {
|
||||
@@ -1204,13 +1316,15 @@ video {
|
||||
}
|
||||
|
||||
.home-card-body {
|
||||
padding: 12px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.home-card-body h3 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
line-height: 1.35;
|
||||
color: #1a202c;
|
||||
font-size: 18px;
|
||||
font-weight: 850;
|
||||
line-height: 1.42;
|
||||
}
|
||||
|
||||
.home-card-meta,
|
||||
@@ -1226,7 +1340,7 @@ video {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 10px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.home-card-tags span {
|
||||
@@ -1240,15 +1354,18 @@ video {
|
||||
.home-card-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
margin: 12px 0 0;
|
||||
gap: 14px;
|
||||
margin: 16px 0 0;
|
||||
padding-top: 14px;
|
||||
border-top: 1px dashed #d7dee8;
|
||||
}
|
||||
|
||||
.home-card-stats div {
|
||||
min-width: 0;
|
||||
padding: 8px;
|
||||
border-radius: 7px;
|
||||
background: var(--panel-soft);
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.home-card-stats dt,
|
||||
@@ -1259,12 +1376,14 @@ video {
|
||||
.home-card-stats dt {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.home-card-stats dd {
|
||||
margin-top: 3px;
|
||||
color: #1a202c;
|
||||
font-weight: 800;
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.home-progress {
|
||||
@@ -1301,11 +1420,46 @@ video {
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.tool-row {
|
||||
grid-template-columns: 1fr;
|
||||
justify-items: stretch;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.recording-controls,
|
||||
.sentence-controls,
|
||||
.study-side-actions {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-form {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.study-shell {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.video-panel {
|
||||
grid-template-rows: minmax(360px, 1fr) auto auto;
|
||||
}
|
||||
|
||||
.video-frame {
|
||||
min-height: 360px;
|
||||
}
|
||||
|
||||
.tool-row {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.sentence-controls button {
|
||||
flex: 1 1 84px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.admin-topbar {
|
||||
height: auto;
|
||||
@@ -1336,7 +1490,8 @@ video {
|
||||
@media (max-width: 720px) {
|
||||
.home-shell {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 14px 12px 28px;
|
||||
gap: 20px;
|
||||
padding: 18px 14px 32px;
|
||||
}
|
||||
|
||||
.home-dashboard {
|
||||
@@ -1358,5 +1513,6 @@ video {
|
||||
|
||||
.home-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 18px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user