_search.scss 2.7 KB

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