Giter Club home page Giter Club logo

Comments (3)

the-moog avatar the-moog commented on May 27, 2024 1

Hi,

Thanks for that, it did the trick.
I'll raise a bug with the authors of the Backery Demo stating that it diverges from the build in boilerplate of comtemporary Wagtail.
May be worth putting a note on your install notes if that sort of omision is common?

from ls.joyous.

linuxsoftware avatar linuxsoftware commented on May 27, 2024

Version 0.9.0 did have substantial changes to the CSS
https://joyous.readthedocs.io/en/latest/releases/0.9.0.html#css

https://pasteboard.co/IuDwuNd.png is how I would expect a plain simple site to look.

Joyous does not push colour or font choices. But there are theme CSS files available which you can optionally choose from to import if you like.

  • joyous_coast_theme.css: Greys and gold.
  • joyous_forest_theme.css: Greens.
  • joyous_stellar_theme.css: A dark background theme.

You can either alter your base template, or to make things easy you can set the setting JOYOUS_THEME_CSS to the path of a theme CSS file you wish to include.

https://pasteboard.co/IuDxQio.png does not look so good. It looks like joyous.css is not being loaded at all - perhaps clearing your browser cache (ctrl-F5) is needed. Or perhaps the bakery demo CSS has overridden all the Joyous CSS?

from ls.joyous.

linuxsoftware avatar linuxsoftware commented on May 27, 2024

I have installed the latest Bakery Demo from https://github.com/wagtail/bakerydemo and now see why joyous.css is not included.

The base template of the Bakery Demo https://github.com/wagtail/bakerydemo/blob/master/bakerydemo/templates/base.html does not have the blocks extra_css and extra_js that a Wagtail project based upon the default template would have. The blocks content, extra_css and extra_js are required in the base.html template for the Joyous templates to work.

To fix this you can add extra_css : (Note you cannot add a block to an include, so it cannot go inside "includes/head.html")

{% block head %}
    {% include "includes/head.html" %}
    {% block extra_css %}
    {# Override this in templates to add extra stylesheets #}
    {% endblock %}
{% endblock head %}

and add extra_js :

    {% block extra_js %}
        {# Override this in templates to add extra javascript #}
    {% endblock %}
</body>

This will allow joyous.css and optionally a Joyous theme CSS file to be included.

Hope this helps?

from ls.joyous.

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.