ソースを参照

[enh] add dark version of oscar/logicodev

Adam Tauber 7 年 前
コミット
46fb0d860e

+ 1
- 0
searx/static/themes/oscar/css/logicodev-dark.min.css
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 6
- 4
searx/static/themes/oscar/gruntfile.js ファイルの表示

@@ -37,20 +37,22 @@ module.exports = function(grunt) {
37 37
     less: {
38 38
         development: {
39 39
             options: {
40
-                paths: ["less/pointhi", "less/logicodev"]
40
+                paths: ["less/pointhi", "less/logicodev", "less/logicodev-dark"]
41 41
                 //banner: '/*! less/oscar/oscar.css | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n'
42 42
             },
43 43
             files: {"css/pointhi.css": "less/pointhi/oscar.less",
44
-                    "css/logicodev.css": "less/logicodev/oscar.less"}
44
+                    "css/logicodev.css": "less/logicodev-dark/oscar.less",
45
+                    "css/logicodev-dark.css": "less/logicodev/oscar.less"}
45 46
         },
46 47
         production: {
47 48
             options: {
48
-                paths: ["less/pointhi", "less/logicodev"],
49
+                paths: ["less/pointhi", "less/logicodev", "less/logicodev-dark"],
49 50
                 //banner: '/*! less/oscar/oscar.css | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n',
50 51
                 cleancss: true
51 52
             },
52 53
             files: {"css/pointhi.min.css": "less/pointhi/oscar.less",
53
-                    "css/logicodev.min.css": "less/logicodev/oscar.less"}
54
+                    "css/logicodev.min.css": "less/logicodev/oscar.less",
55
+                    "css/logicodev-dark.min.css": "less/logicodev-dark/oscar.less"}
54 56
         },
55 57
         /*
56 58
 	// built with ./manage.sh styles

+ 236
- 0
searx/static/themes/oscar/less/logicodev-dark/oscar.less ファイルの表示

@@ -0,0 +1,236 @@
1
+@import "../logicodev/variables.less";
2
+@import "../logicodev/footer.less";
3
+@import "../logicodev/checkbox.less";
4
+@import "../logicodev/onoff.less";
5
+@import "../logicodev/results.less";
6
+@import "../logicodev/infobox.less";
7
+@import "../logicodev/search.less";
8
+@import "../logicodev/advanced.less";
9
+@import "../logicodev/cursor.less";
10
+@import "../logicodev/code.less";
11
+@import "../logicodev/preferences.less";
12
+
13
+/*Global*/
14
+body {
15
+  background:#1d1f21 none !important;
16
+  color:#D5D8D7 !important;
17
+}
18
+
19
+a {
20
+  color:#41a2ce !important;
21
+  text-decoration: none !important;
22
+}
23
+
24
+a:hover {
25
+  color:#5F89AC !important;
26
+}
27
+
28
+input, button, textarea, select {
29
+  border: 1px solid #282a2e !important;
30
+  background-color: #444 !important;
31
+  color: #BBB !important;
32
+}
33
+
34
+input:focus, button:focus, textarea:focus, select:focus {
35
+  border: 1px solid #C5C8C6 !important;
36
+  box-shadow: initial !important;
37
+}
38
+
39
+div#advanced-search-container  div#categories label{
40
+  background:none;
41
+  border: 1px solid #282a2e;
42
+}
43
+
44
+ul.nav li a {
45
+  border: 0 !important;
46
+  border-bottom: 1px solid #4d3f43 !important;
47
+}
48
+
49
+#categories *, .modal-wrapper * {
50
+  background:#1d1f21 none !important;
51
+  color:#D5D8D7 !important;
52
+}
53
+
54
+#categories *, {
55
+  border: 1px solid #3d3f43 !important;
56
+}
57
+
58
+#categories *:checked + label {
59
+  border-bottom: 4px solid #3d9f94 !important;
60
+}
61
+
62
+.result-content {
63
+  color:#B5B8B7 !important;
64
+}
65
+
66
+.external-link {
67
+  color:#35B887 !important;
68
+}
69
+
70
+.table-striped tr td, .table-striped tr th {
71
+  border-color: #4d3f43 !important;
72
+}
73
+
74
+.highlight {
75
+  background: #333333 !important;
76
+}
77
+
78
+/*nav*/
79
+.navbar{
80
+  background:#1d1f21 none;
81
+  border: none;
82
+}
83
+
84
+.navbar .active, .menu {
85
+  background: none !important;
86
+}
87
+
88
+.label-default {
89
+  background: none;
90
+  color: #BBB;
91
+}
92
+
93
+.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus, .nav-tabs.nav-justified > .active > a{
94
+  background-color: #282a2e !important;
95
+
96
+}
97
+
98
+/*Search Page*/
99
+.result-default:hover, .result-code:hover, .result-torrent:hover, .result-videos:hover, .result-map:hover {
100
+    background-color: #222426;
101
+}
102
+
103
+/*buttons*/
104
+.btn {
105
+  color: #BBB;
106
+  background-color: #444 ;
107
+  border: 1px solid #282a2e;
108
+}
109
+
110
+.btn:hover {
111
+  color:#444 !important;
112
+  background-color: #BBB !important; 
113
+}
114
+
115
+.btn-primary.active {
116
+  color: #C5C8C6;
117
+  background-color: #5F89AC;
118
+  border-color: #5F89AC;
119
+}
120
+
121
+/*Right Pannels*/
122
+.panel {
123
+  border: 1px solid #111;
124
+  background: none;
125
+}
126
+
127
+.panel-heading {
128
+  color: #C5C8C6 !important;
129
+  background: #282a2e !important;
130
+  border-bottom: none;
131
+}
132
+
133
+.panel-body {
134
+  color: #C5C8C6 !important;
135
+  background: #1d1f21 !important;
136
+  border-color: #111 !important;
137
+}
138
+
139
+p.btn.btn-default{
140
+  background: none;
141
+}
142
+
143
+.table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th, .table-striped>thead>tr:nth-child(odd)>th {
144
+  background:#2d2f32 none !important;
145
+  color:#D5D8D7 !important;
146
+}
147
+
148
+.label-success {
149
+  background:#1d6f42 none !important;
150
+}
151
+
152
+.label-danger {
153
+  background:#ad1f12 none !important;
154
+}
155
+
156
+.searx-navbar {
157
+    background: #333334;
158
+    height: 2.3rem;
159
+    font-size: 1.3rem;
160
+    line-height: 1.3rem;
161
+    padding: 0.5rem;
162
+    font-weight: bold;
163
+    margin-bottom: 0.8rem;
164
+
165
+    a, a:hover {
166
+        margin-right: 2.0rem;
167
+        color: white;
168
+        text-decoration: none;
169
+    }
170
+
171
+    .instance a {
172
+        color: @light-green;
173
+        margin-left: 2.0rem;
174
+    }
175
+}
176
+
177
+#main-logo {
178
+    margin-top: 20vh;
179
+    margin-bottom: 25px;
180
+
181
+    & > img {
182
+        max-width: 350px;
183
+        width: 80%;
184
+    }
185
+}
186
+
187
+.onoffswitch-inner:before, .onoffswitch-inner:after {
188
+  background:#1d1f21 none !important;
189
+}
190
+
191
+.onoffswitch-switch,  .onoffswitch-label {
192
+  border: 2px solid #3d3f43 !important;
193
+}
194
+
195
+.nav>li>a:hover, .nav>li>a:focus {
196
+  background-color: #3d3f43 !important;
197
+}
198
+
199
+/*Images search*/
200
+.img-thumbnail, .thumbnail {
201
+    padding: 0px;
202
+    line-height: 1.42857143;
203
+    background: none;
204
+    border: none;
205
+}
206
+
207
+.modal-content {
208
+  background:#1d1f21 none !important;
209
+}
210
+
211
+/*Preferences*/
212
+
213
+.table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th {
214
+  background: RGBA(240, 0, 0, 0.56) !important;
215
+  color: #C5C8C6 !important;
216
+}
217
+
218
+.table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th {
219
+  background: RGBA(237, 59, 59, 0.61) !important;
220
+  color: #C5C8C6 !important;
221
+}
222
+
223
+.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th {
224
+  background: rgb(102, 105, 110) !important; 
225
+}
226
+
227
+.btn-success {
228
+  color: #C5C8C6;
229
+  background: #449d44;
230
+}
231
+
232
+.btn-danger {
233
+  color: #C5C8C6;
234
+  background: #d9534f;
235
+
236
+}

+ 1
- 0
searx/templates/oscar/preferences.html ファイルの表示

@@ -107,6 +107,7 @@
107 107
                         <select class="form-control" name='oscar-style'>
108 108
                             <option value="logicodev" >Logicodev</option>
109 109
                             <option value="pointhi" {% if cookies['oscar-style'] == 'pointhi' %}selected="selected"{% endif %}>Pointhi</option>
110
+                            <option value="logicodev-dark" {% if cookies['oscar-style'] == 'logicodev-dark' %}selected="selected"{% endif %}>Logicodev dark</option>
110 111
                         </select>
111 112
                     {{ preferences_item_footer(_('Choose style for this theme'), _('Style'), rtl) }}
112 113