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.
 
 
 
 
 
 

211 lines
4.9 KiB

  1. /*
  2. Stylesheet for index.html.
  3. */
  4. @import mixins
  5. @import variables
  6. $resultWidth: 830px
  7. $sidebarWidth: 30px
  8. $codeWidth: 500px
  9. $hiddenInfoWidth: 300px
  10. div#search-field
  11. @extend .t2
  12. bottom: 0
  13. height: 50%
  14. left: 0
  15. margin: auto
  16. margin-top: 15%
  17. max-height: 100px
  18. position: absolute
  19. right: 0
  20. top: 0
  21. width: 34%
  22. #title
  23. font-size: 4em
  24. padding-bottom: 0.5em
  25. text-align: center
  26. #title-bit
  27. color: $baseColor1
  28. #title-angle
  29. color: $baseColor3
  30. #title-shift
  31. color: $baseColor2
  32. font-style: italic
  33. form#search-bar
  34. input[type="text"]
  35. @include vendor(box-sizing, border-box)
  36. border: 1px solid $baseColor1
  37. font-size: 1.1em
  38. margin-bottom: 0px
  39. padding: 6px
  40. width: 100%
  41. div#advanced-search
  42. display: none
  43. background-color: white
  44. border: 1px solid $baseColor2
  45. margin: 0px
  46. overflow: auto
  47. >div
  48. @include vendor(box-sizing, border-box)
  49. float: left
  50. height: 100%
  51. >#col1
  52. width: 10%
  53. >#col2
  54. width: 84%
  55. ul
  56. list-style: none
  57. li
  58. margin-bottom: 0.5em
  59. label
  60. display: block
  61. font-size: 1.1em
  62. input[type="text"]
  63. border-color: $baseColor3
  64. font-size: 1em
  65. padding: 2px
  66. width: 100%
  67. #upper-half
  68. >div
  69. float: left
  70. width: 50%
  71. &.partly-visible
  72. height: 1%
  73. margin-top: 3%
  74. width: 60%
  75. #title
  76. display: none
  77. div#results
  78. margin-left: auto
  79. margin-right: auto
  80. width: 80%
  81. /* TODO:
  82. 1) Sidebar
  83. - Add way to cycle through hits in the code.
  84. 2) Hidden info
  85. - Use effect to make it transition into view.
  86. - Add date modified.
  87. - Get rid of symbols matches.
  88. - Don't use monospace.
  89. - Add links for authors.
  90. - Cross out search terms based on what's in the codelet.
  91. 3) Header
  92. - Remove date modified.
  93. - Make the title bigger.
  94. - Add an icon for the website.
  95. - Change the spacing.
  96. 4) Code body
  97. - Add highlighting.*/
  98. div.result
  99. width: $resultWidth
  100. height: 200px
  101. margin-top: 2%
  102. margin-bottom: 6%
  103. #display-info
  104. a
  105. text-decoration: none
  106. &:hover
  107. color: orange
  108. #title
  109. margin-right: 50px
  110. #site
  111. text-transform: capitalize
  112. #date-modified
  113. font-style: italic
  114. color: #777
  115. display: block
  116. table
  117. border-collapse: collapse
  118. border: 1px solid #ccc
  119. height: inherit
  120. tr
  121. height: inherit
  122. td
  123. overflow: scroll
  124. #sidebar
  125. width: $sidebarWidth
  126. background-color: #eee
  127. border-right: 1px solid #ccc
  128. height: inherit
  129. #code
  130. width: $codeWidth
  131. height: inherit
  132. border-right: 1px solid #ccc
  133. #tablecontainer
  134. overflow: scroll
  135. width: 100%
  136. height: inherit
  137. background-color: #49483e
  138. table
  139. table-layout:fixed
  140. border-collapse: collapse
  141. border: none
  142. font-family: monospace
  143. #hidden-info
  144. width: $hiddenInfoWidth
  145. text-align: center
  146. font-size: 1.2em
  147. font-family: monospace
  148. #date-created
  149. display: block
  150. #language
  151. display: inline-block
  152. padding: 3px
  153. @include vendor(border-radius, 3px)
  154. background-color: #eee
  155. font-weight: bold
  156. color: purple
  157. &:hover
  158. background-color: #ddd
  159. #matches
  160. span
  161. color: red
  162. #authors
  163. span
  164. color: red
  165. &.cascade
  166. @extend .t3