style.css 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. html {
  2. font-family: sans-serif;
  3. font-size: 0.9em;
  4. -webkit-text-size-adjust: 100%;
  5. -ms-text-size-adjust: 100%;
  6. -moz-text-size-adjust: 100%;
  7. color: #444444;
  8. padding: 0;
  9. margin: 0;
  10. }
  11. body, #container {
  12. padding: 0;
  13. margin: 0;
  14. }
  15. #container {
  16. width: 100%;
  17. position: absolute;
  18. top: 0;
  19. }
  20. .row { max-width: 800px; margin: auto; text-align: justify; }
  21. .row h1 { font-size: 3em; margin-top: 50px; }
  22. .row p { padding: 0 10px; max-width: 700px; }
  23. .row h3,ul { margin: 4px 8px;}
  24. .hmarg {
  25. margin: 0 20px;
  26. border: 1px solid #3498DB;
  27. padding: 4px 10px;
  28. }
  29. a:link.hmarg { color: #3498DB; }
  30. a:visited.hmarg { color: #3498DB; }
  31. a:active.hmarg { color: #3498DB; }
  32. a:hover.hmarg { color: #3498DB; }
  33. .top_margin { margin-top: 60px; }
  34. .center { text-align: center; }
  35. h1 { font-size: 5em; }
  36. div.title { background: url('/static/img/searx.png') no-repeat; width: 100%; background-position: center; }
  37. div.title h1 { visibility: hidden; }
  38. input[type="submit"] { padding: 2px 6px; margin: 2px 4px; display: inline-block; background: #3498DB; color: #FFFFFF; border-radius: 4px; border: 0; cursor: pointer; }
  39. input[type="checkbox"] { visibility: hidden; }
  40. fieldset { margin: 8px; border: 1px solid #3498DB; }
  41. #categories { margin: 0 10px; }
  42. .checkbox_container { display: inline-block; position: relative; margin: 0 3px; padding: 0px; }
  43. .checkbox_container input {
  44. display: none;
  45. }
  46. .checkbox_container label, .engine_checkbox label {
  47. cursor: pointer;
  48. padding: 4px 10px;
  49. margin: 0;
  50. display: block;
  51. text-transform: capitalize;
  52. -webkit-touch-callout: none;
  53. -webkit-user-select: none;
  54. -khtml-user-select: none;
  55. -moz-user-select: none;
  56. -ms-user-select: none;
  57. user-select: none;
  58. }
  59. .checkbox_container input[type="checkbox"]:checked + label { background: #3498DB; color: #FFFFFF; }
  60. .search .checkbox_container label { border-bottom: 4px solid #e8e7e6; }
  61. .search .checkbox_container label:hover { border-bottom: 4px solid #3498DB; }
  62. .search .checkbox_container input[type="checkbox"]:checked + label { border-bottom: 4px solid #2980B9; }
  63. .engine_checkbox { padding: 4px; }
  64. label.allow { background: #E74C3C; color: #FFFFFF; padding: 4px 8px; display: none; }
  65. label.deny { background: #2ECC71; padding: 4px 8px; display: inline; }
  66. .engine_checkbox input[type="checkbox"]:checked + label:nth-child(2) + label { display: none; }
  67. .engine_checkbox input[type="checkbox"]:checked + label.allow { display: inline; }
  68. a { text-decoration: none; color: #1a11be; }
  69. a:visited { color: #7b11be; }
  70. .result { margin: 19px 0 18px 0; padding: 0; max-width: 55em; clear: both; }
  71. .result_title { margin-bottom: 0; }
  72. .result h3 { font-size: 1em; word-wrap:break-word; margin: 5px 0 1px 0; padding: 0 }
  73. .result .content { font-size: 0.8em; margin: 0; padding: 0; max-width: 54em; word-wrap:break-word; line-height: 1.24; }
  74. .result .url { font-size: 0.8em; margin: 3px 0 0 0; padding: 0; max-width: 54em; word-wrap:break-word; color: #2e1c0b; }
  75. .q { width: 30em; }
  76. .engines { color: #888888; }
  77. .small_font { font-size: 0.8em; }
  78. .small p { margin: 2px 0; }
  79. .search { background: #ECF0F1; padding: 0; margin: 0 }
  80. .right { float: right; }
  81. .invisible { display: none; }
  82. .left { float: left; }
  83. .image_result { float: left; margin: 10px 10px; position: relative; height: 160px;}
  84. .image_result img { border: 0; height: 160px;}
  85. .image_result p { margin: 0; padding: 0; }
  86. .image_result p span a { display: none; }
  87. .image_result p span a { color: #FFFFFF; }
  88. .image_result p:hover span a { display: block; position: absolute; bottom: 0; right: 0; padding: 4px; background-color: rgba(0, 0, 0, 0.6); font-size: 0.7em; }
  89. .torrent_result { border-left: 10px solid lightgray; padding-left: 3px; }
  90. .torrent_result p { margin: 3px; font-size: 0.8em; }
  91. .definition_result { border-left: 10px solid gray; padding-left: 3px; }
  92. .percentage { position: relative; width: 300px; }
  93. .percentage div { background: #444444; }
  94. table { width: 100%; }
  95. td { padding: 0 4px; }
  96. tr:hover { background: #DDDDDD; }
  97. #search_wrapper { position: relative; max-width: 600px; padding: 10px; }
  98. .center #search_wrapper { margin-left: auto; margin-right: auto; }
  99. .q {
  100. background: none repeat scroll 0 0 #FFFFFF;
  101. border: 1px solid #3498DB;
  102. color: #222222;
  103. font-size: 16px;
  104. height: 28px;
  105. margin: 0;
  106. outline: medium none;
  107. padding: 2px;
  108. padding-left: 8px;
  109. padding-right: 0px !important;
  110. width: 100%;
  111. z-index: 2;
  112. }
  113. #search_submit {
  114. position: absolute;
  115. top: 13px;
  116. right: 1px;
  117. padding: 0;
  118. border: 0;
  119. background: url('/static/img/search-icon.png') no-repeat;
  120. background-size: 24px 24px;
  121. opacity: 0.8;
  122. width: 24px;
  123. height: 30px;
  124. font-size: 0;
  125. }
  126. #results { margin: 10px; padding: 0; margin-bottom: 20px; }
  127. #sidebar { position: absolute; left: 54em; width: 12em; margin: 0 2px 5px 5px; padding: 0 2px 2px 2px; }
  128. #suggestions span { display: block; margin: 0 2px 2px 2px; padding: 0; }
  129. #suggestions form { display: block; }
  130. #suggestions input { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #3498DB; color: #FFFFFF; border-radius: 4px; border: 0; cursor: pointer; }
  131. #preferences {
  132. top: 10px;
  133. padding: 0;
  134. border: 0;
  135. background: url('/static/img/preference-icon.png') no-repeat;
  136. background-size: 28px 28px;
  137. opacity: 0.8;
  138. width: 28px;
  139. height: 30px;
  140. display: block;
  141. }
  142. #preferences * {
  143. display: none;
  144. }
  145. #pagination {
  146. clear: both;
  147. }
  148. #apis {
  149. margin-top: 8px;
  150. clear: both;
  151. }
  152. @media screen and (max-width: 60em) {
  153. #sidebar { position: static; max-width: 50em; margin: 0 0 2px 0; padding: 0; float: none; border: none; width: auto }
  154. #suggestions span { display: inline; font-size: 0.8em }
  155. #suggestions form { display: inline; }
  156. #suggestions input { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; border-radius: 4px; border: 0; cursor: pointer; }
  157. }
  158. @media screen and (max-width: 680px) {
  159. #search_wrapper { width: 90%; clear:both; overflow: hidden }
  160. .right { display: none; postion: fixed !important; top: 100px; right: 0px; }
  161. #apis { display: none; }
  162. #categories { font-size: 80%; clear: both; }
  163. #categories .checkbox_container { margin-top: 2px; margin: 0 2px; }
  164. .checkbox_container { display: block; width: 100%; float: left; }
  165. .checkbox_container label { border-bottom: 0; }
  166. .result { border-top: 1px solid #e8e7e6; margin: 7px 0 6px 0; }
  167. .result img { max-width: 90%; width: auto; height: auto }
  168. }
  169. .favicon { float: left; margin-right: 4px; }