style.less 13 KB

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