manuel
(Manuel Kostka)
2 يونيو 2025، 10:05م
1
يتم أحيانًا تعيين الأنماط المضمنة باستخدام متغيرات CSS، ولكن يتم تعريفها في أحيان أخرى مباشرةً للخاصية. أعتقد أنه سيكون من الجيد اعتماد النمط باستخدام متغيرات CSS بشكل عام. يبدو أنه متوافق تمامًا مع الإصدارات السابقة؟
على سبيل المثال، هكذا على لافتات الفئات:
3 إعجابات
بالتأكيد، بشكل عام نريد متغيرات CSS في أماكن أكثر. إذا كانت هناك أماكن أخرى سيكون هذا مفيدًا لها ولا تحتوي عليها حاليًا، فأخبرنا!
يستخدم هذا --category-banner-background و --category-banner-color
main ← dev-inline-variable
opened 07:52PM - 26 Jun 25 UTC
Requested here: https://meta.discourse.org/t/could-inline-styles-be-generally-se… t-with-css-variables/368612
This replaces the inline colors with variables that are assigned the colors. The variables are then applied to the `div[class^="category-title-header"]`. This shouldn't result in any changes other than how the colors are set, overrides in themes will still apply.
إعجابَين (2)
system
(system)
تم إغلاقه في
26 يوليو 2025، 8:10م
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.