fix(textbooks catalog): добавлены цвета indigo и rose
Карточки Алгебры 9 (indigo) и Геометрии 9 (rose) показывались белым на белом — отсутствовали CSS-классы .tb-cover.indigo и .tb-cover.rose. Добавлены градиенты, fill прогресс-бара и primary-кнопки для обоих цветов + расширен colorMap. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,8 @@
|
||||
.tb-cover.green { background:linear-gradient(135deg, #047857 0%, #059669 60%, #10b981 100%); }
|
||||
.tb-cover.violet { background:linear-gradient(135deg, #6d28d9 0%, #7c3aed 60%, #9333ea 100%); }
|
||||
.tb-cover.pink { background:linear-gradient(135deg, #be185d 0%, #db2777 60%, #ec4899 100%); }
|
||||
.tb-cover.indigo { background:linear-gradient(135deg, #3730a3 0%, #4f46e5 60%, #818cf8 100%); }
|
||||
.tb-cover.rose { background:linear-gradient(135deg, #9f1239 0%, #e11d48 60%, #fb7185 100%); }
|
||||
|
||||
.tb-cover::before {
|
||||
content: attr(data-watermark);
|
||||
@@ -104,6 +106,8 @@
|
||||
.tb-progress.green .tb-progress-fill { background:#059669; }
|
||||
.tb-progress.violet .tb-progress-fill { background:#7c3aed; }
|
||||
.tb-progress.pink .tb-progress-fill { background:#db2777; }
|
||||
.tb-progress.indigo .tb-progress-fill { background:#4f46e5; }
|
||||
.tb-progress.rose .tb-progress-fill { background:#e11d48; }
|
||||
.tb-progress-text {
|
||||
display:flex; justify-content:space-between; align-items:center;
|
||||
font-size:.74rem; color:var(--text-3);
|
||||
@@ -129,6 +133,8 @@
|
||||
.tb-btn.primary.green { background:#059669; }
|
||||
.tb-btn.primary.violet { background:#7c3aed; }
|
||||
.tb-btn.primary.pink { background:#db2777; }
|
||||
.tb-btn.primary.indigo { background:#4f46e5; }
|
||||
.tb-btn.primary.rose { background:#e11d48; }
|
||||
.tb-btn.primary:hover { filter:brightness(1.1); }
|
||||
.tb-btn svg { width:14px; height:14px; }
|
||||
|
||||
@@ -687,7 +693,7 @@
|
||||
clsSel.appendChild(o);
|
||||
});
|
||||
|
||||
const colorMap = { amber:'#d97706', blue:'#2563eb', green:'#059669', violet:'#7c3aed', pink:'#db2777' };
|
||||
const colorMap = { amber:'#d97706', blue:'#2563eb', green:'#059669', violet:'#7c3aed', pink:'#db2777', indigo:'#4f46e5', rose:'#e11d48' };
|
||||
|
||||
async function refresh() {
|
||||
const tbSlug = tbSel.value;
|
||||
|
||||
Reference in New Issue
Block a user