style.less 13 KB

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