style.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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 { margin: 0 20px; }
  25. .top_margin { margin-top: 60px; }
  26. .center { text-align: center; }
  27. h1 { font-size: 5em; }
  28. div.title { background: url('/static/img/searx.png') no-repeat; width: 100%; background-position: center; }
  29. div.title h1 { visibility: hidden; }
  30. input[type="submit"] { border: 1px solid #666666; color: #444444; padding: 4px; background-color: #FFFFFF; margin-left: 8px; }
  31. input[type="checkbox"] { visibility: hidden; }
  32. #categories { margin: 0 10px; }
  33. .checkbox_container { display: inline-block; position: relative; margin: 0 3px; padding: 0px; }
  34. .checkbox_container input {
  35. display: none;
  36. }
  37. .checkbox_container label {
  38. cursor: pointer;
  39. padding: 4px 10px;
  40. margin: 0;
  41. display: block;
  42. text-transform: capitalize;
  43. -webkit-touch-callout: none;
  44. -webkit-user-select: none;
  45. -khtml-user-select: none;
  46. -moz-user-select: none;
  47. -ms-user-select: none;
  48. user-select: none;
  49. }
  50. .checkbox_container input[type="checkbox"]:checked + label {
  51. background: #b8c1d9;
  52. }
  53. .search .checkbox_container label {
  54. border-bottom: 4px solid #e8e7e6;
  55. }
  56. .search .checkbox_container input[type="checkbox"]:checked + label {
  57. border-bottom: 4px solid #8098d9;
  58. }
  59. a { text-decoration: none; }
  60. .result { margin-bottom: 16px; clear: both; }
  61. .result_title { margin-bottom: 0; }
  62. .result p { margin-top: 0; padding-top: 0; font-size: 0.8em; max-width: 54em; word-wrap:break-word; }
  63. .result h3 { font-size: 0.9em; word-wrap:break-word; }
  64. .result { max-width: 70em; }
  65. .url { font-weight: bold; word-wrap:break-word; }
  66. .q { width: 30em; }
  67. .engines { color: #888888; }
  68. .small_font { font-size: 0.8em; }
  69. .small p { margin: 2px 0; }
  70. .search { background: #e8e7e6; padding: 0; margin: 0 }
  71. .right { float: right; }
  72. .invisible { display: none; }
  73. .left { float: left; }
  74. .image_result { float: left; margin: 10px 10px; position: relative; height: 160px;}
  75. .image_result img { border: 0; height: 160px;}
  76. .image_result p { margin: 0; padding: 0; }
  77. .image_result p span a { display: none; }
  78. .image_result p span a { color: #FFFFFF; }
  79. .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; }
  80. .percentage { position: relative; width: 300px; }
  81. .percentage div { background: #444444; }
  82. td { padding: 0 4px; }
  83. tr:hover td { background: #DDDDDD; }
  84. #search_wrapper { position: relative; max-width: 600px; padding: 10px; }
  85. .center #search_wrapper { margin-left: auto; margin-right: auto; }
  86. .q {
  87. background: none repeat scroll 0 0 #FFFFFF;
  88. border: 1px solid #8D8D8D;
  89. border-radius: 3px;
  90. box-shadow: 1px 1px 2px #999999 inset;
  91. color: #222222;
  92. font-size: 16px;
  93. height: 28px;
  94. margin: 0;
  95. outline: medium none;
  96. padding: 4px;
  97. padding-left: 8px;
  98. padding-right: 0px !important;
  99. width: 100%;
  100. z-index: 2;
  101. }
  102. #search_submit {
  103. position: absolute;
  104. top: 15px;
  105. right: 4px;
  106. padding: 0;
  107. border: 0;
  108. background: url('/static/img/search-icon.png') no-repeat;
  109. background-size: 28px 28px;
  110. opacity: 0.8;
  111. width: 28px;
  112. height: 30px;
  113. }
  114. #results { margin-left: 10px; margin-top: 10px; margin-right: 10px; }
  115. #suggestions { max-width: 50em;}
  116. #suggestions form { display: inline; }
  117. #suggestions input { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #E4E4E4; border-radius: 4px; border: 0; cursor: pointer; }
  118. #preferences {
  119. top: 10px;
  120. padding: 0;
  121. border: 0;
  122. background: url('/static/img/preference-icon.png') no-repeat;
  123. background-size: 28px 28px;
  124. opacity: 0.8;
  125. width: 28px;
  126. height: 30px;
  127. display: block;
  128. }
  129. #preferences * {
  130. display: none;
  131. }
  132. #apis {
  133. clear: both;
  134. }
  135. @media screen and (max-width: 680px) {
  136. #search_wrapper { width: 90%; clear:both; }
  137. .right { display: none; postion: fixed !important; top: 100px; right: 0px; }
  138. #categories { font-size: 80% }
  139. #categories .checkbox_container { margin-top: 2px; margin: 0 2px; }
  140. .result img { max-width: 90%; width: auto; height: auto }
  141. }