awesome-django-blog icon indicating copy to clipboard operation
awesome-django-blog copied to clipboard

text is wrong color in dark mode

Open dmccallie opened this issue 1 year ago • 2 comments

Issue

In dark mode (as set by my window OS preference) any pre-existing blog text from the sample posts comes out as dark type on dark background. Text that is entered via the CKEditor appears to be OK (light on dark.)

Also, any text added directly to the blog post template (which I added as a debugging test) also comes out as dark text on dark background.

In other words, the text styling is not scoped to cover the whole blog post, but only covers the text captured by the CKEditor at the time that the background is known.

I haven't gotten deep enough into the code to understand where this is coming from, but I thought you should know.

Thanks.

dmccallie avatar May 23 '24 05:05 dmccallie

Ahh, Yeah that makes sense. When you use CKEditor, it's dumping formatted HTML into the database whereas when you seed posts with a script, they don't get any of that formatting.

Let me know what you find!

I would love to move away from CKeditor to something that authors mark, but I never had the time to do so.

jsolly avatar May 23 '24 22:05 jsolly

Issue

In dark mode (as set by my window OS preference) any pre-existing blog text from the sample posts comes out as dark type on dark background. Text that is entered via the CKEditor appears to be OK (light on dark.)

Also, any text added directly to the blog post template (which I added as a debugging test) also comes out as dark text on dark background.

In other words, the text styling is not scoped to cover the whole blog post, but only covers the text captured by the CKEditor at the time that the background is known.

I haven't gotten deep enough into the code to understand where this is coming from, but I thought you should know.

Thanks.

Interesting. I remember coming across something similar sometime ago, but couldn't pinpoint what the issue was. It would be nice to see you come with something

freedompraise avatar Jun 01 '24 13:06 freedompraise