diff options
| author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 22:07:19 +0100 |
|---|---|---|
| committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-19 22:07:19 +0100 |
| commit | cd179bbdbbf71431cb61be0f6188ea9507c29027 (patch) | |
| tree | 5c10122262b10d59c0e2ca993abc6bdc88d4a8f0 /searx/templates/courgette/color.css | |
| parent | 71ae75d73e3dd33d719d6eb94e173b02c9b47edd (diff) | |
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.
Diffstat (limited to 'searx/templates/courgette/color.css')
| -rw-r--r-- | searx/templates/courgette/color.css | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/searx/templates/courgette/color.css b/searx/templates/courgette/color.css new file mode 100644 index 000000000..3e0d73083 --- /dev/null +++ b/searx/templates/courgette/color.css @@ -0,0 +1,34 @@ + .autocompleter-choices li:hover, +.checkbox_container label:hover, +.checkbox_container input[type="checkbox"]:checked + label, +#sidebar, +#suggestions input[type="submit"]:hover, +#suggestions input[type="submit"]:focus, +input[type="submit"], +.engine_checkbox label, +.engine_checkbox .deny, +#search_submit{ + background-color: {{ cookies['courgette-color'].split()[0] }}; +} + +.result_title a, +.row a, +.title h1{ + color: {{ cookies['courgette-color'].split()[0] }}; +} + +#answers { + border-color: {{ cookies['courgette-color'].split()[0] }}; +} + +#search_submit:hover, +#search_submit:focus, +#sidebar input[type="submit"]:hover, +#sidebar input[type="submit"]:focus { + background-color: {{ cookies['courgette-color'].split()[1] }}; +} + +input[type="submit"]:hover, +input[type="submit"]:focus { + background: {{ cookies['courgette-color'].split()[1] }}; +}
\ No newline at end of file |