style.less 6.3 KB

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