logo

searx

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

search.less (4294B)


  1. /*
  2. * searx, A privacy-respecting, hackable metasearch engine
  3. */
  4. #search {
  5. padding: 0 2em;
  6. margin: 0;
  7. background: #f7f7f7;
  8. border-bottom: 1px solid #d7d7d7;
  9. }
  10. #search_wrapper {
  11. padding: 10px 0;
  12. }
  13. .search_box {
  14. margin: 0 12px 0 0;
  15. display: inline-flex;
  16. flex-direction: row;
  17. white-space: nowrap;
  18. /*
  19. &:has(q:focus) {
  20. box-shadow: 0px 0px 5px #CCC;
  21. }
  22. */
  23. }
  24. #clear_search {
  25. display: block;
  26. border-collapse: separate;
  27. box-sizing: border-box;
  28. width: 1.8em;
  29. margin: 0;
  30. padding: 2px;
  31. height: 2.2em;
  32. background: none repeat scroll 0 0 @color-search-background;
  33. border-top: 1px solid @color-search-border;
  34. border-bottom: 1px solid @color-search-border;
  35. border-right: none;
  36. border-left: none;
  37. border-radius: 0px;
  38. outline: none;
  39. color: @color-search-font;
  40. font-size: 16px;
  41. z-index: 10000;
  42. &:hover {
  43. color: @color-search-border;
  44. }
  45. &.empty * {
  46. display: none;
  47. }
  48. }
  49. #q::-ms-clear, #q::-webkit-search-cancel-button {
  50. display: none;
  51. }
  52. #q, #send_search {
  53. display: block !important;
  54. border-collapse: separate;
  55. box-sizing: border-box;
  56. margin: 0;
  57. padding: 2px;
  58. height: 2.2em;
  59. background: none repeat scroll 0 0 @color-search-background;
  60. border: 1px solid @color-search-border;
  61. border-radius: 0px;
  62. outline: none;
  63. color: @color-search-font;
  64. font-size: 16px;
  65. z-index: 2;
  66. }
  67. #q {
  68. outline: medium none;
  69. padding-left: 8px;
  70. padding-right: 0px !important;
  71. border-right: none;
  72. width: @search-width;
  73. }
  74. #send_search {
  75. border-left: none;
  76. width: 2.2em;
  77. &:hover {
  78. cursor: pointer;
  79. background-color: @color-search-border;
  80. color: @color-base-light;
  81. }
  82. }
  83. .no-js #send_search {
  84. width: auto !important;
  85. }
  86. .search_filters {
  87. display: inline-block;
  88. vertical-align: middle;
  89. }
  90. @media screen and (max-width: 75em) {
  91. #categories {
  92. font-size: 90%;
  93. clear: both;
  94. .checkbox_container {
  95. margin-top: 2px;
  96. margin: auto;
  97. }
  98. }
  99. html.touch {
  100. #main_index, #main_results {
  101. #categories_container {
  102. width: 1000px;
  103. width: -moz-max-content;
  104. width: -webkit-max-content;
  105. width: max-content;
  106. .category {
  107. display: inline-block;
  108. width: auto;
  109. }
  110. }
  111. #categories {
  112. width: 100%;
  113. margin: 0;
  114. text-align: left;
  115. overflow-x: scroll;
  116. overflow-y: hidden;
  117. -webkit-overflow-scrolling: touch;
  118. }
  119. }
  120. }
  121. }
  122. @media screen and (max-width: @results-width) {
  123. #search {
  124. width: 100%;
  125. margin: 0;
  126. padding: 0.1em 0 0 0;
  127. }
  128. #search_wrapper {
  129. width: 100%;
  130. margin: 0 0 0.7em 0;
  131. padding: 0;
  132. }
  133. .search_box {
  134. // hack, should bew 100% ?
  135. width: 99%;
  136. margin: 0.1em;
  137. padding: 0 0.1em 0 0;
  138. display: flex;
  139. flex-direction: row;
  140. }
  141. #q {
  142. width: auto !important;
  143. flex: 1;
  144. }
  145. .search_filters {
  146. display: block;
  147. margin: 0.5em;
  148. }
  149. .language, .time_range {
  150. width: 45%;
  151. }
  152. .category {
  153. display: block;
  154. width: 90%;
  155. label {
  156. border-bottom: 0;
  157. }
  158. }
  159. }
  160. #categories {
  161. margin: 0 10px 0 0;
  162. .disable-user-select;
  163. &::-webkit-scrollbar {
  164. width: 0;
  165. height: 0;
  166. }
  167. }
  168. .category {
  169. display: inline-block;
  170. position: relative;
  171. margin: 0 3px;
  172. padding: 0px;
  173. input {
  174. display: none;
  175. }
  176. label {
  177. cursor: pointer;
  178. padding: 4px 10px;
  179. margin: 0;
  180. display: block;
  181. text-transform: capitalize;
  182. font-size: 0.9em;
  183. border-bottom: 2px solid transparent;
  184. .disable-user-select;
  185. }
  186. input[type="checkbox"]:focus + label {
  187. box-shadow: 0px 0px 8px #3498DB;
  188. }
  189. /*label:hover {
  190. border-bottom: 2px solid @color-categories-item-border-unselected-hover;
  191. }*/
  192. input[type="checkbox"]:checked + label {
  193. background: @color-categories-item-selected;
  194. color: @color-categories-item-selected-font;
  195. border-bottom: 2px solid @color-categories-item-border-selected;
  196. }
  197. }
  198. #categories_container {
  199. position: relative;
  200. .help {
  201. position: absolute;
  202. width: 100%;
  203. bottom: -20px;
  204. overflow: hidden;
  205. opacity: 0;
  206. transition: opacity 1s ease;
  207. font-size: 0.8em;
  208. text-position: center;
  209. background: white;
  210. }
  211. &:hover .help {
  212. opacity: 0.8;
  213. transition: opacity 1s ease;
  214. }
  215. }