Skip to content Skip to sidebar Skip to footer

How To Override Flask_admin Style For All Templates?

I'm working on simple web application and as for DB display I use Flask_admin module. I would like to apply custom CSS to all my templates e.g. Custom navar with blue border. This

Solution 1:

Your master.html file should look like the following:

{% extends admin_base_template %}
{% block head_css %}
    {{ super() }}
    <style>
        .navbar {
            border-color: #019ced;
            border-width: 1px;
            border-radius: 0;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            border-top: none;
            box-shadow: none;
        }
    </style>
{% endblock %}

Post a Comment for "How To Override Flask_admin Style For All Templates?"