Flask-Bootstrap custom theme

谁说胖子不能爱 提交于 2020-08-23 07:48:07

问题


I made a flask app with flask-bootstrap. I am using virtualenv as well. Where would I find the stylesheet that I edit to customize the colors? Or is there another way to have custom colors?


回答1:


Add you custom colors to a css file, e.g. mystyle.css, put it under the static folder, then add your custom css file to your template.

{% block styles %}
{{super()}}
  <link rel="stylesheet" href="{{url_for('.static', filename='mystyle.css')}}">
{% endblock %}

Check the documentation here: Adding a custom CSS file:



来源:https://stackoverflow.com/questions/34664156/flask-bootstrap-custom-theme

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!