_search.scss 3.2 KB

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