@@ -0,0 +1,451 @@
1+/*
2+ * searx, A privacy-respecting, hackable metasearch engine
3+ *
4+ * To convert "style.less" to "style.css" run: $make styles
5+ */
6+
7+@import "definitions.less";
8+
9+@import "mixins.less";
10+
11+
12+// Main LESS-Code
13+
14+html {
15+ font-family: "Courier New", Courier, monospace;
16+ font-size: 0.9em;
17+ .text-size-adjust;
18+ color: @color-font;
19+ padding: 0;
20+ margin: 0;
21+}
22+
23+body, #container {
24+ padding: 0;
25+ margin: 0;
26+}
27+
28+canvas {
29+ image-rendering: optimizeSpeed;
30+ image-rendering: -moz-crisp-edges;
31+ image-rendering: -webkit-optimize-contrast;
32+ image-rendering: optimize-contrast;
33+ image-rendering: pixelated;
34+ -ms-interpolation-mode: nearest-neighbor;
35+ width:32px;
36+ height:32px;
37+}
38+
39+#container {
40+ width: 100%;
41+ position: absolute;
42+ top: 0;
43+}
44+
45+// Search-Field
46+
47+@import "search.less";
48+
49+.row {
50+ max-width: 800px;
51+ margin: 20px auto;
52+ text-align: justify;
53+
54+ h1 {
55+ font-size: 3em;
56+ margin-top: 50px;
57+ }
58+
59+ p {
60+ padding: 0 10px;
61+ max-width: 700px;
62+ }
63+
64+ h3,ul {
65+ margin: 4px 8px;
66+ }
67+}
68+
69+.hmarg {
70+ margin: 0 20px;
71+ border: 1px solid @color-hmarg-border;
72+ padding: 4px 10px;
73+}
74+
75+a {
76+ &:link.hmarg {
77+ color: @color-hmarg-font;
78+ }
79+
80+ &:visited.hmarg {
81+ color: @color-hmarg-font;
82+ }
83+
84+ &:active.hmarg {
85+ color: @color-hmarg-font-hover;
86+ }
87+
88+ &:hover.hmarg {
89+ color: @color-hmarg-font-hover;
90+ }
91+}
92+
93+.top_margin {
94+ margin-top: 60px;
95+}
96+
97+.center {
98+ text-align: center;
99+}
100+
101+h1 {
102+ font-size: 5em;
103+}
104+
105+div.title {
106+ background: url('../img/searx-pixel.png') no-repeat;
107+ width: 100%;
108+ min-height: 80px;
109+ background-position: center;
110+
111+ h1 {
112+ visibility: hidden;
113+ }
114+}
115+
116+input[type="button"],
117+input[type="submit"] {
118+ font-family: "Courier New", Courier, monospace;
119+ padding: 4px 12px;
120+ margin: 2px 4px;
121+ display: inline-block;
122+ background: @color-download-button-background;
123+ color: @color-download-button-font;
124+ .rounded-corners;
125+ border: 0;
126+ cursor: pointer;
127+}
128+
129+input[type="button"]:disabled {
130+ cursor: progress;
131+}
132+
133+input[type="checkbox"] {
134+ visibility: hidden;
135+}
136+
137+fieldset {
138+ margin: 8px;
139+ border: 1px solid @color-settings-fieldset;
140+}
141+
142+#logo {
143+ position: absolute;
144+ top: 13px;
145+ left: 10px;
146+}
147+
148+#categories {
149+ margin: 0 10px;
150+ .user-select;
151+}
152+
153+.checkbox_container {
154+ display: inline-block;
155+ position: relative;
156+ margin: 0 3px;
157+ padding: 0px;
158+
159+ input {
160+ display: none;
161+ }
162+}
163+
164+.checkbox_container label, .engine_checkbox label {
165+ cursor: pointer;
166+ padding: 4px 10px;
167+ margin: 0;
168+ display: block;
169+ text-transform: capitalize;
170+ .user-select;
171+}
172+
173+.checkbox_container input[type="checkbox"]:checked + label {
174+ background: @color-categories-item-selected;
175+ color: @color-categories-item-selected-font;
176+}
177+
178+.engine_checkbox {
179+ padding: 4px;
180+}
181+
182+label {
183+ &.allow {
184+ background: @color-settings-label-allowed-background;
185+ padding: 4px 8px;
186+ color: @color-settings-label-allowed-font;
187+ display: none;
188+ }
189+
190+ &.deny {
191+ background: @color-settings-label-deny-background;
192+ padding: 4px 8px;
193+ color: @color-settings-label-deny-font;
194+ display: inline;
195+ }
196+}
197+
198+.engine_checkbox input[type="checkbox"]:checked + label {
199+ &:nth-child(2) + label {
200+ display: none;
201+ }
202+
203+ &.allow {
204+ display: inline;
205+ }
206+}
207+
208+a {
209+ text-decoration: none;
210+ color: @color-url-font;
211+
212+ &:visited {
213+ color: @color-url-visited-font;
214+ }
215+}
216+
217+.engines {
218+ color: @color-engines-font;
219+}
220+
221+.small_font {
222+ font-size: 0.8em;
223+}
224+
225+.small p {
226+ margin: 2px 0;
227+}
228+
229+.right {
230+ float: right;
231+}
232+
233+.invisible {
234+ display: none;
235+}
236+
237+.left {
238+ float: left;
239+}
240+
241+.highlight {
242+ color: @color-highlight;
243+}
244+
245+.content .highlight {
246+ color: @color-black;
247+}
248+
249+.percentage {
250+ position: relative;
251+ width: 300px;
252+
253+ div {
254+ background: @color-percentage-div-background;
255+ }
256+}
257+
258+table {
259+ width: 100%;
260+}
261+
262+td {
263+ padding: 0 4px;
264+}
265+
266+tr {
267+ &:hover {
268+ background: @color-settings-tr-hover;
269+ }
270+}
271+
272+#results {
273+ margin: auto;
274+ padding: 0;
275+ width: @results-width;
276+ margin-bottom: 20px;
277+}
278+
279+#search_url {
280+ margin-top: 8px;
281+
282+ input {
283+ border: 1px solid @color-result-search-url-border;
284+ padding: 4px;
285+ color: @color-result-search-url-font;
286+ width: 14em;
287+ display: block;
288+ margin: 4px;
289+ font-size: 0.8em;
290+ }
291+}
292+
293+#preferences {
294+ top: 10px;
295+ padding: 0;
296+ border: 0;
297+ background: url('../img/preference-icon-pixel.png') no-repeat;
298+ background-size: 28px 28px;
299+ opacity: 0.8;
300+ width: 28px;
301+ height: 30px;
302+ display: block;
303+
304+ * {
305+ display: none;
306+ }
307+}
308+
309+#pagination {
310+ clear: both;
311+ text-align: center;
312+ br {
313+ clear: both;
314+ }
315+}
316+
317+#apis {
318+ margin-top: 8px;
319+ clear: both;
320+}
321+
322+#categories_container {
323+ position: relative;
324+}
325+
326+@media screen and (max-width: @results-width) {
327+
328+ #results {
329+ margin: auto;
330+ padding: 0;
331+ width: 90%;
332+ }
333+
334+ .checkbox_container {
335+ display: block;
336+ width: 90%;
337+ //float: left;
338+
339+ label {
340+ border-bottom: 0;
341+ }
342+ }
343+
344+ .preferences_container {
345+ display: none;
346+ postion: fixed !important;
347+ top: 100px;
348+ right: 0px;
349+ }
350+
351+}
352+
353+@media screen and (max-width: 75em) {
354+
355+ div.title {
356+
357+ h1 {
358+ font-size: 1em;
359+ }
360+ }
361+
362+ html.touch #categories {
363+ width: 95%;
364+ height: 30px;
365+ text-align: left;
366+ overflow-x: scroll;
367+ overflow-y: hidden;
368+ -webkit-overflow-scrolling: touch;
369+
370+ #categories_container {
371+ width: 1000px;
372+ width: -moz-max-content;
373+ width: -webkit-max-content;
374+ width: max-content;
375+
376+ .checkbox_container {
377+ display: inline-block;
378+ width: auto;
379+ }
380+ }
381+ }
382+
383+ #categories {
384+ font-size: 90%;
385+ clear: both;
386+
387+ .checkbox_container {
388+ margin-top: 2px;
389+ margin: auto;
390+ }
391+ }
392+
393+ #categories {
394+ font-size: 90%;
395+ clear: both;
396+
397+ .checkbox_container {
398+ margin-top: 2px;
399+ margin: auto;
400+ }
401+ }
402+
403+ #apis {
404+ display: none;
405+ }
406+
407+ #search_url {
408+ display: none;
409+ }
410+
411+ #logo {
412+ display: none;
413+ }
414+}
415+
416+.favicon {
417+ float: left;
418+ margin-right: 4px;
419+ margin-top: 2px;
420+}
421+
422+.preferences_back {
423+ background: none repeat scroll 0 0 @color-settings-return-background;
424+ border: 0 none;
425+ .rounded-corners;
426+ cursor: pointer;
427+ display: inline-block;
428+ margin: 2px 4px;
429+ padding: 4px 6px;
430+
431+ a {
432+ color: @color-settings-return-font;
433+ }
434+}
435+
436+.hidden {
437+ opacity: 0;
438+ overflow: hidden;
439+ font-size: 0.8em;
440+ position: absolute;
441+ bottom: -20px;
442+ width: 100%;
443+ text-position: center;
444+ background: white;
445+ transition: opacity 1s ease;
446+}
447+
448+#categories_container:hover .hidden {
449+ transition: opacity 1s ease;
450+ opacity: 0.8;
451+}