في الآونة الأخيرة، أدخلت ما يلي:
> <small>مدعوم بواسطة [`noggin`](https://github.com/fedora-infra/noggin) `v1.11.0` (`stable:d236f5e`)</small>
…في مثيل Discourse آخر:
accounts.centos.org states: You can also use your Fedora account to login here. However, when I attempt to enter my credentials there, I observe: Unauthorized: bad credentials. What does this mean? The Environment Powered by noggin...
Reading time: 1 min 🕑
Likes: 2 ❤
كان ذلك مقتبساً من الموقع المذكور.
عند عرضه، يتم تصيير جميع عناصر small > a > code، في حين لا يتم تصيير عنصر code الخاص بـ small > code:
مدعوم بواسطة noggin v1.11.0 (stable:d236f5e)
في حال اختلاف النتيجة لديك، لاحظت ما يلي:
…هذا ما كنت أعتقد في الأصل! بل على العكس، يتم تصييره بالفعل، لكن CSS يجعل عنصر small > code غير مرئي، لأن لون خلفيته مطابق تماماً لتلك الخاصة بـ blockQuote. وغريباً، لا ينطبق هذا الأمر على a[href].
هذا ما أراه
إذا كنت أفهم بشكل صحيح، فإن النص معروض بالكامل، وتعتقد أن خلفية الكود صعبة المشاهدة.
قد تكون هذه مشكلة في سمة Discourse. هل تعرف اسم السمة؟ إذا كانت يتم صيانتها بواسطة Discourse، اطرح ذلك في موضوع ملاحظات السمة؛ وإذا كانت مخصصة بواسطة المنتدى، فيجب أن تخبرهم بذلك.
@sk-or-v1-contents ، بل على العكس، الخلفية خلف “v1.11.0” شفافة:
إعجاب واحد (1)
شكراً لك على التقرير @roke_julian_lockhart
سيتم إصلاحه بواسطة
main ← fix-code-visibility-in-quotes
merged 01:25PM - 17 Aug 26 UTC
Previously, inline `code` only got its chip styling when its direct parent was `… p`, `li`, `strong`, `em` or `a` — every other container (`small`, `b`, `i`, `sub`, `sup`, `span`, `del`, headings, table cells, …) fell through to the code-block rule, whose light-mode background is a 3% blend of primary over secondary and is therefore indistinguishable from a quote's 5% blend, and *exactly identical* inside a nested quote. Fenced code blocks sat on the same collision, so they vanished in quotes too.
This change makes the inline style the default for `code` and scopes the block style to `pre > code`, and derives `$hljs-bg` from `$inline-code-bg` so the two code surfaces match by default and neither disappears against a quote background. `--hljs-bg` and `--inline-code-bg` both keep their names and meanings, so themes that differentiate them are unaffected.
Reported in https://meta.discourse.org/t/code-is-invisible-solely-when-directly-inside-small/410078
### Screenshots
<img width="3200" height="1538" alt="comparison-dark" src="https://github.com/user-attachments/assets/28263913-6d94-46b5-a8e6-4178a601521f" />
<img width="3200" height="1538" alt="comparison-light" src="https://github.com/user-attachments/assets/86ab9405-f53e-423c-8e31-6b438bf2e5c5" />
إعجابَين (2)