mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Modify theme Courgette to add colors
Two colors are needed so I use a space in the cookie and a split in jinja to "encode" and "decode" them. We should enforce that each theme if they must use a cookie, prefix its name with the name of the theme. The color proposed here are based on bootstrap. We could use others.
This commit is contained in:
parent
71ae75d73e
commit
cd179bbdbb
3 changed files with 52 additions and 0 deletions
|
|
@ -8,6 +8,11 @@
|
|||
<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=1" />
|
||||
<title>{% block title %}{% endblock %}searx</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css" media="screen" />
|
||||
{% if cookies['courgette-color'] %}
|
||||
<style type="text/css">
|
||||
{% include 'courgette/color.css' %}
|
||||
</style>
|
||||
{% endif %}
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}?v=2" />
|
||||
{% block styles %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue