瀏覽代碼

[enh] w3c compatibility ++ ui mods

asciimoo 11 年之前
父節點
當前提交
f1f0d978cb
共有 4 個檔案被更改,包括 5 行新增4 行删除
  1. 2
    2
      searx/static/css/style.css
  2. 1
    0
      searx/templates/base.html
  3. 1
    1
      searx/templates/index.html
  4. 1
    1
      searx/templates/search.html

+ 2
- 2
searx/static/css/style.css 查看文件

19
 
19
 
20
 h1 { font-size: 5em; }
20
 h1 { font-size: 5em; }
21
 
21
 
22
-h1.title { background: url('/static/img/searx.png') no-repeat; width: 100%; background-position: center; }
23
-h1.title div { visibility: hidden; }
22
+div.title { background: url('/static/img/searx.png') no-repeat; width: 100%; background-position: center; }
23
+div.title h1 { visibility: hidden; }
24
 
24
 
25
 
25
 
26
 input[type="submit"] { border: 1px solid #666666; color: #444444;  padding: 4px; background-color: #FFFFFF; margin-left: 8px; }
26
 input[type="submit"] { border: 1px solid #666666; color: #444444;  padding: 4px; background-color: #FFFFFF; margin-left: 8px; }

+ 1
- 0
searx/templates/base.html 查看文件

1
 <!DOCTYPE html>
1
 <!DOCTYPE html>
2
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
2
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
3
 <head>
3
 <head>
4
+    <meta charset="UTF-8" />
4
     <meta name="description" content="Searx - a privacy-respecting, hackable metasearch engine" />
5
     <meta name="description" content="Searx - a privacy-respecting, hackable metasearch engine" />
5
     <meta name="keywords" content="searx, search, search engine, metasearch, meta search" />
6
     <meta name="keywords" content="searx, search, search engine, metasearch, meta search" />
6
     <title>{% block title %}{% endblock %}searx</title>
7
     <title>{% block title %}{% endblock %}searx</title>

+ 1
- 1
searx/templates/index.html 查看文件

2
 {% block content %}
2
 {% block content %}
3
 {% include 'github_ribbon.html' %}
3
 {% include 'github_ribbon.html' %}
4
 <div class="center">
4
 <div class="center">
5
-    <h1 class="title"><div>searx</div></h1>
5
+    <div class="title"><h1>searx</h1></div>
6
     {% include 'search.html' %}
6
     {% include 'search.html' %}
7
     <p class="top_margin">
7
     <p class="top_margin">
8
         <a href="/about" class="hmarg">about</a>
8
         <a href="/about" class="hmarg">about</a>

+ 1
- 1
searx/templates/search.html 查看文件

6
     <div>
6
     <div>
7
     {% for category in categories %}
7
     {% for category in categories %}
8
         <div class="checkbox_container">
8
         <div class="checkbox_container">
9
-            <input type="checkbox" id="checkbox_{{ category }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category }}" class="cb"></label><label for="checkbox_{{ category }}">{{ category }}</label>
9
+            <input type="checkbox" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category }}" class="cb"></label><label for="checkbox_{{ category }}">{{ category }}</label>
10
         </div>
10
         </div>
11
     {% endfor %}
11
     {% endfor %}
12
     </div>
12
     </div>