style: remove all emojis and replace with vector icons

This commit is contained in:
tyuXX 2026-11-09 22:12:09 +00:00
parent 111e8cead4
commit 5d576137ae
4 changed files with 59 additions and 16 deletions

View file

@ -1935,22 +1935,61 @@ code {
margin-top: 2px;
}
/* Standalone Rating Badge Icons (Unicode Glyphs - Zero External Font Dependency) */
/* Standalone Rating Badge Icons (Zero Emojis, Zero External Font Dependency) */
.bi {
display: inline-block;
font-style: normal;
line-height: 1;
margin-right: 3px;
width: 0.875rem;
height: 0.875rem;
vertical-align: -0.1em;
background-color: currentColor;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
-webkit-mask-size: contain;
mask-size: contain;
margin-right: 4px;
}
.bi-stars::before { content: "✨"; }
.bi-award-fill::before { content: "🏅"; }
.bi-shield-check::before { content: "🛡️"; }
.bi-graph-up-arrow::before { content: "📈"; }
.bi-trophy-fill::before { content: "🏆"; }
.bi-flag-fill::before { content: "🚩"; }
.bi-exclamation-triangle-fill::before { content: "⚠️"; }
.bi-check-circle-fill::before { content: "✓"; }
.bi-stars {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='m8 0 1.5 5 5 1.5-5 1.5L8 13l-1.5-5-5-1.5 5-1.5z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='m8 0 1.5 5 5 1.5-5 1.5L8 13l-1.5-5-5-1.5 5-1.5z'/%3E%3C/svg%3E");
}
.bi-award-fill {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='6' r='4' fill='%23000'/%3E%3Cpath fill='%23000' d='m5 9-2 7 5-2 5 2-2-7z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='6' r='4' fill='%23000'/%3E%3Cpath fill='%23000' d='m5 9-2 7 5-2 5 2-2-7z'/%3E%3C/svg%3E");
}
.bi-shield-check {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0c-3 1.5-6 1-6 1v6c0 5 6 9 6 9s6-4 6-9V1s-3-.5-6-1zm3.2 5.7-3.7 4a.7.7 0 0 1-1 0L4.8 8a.7.7 0 0 1 1-1l1.2 1.2 3.2-3.5a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0c-3 1.5-6 1-6 1v6c0 5 6 9 6 9s6-4 6-9V1s-3-.5-6-1zm3.2 5.7-3.7 4a.7.7 0 0 1-1 0L4.8 8a.7.7 0 0 1 1-1l1.2 1.2 3.2-3.5a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
}
.bi-graph-up-arrow {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M0 14h16v1.5H0zm1-3 4-4 3 3 5.5-6H11V2h5v5h-2V4.5L8 10.5 5 7.5 1.5 11z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M0 14h16v1.5H0zm1-3 4-4 3 3 5.5-6H11V2h5v5h-2V4.5L8 10.5 5 7.5 1.5 11z'/%3E%3C/svg%3E");
}
.bi-trophy-fill {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v3a4 4 0 0 1-3.5 4 3 3 0 0 1-1 1.5V13h3v1.5H4.5V13h3v-2.5a3 3 0 0 1-1-1.5A4 4 0 0 1 3 5zm-1 1v2a2 2 0 0 0 2 2h.5A5.5 5.5 0 0 1 3 5V3zm12 0v2a5.5 5.5 0 0 1-1.5 2h.5a2 2 0 0 0 2-2V3z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v3a4 4 0 0 1-3.5 4 3 3 0 0 1-1 1.5V13h3v1.5H4.5V13h3v-2.5a3 3 0 0 1-1-1.5A4 4 0 0 1 3 5zm-1 1v2a2 2 0 0 0 2 2h.5A5.5 5.5 0 0 1 3 5V3zm12 0v2a5.5 5.5 0 0 1-1.5 2h.5a2 2 0 0 0 2-2V3z'/%3E%3C/svg%3E");
}
.bi-flag-fill {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 1h1.5v14H3zm1.5 1 9 3.5L4.5 9z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 1h1.5v14H3zm1.5 1 9 3.5L4.5 9z'/%3E%3C/svg%3E");
}
.bi-exclamation-triangle-fill {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1 0 15h16zm-.7 5h1.4v4.5H7.3zm0 6h1.4v1.5H7.3z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1 0 15h16zm-.7 5h1.4v4.5H7.3zm0 6h1.4v1.5H7.3z'/%3E%3C/svg%3E");
}
.bi-check-circle-fill {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.7-4.2 4.5a.7.7 0 0 1-1 0L4.3 8a.7.7 0 0 1 1-1l1.7 1.7 3.7-4a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.7-4.2 4.5a.7.7 0 0 1-1 0L4.3 8a.7.7 0 0 1 1-1l1.7 1.7 3.7-4a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
}
/* Exam Detail Card */
.exam-detail-card {

View file

@ -43,10 +43,10 @@ async function runAllTests() {
return (async () => {
try {
await fn();
console.log(` ✓ ${name}`);
console.log(` PASS: ${name}`);
passed++;
} catch (err: any) {
console.error(` ✗ ${name}`);
console.error(` FAIL: ${name}`);
console.error(` Error: ${err.message}\n`);
failed++;
}

View file

@ -330,7 +330,9 @@
<% } else { %>
<!-- Empty State -->
<div class="empty-state-card">
<div class="empty-icon">📊</div>
<div class="empty-icon" aria-hidden="true">
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" style="display:inline-block; vertical-align:middle; color:var(--text-muted);"><rect x="3" y="12" width="4" height="8" rx="1"></rect><rect x="10" y="8" width="4" height="12" rx="1"></rect><rect x="17" y="4" width="4" height="16" rx="1"></rect></svg>
</div>
<h3><%= t('exams.emptyTitle') %></h3>
<p><%= t('exams.emptyDesc') %></p>
<button type="button" class="btn btn-primary" id="btnEmptySync"><%= t('exams.syncBtn') %></button>

View file

@ -41,7 +41,9 @@
</div>
</div>
<div class="student-policy-note">
<span class="policy-icon">ℹ</span>
<span class="policy-icon" aria-hidden="true">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline-block; vertical-align:-2px;"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
</span>
<span><%= t('privateLessons.policyNote') %></span>
</div>
</div>