Noémi Ványi пре 8 година
родитељ
комит
d635b5fd4d

+ 1
- 1
searx/static/themes/oscar/css/logicodev.min.css
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 1
- 1
searx/static/themes/oscar/css/pointhi.min.css
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 20
- 78
searx/static/themes/oscar/less/logicodev/navbar.less Прегледај датотеку

@@ -1,89 +1,31 @@
1
-.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus{
1
+.searx-navbar {
2 2
     background: @black;
3
-    color: @light-green;
4
-}
5
-
6
-.navbar > li > a {
7
-    padding: 0;
8
-    margin: 0;
9
-}
10
-
11
-.navbar-nav > li > a {
12
-    background: @black;
13
-    padding: 0 8px;
14
-    margin: 0;
15
-    line-height: 30px;
16
-}
17
-
18
-.navbar, .navbar-default, .menu {
19
-    background-color: @black;
20
-    border: none;
21
-    border-top: 4px solid @light-green;
22
-    padding-top: 5px;
23
-    color: @dim-gray !important;
24
-    font-weight: 700;
25
-    font-size: 1.1em;
26
-    text-transform: lowercase;
27
-    margin-bottom: 24px;
28
-    height: 30px;
29
-    line-height: 30px;
30
-
31
-    .navbar-nav > li > a{
32
-        color: @dim-gray;
3
+    height: 2.3rem;
4
+    font-size: 1.3rem;
5
+    line-height: 1.3rem;
6
+    padding: 0.5rem;
7
+    font-weight: bold;
8
+    margin-bottom: 0.8rem;
9
+
10
+    a, a:hover {
11
+        margin-right: 2.0rem;
12
+        color: white;
13
+        text-decoration: none;
33 14
     }
34 15
 
35
-    .navbar-brand{
36
-        font-weight: 700;
16
+    .instance a {
37 17
         color: @light-green;
38
-        line-height: 30px;
39
-        padding: 0 30px;
40
-        margin: 0;
18
+        margin-left: 2.0rem;
41 19
     }
42
-    z-index: 10;
43 20
 }
44 21
 
45
-// Hover color
46
-// http://stackoverflow.com/users/114029/leniel-macaferi
47
-.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
48
-    color: @light-green;
49
-    background: @black;
50
-}
51
-
52
-.navbar-toggle {
53
-    margin-top: 0;
54
-}
22
+#main-logo {
23
+    margin-top: 20vh;
24
+    margin-bottom: 25px;
55 25
 
56
-.menu {
57
-    margin: 0;
58
-    padding: 0;
59
-    position: absolute;
60
-    top: 4px;
61
-    border: 0;
62
-    z-index: 1000000000;
63
-    height: 40px;
64
-    line-height: 40px;
65
-    ul {
66
-        padding: 0;
67
-        margin: 0;
68
-        li {
69
-            padding: 0 0.6em;
70
-            margin: 0;
71
-            float: left;
72
-            list-style: none;
73
-            a {
74
-                color: @dim-gray;
75
-            }
76
-        }
77
-        li.active a {
78
-            color: @light-green;
79
-        }
26
+    & > img {
27
+        max-width: 350px;
28
+        width: 80%;
80 29
     }
81 30
 }
82 31
 
83
-.menu-right {
84
-    right: 2em;
85
-}
86
-
87
-.menu-left {
88
-    left: 2em;
89
-}

+ 16
- 25
searx/static/themes/oscar/less/pointhi/navbar.less Прегледај датотеку

@@ -1,28 +1,19 @@
1
-.menu {
2
-    margin: 0;
3
-    padding: 0;
4
-    position: absolute;
5
-    top: 4px;
6
-    border: 0;
7
-    z-index: 1000000000;
8
-    height: 40px;
9
-    line-height: 40px;
10
-    ul {
11
-        padding: 0;
12
-        margin: 0;
13
-        li {
14
-            padding: 0 0.6em;
15
-            margin: 0;
16
-            float: left;
17
-            list-style: none;
18
-        }
19
-    }
20
-}
1
+.searx-navbar {
2
+    background: #eee;
3
+    color: #aaa;
4
+    height: 2.3rem;
5
+    font-size: 1.3rem;
6
+    line-height: 1.3rem;
7
+    padding: 0.5rem;
8
+    font-weight: bold;
21 9
 
22
-.menu-right {
23
-    right: 2em;
24
-}
10
+    a, a:hover {
11
+        margin-right: 2.0rem;
12
+        text-decoration: none;
13
+    }
25 14
 
26
-.menu-left {
27
-    left: 2em;
15
+    .instance a {
16
+        color: #444;
17
+        margin-left: 2.0rem;
18
+    }
28 19
 }

+ 8
- 13
searx/templates/oscar/navbar.html Прегледај датотеку

@@ -1,14 +1,9 @@
1
-<!-- Static navbar -->
2
-<div class="navbar navbar-default" role="navigation">
3
-    <div class="container-fluid">
4
-        <div class="navbar-header{% if rtl %} navbar-right{% endif %}">
5
-            <a class="navbar-brand" href="{{ url_for('index') }}">{{ instance_name }}</a>
6
-        </div>
7
-    </div><!--/.container-fluid -->
1
+<div class="searx-navbar">
2
+    <span class="instance {% if rtl %}pull-right{% else %}pull-left{% endif%}">
3
+        <a href="{{ url_for('index') }}">{{ instance_name }}</a>
4
+    </span>
5
+    <span class="{% if rtl %}pull-left{% else %}pull-right{% endif %}">
6
+        <a href="{{ url_for('about') }}">{{ _('about') }}</a>
7
+        <a href="{{ url_for('preferences') }}">{{ _('preferences') }}</a>
8
+    </span>
8 9
 </div>
9
-<div class="menu menu-{% if rtl %}left{% else %}right{% endif %}">
10
-    <ul> <!-- results.html -->
11
-        <li{% if template_name == 'about.html' %} class="active"{% endif %}><a href="{{ url_for('about') }}" class="hmarg">{{ _('about') }}</a></li>
12
-        <li{% if template_name == 'preferences.html' %} class="active"{% endif %}><a href="{{ url_for('preferences') }}" class="hmarg">{{ _('preferences') }}</a></li>
13
-    </ul>
14
-</div><!--/.nav-collapse -->