Open carltongibson opened 1 year ago
picocss.
@dertuxmalwieder — that's a speedy answer! Would you fancy submitting?
Not today - busy over the weekend. Bookmarked…
Good thread on Mastodon points to the survey which has Bootstrap the most used framework by far.
Hi @dertuxmalwieder
I just added picocss in my base.html
<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{% static 'css/pico.min.css' %}" />
<title>Neapolitan</title>
</head>
<body class="container">
<main>
{% block content %}
{% endblock %}
</main>
</body>
</html>
To override the neapolitan templates, just create a neapolitan folder inside your django templates folder. Then rewrite the templates that you want to customize. I only rewrote the neapolitan/partial/detail.html as a test:
{% for field, val in object %}
<p>
<strong>{{ field }}:  </strong>{{ val }}
</p>
{% endfor %}
Hope this helps.
@gelie would you like to add that as a sub folder in a examples/
dir?
The default templates use Tailwind, but it's not compulsory.
An
examples/X_css
mini-project showing overriding the default would be good to have.Million dollar question: which framework? 😅