refactor: simplify admonition styling with transparent backgrounds - #3123
Conversation
שינוי עיצוב ההתראות (admonitions) לסגנון מינימלי עם רקע שקוף (10% opacity), גבול ימני צבעוני, ואייקוני Lucide SVG בכותרת כל התראה. הסרת theme-specific overrides שלא נדרשים יותר בזכות שימוש ברקע שקוף. https://claude.ai/code/session_01LL2gAQecJM5bU72JkFxG9V
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
amirbiron
commented
Mar 10, 2026
הכל בוצע בהצלחה. הנה סיכום השינויים: מה שונה1. CSS ( |
| סוג | אייקון Lucide |
|---|---|
| note, info | Info (עיגול עם i) |
| tip | Lightbulb (נורה) |
| important | CircleAlert |
| warning | AlertTriangle (משולש) |
| danger | OctagonAlert (מתומן) |
| success | CheckCircle |
| question | HelpCircle |
| example | Code (סוגריים) |
| quote | Quote (גרשיים) |
| experimental | Flask (מבחנה) |
| deprecated | Ban (עיגול עם קו) |
| todo | ClipboardList |
| abstract | FileText |
⏱️ Performance report(No performance test durations collected. Mark tests with |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…edup 1. Mobile double-padding: שינוי media query למובייל כך ש-padding של .admonition עצמו מתעדכן במקום .admonition-content (שכבר לא צריך padding נפרד) 2. Dead CSS variables: הסרת --admonition-radius, --admonition-content-bg, --admonition-content-text מכל ה-theme blocks (לא בשימוש אחרי הרפקטור) 3. Icons duplication: חילוץ מפת ADMONITION_ICONS לקובץ משותף admonition-icons.js שנטען לפני live-preview.js ו-md_preview.html https://claude.ai/code/session_01LL2gAQecJM5bU72JkFxG9V
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
✨ תיאור קצר
פישוט משמעותי של סגנון כרטיסיות ההסבר (admonitions) על ידי מעבר לרקע שקוף אחיד שעובד בכל הערכות הצבעים, והסרת מאות שורות של CSS ספציפיות לערכה. הוספת SVG icons דינמיים לכל סוג התראה.
📦 שינויים עיקריים
פירוט:
CSS (markdown-enhanced.css):
.admonition– הסרתoverflow: hiddenו-box-shadow, שינוי margin/padding.admonition-title– הסרת padding ספציפי, הוספתfont-size: 0.875rem.admonition-content– הסרת background/color ספציפיים, הוספתfont-size: 0.875rembackground: rgba(color, 0.1)לכל סוגborder-right/border-left(כעת מטופל בצורה אחידה)JavaScript (md_preview.html + live-preview.js):
ADMONITION_ICONSעם 12 SVG icons (Lucide) לסוגי התראות שונים.admonition-title🧪 בדיקות
📝 סוג שינוי
✅ צ'קליסט
🧩 השפעות/סיכונים
🔗 קישורים
https://claude.ai/code/session_01LL2gAQecJM5bU72JkFxG9V