blog-template icon indicating copy to clipboard operation
blog-template copied to clipboard

Manual light/dark style override

Open cassidyjames opened this issue 5 years ago • 3 comments

From https://github.com/elementary/blog/issues/12

Should be relatively easy to do with lightweight js and local storage

cassidyjames avatar Sep 17 '19 22:09 cassidyjames

I could pick this one up someday but if someone else wants to do this, here's how it's done in Elixir's ex_doc documentation generator. Effect here - there's a "Toggle night mode" link in the footer. You would just need to use plain js instead of jquery.

michallepicki avatar Oct 05 '19 21:10 michallepicki

I've created PR #17 Maybe I should wrap the night mode code to scss mixins to prevent code duplicate? Or right now is ok?

moshenskyDV avatar Oct 06 '19 20:10 moshenskyDV

@moshenskyDV thanks! I've left a review on the PR.

cassidyjames avatar Oct 07 '19 03:10 cassidyjames