feat: 增加中译西辅助、在线翻译、B1词库与三语语音对照
This commit is contained in:
@@ -150,6 +150,12 @@ body {
|
||||
font-size: 0.85rem; cursor: pointer; white-space: nowrap;
|
||||
}
|
||||
#btn-save:hover { background: var(--accent-hover); }
|
||||
#btn-helper {
|
||||
background: none; border: 1px solid var(--accent); color: var(--accent);
|
||||
padding: 0.35rem 0.75rem; border-radius: 6px;
|
||||
font-size: 0.85rem; cursor: pointer; white-space: nowrap;
|
||||
}
|
||||
#btn-helper:hover { background: var(--accent); color: #fff; }
|
||||
#entry-text {
|
||||
flex: 1; resize: none; border: none; padding: 1rem;
|
||||
font-size: 1.05rem; line-height: 1.7;
|
||||
@@ -219,6 +225,53 @@ body {
|
||||
#modal-box .btn-cancel { background: var(--panel-bg); color: var(--text); }
|
||||
#modal-box .btn-confirm { background: var(--danger); color: #fff; border-color: var(--danger); }
|
||||
|
||||
/* Chinese to Spanish helper modal */
|
||||
#helper-modal-overlay {
|
||||
display: none;
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(0,0,0,0.4);
|
||||
align-items: center; justify-content: center;
|
||||
z-index: 110;
|
||||
}
|
||||
#helper-modal-overlay.show { display: flex; }
|
||||
#helper-modal-box {
|
||||
background: var(--panel-bg); border-radius: var(--radius);
|
||||
padding: 1.5rem; max-width: 520px; width: 90%;
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
|
||||
}
|
||||
#helper-modal-box h3 {
|
||||
font-size: 1rem; margin-bottom: 0.75rem;
|
||||
}
|
||||
#helper-input {
|
||||
width: 100%; min-height: 90px; resize: vertical;
|
||||
border: 1px solid var(--border); border-radius: 6px;
|
||||
padding: 0.6rem; font-size: 0.95rem; line-height: 1.6;
|
||||
background: var(--bg); color: var(--text); outline: none;
|
||||
}
|
||||
#helper-input:focus { border-color: var(--accent); }
|
||||
#helper-preview {
|
||||
margin: 0.75rem 0 1rem;
|
||||
padding: 0.6rem 0.75rem;
|
||||
background: var(--code-bg, var(--bg));
|
||||
border-radius: 6px;
|
||||
font-size: 0.9rem;
|
||||
min-height: 2.5rem;
|
||||
}
|
||||
.helper-preview-label { color: var(--text-muted); font-weight: 600; }
|
||||
#helper-result { font-family: var(--font-mono); color: var(--accent); }
|
||||
#helper-modal-box .modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
|
||||
#helper-modal-box .modal-actions button {
|
||||
padding: 0.4rem 1rem; border-radius: 6px; border: 1px solid var(--border);
|
||||
cursor: pointer; font-size: 0.85rem;
|
||||
}
|
||||
#helper-modal-box .btn-cancel { background: var(--panel-bg); color: var(--text); }
|
||||
#helper-modal-box .btn-confirm {
|
||||
background: var(--accent); color: #fff; border-color: var(--accent);
|
||||
}
|
||||
#helper-modal-box .btn-confirm:disabled {
|
||||
opacity: 0.45; cursor: not-allowed;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
body { padding: 0.5rem; }
|
||||
#app { grid-template-columns: 1fr; }
|
||||
|
||||
Reference in New Issue
Block a user