logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

style.less (10439B)


  1. /*
  2. * searx, A privacy-respecting, hackable metasearch engine
  3. *
  4. * To convert "style.less" to "style.css" run: $make styles
  5. */
  6. @import "normalize.less";
  7. @import "definitions.less";
  8. @import "mixins.less";
  9. @import "code.less";
  10. @import "toolkit.less";
  11. @import "autocomplete.less";
  12. // ion-icon
  13. @import "ion.less";
  14. .ion-icon-big {
  15. .ion-icon;
  16. font-size: 149%;
  17. }
  18. // for index.html template
  19. @import "index.less";
  20. // for preferences.html template
  21. @import "preferences.less";
  22. // Search-Field
  23. @import "search.less";
  24. // Main LESS-Code
  25. html {
  26. font-family: arial, sans-serif;
  27. font-size: 0.9em;
  28. .text-size-adjust;
  29. color: @color-font;
  30. padding: 0;
  31. margin: 0;
  32. }
  33. body, main {
  34. padding: 0;
  35. margin: 0;
  36. }
  37. main {
  38. width: 100%;
  39. // position: absolute;
  40. }
  41. footer {
  42. // position:absolute;
  43. bottom:0;
  44. width:100%;
  45. height:50px;
  46. }
  47. #main_preferences, #main_about, #main_stats {
  48. margin: 3em;
  49. width: auto;
  50. }
  51. footer {
  52. bottom: 0;
  53. height: 3em;
  54. margin: 1em 0;
  55. padding: 1em 0;
  56. clear: both;
  57. width: 100%;
  58. text-align: center;
  59. p {
  60. font-size: 0.9em;
  61. }
  62. }
  63. #main_preferences h1, #main_stats h1 {
  64. background: url('../img/searx.png') no-repeat;
  65. background-size: auto 75%;
  66. min-height: 40px;
  67. margin: 0 auto;
  68. span {
  69. visibility: hidden;
  70. }
  71. }
  72. input[type="submit"], #results button[type="submit"] {
  73. padding: 0.5rem;
  74. margin: 2px 4px;
  75. display: inline-block;
  76. background: @color-download-button-background;
  77. color: @color-download-button-font;
  78. .rounded-corners;
  79. border: 0;
  80. cursor: pointer;
  81. }
  82. a {
  83. text-decoration: none;
  84. color: @color-url-font;
  85. &:visited {
  86. color: @color-url-visited-font;
  87. .highlight {
  88. color: @color-url-visited-font;
  89. }
  90. }
  91. }
  92. article[data-vim-selected] {
  93. background: #f7f7f7;
  94. }
  95. article[data-vim-selected]::before {
  96. position: absolute;
  97. left: 1em;
  98. padding: 2px;
  99. content: ">";
  100. font-weight: bold;
  101. color: @color-base;
  102. }
  103. article.result-images[data-vim-selected] {
  104. background: @color-base;
  105. }
  106. article.result-images[data-vim-selected]::before {
  107. display: none;
  108. content: "";
  109. }
  110. .result {
  111. margin: 19px 0 18px 0;
  112. padding: 0;
  113. h3 {
  114. font-size: 1.1em;
  115. word-wrap:break-word;
  116. margin: 5px 0 1px 0;
  117. padding: 0;
  118. margin-bottom: 0;
  119. a {
  120. color: @color-result-link-font;
  121. font-weight: normal;
  122. font-size: 1.1em;
  123. &:visited {
  124. color: @color-result-link-visited-font;
  125. }
  126. &:focus, &:hover {
  127. text-decoration: underline;
  128. border: none;
  129. -webkit-box-shadow: none;
  130. box-shadow: none;
  131. outline:none;
  132. }
  133. }
  134. }
  135. .cache_link, .proxyfied_link {
  136. font-size: 0.9em !important;
  137. }
  138. .content, .stat, .altlink {
  139. font-size: 0.9em;
  140. margin: 0;
  141. padding: 0;
  142. max-width: 54em;
  143. word-wrap:break-word;
  144. line-height: 1.24;
  145. .highlight {
  146. color: @color-black;
  147. background: inherit;
  148. font-weight: bold;
  149. }
  150. }
  151. .codelines {
  152. .highlight {
  153. color: inherit;
  154. background: inherit;
  155. font-weight: normal;
  156. }
  157. }
  158. .url {
  159. font-size: 0.9em;
  160. margin: 0 0 3px 0;
  161. padding: 0;
  162. max-width: 54em;
  163. word-wrap:break-word;
  164. color: @color-result-url-font;
  165. }
  166. .published_date {
  167. font-size: 0.8em;
  168. color: @color-result-publishdate-font;
  169. }
  170. img {
  171. &.thumbnail {
  172. float: left;
  173. padding: 0 5px 10px 0;
  174. width: 20em;
  175. min-width: 20em;
  176. min-height: 8em;
  177. // background: @color-base-light;
  178. }
  179. &.image {
  180. float: left;
  181. padding: 0 5px 10px 0;
  182. width: 100px;
  183. max-height: 100px;
  184. object-fit: scale-down;
  185. object-position: right top;
  186. }
  187. }
  188. .break {
  189. clear: both;
  190. }
  191. }
  192. .category-social .image {
  193. width: auto !important;
  194. min-width: 48px;
  195. min-height: 48px;
  196. padding: 0 5px 25px 0 !important;
  197. }
  198. .result-videos .content {
  199. overflow: hidden;
  200. }
  201. .engines {
  202. float: right;
  203. color: @color-engines-font;
  204. span {
  205. font-size: smaller;
  206. margin: 0 0.5em 0 0;
  207. }
  208. }
  209. .small_font {
  210. font-size: 0.8em;
  211. }
  212. .highlight {
  213. color: @color-highlight;
  214. background: inherit;
  215. font-weight: bold;
  216. }
  217. .result-images {
  218. display: inline-block;
  219. margin: 0;
  220. padding: 0;
  221. position: relative;
  222. max-height: 200px;
  223. img {
  224. float: inherit;
  225. margin: 0;
  226. padding: 0;
  227. border: none;
  228. max-height: 200px;
  229. background: @color-base-dark;
  230. }
  231. span a {
  232. display: none;
  233. color: @color-result-image-span-font;
  234. }
  235. &:hover span a {
  236. display: block;
  237. position: absolute;
  238. bottom: 0;
  239. right: 0;
  240. padding: 4px;
  241. margin: 0 0 4px 4px;
  242. background-color: @color-result-image-span-background-hover;
  243. font-size: 0.7em;
  244. }
  245. }
  246. .torrent_result {
  247. border-left: 10px solid @color-result-torrent-border;
  248. padding-left: 3px;
  249. p {
  250. margin: 3px;
  251. font-size: 0.8em;
  252. }
  253. a {
  254. color: @color-result-link-font;
  255. &:hover {
  256. text-decoration: underline;
  257. }
  258. &:visited {
  259. color: @color-result-link-visited-font;
  260. }
  261. }
  262. }
  263. #results {
  264. margin: 2em 2em 20px 2em;
  265. padding: 0;
  266. width: @results-width;
  267. }
  268. #suggestions {
  269. .wrapper {
  270. display: flex;
  271. flex-flow: row wrap;
  272. justify-content: flex-end;
  273. form {
  274. display: inline-block;
  275. flex: 1 1 50%;
  276. }
  277. }
  278. }
  279. #suggestions, #answers, #corrections {
  280. max-width: @results-width;
  281. }
  282. #suggestions, #answers, #infoboxes, #corrections {
  283. input {
  284. padding: 0;
  285. margin: 3px;
  286. font-size: 0.9em;
  287. display: inline-block;
  288. background: transparent;
  289. color: @color-result-search-url-font;
  290. cursor: pointer;
  291. }
  292. input[type="submit"], .infobox .url a {
  293. color: @color-result-link-font;
  294. text-decoration: none;
  295. font-size: 0.9rem;
  296. &:hover {
  297. text-decoration: underline;
  298. }
  299. }
  300. }
  301. #corrections {
  302. display: flex;
  303. flex-flow: row wrap;
  304. margin: 1em 0;
  305. h4, input[type="submit"] {
  306. display: inline-block;
  307. margin: 0 0.5em 0 0;
  308. }
  309. input[type="submit"]::after {
  310. content: ", "
  311. }
  312. }
  313. #suggestions .title, #search_url .title, #apis .title {
  314. margin: 2em 0 0.5em 0;
  315. color: @color-font;
  316. }
  317. #answers {
  318. margin: 10px 8px 10px 8px;
  319. border: 1px solid #ddd;
  320. padding: 0.9em;
  321. box-shadow: 0px 0px 5px #CCC;
  322. h4 {
  323. display: none;
  324. }
  325. .answer {
  326. display: block;
  327. font-size: 1.2em;
  328. font-weight: bold;
  329. }
  330. }
  331. #answers, #infoboxes {
  332. form {
  333. min-width: 210px;
  334. }
  335. }
  336. #sidebar {
  337. position: absolute;
  338. top: 100px;
  339. left: 57em;
  340. margin: 0px 2px 5px 5px;
  341. padding: 0px 2px 2px;
  342. max-width: 25em;
  343. word-wrap: break-word;
  344. .infobox {
  345. margin: 10px 0 10px;
  346. border: 1px solid #ddd;
  347. padding: 0.9em;
  348. font-size: 0.9em;
  349. box-shadow: 0px 0px 5px #CCC;
  350. h2 {
  351. margin: 0 0 .5em 0;
  352. }
  353. img {
  354. max-width: 100%;
  355. max-height: 12em;
  356. display: block;
  357. margin: 0;
  358. padding: 0;
  359. }
  360. dl {
  361. margin: 0.5em 0;
  362. }
  363. dt {
  364. display: inline;
  365. margin: 0.5em 0.25em 0.5em 0;
  366. padding: 0;
  367. font-weight: bold;
  368. }
  369. dd {
  370. display: inline;
  371. margin: 0.5em 0;
  372. padding: 0;
  373. }
  374. input {
  375. font-size: 1em;
  376. }
  377. br {
  378. clear: both;
  379. }
  380. .attributes, .urls {
  381. clear: both;
  382. }
  383. }
  384. }
  385. #search_url {
  386. margin-top: 8px;
  387. div.selectable_url {
  388. pre {
  389. width: 200em;
  390. }
  391. }
  392. }
  393. #linkto_preferences {
  394. position: absolute;
  395. right: 10px;
  396. top: 0.9em;
  397. padding: 0;
  398. border: 0;
  399. display: block;
  400. font-size: 1.2em;
  401. color: @color-search-font;
  402. a:link *, a:hover *, a:visited *, a:active * {
  403. color: @color-search-font;
  404. }
  405. }
  406. #pagination {
  407. clear: both;
  408. br {
  409. clear: both;
  410. }
  411. }
  412. #apis {
  413. margin-top: 8px;
  414. clear: both;
  415. }
  416. #backToTop {
  417. border: 1px solid #ddd;
  418. margin: 0 0 0 2em;
  419. padding: 0;
  420. font-size: 1em;
  421. box-shadow: 0px 0px 5px #CCC;
  422. background: white;
  423. position: fixed;
  424. bottom: 85px;
  425. left: @results-width;
  426. transition: opacity 0.5s;
  427. opacity: 0;
  428. a {
  429. display: block;
  430. margin: 0;
  431. padding: 0.6em;
  432. }
  433. }
  434. @media screen and (max-width: 75em) {
  435. #main_preferences, #main_about, #main_stats {
  436. margin: 0.5em;
  437. width: auto;
  438. }
  439. #suggestions, #answers {
  440. margin-top: 1em;
  441. }
  442. #infoboxes {
  443. position: inherit;
  444. max-width: inherit;
  445. .infobox {
  446. clear:both;
  447. img {
  448. float: left;
  449. max-width: 10em;
  450. margin: 0.5em 0.5em 0.5em 0;
  451. }
  452. }
  453. }
  454. #sidebar {
  455. position: static;
  456. max-width: @results-width;
  457. margin: 0 0 2px 0;
  458. padding: 0;
  459. float: none;
  460. border: none;
  461. width: auto;
  462. input {
  463. border: 0;
  464. }
  465. }
  466. #apis {
  467. display: none;
  468. }
  469. #search_url {
  470. display: none;
  471. }
  472. .result {
  473. border-bottom: 1px solid @color-result-top-border;
  474. margin: 0;
  475. padding-top: 8px;
  476. padding-bottom: 6px;
  477. h3 {
  478. margin: 0 0 1px 0;
  479. }
  480. .thumbnail {
  481. max-width: 98%;
  482. }
  483. .url {
  484. span.url {
  485. display: block;
  486. white-space: nowrap;
  487. text-overflow: ellipsis;
  488. overflow: hidden;
  489. width: 100%;
  490. }
  491. a {
  492. float: right;
  493. padding: 0 0.5em;
  494. }
  495. }
  496. .engines {
  497. float: right;
  498. padding: 0 0 3px 0;
  499. }
  500. }
  501. .result-images {
  502. border-bottom: none !important;
  503. }
  504. .image_result {
  505. max-width: 98%;
  506. img {
  507. max-width: 98%;
  508. }
  509. }
  510. }
  511. #main_results div#results.only_template_images {
  512. flex-direction: column;
  513. width: auto;
  514. display: flex;
  515. #sidebar {
  516. position: relative;
  517. top: auto;
  518. order: 2;
  519. }
  520. #urls {
  521. position: relative;
  522. order: 1;
  523. }
  524. #backToTop {
  525. right: 0.5em;
  526. left: auto;
  527. }
  528. #pagination {
  529. position: relative;
  530. order: 3;
  531. }
  532. }
  533. @media screen and (max-width: @results-width) {
  534. article[data-vim-selected]::before {
  535. display: none;
  536. content: "";
  537. }
  538. #linkto_preferences {
  539. display: none;
  540. postion: fixed !important;
  541. top: 100px;
  542. right: 0px;
  543. }
  544. #sidebar {
  545. margin: 0 5px 2px 5px;
  546. }
  547. #corrections {
  548. margin: 1em 5px 1em 5px;
  549. }
  550. #results {
  551. margin: 0;
  552. padding: 0;
  553. width: initial;
  554. }
  555. #backToTop {
  556. left: 40em;
  557. bottom: 35px;
  558. }
  559. .result {
  560. padding: 8px 10px 6px 10px;
  561. }
  562. .result-images {
  563. margin: 0;
  564. padding: 0;
  565. border: none;
  566. }
  567. }
  568. @media screen and (max-width: 35em) {
  569. .result-videos {
  570. img.thumbnail {
  571. float: none !important;
  572. }
  573. .content {
  574. overflow: inherit;
  575. }
  576. }
  577. }