A semantic search engine for source code https://bitshift.benkurtovic.com/
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

196 rindas
4.4 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) On the side
  83. - add way to cycle through hits in the code.*/
  84. div.result
  85. width: $resultWidth
  86. height: 200px
  87. margin-top: 2%
  88. margin-bottom: 6%
  89. #display-info
  90. a
  91. text-decoration: none
  92. &:hover
  93. color: orange
  94. #title
  95. margin-right: 50px
  96. #site
  97. text-transform: capitalize
  98. #date-modified
  99. font-family: monospace
  100. color: #333
  101. display: block
  102. table
  103. border-collapse: collapse
  104. border: 1px solid #ccc
  105. height: inherit
  106. tr
  107. height: inherit
  108. td
  109. overflow: scroll
  110. #sidebar
  111. width: $sidebarWidth
  112. background-color: #eee
  113. border-right: 1px solid #ccc
  114. height: inherit
  115. #code
  116. width: $codeWidth
  117. height: inherit
  118. border-right: 1px solid #ccc
  119. #tablecontainer
  120. overflow: scroll
  121. width: 100%
  122. height: inherit
  123. background-color: #49483e
  124. table
  125. table-layout:fixed
  126. border-collapse: collapse
  127. border: none
  128. font-family: monospace
  129. #hidden-info
  130. width: $hiddenInfoWidth
  131. text-align: center
  132. font-size: 1.2em
  133. #date-created
  134. display: block
  135. #language
  136. display: inline-block
  137. padding: 3px
  138. @include vendor(border-radius, 3px)
  139. background-color: #eee
  140. font-weight: bold
  141. color: purple
  142. &:hover
  143. background-color: #ddd
  144. #matches
  145. span
  146. color: red
  147. #authors
  148. span
  149. color: red
  150. &.cascade
  151. @extend .t3