234 lines
3.7 KiB
CSS
234 lines
3.7 KiB
CSS
/* Spaced Repetition System Styles */
|
|
|
|
.sr-container {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.sr-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.sr-stat-card {
|
|
background-color: var(--card-bg);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.sr-stat-card:hover {
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.sr-stat-value {
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
.sr-stat-label {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sr-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin: 1.5rem 0;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sr-actions button {
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
}
|
|
|
|
.sr-actions button.disabled {
|
|
opacity: 0.7;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.sr-progress-visualization {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.sr-progress-bar {
|
|
height: 24px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
width: 100%;
|
|
background-color: var(--card-bg);
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.sr-progress-segment {
|
|
height: 100%;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.sr-legend {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.sr-legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.sr-legend-color {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 3px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.sr-legend-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sr-calendar {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.sr-calendar-title {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.sr-calendar-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.sr-calendar-header {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.sr-calendar-header-cell {
|
|
text-align: center;
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sr-calendar-day {
|
|
aspect-ratio: 1;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.9rem;
|
|
position: relative;
|
|
background-color: var(--card-bg);
|
|
cursor: default;
|
|
}
|
|
|
|
.sr-calendar-day.has-reviews {
|
|
background-color: var(--primary-soft);
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sr-calendar-day.today {
|
|
border: 2px solid var(--primary);
|
|
color: var(--primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.sr-calendar-day .count {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
font-size: 0.7rem;
|
|
background-color: var(--primary);
|
|
color: white;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sr-no-words {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sr-import-section {
|
|
margin-top: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.sr-info {
|
|
background-color: var(--info-light);
|
|
border-left: 4px solid var(--info);
|
|
padding: 1rem;
|
|
border-radius: 4px;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
.sr-info h4 {
|
|
color: var(--info);
|
|
margin-top: 0;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.sr-info p {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sr-difficulty {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.sr-difficulty-label {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sr-difficulty-bar {
|
|
flex: 1;
|
|
height: 6px;
|
|
background-color: #eee;
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sr-difficulty-fill {
|
|
height: 100%;
|
|
background: linear-gradient(to right, #1dd1a1, #feca57, #ff6b6b);
|
|
}
|