_search.scss 2.8 KB

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