Git Product home page Git Product logo

Comments (7)

Artur- avatar Artur- commented on August 23, 2024 2

Can't the recipe be changed to apply theme="dark" only to the recipe itself or even some part inside the recipe?

from cookbook.

github-actions avatar github-actions commented on August 23, 2024

There has not been any activity on this issue for 60 days and it is going to be marked as stale and closed in 7 days.

from cookbook.

samie avatar samie commented on August 23, 2024

Not only does it apply the CSS persistently, but the dark mode texts are now also unreadable. @jouni Do you have time to investigate and help fixing this?

from cookbook.

jouni avatar jouni commented on August 23, 2024

As a quick workaround, I would comment out the @jsmodule from the recipe, to avoid running the script, and add a comment above to explain why.

from cookbook.

jouni avatar jouni commented on August 23, 2024

Not sure what the best fix here is in the end. Running an example inside an iframe would be one solution.

In any case, we can't set the <html theme="dark"> attribute as long as Lumo is loaded in the global and Antlers does not support a dark mode. We’ve made a custom dark mode theme for Antlers in Docs, that makes these two work together nicely.

And even then, I would say it’s strange that one recipe will affect all others (by swapping the color palette). Either we use an iframe, or we need to emulate the OS preference and show a different code snippet for the visitors.

from cookbook.

github-actions avatar github-actions commented on August 23, 2024

There has not been any activity on this issue for 60 days and it is going to be marked as stale and closed in 7 days.

from cookbook.

github-actions avatar github-actions commented on August 23, 2024

There has not been any activity on this issue for 60 days and it is going to be marked as stale and closed in 7 days.

from cookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.