A semantic search engine for source code https://bitshift.benkurtovic.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

394 rivejä
9.0 KiB

  1. /*
  2. Stylesheet for `index.html`.
  3. */
  4. @import mixins
  5. @import variables
  6. $minSearchFieldsWidth: 490px
  7. $resultWidth: 830px
  8. $sidebarWidth: 30px
  9. $codeWidth: 500px
  10. $hiddenInfoWidth: 300px
  11. .ui-datepicker
  12. font-size: 70%
  13. .ui-autocomplete
  14. max-height: 30%
  15. overflow-x: hidden
  16. overflow-y: scroll
  17. padding: 0px
  18. >li.ui-menu-item a.ui-state-focus
  19. @include vendor(transition, background-color 0.3s ease-out)
  20. div#search-field
  21. @extend .t2
  22. bottom: 0
  23. height: 50%
  24. left: 0
  25. margin: auto
  26. margin-top: 15%
  27. max-height: 100px
  28. right: 0
  29. position: absolute
  30. top: 0
  31. width: 40%
  32. a#title
  33. text-decoration: none
  34. div#title
  35. font-size: 400%
  36. padding-bottom: 0.2em
  37. text-align: center
  38. #title-bit
  39. color: $baseColor1
  40. #title-angle
  41. color: $baseColor3
  42. #title-shift
  43. color: $baseColor2
  44. font-style: italic
  45. form#search-bar
  46. min-width: $minSearchFieldsWidth
  47. input[type="text"], button
  48. @extend .t3
  49. @include vendor(box-sizing, border-box)
  50. border: 1px solid $baseColor2
  51. font-size: 110%
  52. margin-bottom: 0px
  53. padding: 6px
  54. input[type="text"]
  55. width: 85%
  56. &:hover
  57. border-color: $baseColor1
  58. button#advanced-search
  59. background-color: white
  60. border: 1px solid white
  61. width: 15%
  62. height: 10%
  63. padding: 0px
  64. float: right
  65. &:hover
  66. img
  67. background-color: black
  68. cursor: pointer
  69. &.clicked
  70. img
  71. background-color: $baseColor1
  72. &:focus
  73. outline: 0
  74. img
  75. @extend .t3
  76. background-color: $baseColor2
  77. margin-top: 5px
  78. width: 26px
  79. height: 26px
  80. &.partly-visible
  81. margin-top: 0%
  82. padding-bottom: 3%
  83. position: absolute
  84. width: 100%
  85. #title
  86. position: absolute
  87. top: -1%
  88. left: 1%
  89. span
  90. font-size: 50%
  91. form#search-bar
  92. padding-top: 3%
  93. margin-left: auto
  94. margin-right: auto
  95. width: 60%
  96. div#advanced-search
  97. background-color: white
  98. border: 1px solid $baseColor3
  99. display: none
  100. font-size: 96%
  101. height: 400px
  102. min-width: $minSearchFieldsWidth
  103. padding-top: 0px
  104. overflow-x: auto
  105. overflow-y: hidden
  106. #heading
  107. color: $baseColor2
  108. display: block
  109. font-size: 120%
  110. padding-left: 1%
  111. padding-top: 1%
  112. width: 100%
  113. div
  114. display: inline-block
  115. font-size: 110%
  116. &#col1
  117. width: 25%
  118. &#col2
  119. width: 75%
  120. >div
  121. @include vendor(box-sizing, border-box)
  122. display: inline-block
  123. float: left
  124. #sidebar
  125. padding-left: 1%
  126. width: 25%
  127. >ul
  128. list-style: none
  129. padding-left: 0
  130. margin-bottom: 8%
  131. margin-top: 2%
  132. li
  133. margin-bottom: 2%
  134. label
  135. user-select: none
  136. div
  137. @extend .t3
  138. background-color: $lightGray
  139. border: none
  140. padding: 3%
  141. width: 85%
  142. &:hover, &.selectedInputField
  143. @extend .t3
  144. background-color: $baseColor2
  145. color: white
  146. cursor: pointer
  147. width: 90%
  148. input[type="checkbox"]
  149. display: none
  150. &:checked + label > div
  151. @extend .selectedInputField
  152. background-color: $baseColor1
  153. color: white
  154. width: 90%
  155. button#add-group
  156. background-color: $lightBlue
  157. border: none
  158. color: white
  159. display: block
  160. height: 40px
  161. margin-bottom: 2%
  162. overflow: hidden
  163. white-space: nowrap
  164. width: 40px
  165. span
  166. font-size: 150%
  167. font-weight: bold
  168. margin-left: 6px
  169. margin-right: 14px
  170. &:hover
  171. @extend .t3
  172. background-color: $blue
  173. cursor: pointer
  174. width: 90%
  175. button#remove-group
  176. @extend button#add-group
  177. background-color: #D82D48
  178. span
  179. padding-left: 3px
  180. &:hover
  181. @extend .t3
  182. background-color: #F11437
  183. #search-groups
  184. margin-top: 1%
  185. max-height: 93%
  186. overflow-y: auto
  187. width: 75%
  188. .search-group
  189. @include vendor(transition, all 0.6s ease-out)
  190. background-color: $lightGray
  191. padding: 1%
  192. margin-bottom: 2%
  193. width: 97%
  194. >div
  195. margin-bottom: 0.7%
  196. >div.name
  197. display: inline-block
  198. font-size: 90%
  199. width: 20%
  200. >input[type=text]
  201. display: inline-block
  202. padding: 2px
  203. width: 60%
  204. >input[type=checkbox]
  205. margin-left: 2%
  206. &:checked + span
  207. @extend .t2
  208. color: green
  209. font-weight: bold
  210. &:hover
  211. cursor: checkbox
  212. span.regex
  213. font-size: 80%
  214. &#selected
  215. background-color: #CACACA
  216. div#results
  217. margin: 3% auto 0 auto
  218. margin-left: auto
  219. margin-right: auto
  220. width: 80%
  221. /* TODO:
  222. 1) Sidebar
  223. - Add way to cycle through hits in the code.
  224. 2) Hidden info
  225. - Use effect to make it transition into view.
  226. - Add date modified.
  227. - Get rid of symbols matches.
  228. - Don't use monospace.
  229. - Add links for authors.
  230. - Cross out search terms based on what's in the codelet.
  231. 3) Header
  232. - Remove date modified.
  233. - Make the title bigger.
  234. - Add an icon for the website.
  235. - Change the spacing.
  236. 4) Code body
  237. - Add highlighting.*/
  238. div.result
  239. width: $resultWidth
  240. height: 200px
  241. margin-top: 2%
  242. margin-bottom: 6%
  243. #display-info
  244. a
  245. text-decoration: none
  246. &:hover
  247. color: orange
  248. #title
  249. margin-right: 50px
  250. #site
  251. text-transform: capitalize
  252. #date-modified
  253. font-style: italic
  254. color: #777
  255. display: block
  256. table
  257. border-collapse: collapse
  258. border: 1px solid #ccc
  259. height: inherit
  260. tr
  261. height: inherit
  262. td
  263. overflow: scroll
  264. #sidebar
  265. width: $sidebarWidth
  266. background-color: #eee
  267. border-right: 1px solid #ccc
  268. height: inherit
  269. #code
  270. width: $codeWidth
  271. height: inherit
  272. border-right: 1px solid #ccc
  273. #tablecontainer
  274. overflow: scroll
  275. width: 100%
  276. height: inherit
  277. background-color: #49483e
  278. table
  279. table-layout:fixed
  280. border-collapse: collapse
  281. border: none
  282. font-family: monospace
  283. #hidden-info
  284. width: $hiddenInfoWidth
  285. text-align: center
  286. font-size: 1.2em
  287. font-family: monospace
  288. #date-created
  289. display: block
  290. #language
  291. display: inline-block
  292. padding: 3px
  293. @include vendor(border-radius, 3px)
  294. background-color: #eee
  295. font-weight: bold
  296. color: purple
  297. &:hover
  298. background-color: #ddd
  299. #matches
  300. span
  301. color: red
  302. #authors
  303. span
  304. color: red
  305. &.cascade
  306. @extend .t3