462 lines
10 KiB
CSS
462 lines
10 KiB
CSS
/*
|
|
* This is a manifest file that'll be compiled into application.css.
|
|
*
|
|
* With Propshaft, assets are served efficiently without preprocessing steps. You can still include
|
|
* application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
|
|
* cascading order, meaning styles declared later in the document or manifest will override earlier ones,
|
|
* depending on specificity.
|
|
*
|
|
* Consider organizing styles into separate files for maintainability.
|
|
*/
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
background: #f5f5f5;
|
|
color: #333;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.container {
|
|
max-width: 640px;
|
|
margin: 40px auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 24px;
|
|
color: #111;
|
|
}
|
|
|
|
.todo-form { margin-bottom: 16px; }
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.todo-input {
|
|
flex: 1;
|
|
padding: 10px 14px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 1rem;
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.todo-input:focus { border-color: #4f46e5; }
|
|
|
|
.btn {
|
|
padding: 10px 18px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.btn:hover { opacity: 0.85; }
|
|
.btn-primary { background: #4f46e5; color: #fff; }
|
|
.btn-secondary { background: #e5e7eb; color: #374151; }
|
|
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
|
|
.btn-danger { background: #ef4444; color: #fff; }
|
|
|
|
.todo-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.todo-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: #fff;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
margin-bottom: 8px;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.todo-item.completed { opacity: 0.55; }
|
|
.todo-item.completed .todo-title { text-decoration: line-through; color: #9ca3af; }
|
|
|
|
.toggle-btn { background: none; border: none; padding: 0; cursor: pointer; }
|
|
.toggle-btn form { margin: 0; }
|
|
|
|
.checkbox {
|
|
width: 22px;
|
|
height: 22px;
|
|
border: 2px solid #4f46e5;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.75rem;
|
|
color: #4f46e5;
|
|
font-weight: bold;
|
|
background: #fff;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.todo-item.completed .checkbox { background: #4f46e5; color: #fff; }
|
|
.todo-title { flex: 1; font-size: 1rem; }
|
|
.todo-actions { display: flex; gap: 6px; }
|
|
|
|
.error-messages {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
border-radius: 6px;
|
|
padding: 10px 14px;
|
|
margin-bottom: 12px;
|
|
color: #b91c1c;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ── Lexivo ── */
|
|
|
|
body { background: #f0f0f7; }
|
|
|
|
.topnav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
height: 52px;
|
|
background: #1a1a2e;
|
|
color: #fff;
|
|
}
|
|
|
|
.nav-brand {
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
color: #a5b4fc;
|
|
text-decoration: none;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.nav-links { display: flex; gap: 4px; }
|
|
|
|
.nav-link {
|
|
color: #cbd5e1;
|
|
text-decoration: none;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
.nav-link:hover { background: #2d2d4e; color: #fff; }
|
|
|
|
main .container { max-width: 700px; margin: 32px auto; padding: 0 20px; }
|
|
|
|
/* Stats */
|
|
.stats-grid {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.stat-card {
|
|
flex: 1 1 90px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 16px 12px;
|
|
text-align: center;
|
|
border-top: 3px solid transparent;
|
|
box-shadow: 0 1px 4px rgba(0,0,0,.06);
|
|
}
|
|
|
|
.stat-number { font-size: 2rem; font-weight: 700; line-height: 1; }
|
|
.stat-label { font-size: 0.75rem; color: #6b7280; margin-top: 4px; }
|
|
|
|
.stat-total { border-color: #6366f1; }
|
|
.stat-unseen { border-color: #94a3b8; }
|
|
.stat-learning { border-color: #f59e0b; }
|
|
.stat-known { border-color: #22c55e; }
|
|
.stat-due { border-color: #ef4444; }
|
|
|
|
.stat-total .stat-number { color: #6366f1; }
|
|
.stat-due .stat-number { color: #ef4444; }
|
|
.stat-learning .stat-number { color: #f59e0b; }
|
|
.stat-known .stat-number { color: #22c55e; }
|
|
|
|
.action-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 28px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-success { background: #22c55e; color: #fff; }
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: #6366f1;
|
|
border: 1.5px solid #6366f1;
|
|
}
|
|
|
|
/* Import */
|
|
.section { margin-bottom: 36px; }
|
|
.section h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: #111; }
|
|
.hint { font-size: 0.82rem; color: #6b7280; margin-bottom: 10px; }
|
|
.hint code { background: #e5e7eb; padding: 1px 4px; border-radius: 3px; font-family: monospace; }
|
|
|
|
.import-textarea {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 8px;
|
|
font-family: monospace;
|
|
font-size: 0.9rem;
|
|
resize: vertical;
|
|
margin-bottom: 8px;
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
}
|
|
.import-textarea:focus { border-color: #6366f1; }
|
|
|
|
/* Word table */
|
|
.word-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
|
|
.word-row { border-bottom: 1px solid #e5e7eb; }
|
|
.word-row:hover { background: #f9fafb; }
|
|
.word-text { padding: 8px 6px; font-weight: 600; width: 28%; }
|
|
.word-def { padding: 8px 6px; color: #4b5563; width: 50%; }
|
|
.word-status { padding: 8px 6px; width: 14%; }
|
|
.word-actions { padding: 8px 4px; text-align: right; width: 8%; }
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 7px;
|
|
border-radius: 99px;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
.badge-new { background: #e5e7eb; color: #374151; }
|
|
.badge-known { background: #dcfce7; color: #166534; }
|
|
.badge-learning { background: #fef3c7; color: #92400e; }
|
|
.badge-skipped { background: #f1f5f9; color: #64748b; }
|
|
|
|
.due-info { font-size: 0.72rem; color: #ef4444; margin-left: 4px; }
|
|
|
|
.btn-del {
|
|
background: none;
|
|
border: none;
|
|
color: #9ca3af;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
padding: 2px 6px;
|
|
}
|
|
.btn-del:hover { color: #ef4444; }
|
|
|
|
/* Flash */
|
|
.flash {
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
font-size: 0.9rem;
|
|
}
|
|
.flash-notice { background: #dcfce7; color: #166534; }
|
|
.flash-alert { background: #fef3c7; color: #92400e; }
|
|
|
|
/* ── Flashcard ── */
|
|
|
|
.filter-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
font-size: 0.85rem;
|
|
color: #6b7280;
|
|
}
|
|
.link-muted { color: #9ca3af; text-decoration: none; }
|
|
.link-muted:hover { color: #6b7280; }
|
|
|
|
.flashcard-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20px;
|
|
padding: 12px 0 32px;
|
|
}
|
|
|
|
/* 3D card container */
|
|
.flashcard {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
height: 240px;
|
|
perspective: 1000px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transform-style: preserve-3d;
|
|
transition: transform 0.38s ease, opacity 0.22s ease, translate 0.22s ease;
|
|
}
|
|
|
|
.flashcard.is-flipped { transform: rotateY(180deg); }
|
|
|
|
.flashcard.slide-right {
|
|
translate: 120% 0;
|
|
opacity: 0;
|
|
}
|
|
.flashcard.slide-left {
|
|
translate: -120% 0;
|
|
opacity: 0;
|
|
}
|
|
.flashcard.slide-up {
|
|
translate: 0 -80px;
|
|
opacity: 0;
|
|
}
|
|
|
|
.card-face {
|
|
position: absolute;
|
|
inset: 0;
|
|
backface-visibility: hidden;
|
|
-webkit-backface-visibility: hidden;
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
box-shadow: 0 4px 24px rgba(0,0,0,.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 28px 24px;
|
|
text-align: center;
|
|
user-select: none;
|
|
}
|
|
|
|
.card-back { transform: rotateY(180deg); }
|
|
|
|
.card-word {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #1a1a2e;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.card-definition {
|
|
font-size: 1.1rem;
|
|
color: #374151;
|
|
line-height: 1.5;
|
|
}
|
|
.card-definition.muted { color: #9ca3af; font-style: italic; }
|
|
|
|
.card-example {
|
|
margin-top: 10px;
|
|
font-size: 0.9rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.card-interval {
|
|
font-size: 0.75rem;
|
|
color: #9ca3af;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.flip-hint {
|
|
position: absolute;
|
|
bottom: 12px;
|
|
font-size: 0.72rem;
|
|
color: #d1d5db;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Action buttons */
|
|
.card-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.inline-form { display: inline; }
|
|
|
|
.btn-learning { background: #6366f1; color: #fff; min-width: 110px; justify-content: center; }
|
|
.btn-known { background: #22c55e; color: #fff; min-width: 110px; justify-content: center; }
|
|
.btn-skip { background: #e5e7eb; color: #374151; min-width: 90px; justify-content: center; }
|
|
|
|
/* Keyboard hint row */
|
|
.key-hint {
|
|
font-size: 0.8rem;
|
|
color: #9ca3af;
|
|
}
|
|
kbd {
|
|
display: inline-block;
|
|
padding: 1px 6px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
background: #f9fafb;
|
|
font-size: 0.75rem;
|
|
font-family: monospace;
|
|
color: #374151;
|
|
}
|
|
|
|
/* Empty state */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
}
|
|
.empty-icon {
|
|
font-family: monospace;
|
|
font-size: 2rem;
|
|
color: #d1d5db;
|
|
margin-bottom: 16px;
|
|
}
|
|
.empty-state h2 { margin-bottom: 10px; }
|
|
.empty-state p { color: #6b7280; margin-bottom: 24px; }
|
|
|
|
/* Upcoming list */
|
|
.upcoming-list {
|
|
max-width: 320px;
|
|
margin: 0 auto 24px;
|
|
text-align: left;
|
|
}
|
|
.upcoming-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 6px 0;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
font-size: 0.9rem;
|
|
}
|
|
.upcoming-word { font-weight: 600; }
|
|
.upcoming-when { color: #9ca3af; }
|
|
|
|
.progress-text { font-size: 0.85rem; color: #6b7280; }
|
|
|
|
/* ── Good button ────────────────────────────────────── */
|
|
.btn-good { background: #10b981; color: #fff; min-width: 110px; justify-content: center; }
|
|
|
|
/* ── Progress bar ──────────────────────────────────── */
|
|
.progress-bar-wrap {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: #e5e7eb;
|
|
border-radius: 99px;
|
|
margin-bottom: 20px;
|
|
overflow: hidden;
|
|
}
|
|
.progress-bar-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #6366f1, #22c55e);
|
|
border-radius: 99px;
|
|
transition: width 0.4s ease;
|
|
}
|
|
|
|
/* ── File import ───────────────────────────────────── */
|
|
.import-file-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.file-input { font-size: 0.85rem; color: #374151; }
|
|
.import-or { font-size: 0.82rem; color: #9ca3af; }
|