style.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. * {
  2. -webkit-box-sizing: border-box;
  3. -moz-box-sizing: border-box;
  4. box-sizing: border-box;
  5. }
  6. input[type="search"] {
  7. -webkit-appearance: textfield;
  8. }
  9. h2 {
  10. color: #666;
  11. text-transform: uppercase;
  12. }
  13. body {
  14. font-family: sans-serif;
  15. line-height: 1.5;
  16. margin: 0;
  17. background: #EEE;
  18. }
  19. html {
  20. position: relative;
  21. min-height: 100%;
  22. }
  23. .title h1 {
  24. background: url(../img/searx.png) no-repeat;
  25. width: 319px;
  26. height: 62px;
  27. text-indent: -9999px;
  28. margin: 0.5em auto 1em;
  29. }
  30. .center {
  31. max-width: 55em;
  32. text-align: center;
  33. background: rgba(255,255,255,0.6);
  34. padding: 4em 2em;
  35. margin: 7% auto 0;
  36. position: relative;
  37. }
  38. .center.search {
  39. position: static;
  40. width: auto;
  41. background: none;
  42. margin: auto;
  43. padding-top: 1.8em;
  44. }
  45. @media screen and (min-width: 1001px) {
  46. .center:after {
  47. content: "";
  48. z-index: -1;
  49. background: url(../img/bg-body-index.jpg) no-repeat;
  50. background-size: cover;
  51. width: 100%;
  52. height: 100%;
  53. top: 0;
  54. left: 0;
  55. position: fixed;
  56. }
  57. .center.search:after {
  58. content: none;
  59. }
  60. }
  61. .autocompleter-choices {
  62. position: absolute;
  63. margin: 0;
  64. padding: 0;
  65. background: #FFF;
  66. }
  67. .autocompleter-choices li {
  68. padding: 0.5em 1em;
  69. }
  70. .autocompleter-choices li:hover {
  71. background: #3498DB;
  72. color: #FFF;
  73. cursor: pointer;
  74. }
  75. #categories {
  76. text-align: center;
  77. }
  78. .top_margin {
  79. position: absolute;
  80. bottom: -3.5em;
  81. width: 100%;
  82. left: 0;
  83. }
  84. .top_margin a {
  85. display: inline-block;
  86. margin-right: 1em;
  87. color: #FFF;
  88. text-decoration: none;
  89. }
  90. .top_margin a:hover,
  91. .top_margin a:focus {
  92. text-decoration: underline;
  93. }
  94. @media screen and (max-width: 1000px) {
  95. .center { background: none; }
  96. .top_margin a {
  97. color: #333;
  98. }
  99. }
  100. .checkbox_container { margin-top: 1.5em; }
  101. .checkbox_container label {
  102. padding: 0.5em 1em;
  103. color: #333;
  104. cursor: pointer;
  105. font-size: 0.9em;
  106. }
  107. .checkbox_container label:hover {
  108. background: #3498DB;
  109. color: #FFF;
  110. }
  111. .checkbox_container input[type="checkbox"] {
  112. position: absolute;
  113. top: -9999px;
  114. }
  115. .checkbox_container input[type="checkbox"]:checked + label {
  116. background: #3498DB;
  117. color: #FFF;
  118. }
  119. #categories_container > div {
  120. display: inline-block;
  121. }
  122. #categories .hidden {
  123. display: none;
  124. position: absolute;
  125. bottom: 1em;
  126. left: 0;
  127. text-align: center;
  128. width: 100%;
  129. font-size: 0.9em;
  130. font-style: italic;
  131. color: #333;
  132. }
  133. #categories:hover .hidden {
  134. display: block;
  135. }
  136. @media screen and (max-width: 900px) {
  137. #categories_container { letter-spacing: -5px; }
  138. #categories_container > div {
  139. letter-spacing: normal;
  140. margin-top: 1em;
  141. }
  142. .checkbox_container {
  143. margin: 0;
  144. }
  145. .checkbox_container label {
  146. display: block;
  147. background: #CCC;
  148. padding: 1em;
  149. border: 1px solid #FFF;
  150. }
  151. .top_margin { position: static; }
  152. #categories .hidden {
  153. position: static;
  154. display: block;
  155. }
  156. }
  157. @media screen and (max-width: 900px) and (min-width: 501px) {
  158. #categories_container > div {
  159. width: 31%;
  160. margin-left: 2.333%;
  161. }
  162. #categories_container > div:nth-child(3n+1) { margin-left: 0; }
  163. }
  164. @media screen and (max-width: 500px) {
  165. #categories_container > div {
  166. width: 48%;
  167. margin-left: 2%;
  168. font-size: 0.9em;
  169. }
  170. #categories_container > div:nth-child(2n+1) { margin-left: 0; }
  171. .title h1 {
  172. background: url(../img/searx-mobile.png) no-repeat;
  173. width: 200px;
  174. height: 39px;
  175. }
  176. }
  177. #search_wrapper {
  178. position: relative;
  179. }
  180. .q {
  181. padding: 0.5em 3em 0.5em 1em;
  182. width: 100%;
  183. font-size: 1.5em;
  184. border: 0;
  185. color: #666;
  186. }
  187. #search_submit {
  188. position: absolute;
  189. top: 0;
  190. right: 0;
  191. border: 0;
  192. background:url("../img/search-icon.png") no-repeat scroll center center / 65% auto #3498db;
  193. text-indent: -9999px;
  194. width: 5em;
  195. height: 100%;
  196. cursor: pointer;
  197. }
  198. #search_submit:hover,
  199. #search_submit:focus {
  200. background-color: #0665A2;
  201. }
  202. #sidebar {
  203. background: #3498db;
  204. position: fixed;
  205. top: 0;
  206. right: 0;
  207. width: 15em;
  208. height: 100%;
  209. padding: 1.5em;
  210. text-align: right;
  211. }
  212. .right {
  213. position: fixed;
  214. bottom: 1.5em;
  215. width: 15em;
  216. right: 0;
  217. z-index: 1;
  218. padding: 0 1.5em;
  219. text-align: right;
  220. }
  221. .right a {
  222. color: #FFF;
  223. display: block;
  224. text-decoration: none;
  225. }
  226. .right a:hover,
  227. .right a:focus {
  228. text-decoration: underline;
  229. }
  230. #preferences {
  231. background: url(../img/preference-icon.png) no-repeat right 0 / 12% auto;
  232. padding-right: 1.8em;
  233. }
  234. #preferences:hover,
  235. #preferences:focus {
  236. }
  237. #search_url input {
  238. border: 0;
  239. padding: 0.5em;
  240. }
  241. #sidebar > div {
  242. margin-bottom: 1em;
  243. color: #FFF;
  244. }
  245. #sidebar form {
  246. display: inline-block;
  247. }
  248. #sidebar input[type="submit"] {
  249. background: #CCC;
  250. border: 0;
  251. padding: 0.5em 1em;
  252. cursor: pointer;
  253. margin-top: 0.5em;
  254. }
  255. #sidebar input[type="submit"]:hover,
  256. #sidebar input[type="submit"]:focus {
  257. color: #FFF;
  258. background-color: #0665A2;
  259. }
  260. #results {
  261. padding-right: 17em;
  262. padding-left: 2em;
  263. padding: 0 17em 0 2em;
  264. }
  265. .result p {
  266. font-size: 0.9em;
  267. }
  268. .result .content {
  269. margin: 0;
  270. color: #666;
  271. }
  272. .result .url {
  273. margin-top: 0;
  274. color: #FF6530;
  275. }
  276. .result .favicon {
  277. float: left;
  278. position: relative;
  279. top: 0.5em;
  280. margin-right: 0.5em;
  281. }
  282. .definition_result {
  283. background: #CCC;
  284. padding: 1em;
  285. }
  286. .definition_result .result_title,
  287. .definition_result p {
  288. margin: 0;
  289. }
  290. .result_title {
  291. margin-bottom: 0;
  292. font-weight: normal;
  293. }
  294. .highlight {
  295. font-weight: bold;
  296. }
  297. .result_title a {
  298. color: #3498db;
  299. text-decoration: none;
  300. }
  301. .result_title a:hover,
  302. .result_title a:focus {
  303. text-decoration: underline;
  304. }
  305. .cache_link {
  306. color: #666;
  307. font-size: 0.9em;
  308. font-style: italic;
  309. }
  310. .search.center {
  311. padding-right: 17em;
  312. }
  313. #suggestions { margin-bottom: 1em; }
  314. #suggestions span { color: #666; }
  315. #suggestions form {
  316. display: inline-block;
  317. vertical-align: top;
  318. margin-bottom: 0.5em;
  319. }
  320. #suggestions input[type="submit"] {
  321. color: #333;
  322. padding: 0.5em 1em;
  323. border: 0;
  324. background: #CCC;
  325. cursor:pointer;
  326. }
  327. #suggestions input[type="submit"]:hover,
  328. #suggestions input[type="submit"]:focus {
  329. background: #3498db;
  330. color: #FFF;
  331. }
  332. #pagination {
  333. margin: 1.5em 0 2em;
  334. }
  335. #pagination form + form {
  336. float: right;
  337. margin-top: -2em;
  338. }
  339. input[type="submit"] {
  340. display: inline-block;
  341. background: #3498db;
  342. color: #FFF;
  343. border: 0;
  344. padding: 0.6em 1em;
  345. cursor: pointer;
  346. }
  347. input[type="submit"]:hover,
  348. input[type="submit"]:focus {
  349. background: #0665A2;
  350. }
  351. .row {
  352. max-width: 60em;
  353. margin: auto;
  354. }
  355. .row a {
  356. color: #3498db;
  357. }
  358. .row form {
  359. letter-spacing: -5px;
  360. }
  361. .row form > * { letter-spacing: normal; }
  362. .row p { margin: 0; }
  363. .row fieldset {
  364. display: inline-block;
  365. width: 48%;
  366. vertical-align: top;
  367. }
  368. .row fieldset:last-of-type {
  369. display: block;
  370. width: auto;
  371. background: none;
  372. padding: 0;
  373. }
  374. .row fieldset:nth-child(odd) {
  375. margin-right: 2%;
  376. }
  377. .row fieldset:nth-child(2) {
  378. min-height: 10.5em;
  379. }
  380. @media screen and (max-width: 900px) {
  381. .row {
  382. margin: 0 1em;
  383. }
  384. .row fieldset { width: 49%; }
  385. .row fieldset,
  386. .row fieldset:nth-child(odd) {
  387. margin-right: 0;
  388. }
  389. .row fieldset:first-child {
  390. width: 100%;
  391. margin-right: 0;
  392. }
  393. .row fieldset:nth-child(even) {
  394. margin-right: 2%;
  395. }
  396. }
  397. @media screen and (max-width: 800px) {
  398. .row fieldset { width: 100%; }
  399. select { width: 100%; }
  400. table { font-size: 0.8em; }
  401. .right {display: none;}
  402. #sidebar { display: none; }
  403. #results { padding: 0 2em; }
  404. .search.center {
  405. padding-right: 2em;
  406. }
  407. }
  408. @media screen and (max-width: 400px) {
  409. .row #categories_container > div {
  410. width: 100%;
  411. margin-left: 0;
  412. }
  413. }
  414. fieldset {
  415. border: 0;
  416. margin: 1em 0;
  417. background: #CCC;
  418. padding: 1.5em;
  419. }
  420. table {
  421. width: 100%;
  422. text-align: left;
  423. border: 1px solid #CCC;
  424. border-collapse: collapse;
  425. }
  426. table th {
  427. background: #999;
  428. color: #FFF;
  429. }
  430. table tr:nth-child(odd) {
  431. background: #CCC;
  432. }
  433. table th,
  434. table td {
  435. padding: 0.5em 1em;
  436. border: 1px solid #FFF;
  437. }
  438. .engine_checkbox label {
  439. padding: 0.5em;
  440. background: #3498db;
  441. color: #FFF;
  442. cursor: pointer;
  443. }
  444. .engine_checkbox .deny {
  445. background: #3498db;
  446. }
  447. .engine_checkbox .allow {
  448. display: none;
  449. background: #666;
  450. }
  451. .engine_checkbox input {
  452. display: none;
  453. }
  454. .engine_checkbox input:checked + .allow {
  455. display: inline;
  456. }
  457. .engine_checkbox input:checked + .allow + .deny{
  458. display: none;
  459. }
  460. .row input[type="submit"] {
  461. font-size: 1em;
  462. margin: 1em 0 2em;
  463. }
  464. .row .right {
  465. position: static;
  466. display: inline-block;
  467. }
  468. .row .right a {
  469. color: #333;
  470. width: auto;
  471. text-align: left;
  472. padding: 0;
  473. }
  474. .small_font {
  475. font-size: 0.8em;
  476. }
  477. table th {
  478. padding: 1em;
  479. }
  480. legend {
  481. background: #EEE;
  482. padding: 0 1em;
  483. position: relative;
  484. }
  485. select {
  486. border: 1px solid #DDD;
  487. padding: 0.5em 0.8em;
  488. font-size: 1em;
  489. }
  490. .highlight .hll { background-color: #ffffcc }
  491. .highlight { background: #f8f8f8; }
  492. .highlight .c { color: #408080; font-style: italic } /* Comment */
  493. .highlight .err { border: 1px solid #FF0000 } /* Error */
  494. .highlight .k { color: #008000; font-weight: bold } /* Keyword */
  495. .highlight .o { color: #666666 } /* Operator */
  496. .highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
  497. .highlight .cp { color: #BC7A00 } /* Comment.Preproc */
  498. .highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
  499. .highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
  500. .highlight .gd { color: #A00000 } /* Generic.Deleted */
  501. .highlight .ge { font-style: italic } /* Generic.Emph */
  502. .highlight .gr { color: #FF0000 } /* Generic.Error */
  503. .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
  504. .highlight .gi { color: #00A000 } /* Generic.Inserted */
  505. .highlight .go { color: #888888 } /* Generic.Output */
  506. .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
  507. .highlight .gs { font-weight: bold } /* Generic.Strong */
  508. .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
  509. .highlight .gt { color: #0044DD } /* Generic.Traceback */
  510. .highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
  511. .highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
  512. .highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
  513. .highlight .kp { color: #008000 } /* Keyword.Pseudo */
  514. .highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
  515. .highlight .kt { color: #B00040 } /* Keyword.Type */
  516. .highlight .m { color: #666666 } /* Literal.Number */
  517. .highlight .s { color: #BA2121 } /* Literal.String */
  518. .highlight .na { color: #7D9029 } /* Name.Attribute */
  519. .highlight .nb { color: #008000 } /* Name.Builtin */
  520. .highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
  521. .highlight .no { color: #880000 } /* Name.Constant */
  522. .highlight .nd { color: #AA22FF } /* Name.Decorator */
  523. .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
  524. .highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
  525. .highlight .nf { color: #0000FF } /* Name.Function */
  526. .highlight .nl { color: #A0A000 } /* Name.Label */
  527. .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
  528. .highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
  529. .highlight .nv { color: #19177C } /* Name.Variable */
  530. .highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
  531. .highlight .w { color: #bbbbbb } /* Text.Whitespace */
  532. .highlight .mf { color: #666666 } /* Literal.Number.Float */
  533. .highlight .mh { color: #666666 } /* Literal.Number.Hex */
  534. .highlight .mi { color: #666666 } /* Literal.Number.Integer */
  535. .highlight .mo { color: #666666 } /* Literal.Number.Oct */
  536. .highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
  537. .highlight .sc { color: #BA2121 } /* Literal.String.Char */
  538. .highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
  539. .highlight .s2 { color: #BA2121 } /* Literal.String.Double */
  540. .highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
  541. .highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
  542. .highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
  543. .highlight .sx { color: #008000 } /* Literal.String.Other */
  544. .highlight .sr { color: #BB6688 } /* Literal.String.Regex */
  545. .highlight .s1 { color: #BA2121 } /* Literal.String.Single */
  546. .highlight .ss { color: #19177C } /* Literal.String.Symbol */
  547. .highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
  548. .highlight .vc { color: #19177C } /* Name.Variable.Class */
  549. .highlight .vg { color: #19177C } /* Name.Variable.Global */
  550. .highlight .vi { color: #19177C } /* Name.Variable.Instance */
  551. .highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
  552. .highlight pre { overflow: auto; }
  553. .highlight .lineno {
  554. -webkit-touch-callout: none;
  555. -webkit-user-select: none;
  556. -khtml-user-select: none;
  557. -moz-user-select: none;
  558. -ms-user-select: none;
  559. user-select: none;
  560. cursor: default;
  561. }
  562. .highlight .lineno::selection { background: transparent; } /* WebKit/Blink Browsers */
  563. .highlight .lineno::-moz-selection { background: transparent; } /* Gecko Browsers */