2
0

_search.scss 2.9 KB

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