style.less 13 KB

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