kirupa
(Kirupa Chinnathambi)
25 سبتمبر 2022، 8:29م
1
مرحباً بالجميع،
أستخدم ميزة تضمين Discourse لعرض المشاركات على موقع غير Discourse. عندما أقوم بتمكين الوضع المظلم على الموقع الرئيسي، أود أيضاً تنسيق التضمينات الخاصة بـ Discourse لتبدو مناسبة:
هل هناك طريقة لجعل النسخة المضمنة ترث الأنماط من الصفحة الأم؟ أعتقد أنها تعمل عبر iframe حالياً، وهذا يحد من مشاركة الأنماط.
شكراً،
كيروبا
kirupa
(Kirupa Chinnathambi)
28 سبتمبر 2022، 3:25ص
2
هناك شيء آخر وهو أن تمييز بناء الجملة للكود مفقود أيضًا. هل هناك طريقة لجعل التضمين يبدو طبيعيًا أكثر مع الموقع الذي يتم عرضه فيه مع الاحتفاظ بتمييز بناء الجملة؟
أعتقد أن تضمينات الوضع المظلم التلقائي قد ظهرت من قبل إذا كان هذا مفيدًا:
Automatic Dark Mode color scheme switching is a fantastic addition, thanks for integrating it!
With (automatic) color scheme switching available, I’m wondering if there might also be some way to switch back and forth between light and dark Discourse modes when embedded as comments in a blog. Specifically, my Ghost blog has a toggle that users can click on to manually switch back and forth between light and dark modes. I know that my blog’s CSS can’t effect the CSS within Discourse’s iframe, but…
weallwegot
(juicecounty.prodigy)
28 سبتمبر 2022، 4:00ص
4
وهناك أيضًا بعض الإرشادات المتعلقة بـ CSS هنا، على الرغم من أنني لم أجربها بنفسي:
How to style the embedded Discourse frame on your web page
Getting Started
To get started you have to create a new CSS stylesheet under admin -> customize -> css/html, even if you don’t want to change the normal styling of your forum. Just leave the other categories empty and just modify Embedded CSS. Don’t forget to set it to enabled under the textfield.
Link and Button Colors
You probably want to style the links and buttons according to your web page.
footer a.button {
background-color: …
إعجابَين (2)
kirupa
(Kirupa Chinnathambi)
6 أكتوبر 2022، 2:10ص
5
شكراً جزيلاً على الاقتراحات! سأجرب تعيين CSS مخصص عبر النهج الذي وصفته
system
(system)
تم إغلاقه في
5 نوفمبر 2022، 2:11ص
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.