_search.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @import "./page_list";
  2. .search-listpage-icon {
  3. font-size: 16px;
  4. color: #999;
  5. }
  6. .search-listpage-clear {
  7. z-index: 3;
  8. display: none;
  9. position: absolute;
  10. right: 8px;
  11. z-index: 10;
  12. font-size: 0.6em;
  13. width: 22px;
  14. height: 22px;
  15. color: #ccc;
  16. padding: 8px;
  17. }
  18. .search-input-group {
  19. display: inline-block;
  20. margin-left: 20px;
  21. margin-bottom: 0;
  22. width: 200px;
  23. vertical-align: bottom;
  24. }
  25. .search-top {
  26. .search-top-input-group {
  27. // using react-bootstrap-typeahead
  28. // see: https://github.com/ericgio/react-bootstrap-typeahead
  29. .bootstrap-typeahead-input input {
  30. width: 400px;
  31. }
  32. .search-top-clear {
  33. position: absolute;
  34. right: 40px;
  35. z-index: 10;
  36. width: 22px;
  37. height: 22px;
  38. top: 7px;
  39. color: #ccc;
  40. padding: 0;
  41. }
  42. }
  43. // using react-bootstrap-typeahead
  44. // see: https://github.com/ericgio/react-bootstrap-typeahead
  45. .bootstrap-typeahead-menu {
  46. li a span {
  47. .picture {
  48. width: 14px;
  49. height: 14px;
  50. }
  51. .page-path {
  52. display: inline;
  53. padding: 0 4px;
  54. color: inherit;
  55. }
  56. .page-list-meta {
  57. font-size: .9em;
  58. color: #999;
  59. >span {
  60. margin-right: .3rem;
  61. }
  62. }
  63. }
  64. }
  65. }
  66. .search-result {
  67. .search-result-list {
  68. nav {
  69. &.affix {
  70. top: 8px;
  71. width: 32%;
  72. padding-right: 0;
  73. padding-bottom: 50px;
  74. height: 100%;
  75. overflow-y: scroll;
  76. }
  77. .nav {
  78. > li {
  79. padding: 0px 11px 0 8px;
  80. &.active {
  81. padding: 0px 8px;
  82. border-right: solid 3px #666;
  83. background: #f0f0f0;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. .search-result-content {
  90. padding-bottom: 32px;
  91. .search-result-meta {
  92. margin-bottom: 16px;
  93. font-weight: bold;
  94. }
  95. .search-result-page {
  96. > h2 {
  97. font-size: 20px;
  98. }
  99. &:first-child > h2 {
  100. margin-top: 0;
  101. }
  102. .wiki {
  103. border: solid 1px #ccc;
  104. padding: 16px;
  105. border-radius: 3px;
  106. font-size: 13px;
  107. }
  108. }
  109. }
  110. }
  111. // Smartphone and Tablet
  112. @media (max-width: $screen-sm-max) {
  113. .search-top {
  114. margin-top: 4px 0 0 0;
  115. padding: 0;
  116. border-style: none !important;
  117. box-shadow: none !important;
  118. -webkit-box-shadow: none !important;
  119. .search-form {
  120. width: 76%;
  121. }
  122. .search-top-input-group {
  123. .search-top-input {
  124. width: 100%;
  125. }
  126. .btn {
  127. z-index: 10;
  128. }
  129. }
  130. }
  131. .search-result {
  132. .search-result-content {
  133. .search-result-page {
  134. .wiki {
  135. h1, h2, h3, h4, h5, h6 {
  136. font-size: medium;
  137. }
  138. height: 250px;
  139. overflow: scroll;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. // Smartphone
  146. @media (max-width: $screen-xs-max) {
  147. .search-top {
  148. .search-form {
  149. min-width: 40%;
  150. max-width: 50%;
  151. width: 50%;
  152. }
  153. .search-box {
  154. }
  155. }
  156. }